

.slider-container-pral {

    position: relative;
    width: 100%;
    height: 33vh;
    height: 33vh;
    overflow: hidden;

    /* margin-top: -55px; */
    z-index: 2;
    align-items: center !important;

    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;

    /* display: block; */
    /* padding-top: 500px; */
    /* margin-top: calc(10vh - 10px); */
    /* margin-top: 200vh; */
    clip-path: polygon(0 0, 100% 0, 100% 98%, 50% 100%, 0 98%);
    /* Centra verticalmente (opcional) */
    /* opacity: 0.7; */
    /* display: none; */
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* .slide {
            position: absolute;
            width: 100%;
            height: 100%;
         
            align-items: center;
            text-align: center;

            opacity: 0;
            transition: opacity 1.5s ease-in-out;
            background-size: cover;
            background-position: center;
        } */




/* Oculta todos los slides excepto el activo */
.slide-pral {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    z-index: 0;


    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */
}

/* Fondo difuminado ampliado (relleno lateral) */
.slide-pral::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.7);
    transform: scale(1.1);
    z-index: 0;
    transition: background-image 2s ease-in-out;

}

/* Imagen real centrada verticalmente, sin deformar */
.slide-pral::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-position: center;
    z-index: 1;

}

.contenido-slide {
    color: white;
    justify-content: center;
    align-items: center;
    /* bottom: 15px; */
    top: clamp(5vh, 7vh, 20vh);
    transform: translate(-50%, -50%);
    opacity: 0;
    position: relative;
    z-index: 2;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: clamp(0px, 3px, 6px);
    border-radius: 12px;
    max-width: 90%;
    max-height: 30%;
    backdrop-filter: blur(4px);
    color: white;
    /* 
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
      font-weight: 700;
      font-size: clamp(0.5rem, 5vw + 1rem, 2rem); */
}

.contenido-slide h2 {

    /* text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); */
    /* font-weight: 700; */
    /* font-weight: 200; */
    font-size: clamp(200, 400, 600);
    font-size: clamp(0.95rem, 2vh + 0.25rem, 1.7rem);
    font-size: clamp(0.95rem, 2vh + 0.23rem, 1.6rem);
    /* font-family: 'Oxanium', sans-serif; */
    font-family: 'Orbitron', sans-serif;
    
    font-weight: bold;
    font-style: normal;
    /* font-size: 3px; */
}

.contenido-slide p {

    /* text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); */
    /* font-weight: 700; */
    font-size: clamp(0.19em, 1vh + 0.5rem, 1.40rem);
    font-size: clamp(0.2em, 1vh + 0.58rem, 1.5rem);
    /* font-family: 'Oxanium', sans-serif; */
    font-family: 'Rajdhani';
    /* font-family: 'Oxanium'; */
    font-weight: normal;
    font-style: normal;


}

/* Animación moderna: fade + slide up */
@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%);

        /* transform: translate(-40px, 40px) rotateX(10deg) scale(0.95); */
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}




/* Animación base */
.animacion-entrada {
    opacity: 0;
    transform: translate(-40px, 40px) rotateX(10deg) scale(0.95);
    filter: blur(6px);
    animation: entradaLlamativa 3.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Retraso en el párrafo */
.retraso {
    animation-delay: 0.9s;
}

/* Animación de entrada */
.contenido-slide.animar-entrada {
    animation: entradaLlamativa 1.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Animación de salida */
.contenido-slide.animar-salida {
    animation: salidaLlamativa 0.9s ease-in forwards;
    
}

/* Keyframes personalizados */
@keyframes entradaLlamativa {
    0% {
        opacity: 0;
        transform: translate(-80px, 80px) rotateX(10deg) scale(0.95);
        filter: blur(6px);
    }

    60% {
        opacity: 1;
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) rotateX(0deg) scale(1);
        filter: blur(0);
    }
}

/* Keyframes de salida */
@keyframes salidaLlamativa {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotateX(0deg) scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translate(40px, -40px) rotateX(-10deg) scale(0.95);
        filter: blur(6px);
    }
}







.slide-pral.active {
    opacity: 1;
    z-index: 1;
}

/* .slide-pral.active .contenido-slide {

      animation: entradaLlamativa 2.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;


  } */




@media (max-height: 1000px) {
    .slider-container-pral {
        height: 28vh;
    }
}

@media (max-height: 700px) {
    .slider-container-pral {
        height: 25vh;
    }
}

@media (max-height: 480px) {
    .slider-container-pral {
        height: 33vh;
    }
}