*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

@keyframes show {
    from {
        opacity: 0;
        scale: 25%;
    }

    to {
        opacity: 1;
        scale: 100%;
    }
}

.con-ca img{
    view-timeline-name: --image;
    view-timeline-axis: block;

    animation-timeline: --image;
    animation-name: show;

    animation-range: entry 25% cover 50%;
    animation-fill-mode: both;
}

a:hover{
    scale: 1.1;
    transition: 0.4s;
}

a{
    transition: 0.2s;
}

@keyframes arr {
    from{
        opacity: 0;
        display: none;
        background-color: white;
    }

    to{
        opacity: 1;
        display: block;
        background-color: #ca6f00;
    }
}

.btn-arr{
    position: fixed;
    width: 50px;
    height: 50px;
    z-index: 1;
    bottom: 2%;
    right: 2%;
    padding: 10px;
    border-radius: 50%;

    view-timeline-name: --imagea;
    view-timeline-axis: block;

    animation-timeline: --imagea;
    animation-name: arr;

    animation-range: entry 25% cover 50%;
    animation-fill-mode: both;
}

.btn-arr img{
    width: auto;
    height: auto;
}

.con-nav{
    height: 15vh;
    padding: 20px 0px 20px 20px;
    display: flex;
    align-items: center;
}

.con-btn{
    width: 70%;
    height: 65%;
    background-color: #EB8001;
    margin-left: auto;
    border-bottom-left-radius: 40px;
    border-top-left-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6%;
    padding-left: 30px;
}

.con-btn a{
    text-decoration: none;
    color: black;
    font-family: "nunito", sans-serif;
    font-size: clamp(0.8rem, 3vw, 1.4rem);
    font-weight: 700;
}

.con-btn2{
    width: 20%;
    height: 8vh;
    background-color: black;
    margin-left: auto; 
    border-bottom-left-radius: 40px;
    border-top-left-radius: 40px;
    position: absolute;
    right: 0%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
    gap: 15px;
}

.con-btn2 a{
    text-decoration: none;
    color: rgb(182, 139, 1);
    font-family: "nunito", sans-serif;
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    font-weight: 400;
}

.redes{
    height: 30%;
}

.redes img{
    height: 100%;
}

.redes-2{
    height: 30%;
}

.redes-2 img{
    height: 100%;
}

.redes-2{
    display: none;
}

.con-cab{
    width: 100%;
    height: 75vh;
    background-color: #EB8001;
    border-top-right-radius: 80px;
    border-bottom-left-radius: 80px;
    background-image: url("/img/background.svg");
    background-size: cover;            
    background-position: right;          
    background-repeat: no-repeat;
    display: flex;
}

#abrir img, #cerrar img{
    height: 3vh;
}

#abrir, #cerrar{
    background: none;
    border: 0;
}

.con-tex{
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 16%;
    font-family: "nexa", sans-serif;
    gap: 20px;
}

.con-tex h1{
    font-size: 5.6vw;
    font-weight: 800;
    text-align: center;
    line-height: 70px;
}

.con-tex h2{
    font-size: 4vw;
    font-weight: 800;
    text-align: center;
}

.con-tex h3{
    text-align: center;
}

.con-tex p{
    text-align: center;
    width: 50%;
    color: white;
    font-weight: 600;
    font-size: clamp(0.8rem, 1vw, 1.2rem);
}

