:root {
    --slide-w: min(300px, 80vw);  /* ancho típico de teléfono */
    --slide-h: 500px;  
}

header{
    background-image: linear-gradient(90deg, #FF1C01 0%, #FE3E02 100%);
    margin: 0;
    padding: 24px;
}

header .limit-box{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.title{
    margin: 0;
    max-width: 40%;
    font-weight: 400;
}

#header-img{
    max-width: 100%;
    width: 30%;
}

#hero{
    display: flex;
    flex-direction: column;
    min-height: 650px;
    position: relative;
    background-image: url('../content/images/ezgif-78fef0ceb2782.webm-poster.webp');
    background-repeat: no-repeat;
    background-size: cover;
}

#hero .limit-box h2, #hero .limit-box p, #hero .limit-box form{
    width: 45%;
}

#hero form{
    width: 45%;
}

#hero div, #hero input{
    width: 100%;
    position: relative;
}

#hero h2{
    font-size: 2.2em;
    margin: 0;
    font-weight: 400;
}

#hero p{
    font-size: 1.1em;
}

.desktop-hero{
    position: absolute;
    width: 100%;
    position: top center;
    object-fit: cover;
    height: 100%;
}

#buttonDiv, form{
    overflow: visible;
}

#info{
    background: url("../content/images/Imagen.webp");
    padding: 12px;
    overflow: visible;
}

#info .limit-box, #hero .limit-box{
    overflow: visible;
}

h3{
    font-size: 2em;
    font-weight: 400;
    text-align: center;
}

#info h3{
    width: 80%;
    align-self: center;
}

.grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
    margin-bottom: 24px;
}

.grid-class{
    border: 1px #FE3E02 solid;
    width: 100%;
    margin: 6px;
    border-radius: 24px;
    min-height: 540px;
    position: relative;
    overflow: visible;
    padding: 12px;
    justify-content: end;
    display: flex;
    flex-direction: column;
    transition: .2s ease-in-out;
}

.grid-class:hover{
    transform: scale(1.05);
    z-index: 10;
}

.grid-class h4{
    font-size: 1.2em;
    margin: 0;
}

.class-1{
    background: url("../content/images/Clase1.webp");
    background-position: top center;
    background-size: cover;
}

.class-2{
    background: url("../content/images/Clase2_.webp");
    background-position: top center;
    background-size: cover;
}
.class-3{
    background: url("../content/images/Clase4.webp");
    background-position: top center;
    background-size: cover;
}

.grid-arrow{
    position: absolute;
    width: 20%;
    right: -12.5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    transition: .2s ease-in-out;
}

.grid-arrow:hover{
    transform: scale(0.95) translateY(-50%);
}

#prove{
    text-align: center;
    font-size: 1.1em;
}

.pointed-box{
    padding: 24px;
    border: 1px dashed #FE3E02;
    width: 92%;
    align-self: center;
    margin-bottom: 18px;
    border-radius: 10px;
}

.pointed-box h4{
    margin: 0;
    color: white;
    font-size: 1.3em;
    line-height: 1.4em;
    padding: 0;
    text-align: center;
}

.orange-button{
    animation: pisca 1.5s infinite;
    box-shadow: 0px 0px 21px -6px #FF6100;
}

@keyframes pisca {
  70% {
    box-shadow: 0 0 0 25px rgba(0,0,0,0);
  }
  100% {
    bbox-shadow: 0 0 0 0 rgba(0,0,0,0);
  }

}

#success-cases{
    padding: 64px 0;
    background: url("../content/images/Imagen.webp");
    background-position: bottom right;
}

#success-cases .limit-box{
    flex-direction: row;
    overflow: visible;
}

#sucess-cta{
    overflow: visible;
    max-width: 40%;
}

#success-cases h3{
    text-align: left;
    max-width: 86%;
}

#success-carrousel{
    display: flex;
    flex-direction: row;
    max-width: 55%;
    position: relative;
    overflow: visible;
}

