/* --- Carrusel de Datos "Storytelling" (Estilo Viral) --- */
.carousel-container {
    margin: 4rem auto;
    max-width: 600px;
    /* Más estrecho, tipo móvil/story */
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.carousel-header {
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    opacity: 0.8;
}

.carousel-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 1rem 0 3rem 0;
    /* Espacio abajo para la sombra */
}

/* Ocultar scrollbar */
.carousel-slides::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: #000;
    /* Fondo negro puro como las referencias */
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: left;
    /* Texto alineado a la izquierda para narrativa */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
    /* Altura tipo Story */
    border: 1px solid #333;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

/* Efecto de "tarjeta apilada" sutil */
.carousel-slide:nth-child(even) {
    background: #050505;
}

/* --- Tipografía de Impacto --- */

/* El número de slide ahora es un "Time Stamp" o indicador sutil arriba */
.slide-number {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    /* Cian o Amarillo */
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-number::before {
    content: "DATO ";
}

/* El Título es lo GIGANTE (El dato clave) */
.slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    /* Gigante */
    line-height: 1;
    color: #fff !important;
    /* Blanco por defecto */
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    word-wrap: break-word;
    /* Evitar cortes */
    hyphens: auto;
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 2.5rem;
        /* Más pequeño en móvil */
        margin-bottom: 1rem;
    }

    .carousel-slide {
        padding: 2rem 1.5rem;
        /* Menos padding lateral */
        min-height: 400px;
    }
}

/* Variaciones de color para dinamismo (Amarillo, Rojo, Cian) */
.carousel-slide:nth-child(3n+1) .slide-title {
    color: #FACC15;
}

/* Amarillo */
.carousel-slide:nth-child(3n+2) .slide-title {
    color: #F87171;
}

/* Rojo */
.carousel-slide:nth-child(3n+3) .slide-title {
    color: #38BDF8;
}

/* Cian */

/* El texto explicativo */
.slide-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: #cbd5e1 !important;
    line-height: 1.5;
    font-weight: 500;
}

/* Indicador "Desliza" animado */
.carousel-nav {
    position: absolute;
    bottom: -30px;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Para que no bloquee clicks */
}

.swipe-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    animation: bounceRight 2s infinite;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* Botones de navegación (opcionales en desktop, ocultos en móvil si se prefiere swipe) */
.nav-btn {
    display: none;
    /* Ocultamos botones feos, confiamos en el swipe/scroll */
}

@media (min-width: 768px) {
    .nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        /* Centrado vertical perfecto */
        z-index: 10;
        background: #fff;
        color: #000;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 1.5rem;
        cursor: pointer;
        opacity: 0.8;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        margin-top: -10px;
        /* Ajuste fino visual */
    }

    .nav-btn:hover {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }

    .nav-btn.prev {
        left: -20px;
    }

    .nav-btn.next {
        right: -20px;
    }
}