/* --- CSS Corregido para la versión V2 --- */

/* Contenedor principal para la sección y el fondo */
.timeline-section {
    padding: 80px 0;
}

/* Contenedor de la Línea de Tiempo y Navegación */
.timeline-container-v2 {
    position: relative;
    padding-top: 50px; 
}

/* Contenido de la diapositiva activa (Imagen/Título/Desc) - ARRIBA de la línea */
.timeline-active-content {
    text-align: center;
    margin-bottom: 30px; 
}

/* FIX: Imagen rectangular y ajuste de tamaño */
.timeline-image-large {
    max-width: 50%; /* Tamaño de ejemplo */
    /*height: 120px; /* Tamaño de ejemplo */
    object-fit: cover;
    border-radius: 4px; /* Ligero redondeo */
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.timeline-title-large {
    font-size: 1.5em;
    margin-bottom: 5px;
}
.timeline-description-large {
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* La LÍNEA HORIZONTAL que conecta los puntos */
.separator-line {
    width: 100%;
    height: 2px;
    background-color: #007bff;
    position: relative;
    z-index: 1;
}

/* FIX: Swiper con overflow visible para que los puntos no se corten */
.timeline-swiper {
    overflow: visible; 
    margin-top: -2px; /* Superponer la línea separator-line */
}

/*.timeline-section .swiper{
    overflow-y: visible;
}*/

/* FIX: Altura del wrapper para dejar espacio a la fecha DEBAJO */
.swiper-wrapper {
    height: 50px; 
    align-items: flex-start;
}

/* Item de la línea de tiempo (clickable) */
.timeline-item {
    cursor: pointer;
}

/* Contenedor del punto (se posiciona en el slide) */
.timeline-point-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 5; 
}

/* El Punto: exactamente en la línea */
.timeline-point {
    width: 15px;
    height: 15px;
    background: #fff;
    border: 3px solid #007bff;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 3px #007bff; 
    margin-top: -9px; /* Centra el punto en la línea de 2px */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Resaltar el Punto del slide ACTIVO */
.swiper-slide-active .timeline-point {
    background: #007bff; 
    transform: scale(1.2); 
}

/* FIX: La Fecha: DEBAJO del punto (sin comerse el espacio) */
.timeline-date {
    margin-top: 15px; 
    font-weight: 700;
    font-size: 1em;
    color: #333;
    white-space: nowrap;
}

/* FIX: Botones de navegación, alineados con la línea */
.timeline-prev-btn,
.timeline-next-btn {
    position: absolute;
    top: 0; /* Alinear con el top del swiper, que está superpuesto a la línea */
    transform: translateY(-50%); /* Centrar verticalmente en la línea */
    z-index: 10;
    color: #007bff !important;
    opacity: 1;
    /* Estilo de botón para que sea visible en la línea */
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.timeline-prev-btn { left: 0; }
.timeline-next-btn { right: 0; }
/* Estilos para el ícono de flecha de Swiper */
.swiper-button-prev:after, .swiper-button-next:after {
    font-size: 14px;
    font-weight: bold;
}



/* --- Corrección de Alineación para Botones --- */

/* 1. Contenedor de la Línea de Tiempo y Navegación */
.timeline-container-v2 {
    position: relative;
    /* Necesitas mantener este padding-top para que el contenido de arriba respire */
    padding-top: 50px; 
    overflow-x: hidden;
}

/* 2. Botones de navegación, ahora alineados exactamente con la línea */
.timeline-prev-btn,
.timeline-next-btn {
    position: absolute;
    z-index: 10; 
    
    /* FIX CRÍTICO: Este valor debe coincidir con la posición vertical de la línea.
       Cálculo: 50px (padding-top) + 185px (altura estimada de imagen/texto) + 30px (margin-bottom) = ~265px
       Si tu contenido superior es más alto, DEBES AUMENTAR ESTE VALOR. */
    top: 265px; 
    
    /* El botón tiene 30px de altura. Queremos moverlo -15px (la mitad) 
       para que quede centrado en la línea de 2px. */
    transform: translateY(-15px); 
    
    color: #007bff !important;
    opacity: 1;
    
    /* Estilo visual del botón */
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.timeline-prev-btn { left: 0; }
.timeline-next-btn { right: 0; }

/* 3. Asegurarse que la línea y el swiper sigan fluyendo correctamente */
.separator-line {
    width: 100%;
    height: 2px;
    background-color: #007bff;
    position: relative;
    z-index: 1;
}

.timeline-swiper {
    overflow: visible !important;
    overflow-y: visible !important;
    margin-top: -2px; 
    margin-bottom: 60px;
}

.timeline-section .swiper-button-prev, .timeline-section .swiper-rtl .swiper-button-next {
    left: 0px !important;
    right: auto !important;
    top: 93.5% !important;
}

.timeline-section .swiper-button-next, .timeline-section .swiper-rtl .swiper-button-prev {
    right: 0px !important;
    left: auto !important;
    top: 93.5% !important;
}

.timeline-section .swiper-button-next, .timeline-section .swiper-button-prev{
    width: 50px !important;
    height: 50px !important;
}