@import url('https://fonts.cdnfonts.com/css/bebas-neue');
@import url('https://fonts.cdnfonts.com/css/poppins');
/* 1200 x 780 */

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
}
svg{
    color: #fff;
}
:root{
    --width-default: min(1200px, 90vw);
    --diameter: 1432px;
}

/* INICIO DE SECCION DE VIDEO */
.sections {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

/* Video de fondo */
.sections video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Capa de oscurecimiento */
.sections::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Capa negra con 50% de transparencia */
    z-index: 2; /* Debe estar sobre el video pero detrás del texto */
}

/* Cuadro de texto con efecto de vidrio */
.text-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3; /* Debe estar sobre el overlay */
    padding: 2vw;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 70%;
}

/* Media Queries */
@media (max-width: 768px) {
    .text-content {
        width: 90%;
        padding: 3vw;
    }
}

@media (max-width: 480px) {
    .text-content {
        width: 95%;
        padding: 4vw;
    }
}

.head h1 {
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Agrega sombra para mejorar legibilidad */
    color: white;
    font-size: 3rem;
}

.head p {
    font-size: 1.2rem;
}

/* FIN DE SECCION DE VIDEO */


.spin {
    color: #ffaa00;
}

.slider{
    color: #ffffff;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.slider .list .item{
    position: absolute;
    inset: 0 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 1s;
}
.slider .list .item .content{
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 100%;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(2, 400px);
    text-align: left;
    gap: 80px;
    font-size: 1.5em;
    font-family: Poppins;
    /* text-shadow: 0 0 80px #000; */
}

/* Glass effect for h2 */
.slider .list .item .content h2 {
    font-size: 5vw; /* Tamaño del texto relativo al ancho de la pantalla */
    font-family: 'Bebas Neue', sans-serif;
    line-height: 0.9em;
    transition: transform 1s;
    grid-row-start: 1;
    grid-row-end: 2;
    margin-top: 60px;
    width: 500px; /* Establece el ancho relativo a la pantalla */
    height: auto; /* La altura se ajusta automáticamente al contenido */
    padding: 5vw 5vw; /* Añade relleno en porcentaje, para hacerlo más flexible */
    background: rgba(255, 255, 255, 0.2); /* Semitransparente */
    backdrop-filter: blur(5px); /* Difumina el fondo detrás */
    -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */
    border-radius: 10px; /* Bordes redondeados */
    padding: 5vw; /* Añade relleno adaptable */
    box-sizing: border-box; /* Asegura que el padding no se agregue al tamaño total */
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    .slider .list .item .content h2 {
        font-size: 4vw; /* Más grande en pantallas pequeñas */
        width: 90%; /* Un poco más ancho en pantallas pequeñas */
        max-width: 400px; /* Ajustar a un tamaño razonable */
        padding: 8vw; /* Más relleno para pantallas pequeñas */
    }
}

/* Media query para pantallas grandes */
@media (min-width: 1024px) {
    .slider .list .item .content h2 {
        font-size: 4vw; /* Ajusta el tamaño del texto */
        width: auto; /* El ancho se ajustará automáticamente al contenido */
        max-width: auto; /* El ancho máximo será automático */
        padding: 3vw; /* Relleno más pequeño */
        height: fit-content;
        top: 15%;
        
        /* Glassmorphism properties */
        background: rgba(255, 255, 255, 0.2); /* Fondo semitransparente */
        backdrop-filter: blur(10px); /* Difumina el fondo detrás */
        -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */
        border-radius: 10px; /* Bordes redondeados */
        border: 1px solid rgba(255, 255, 255, 0.3); /* Borde translúcido */
        box-sizing: border-box; /* Asegura que el padding no se agregue al tamaño total */
    }
}

