/* ========================================
   CARRUSEL.CSS - Slider con keyframes (estilo que pediste)
   ======================================== */

.carrusel-keyframes {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    margin-bottom: 40px;
    margin-top: 0;
}

.slider-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contenido del slide (título y descripción) */
.slide-contenido {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 80%;
    max-width: 800px;
    padding: 20px;
    /* background: rgba(0, 0, 0, 0.5); */
    border-radius: 10px;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.slide-contenido h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

.slide-contenido p {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* ========================================
   KEYFRAMES DINÁMICOS 
   ======================================== */
@keyframes cambiarImagen {
    /* Los estilos dinámicos se inyectan desde carrusel.php */
    /* Ejemplo de estructura:
    0% {
        background-image: url('imagen1.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    25% {
        background-image: url('imagen1.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    25.01% {
        background-image: url('imagen2.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    50% {
        background-image: url('imagen2.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    */
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .carrusel-keyframes {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .carrusel-keyframes {
        height: 350px;
    }
    .slide-contenido h2 {
        font-size: 2rem;
    }
    .slide-contenido p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .carrusel-keyframes {
        height: 280px;
    }
    .slide-contenido h2 {
        font-size: 1.5rem;
    }
    .slide-contenido p {
        font-size: 0.9rem;
    }
    .slide-contenido {
        padding: 15px;
        width: 90%;
    }
}

@media (max-width: 576px) {
    .carrusel-keyframes {
        height: 200px;
    }
    .slide-contenido {
        display: none;
    }
}