.track{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--slide-w);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-block: 8px;
    cursor: grab;
    mask-image: linear-gradient(90deg,rgba(255,255,255) 96%, rgba(255,255,255,0) 98%);
}
.track:active {
    cursor: grabbing;
}

.track {scrollbar-width: none;}
.track::-webkit-scrollbar{ display: none;}

.slide {
    scroll-snap-align: center;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: var(--slide-h);
    background: #111;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    user-select: none;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background: #000;  
    border-radius: 20px;  
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
    pointer-events: none;
}
.nav {
    position: absolute; top: 50%; translate: 0 -50%;
    width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid #ff5400; background:#0b0b0b; color:#ff5400;
    display: grid; place-items: center;
    font-size: 22px; line-height: 1; cursor: pointer;
    z-index: 2;
  }
  .nav.prev { 
    left: -24px;
    z-index: 10;
 }
  .nav.next { right: 6px; }

  #who{
    background: url('../content/images/Quien-es-Woker.webp');
    background-repeat: no-repeat;
    background-color: #000;
    padding-top: 32px;
    padding-bottom: 0;
    background-position: top right;
  }

  #who .limit-box{
    flex-direction: row;
    gap: 24px;
  }

  #who h3{
    text-align: left;
    font-weight: 600;
    font-size: 2.4em;
    margin-bottom: 0;
  }

  #who p{
    font-size: 1.1em;
  }

  #who img{
    width: 50%;
  }

  footer{
    background-color: #000;
    text-align: center;
    font-size: 1.3em;
    padding: 24px;
    overflow: visible;
}

footer .limit-box{
    overflow: visible;
    margin-bottom: 24px;
}

@media(max-width:1080px){
    #who-text{
        filter: drop-shadow(0 0 4px rgba(0,0,0,0.5))
    }
}

@media(max-width:767px){
    #header-img{
        display: none;
    }
    .title{
        min-width: 100%;
        text-align: center;
    }
    header{
        padding: 12px;
    }
    header .limit-box{
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    #hero h2, #hero p, #hero form{
        min-width: 96%;
    }

    header h2{
        font-size: 1rem;
    }
    #hero{
        padding-top: 180px;
        padding-bottom: 32px;
        background-color: #000;
        background-image: url("../content/images/ezgif-702302c8a6889.webm-poster.webp");
        background-size: contain;
        background-position: top center;
    }
    video{
        object-position: top center !important;
        object-fit: contain !important;
        top: 0;
        transform: translate();
    }
    
    #info{
        h3{
            width: 100%;
        }
        .grid{
            grid-template-columns: repeat(1, 1fr);
        }
        .grid-arrow{
            display: none;
        }
        .grid-class{
            min-width: 80%;
            max-width: 260px;
            align-self: center;
            margin: auto;
        }
    }

    #success-cases .limit-box{
        flex-direction: column;
        position: relative;
    }
    #success-cases a{
        display: none;
    }
    #success-carrousel{
        max-width: none;
        min-width: 98% !important;
    }
    .track{
        width: 98%;
        mask-image: none;
    }
    #success-cases h3{
        text-align: center;
        width: 98%;
        margin: auto;
        margin-bottom: 24px;
    }

    #who .limit-box{
        flex-direction: column-reverse;
    }
    #who img{
        width: 80%;
        mask-image: linear-gradient(180deg, rgba(255,255,255) 90%, rgba(255,255,255,0));
        align-self: center;
    }
    #who{
        background: url("../content/images/Quien-es-Woker-Movil-2.webp");
        background-size: contain;
        background-repeat: no-repeat;
        background-color: #000;
    }

    #who h3{
        margin: 0;
        font-size: 1.7em;
    }

    #success-cta h3{
        font-size: 1.6em;
        width: 100%;
    }

    .orange-button{
        text-align: center;
        font-size: 1rem;
        font-weight: 400;
    }

    #info h3{
        font-size: 1.5em;
    }

     footer h2{
        font-size: 1.2em;
     }
    #hero h2{
        font-size: 1.4em;
        line-height: 1.1em;
    }
}