/* Glass effect for the last child paragraph */
.slider .list .item .content p:last-child {
    display: flex;
    justify-content: start;
    align-items: end;
    position: sticky;
    top: 50%;
    /* transform: translateY(-50%); */
    transition: transform 2s;
    width: 80%; /* Hace el contenedor más flexible */
    max-width: 500px; /* Limita el ancho máximo */
    
    /* Glassmorphism properties */
    background: rgba(255, 255, 255, 0.2); /* Semitransparente */
    backdrop-filter: blur(10px); /* Difumina el fondo detrás */
    -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */
    border-radius: 10px; /* Bordes redondeados */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Borde translúcido */
    padding: 5vw 10vw; /* Añade relleno adaptable */

    box-sizing: border-box; /* Asegura que el padding no se agregue al tamaño total */
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    .slider .list .item .content p:last-child {
        width: 90%; /* Hace que el párrafo sea un poco más ancho en pantallas pequeñas */
        max-width: 400px; /* Ajusta el ancho máximo */
        padding: 8vw 12vw; /* Más relleno en pantallas pequeñas */
    }
}

/* Media query para pantallas grandes */
@media (min-width: 1024px) {
    .slider .list .item .content p:last-child {
        width:auto; /* Menos ancho en pantallas grandes */
        max-width: 600px; /* Ajusta el tamaño máximo */
        padding: 2vw 2vw; /* Relleno más pequeño */
        height: fit-content;
    }
}

/* item default */
.slider .list .item .image{
    flex-shrink: 0;
    width: var(--diameter);
    height: var(--diameter);
    background-image: var(--url);
    background-size: var(--diameter) var(--diameter);
    background-position: center;
    border-radius: 50%;
    transform: rotate(-60deg);
    position: relative;
    transition: 1s;
}
.slider .list .item .image::before,
.slider .list .item .image::after{
    position: absolute;
    width: 70%;
    height: 70%;
    content: '';
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)  rotate(-120deg);
    background-image: 
    linear-gradient(to right, #0000005e, #000000a6), var(--url),
    var(--url);
    background-size: var(--diameter) var(--diameter);
    background-position: center;
    transition: 1s;
}
.slider .list .item .image::after{
    width: 30%;
    height: 30%;
    background-image: var(--url);
    border: 3px solid #fff2;
    transform: translate(-50%, -50%) rotate(-170deg);
}

/* default  */
.slider .list .item .image{
    filter: blur(30px);
}

.slider .list .item{
    pointer-events: none;
    opacity: 0;
}
/* item active */
.slider .list .item.active{
    pointer-events: auto;
    opacity: 1;
}
.slider .item.active .image{
    filter: blur(0px);
    transform: rotate(0deg);
}
.slider .item.active .image::before,
.slider .item.active .image::after
{
    transform: translate(-50%, -50%) rotate(0deg) ;
}
.slider .list .item.active .content h2{
    transform: translateY(0);
}

/* item phía sau */
.slider .list .item.active ~ .item{
    opacity: 0;
}
.slider .item.active ~ .item .image{
    transform: rotate(60deg);
}
.slider .item.active ~ .item .image::before
{
    transform: translate(-50%, -50%) rotate(120deg) ;
}
.slider .item.active ~ .item .image::after
{
    transform: translate(-50%, -50%) rotate(170deg) ;
}
.slider .list .item.active ~ .item .content h2{
    transform: translateY(100%);
}
/* arrows */
.arrowsr{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    width: var(--width-default);
    display: flex;
    justify-content: space-between;
}
.arrowsr button{
    all: unset;
    cursor: pointer;
}
.slider .list::after{
    position: absolute;
    content: '';
    bottom: 0;
    width: min(1000px, 100vw);
    height: 70%;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(img/model.png);
    background-size: cover;
    background-position: top;
    pointer-events: none;
    animation: showModel 1s ease-in-out 1 forwards;
}
@keyframes showModel{
    from{
        transform: translateX(-50%) scale(1.3) translateY(88px);
    }
}

.arrowsr button.d-none{
    opacity: 0;
    pointer-events: none;
}
@media all and (max-width: 1024px) {
    .slider .list .item .content{
        grid-template-columns: repeat(2, 300px);
    }
    .slider .list .item .content h2{
        font-size: 8em;
    }
}
@media all and (max-width: 767px) {
    .slider .list .item .content{
        grid-template-columns: 80%;
        justify-content: center;
        gap: 20px;
        top: 20px;
    }
    .slider .list .item .content h2{
        font-size: 2.5em;
    }
    .slider .list .item .content p{
        font-size: small;
    }
}

