/* --- CONFIGURACIÓN GENERAL Y VARIABLES --- */
:root {
    --color-primary: #0a2540; /* Azul petróleo */
    --color-secondary: #2d3748; /* Gris antracita */
    --color-accent: #b97d4b; /* Cobre */
    --color-light: #fdfaf5; /* Blanco papel */
    --color-dark-text: #1a202c;
    --font-title: 'Playfair Display', serif;
    --font-sans: 'Roboto', sans-serif;
}

/* --- ESTILOS DEL CUERPO Y FUENTES --- */
body {
    font-family: var(--font-sans);
    color: var(--color-dark-text);
    background-color: #e2e8f0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
}

/* --- ESTRUCTURA DE PÁGINA DE REVISTA --- */
.page {
    width: 100%;
    min-height: 100vh;
    padding: 4rem 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: var(--color-light);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 1280px;
    border-bottom: 2px dotted #ccc;
}
#revista > .page:first-child { margin-top: 0; }
.page:last-child { border-bottom: none; }

.page-cover {
    padding: 0;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.8), rgba(45, 55, 72, 0.4));
    z-index: 5;
}

.page-dark {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.page-number {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: #cbd5e1;
    z-index: 10;
}
.page-dark .page-number { color: rgba(255, 255, 255, 0.2); }

/* --- CAPAS DE IMAGEN Y CONTENIDO --- */
.article-section {
    position: relative;
    background-size: cover;
    background-position: center;
}

.article-section .content-overlay {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(10, 37, 64, 0.8); /* Overlay por defecto para páginas oscuras */
    padding: 2rem;
    border-radius: 0.5rem;
}
.page:not(.page-dark) .content-overlay {
    background-color: transparent;
    padding: 0;
}

/* --- TIPOGRAFÍA ESTILO NEW YORK TIMES --- */
.body-text {
    text-align: justify;
    line-height: 1.7;
    text-indent: 2rem;
}

.drop-cap::first-letter {
    font-family: var(--font-title);
    font-size: 4em;
    float: left;
    line-height: 0.8;
    margin-right: 0.1em;
    color: var(--color-accent);
}

.highlight-underline {
    background-image: linear-gradient(120deg, rgba(185, 125, 75, 0.3) 0%, rgba(185, 125, 75, 0.4) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
    padding: 0 0.1em;
}
.page-dark .highlight-underline {
    background-image: linear-gradient(120deg, rgba(185, 125, 75, 0.5) 0%, rgba(185, 125, 75, 0.6) 100%);
}


/* --- TÍTULOS ENUMERADOS --- */
.numbered-title {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.numbered-title.mx-auto { justify-content: center; }

.title-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    color: white;
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: bold;
    min-width: 50px;
    height: 50px;
    line-height: 1;
    margin-right: 1rem;
    border-radius: 4px;
}
.page-dark .title-number { background-color: var(--color-accent); color: var(--color-primary); }

.numbered-title .page-title,
.numbered-title .section-title {
    margin-bottom: 0;
    line-height: 1.2;
    padding-top: 0.25rem;
}
.numbered-title.small-number .title-number {
    font-size: 1.2rem;
    min-width: 32px;
    height: 32px;
}
.numbered-title.small-number .section-subtitle,
.numbered-title.small-number h4 {
    line-height: 1;
    padding-top: 0.3rem;
    margin-bottom: 0;
}

/* --- OTROS COMPONENTES VISUALES --- */
.page-title { font-size: 3rem; font-weight: bold; }
.section-title { font-size: 2rem; font-weight: bold; }
.section-subtitle { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-dark-text); margin-bottom: 0.5rem; }
.page-dark .section-subtitle { color: var(--color-light); }

.styled-list li, .styled-list-light li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; }
.styled-list li::before, .styled-list-light li::before { content: '•'; position: absolute; left: 0; color: var(--color-accent); font-weight: bold; font-size: 1.25rem; }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: center; }
.kpi-item { background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.5rem; padding: 1.5rem; font-size: 0.9rem; font-weight: 300; }
.kpi-item span { display: block; font-family: var(--font-title); font-size: 2.5rem; font-weight: bold; color: var(--color-accent); line-height: 1; margin-bottom: 0.5rem; }

.timeline { border-left: 2px solid var(--color-accent); padding-left: 1.5rem; margin-left: 0.25rem; }
.timeline-item { position: relative; padding-left: 1rem; margin-bottom: 1.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -0.4rem; top: 0.4rem; width: 0.75rem; height: 0.75rem; background-color: var(--color-accent); border-radius: 50%; border: 2px solid var(--color-light); }
.page-dark .timeline { border-left-color: rgba(185, 125, 75, 0.5); }
.page-dark .timeline-item::before { border-color: var(--color-primary); }

.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; text-align: center; }
.area-grid span { background-color: #fff; border: 1px solid #e2e8f0; padding: 0.75rem; border-radius: 0.375rem; font-weight: 600; font-size: 0.9rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

.service-item { border-left: 3px solid var(--color-accent); padding-left: 1.5rem; margin-bottom: 1rem; }
.service-item h4 { font-family: var(--font-sans); font-weight: bold; font-size: 1.1rem; text-transform: uppercase; }
.service-item p { font-size: 0.95rem; color: #4a5568; }

.shadow-retro { box-shadow: 5px 5px 0px 0px var(--color-secondary); border: 2px solid var(--color-secondary); }

.checkerboard { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.5rem; height: 100%; background-color: transparent !important; padding: 0 !important; }
.checker-item { border-radius: 0.5rem; }
.checker-item.text-item { background-color: rgba(10, 37, 64, 0.8); padding: 2rem; backdrop-filter: blur(10px); border: 1px solid rgba(185, 125, 75, 0.2); }
.checker-item.image-item { background-size: cover; background-position: center; }
.separator-light { border-color: rgba(185, 125, 75, 0.3); }

.info-card { background-color: #fff; padding: 1.5rem; border-radius: 4px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05); }

.service-item-dark { background-color: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--color-accent); padding: 1.5rem; border-radius: 0.25rem; }
.service-item-dark h4 { font-family: var(--font-sans); font-weight: bold; font-size: 1.1rem; text-transform: uppercase; }

.testimonial-quote { padding: 1rem 0; border-top: 1px solid #e2e8f0; margin-top: 1rem; }
.testimonial-quote:first-child { border-top: none; }
.testimonial-quote p { font-family: var(--font-title); font-style: italic; font-size: 1.1rem; }
.testimonial-quote span { display: block; text-align: right; font-weight: bold; font-size: 0.9rem; margin-top: 0.5rem; }

.faq-item-dark { border-bottom: 1px solid rgba(185, 125, 75, 0.2); padding-bottom: 1rem; margin-bottom: 1rem; }
.faq-item-dark:last-child { border-bottom: none; }
.faq-item-dark h4 { font-family: var(--font-sans); font-weight: bold; font-size: 1.1rem; color: var(--color-accent); }
.faq-item-dark p { font-size: 0.95rem; margin-top: 0.25rem; color: #d1d5db;}

/* --- Estilos para Logos de Partners (Página 15) --- */

.subsection-title {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--color-secondary);
    opacity: 0.7;
    position: relative;
    text-align: center;
    padding-bottom: 0.5rem;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem; /* Espacio entre logos */
}

.partner-logo {
    max-height: 50px; /* Altura máxima para unificar tamaños */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}