.con-tex a{
    color: white;
    text-decoration: none;
    background-color: black;
    padding: 0px 20px;
    border-radius: 30px;
    border-top-right-radius: 0;
    font-size: (0.8rem, 1vw, 1.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 8vh;
}

.con-tex a img{
    height: 40%;
}

.con-videos{
    margin-top: 20px;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0px 2%;
    justify-items: center;
}

.con-videos div{
    padding: 20px;
    width: 100%;
    position: relative;    
}

.con-videos div video{
    overflow: hidden;
    border: solid #EB8001 10px;
}

.con-videos div button{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Ajuste perfecto al centro */
    padding: 10px 20px;
    background: #EB8001;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

.con-ca{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    width: 100%;
    padding: 0 40px;
    margin-top: 4%;
}

.con-ca div{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.con-ca div h2{
    font-family: "nunito", sans-serif;
    color: #EB8001;
    font-weight: 400;
    text-align: center;
}

.con-ca div img{
    width: 35%;
}

#abrir{
    display: none;
}

.con-ca2{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    margin-top: 4%;
}

.con-ca2 div{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.con-ca2 div h2{
    font-family: "nunito", sans-serif;
    font-size: 1.4rem;
    background-color: #EB8001;
    padding: 5px 15px;
    border-radius: 40px;
}

.con-ca2 div ul{
    font-family: "nunito", sans-serif;
    font-size: 1.2rem;
    color: #EB8001;
    list-style-image: url("/img/lista.svg");
}

/* imagenes */

.container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 30px;
}

.image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.image-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.image-slider .after {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.1s ease-out;
}

.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #EB8001;
    border: 1px solid #ccc;
    pointer-events: none;
    z-index: 2;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    z-index: 3;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 100%;
    background: transparent;
}

.label {
    position: absolute;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 4;
}

.before-label { left: 10px; bottom: 10px; }
.after-label { right: 10px; bottom: 10px; }

/* carrusel */

.logos{
    width: 100%;
    display: flex;
    margin: auto;
    overflow: hidden;
    background-color: black;
    white-space: nowrap;
    position: relative;
}

.logos-slide{
    animation: 20s slide infinite linear;
    img{
        height: 50px;
        margin: 10px 70px;
    }
}

logos::before{
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255));
    content: " ";
    z-index: 1;
}

logos::after{
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255));
    content: " ";
    z-index: 1;
}

@keyframes slide {
    from{
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.con-carrusel{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: black;
    padding-top: 20px;
}

.con-carrusel h2{
    color: #EB8001;
    font-family: "nunito", sans-serif;
    font-size: 2rem;
}

.con-planes{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding: 35px;
    justify-items: center;
}

.con-planes div{
    background-color: #EB8001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 15px;
    min-height: 40vh;
}

.con-planes div h2{
    font-family: "nunito", sans-serif;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.con-planes div p{
    color: white;
    font-family: "nunito", sans-serif;
    text-align: center;
    width: 50%;
    font-size: 1.2rem;
}

.con-planes div a{
    text-decoration: none;
    color: white;
    font-family: "nunito", sans-serif;
    padding: 10px 20px;
    background-color: black;
    border-radius: 40px;
}

.con-cot{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: black;
    padding: 20px 0px;
}

.con-cot h2{
    color: #EB8001;
    font-family: "nunito", sans-serif;
    font-size: 1.8rem;
}

.con-cot div{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#btn-1{
    color: white;
    text-decoration: none;
    font-family: "nunito", sans-serif;
    background-color: #EB8001;
    padding: 20px 10%;
    font-size: 1.8rem;
    border-bottom-right-radius: 40px;
    border-top-right-radius: 40px;
    display: flex;
    height: 10vh;
    align-items: center;
    gap: 20px;
}

#btn-2{
    color: white;
    text-decoration: none;
    font-family: "nunito", sans-serif;
    background-color: #EB8001;
    padding: 20px 10%;
    font-size: 1.8rem;
    border-bottom-left-radius: 40px;
    border-top-left-radius: 40px;
    display: flex;
    height: 10vh;
    align-items: center;
    gap: 20px;
}

#btn-2 img{
    height: 70%;
}

#btn-1 img{
    height: 70%;
}

.con-ca3 div img{
    height: 6vh;
}

.con-ca3{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    background-image: url("img/background-3.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    justify-items: center;
    padding: 20px;
    gap: 20px;
}

.con-ca3 h2{
    font-family: "nunito", sans-serif;
    color: #EB8001;
}

.con-ca3 p{
    font-family: "nunito", sans-serif;
    color: white;
}

#caja-3{
    grid-column: -1 / -3;
}

/* footer */

.container-foo{
    width: 100%;
    height: 50vh;
    background-color: #EB8001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 50PX;
}

.container-foo img{
    width: 25%;
}

