*,
*::before,
*::after {
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}

main{
    padding-top: var(--header-height);
    margin-bottom: 2%;
}

img {
    max-width: 100%;
    display: block;
}

.hero{
    width: 100%;
    max-height: 500px;
    display: flex;
}

.hero-left{
    width: 50%;
    background: #0000ff;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.hero-content{
    max-width: 650px;
    color: white;
}

.hero-content h1{
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content span{
    font-weight: 900;
}

.hero-content p{
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons{
    display: flex;
    gap: 20px;
}

.btn{
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 18px;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary{
    background: #29d8ff;
    color: black;
    font-weight: 600;
}

.btn.primary:hover{
    background: #17c7ee;
}

.btn.secondary{
    border: 2px solid white;
    color: white;
    font-weight: 600;
}

.btn.secondary:hover{
    background: white;
    color: black;
}

.hero-right{
    width: 50%;
    position: relative;
    overflow: hidden;
}

.slider{
    width: 100%;
    height: 100%;
    position: relative;
}

.slide{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .5s ease;
}

.slide.active{
    opacity: 1;
}

.slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev,
.next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    color: white;
    font-size: 25px;
    cursor: pointer;
    z-index: 10;
    transition: .3s;
}

.prev:hover,
.next:hover{
    background: rgba(0,0,0,.7);
}

.prev{
    left: 20px;
}

.next{
    right: 20px;
}
.dots{
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot{
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: .3s;
}

.dot.active{
    background: #0000ff;
}

.programs{
    text-align: center;
    margin: 2px auto;
}

.programs h1{
    font-size: 48px;
    color: #444;
    margin-bottom: 5px;
}

.programs h3{
    max-width: 1000px;
    margin: auto;
    font-weight: 300;
    color: #777;
}

/* BOTONES */

.program-tabs{
    margin: 20px auto;
    background: #f3f3f3;
    width: 270px;
    border-radius: 20px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.tab-btn{
    width: 50%;
    border: none;
    background: transparent;
    padding: 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: .3s;
}

.tab-btn.active{
    background: #0000ff;
    color: white;
}

/* CONTENIDO */

.program-content{
    display: none;
}

.program-content.active{
    display: block;
}

.program-content p{
    color: #8c8c8c;
    margin-bottom: 20px;
    font-size: 18px;
}

.cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.cards a{
    width: 280px;
    transition: .3s;
}

.cards img{
    width: 100%;
    border-radius: 15px;
    display: block;
}

.cards a:hover{
    transform: translateY(-8px);
}

hr{
    margin-top: 2%;
    margin-bottom: 2%;
    border: none;
    height: 1px;
    background-color: #46464685;
    width: 100%;
}

/* ============================= PANTALLAS GRANDES ============================= */
@media (min-width: 1440px){

    .hero{
        height: 650px;
    }

    .hero-left{
        padding: 0 100px;
    }

    .hero-content{
        max-width: 750px;
    }

    .hero-content h1{
        font-size: 60px;
    }

    .hero-content p{
        font-size: 24px;
    }

    .cards{
        gap: 40px;
    }

    .cards a{
        width: 320px;
    }

}


/* ============================= LAPTOPS / PANTALLAS INTERMEDIAS (1025px - 1366px) ============================= */
@media (min-width: 1025px) and (max-width: 1366px){

    .hero{
        height: 550px;
    }

    .hero-left{
        padding: 0 60px;
    }

    .hero-content{
        max-width: 600px;
    }

    .hero-content h1{
        font-size: 42px;
    }

    .hero-content p{
        font-size: 18px;
    }

    .cards a{
        width: 270px;
    }

}


/* ============================= TABLETS ============================= */
@media (max-width: 1024px){

    .hero-left{
        padding: 0 40px;
    }

    .hero-content h1{
        font-size: 38px;
    }

    .hero-content p{
        font-size: 18px;
    }

    .btn{
        font-size: 16px;
    }

    .cards a{
        width: 250px;
    }

}


/* ============================= CELULARES GRANDES Y TABLETS PEQUEÑAS ============================= */
@media (max-width: 768px){

    /* HERO */
    .hero{
        flex-direction: column;
        height: auto;
    }

    .hero-left,
    .hero-right{
        width: 100%;
    }

    .hero-left{
        padding: 10px 30px;
        justify-content: center;
    }

    .hero-content{
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1{
        font-size: 36px;
    }

    .hero-content p{
        font-size: 18px;
    }

    .hero-buttons{
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-right{
        aspect-ratio: 16 / 10;
        height: auto;
    }

    /* PROGRAMAS */

    .programs{
        margin: 80px 20px;
    }

    .programs h1{
        font-size: 40px;
    }

    .programs h3{
        font-size: 16px;
    }

    .cards{
        gap: 20px;
    }

    .cards a{
        width: 260px;
    }
}


/* ============================= CELULARES ============================= */
@media (max-width: 576px){

    /* HERO */

    .hero-left{
        padding: 10px 20px;
    }

    .hero-content h1{
        font-size: 30px;
    }

    .hero-content p{
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-buttons{
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn{
        width: 100%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
    }

    .hero-right{
        aspect-ratio: 4 / 3;
        height: auto;
    }

    /* FLECHAS DEL SLIDER */

    .prev,
    .next{
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* PROGRAMAS */

    .programs{
        margin: 70px 15px;
    }

    .programs h1{
        font-size: 32px;
    }

    .programs h3{
        font-size: 15px;
    }

    .program-tabs{
        width: 220px;
    }

    .tab-btn{
        padding: 12px;
        font-size: 15px;
    }

    .program-content p{
        font-size: 15px;
    }

    .cards a{
        width: 100%;
        max-width: 320px;
    }

}


/* ============================= CELULARES PEQUEÑOS ============================= */
@media (max-width: 400px){

    .hero-content h1{
        font-size: 26px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-content p{
        font-size: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .btn{
        font-size: 15px;
        padding: 14px 20px;
    }

    .programs h1{
        font-size: 28px;
    }

    .program-tabs{
        width: 190px;
    }

    .tab-btn{
        font-size: 14px;
        padding: 10px;
    }

    .cards a{
        max-width: 280px;
    }

}