

.slider-wrapper {
    font-family: 'Georgia', serif; 
    background: transparent; /* **FIX** Evita que el gris/blanco se asome por las esquinas */
    
    width: 100%;
    min-height: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    
    overflow-x: hidden; 
    padding: 0; 
}



.slider-container {
    position: relative;
    width: 100%;
    
    /* FIX FINAL: Se usa color negro (#000) para camuflar las esquinas redondeadas 
       y coincidir con el overlay oscuro de las imágenes, eliminando el gris. */
    background: #000; 
    
    height: 80dvh; 
    min-height: 550px; 
    max-height: 750px;
    
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    max-width: 100%; 
}


.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    width: 800%; 
    will-change: transform; 
}

.slide {
    flex: 0 0 12.5%; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; 
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* IMÁGENES DE FONDO (Rutas) */
.slide:nth-child(1) { background-image: url('../imagenes/secciones/diosa_shakti.jpeg'); }
.slide:nth-child(2) { background-image: url('../imagenes/secciones/atardecer.jpeg'); }
.slide:nth-child(3) { background-image: url('../imagenes/secciones/mantra_azul_y_rojo.jpeg'); }
.slide:nth-child(4) { background-image: url('../imagenes/secciones/lava.jpeg'); }
.slide:nth-child(5) { background-image: url('../imagenes/secciones/mantra_colores.jpeg'); }
.slide:nth-child(6) { background-image: url('../imagenes/secciones/rosas.jpeg'); }
.slide:nth-child(7) { background-image: url('../imagenes/secciones/cueva.jpeg'); }
.slide:nth-child(8) { background-image: url('../imagenes/secciones/cielo_y_estatua.jpeg'); }

/* OVERLAY OSCURO */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); 
    z-index: 1;
}


.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    
    width: 85%;
    max-width: 50rem;
    min-height: 60%; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    
    padding: 2.5rem;
    
    /* Estilo Glassmorphism Rojo */
    background: linear-gradient(135deg, 
        rgba(138, 3, 3, 0.75), 
        rgba(193, 18, 31, 0.70)
    );
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
}

/* Variación para pares */
.slide:nth-child(even) .slide-content {
    background: linear-gradient(-135deg, 
        rgba(160, 21, 62, 0.75), 
        rgba(114, 47, 55, 0.70)
    );
}

.slide-title {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    
    /* Gradiente dorado en texto */
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFC0CB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* **FIX:** text-wrap: balance para evitar palabras sueltas (viudas) */
    text-wrap: balance; 
    line-height: 1.2;
}

.slide-description {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-style: italic;
    opacity: 0.95;
    
    /* **FIX:** text-wrap: pretty mejora la distribución del párrafo y evita viudas */
    text-wrap: pretty;
    max-width: 90%; 
}



/* NÚMERO DE SLIDE - Ubicado fijo en el contenedor */
.slide-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 20; 
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* FLECHAS DE NAVEGACIÓN - Forma tipo media luna (Rectangular en el borde) */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* **FIX:** Dimensiones para que no choquen con el texto en móvil */
    width: 3rem; 
    height: 5rem;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(138, 3, 3, 0.8); 
    color: white;
}

.nav-arrow.prev {
    left: 0;
    border-radius: 0 1rem 1rem 0; 
}

.nav-arrow.next {
    right: 0;
    border-radius: 1rem 0 0 1rem; 
}

.nav-arrow svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

/* INDICADORES (PUNTOS) */
.slide-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 15;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

.dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4); 
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* **CORRECCIÓN DE COLOR:** Regresa al color temático principal */
.dot.active {
    background: #8A0303; 
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(138, 3, 3, 0.5);
}


@media (max-width: 768px) {
    .slider-container {
        /* Altura deseada (65dvh) */
        height: 65dvh; 
        
        /* Anula el min-height global de 550px */
        min-height: 0; 

        width: 100%;
        border-radius: 0; 
        margin: 0;
        max-width: 100%; 
    }
    }

    .slide-content {
        width: 90%;
        min-height: 55%; 
        padding: 1.5rem;
        max-height: 80%; 
        overflow-y: auto; 
    }

    /* Flechas en móvil: Más discretas y en los bordes */
    .nav-arrow {
        width: 2.5rem;
        height: 4rem;
        background: rgba(0,0,0,0.2); 
    }