.flex-foo1{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex-foo1 h2{
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    font-style: italic;
    color: white;
    text-align: center;
}

.flex-foo2{
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.flex-foo2 h2{
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    font-style: italic;
    color: white;
}

@media (max-width: 900px){
    .con-nav{
        height: 50vh;
    }

    .con-tex{
        margin: auto;
        width: 70%;
    }

    .con-tex a{
        font-size: 0.6rem;
        height: 5vh;
    }

    .con-nav{
        visibility: hidden;
        display: flex;
        z-index: 1;
        position: absolute;
        width: 40%;
        box-shadow: 0 0 0 1000vmax rgba(56, 56, 56, 0.5);
        background-color: #EB8001;
        flex-direction: column;
        padding: 20px;
        border-bottom-right-radius: 40px;
    }

    .con-btn{
        flex-direction: column;
        padding-left: 0;
        margin-left: 0;
        justify-content: center;
    }

    .con-btn2{
        position: relative;
        margin-left: 0;
        border-radius: 40px;
        width: auto;
        margin-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
        height: 5vh;
        gap: 10px;
    }

    .con-redes{
        display: flex;
        height: 20%;
        align-items: center;
        gap: 10px;
    }

    .redes{
        display: none;
    }

    .redes-2{
        display: block;
    }

    .con-btn2 a{
        font-size: 0.7rem;
    }

    #logo{
        height: auto;
        width: 70%;
    }

    .con-nav.visible{
        visibility: visible;
    }

    #abrir{
        display: block;
        position: absolute;
        left: 5%;
        top: 5%;
    }

    .con-cab{
        background-image: url("/img/background-2.svg");
        background-size: cover;
    }

    .con-videos{
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        justify-items: center;
    }

    .con-videos div, #caja{
        width: 80%;
    }

    .con-videos div video{
        height: 300px;
        background-color: rgba(0, 0, 0, 0.5); 
        border-radius: 40px;
        padding: 20px;
    }

    #caja{
        grid-column: -3 / -1;
        width: 40%;
    }

    .con-ca{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    padding: 0 40px;
    margin-top: 10px;
    gap: 10px;
    }

    .con-ca div{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    }

    .con-ca div h2{
    font-family: "nunito", sans-serif;
    color: #EB8001;
    font-weight: 400;
    font-size: 1rem;
    }

    .con-ca div img{
    width: 40%;
    }

    .con-ca2{
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 30px;
        padding: 20px;
    }

    #caja-2{
        grid-column: -3 / -1;
    }

    .con-planes{
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .caja-planes{
        grid-column: -3 / -1; 
        width: 50%;
    }

    .con-planes div p{
        width: 70%;
    }

    .con-cot h2{
        font-size: 1.5rem;
    }

    #btn-1{
        font-size: 1.2rem;
        padding: 2px 5%;
    }

    #btn-2{
        font-size: 1.2rem;
        padding: 2px 5%;
    }

    #btn-2 img, #btn-1 img{
        height: 40%;
    }

    .con-ca3 div img{
        height: 4vh;
    }

    .con-ca3 h2{
        font-size: 0.8rem;
    }

    .con-ca3 p{
        font-size: 0.8rem;
    }

    /* footer */

    .container-foo{
    width: 100%;
    height: 40vh;
    background-color: #EB8001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    }

    .container-foo img{
    width: 40%;
    }

    .flex-foo1 h2{
        font-size: 1rem;
    }

    .flex-foo2{
    display: flex;
    width: 100%;
    justify-content: space-around;
    }

    .flex-foo2 h2{
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    font-style: italic;
    color: white;
    font-size: 1rem;
    }
}

@media (max-width: 604px){

    .con-tex p{
        width: 100%;
        font-size: 0.6rem;
    }

    .con-videos{
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    .con-videos div video{
        height: 300px;
    }

    #caja{
        grid-column: auto;
        width: 80%;
    }

    .con-ca div h2{
        font-size: 0.65rem;
    }

    .con-ca2{
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    #caja-2{
        grid-column: auto;
    }

    .con-carrusel h2{
        font-size: 0.95rem;
    }

    .con-planes{
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    .caja-planes{
        grid-column: auto;
        width: 100%;
    }

    .con-planes div h2{
        font-size: 1rem;
    }

    .con-planes div p{
        font-size: 1rem;
    }

    .con-cot h2{
        font-size: 1.2rem;
    }

    #btn-1, #btn-2{
        padding: 20px 2%;
        gap: 10px;
    }

    #btn-1 img, #btn-2 img{
        height: 60%;
    }

    .con-ca3{
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    #caja-3{
        grid-column: auto;
    }

    .con-ca3 div{
        display: flex;
        justify-content: flex-start;
        width: 100%;
        flex-direction: column;
    }

    .con-ca3 p{
        text-align: center;
    }

    /* footer */

    .container-foo{
    width: 100%;
    height: 40vh;
    background-color: #EB8001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 0;
    }

    .container-foo img{
    width: 70%;
    }

    .flex-foo2{
    flex-direction: column;
    align-items: center;
    }

    .flex-foo2 h2{
    margin-top: 20px;
    }
}