/* =========================================
   nosotros.css — Página Sobre Nosotros
   ========================================= */
:root {
    --fondo-timeline-nosotros: #1a365d;
    --fondo-banner-accion: var(--fondo-timeline-nosotros);
}

/* El banner es el partial hero-canopy, con sus estilos en mapa.css */

/* ── SECCIÓN HISTORIA (override animaciones) ── */
.historia-corporativa .historia-texto p strong {
    color: #1a365d;
}

/* ── TIMELINE ── */
.seccion-timeline {
    background-color: var(--fondo-timeline-nosotros);
    padding: 80px 5%;
    color: white;
}

.timeline-inner {
    max-width: 900px;
    margin: 0 auto;
}

.seccion-timeline .titulo-seccion {
    color: white;
}

.timeline {
    margin-top: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Línea vertical central */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(236, 201, 75, 0.3);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
}

/* Items impares: año izquierda, contenido derecha */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}

/* Items pares: año derecha, contenido izquierda */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-año {
    flex: 1;
    text-align: right;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ecc94b;
    font-family: Georgia, serif;
    padding-right: 32px;
}

.timeline-item:nth-child(even) .timeline-año {
    text-align: left;
    padding-right: 0;
    padding-left: 32px;
}

/* Punto central */
.timeline-linea {
    width: 16px;
    height: 16px;
    background: #ecc94b;
    border-radius: 50%;
    border: 3px solid #1a365d;
    box-shadow: 0 0 0 4px rgba(236, 201, 75, 0.25);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-contenido {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 20px 24px;
    margin-left: 32px;
    border-left: 3px solid #ecc94b;
}

.timeline-item:nth-child(even) .timeline-contenido {
    margin-left: 0;
    margin-right: 32px;
    border-left: none;
    border-right: 3px solid #ecc94b;
    text-align: right;
}

.timeline-contenido h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ecc94b;
    margin-bottom: 6px;
}

.timeline-contenido p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 52px;
        position: relative;
    }

    .timeline-año,
    .timeline-item:nth-child(even) .timeline-año {
        display: block;
        text-align: left;
        padding: 0 0 4px 0;
        font-size: 1.4rem;
        order: 1;
    }

    .timeline-linea {
        position: absolute;
        left: 12px;
        top: 4px;
        margin: 0;
        flex-shrink: 0;
    }

    .timeline-contenido,
    .timeline-item:nth-child(even) .timeline-contenido {
        margin: 0;
        border-left: 3px solid #ecc94b;
        border-right: none;
        text-align: left;
        order: 2;
        width: 100%;
    }

    .nosotros-hero { height: 45vh; }
}