/* =========================================
   PÁGINA BIOGRAFÍA: CABECERA Y LÍNEA DE TIEMPO
   ========================================= */

/* Cabecera superior oscura */
.page-header {
    background-color: #0B1713; /* Verde bosque profundo */
    color: #E3D3C1;
    padding: 12rem 1.5rem 6rem 1.5rem; /* Margen superior amplio por el header flotante */
    text-align: center;
    border-bottom: 1px solid rgba(227, 211, 193, 0.1);
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.page-header h1 .italic-text {
    font-style: italic;
    text-transform: lowercase;
    font-size: 1.1em;
}

/* Sección principal de la línea de tiempo */
.timeline-section {
    background-color: #FDFBF7; /* Beige crema claro */
    padding: 8rem 1.5rem;
    position: relative;
}

.timeline-container {
    max-width: 1100px; /* Un poco más ancho para que respiren las imágenes */
    margin: 0 auto;
    position: relative;
}

/* La línea central vertical */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 1px;
    background-color: rgba(168, 100, 66, 0.3); /* Terracota semitransparente */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Flexbox para distribuir texto e imagen a los lados */
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alinea los elementos arriba */
    width: 100%;
    margin-bottom: 8rem;
    position: relative;
}

/* Contenedores de 42% para dejar espacio libre en el centro */
.timeline-content {
    width: 42%;
    position: relative;
}

.timeline-image {
    width: 42%;
    position: relative;
    /* Estilo de cuadro minimalista y elegante */
    background-color: #E3DBCB; /* Color de fondo temporal por si la imagen tarda en cargar */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06); /* Sombra difuminada muy premium */
    aspect-ratio: 4 / 3; /* Proporción fotográfica clásica */
}

/* La imagen dentro del cuadro */
.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pequeño efecto zoom al pasar el mouse por la foto */
.timeline-item:hover .timeline-image img {
    transform: scale(1.04);
}

/* EVENTOS IMPARES: Texto Izquierda, Imagen Derecha */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}
.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: 2rem;
}

/* EVENTOS PARES: Texto Derecha, Imagen Izquierda */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: 2rem;
}

/* El punto decorativo (Estrella) sobre la línea central */
.timeline-item::after {
    content: '✦';
    position: absolute;
    top: 1.5rem; /* Alineado verticalmente con el Año */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: #A86442; /* Terracota */
    background-color: #FDFBF7; /* Mismo fondo para tapar la línea */
    padding: 0.5rem;
    z-index: 2;
}

/* Tipografía de los Años */
.timeline-year {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: #1A3026; /* Verde bosque profundo y elegante */
    font-style: italic;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Textos de la biografía */
.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #2D2522; /* Carbón oscuro */
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #5A4D45; /* Café ceniza */
    line-height: 1.7;
    font-weight: 300;
}

/* Adaptación Responsive para Móviles */
@media (max-width: 768px) {
    .timeline-container::after {
        left: 20px; /* Mueve la línea al borde izquierdo */
    }
    
    .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        flex-direction: column; /* Apila todo en una columna */
        margin-bottom: 5rem;
    }
    
    .timeline-content, .timeline-image {
        width: 100%;
        padding-left: 60px !important; /* Deja espacio para la línea a la izquierda */
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-image {
        margin-top: 2rem;
        /* Ajuste de ancho para no salirse de la pantalla */
        width: calc(100% - 60px); 
        margin-left: 60px;
    }
    
    .timeline-item::after {
        left: 20px; /* Estrella en el borde izquierdo */
    }
}



/* =========================================
   FOOTER ESPECÍFICO PARA BIOGRAFÍA (Override)
   ========================================= */

/* Cambiamos el fondo del footer solo en esta página */
footer {
    background-color: #0B1713; /* Verde bosque profundo */
}

/* Ajustamos los colores de los elementos para que brillen sobre el fondo oscuro */
.footer-text {
    color: #E3D3C1; /* Dorado claro / beige */
}

.footer-bottom {
    color: #9CA89B; /* Verde salvia sutil para los derechos de autor */
}

.footer-star {
    color: #E3D3C1; /* Estrella en dorado claro */
}

.footer-line {
    background-color: rgba(227, 211, 193, 0.2); /* Líneas laterales doradas semitransparentes */
}