@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container{
    max-width: 1300px;
    margin: auto;
    padding: 10px 15px;
}

body{
    font-family: 'Poppins', sans-serif;
}

.logo img{
    width: 50%;
}

.header{
    left: 0;
    top: 0;
    width: 100%;
    border-bottom: 1px solid hsla(0,0%,100%,0.2);
}

.header .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo img{
    vertical-align: middle;
}

.header .menu .head{
    display: none;
}

.header .menu ul{
    list-style: none;
}

.header .menu > ul > li{
    display: inline-block;
}

.header .menu > ul > li:not(:last-child){
    margin-right: 40px;
}

.header .menu .dropdown{
    position: relative;
}

.header .menu a{
    text-decoration: none;
    text-transform: capitalize;
    font-size: 16px;
    color: hsl(100, 100%, 0%);
    line-height: 1.5;
    display: block;
}

.header .menu > ul > li > a{
    padding: 24px 0;
}

.header .menu > ul > .dropdown > a{
    padding-right: 15px;
}

.header .menu i{
    font-size: 10px;
    pointer-events: none;
    user-select: none;
    position: absolute;
    top: calc(50% - 5px);
}

.header .menu > ul > li > i{
    right: 0;
}

.header .menu .sub-menu{
    position: absolute;
    top: 100%;
    left: 0;
    width: 230px;
    padding: 15px 0;
    background-color: hsl(0, 0%, 87%);
    box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.5);
    z-index: 1;
    transform-origin: top;
    transform: scaleY(0);
    visibility: hidden;
    opacity: 0;
}

.header .menu .sub-menu-right{
    left: 100%;
    top: 0;
}

.header .menu .sub-menu-left{
    top: 0;
    left: auto;
    right: 100%;
}

.header .menu li:hover > .sub-menu{
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: all 0.5s ease;
}

.header .menu .sub-menu a{
    padding: 6px 24px;
}

.header .menu .sub-menu .dropdown > a{
    padding-right: 34px;
}

.header .menu .sub-menu span{
    background-image: linear-gradient(hsl(100, 100%, 0%), hsl(100, 100%, 0%));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.5s ease;
}

.header .menu .sub-menu li:hover > a > span{
    background-size: 100% 1px;
}

.header .menu .sub-menu i{
    transform: rotate(-90deg);
    right: 24px;
}

.header-right{
    display: flex;
}

.header-right > *{
    margin-left: 15px;
}

.header-right .icon-btn{
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: black;
    font-size: 16px;
}

.header-right .open-menu-btn{
    display: none;
}

.horarios{
    text-decoration: none;
    background-color: rgb(175, 0, 0);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

.horarios:hover{
    background-color: rgb(143, 0, 0);
    font-weight: 600;
}

/* BANNER INICIO */

.form-control{
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: black;
    background: transparent;
}

.inner form h3{
    margin: 0;
}

.image-holder img{
    max-width: 100%;
}

.wrapper{
    min-height: 20vh;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner{
    padding: 30px;
    background-color: hsl(0, 0%, 87%);
    max-width: 1200px;
    margin: auto;
    display: flex;
}

.inner .image-holder{
    width: 60%;
    margin: auto;
}

.inner form{
    margin: auto;
}

.inner h3{
    text-transform: uppercase;
    font-size: 25px;
    text-align: center;
    padding-bottom: 25px;
}

.form-group{
    display: flex;
}

.form-group input{
    width: 50%;
}

.form-group input:first-child{
    margin-right: 25px;
}

.form-wrapper{
    position: relative;
}

.form-control{
    border: 1px solid black;
    border: none;
    border-bottom: 1px solid black;
    display: block;
    width: 100%;
    height: 30px;
    padding-right: 0;
    margin-bottom: 25px;
}

.form-wrapper select{
    cursor: pointer;
    color: black;
}   

.form-wrapper select option[calue=""][disabled]{
    display: none;
}

.btn-form{
    font-family: 'Poppins', sans-serif;
    border: none;
    width: 164px;
    height: 40px;
    margin: auto;
    margin-top: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    background: black;
    font-size: 15px;
    color: white;
}

.btn-form:hover{
    background: rgb(210, 18, 22);
}

.form-pol{
    font-size: 12px;
    text-align: center;
}

.form-pol a{
    text-decoration: none;
    color: black;
    font-weight: 1000;
}

/*CARD CARRERAS*/

.title{
    margin-top: 50px;
    text-align: center;
}

.card-img{
    display: block;
    max-width: 100%;
    height: auto;
}

.containercard{
    display: grid;
    place-items: center;
    margin-inline: 1.5rem;
    padding-block: 3rem;
}

.card-container{
    display: grid;
    row-gap: 3.5rem;
    margin: auto;
}

.card-article{
    position: relative;
    overflow: hidden;
}

.card-img{
    width: 328px;
    border-radius: 1.5rem;
}

.card-data{
    width: 280px;
    background-color: hsl(0, 0%, 100%);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
    border-radius: 1rem;
    position: absolute;
    bottom: -9rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    opacity: 0;
    transition: opacity 1s 1s;
}

.card-description{
    display: block;
    font-size: .813 rem;
    margin-bottom: .25rem;
}

.card-title{
    font-size: 1.5rem;
    font-weight: 500;
    color: hsl(0, 0%, 15%);
    margin-bottom: .75rem;
}

.card-button{
    text-decoration: none;
    font-size: .813 rem;
    font-weight: 500;
    color: rgb(210, 18, 22);
}

.card-button:hover{
    text-decoration: underline;
}

.card-article:hover .card-data{
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3s;
}

.card-article:hover{
    animation: remove-overflow 2s forwards;
}

.card-article:not(:hover){
    animation: show-overflow 2s forwards;
}

.card-article:not(:hover) .card-data{
    animation: remove-data 1s forwards;
}

@keyframes show-data{
    50%{
        transform: translateY(-10rem);
    }
    100%{
        transform: translateY(-7rem);
    }
}

@keyframes remove-overflow{
    to{
        overflow: initial;
    }
}

@keyframes remove-data{
    0%{
        transform: translateY(-7rem);
    }
    50%{
        transform: translateY(-10rem);
    }
    100%{
        transform: translateY(6.5rem);
    }
}

@keyframes show-overflow{
    0%{
        overflow: initial;
        pointer-events: none;
    }
    50%{
        overflow: hidden;
    }
}

/*BENEFICIOS*/

.container-benefits{
    margin: auto;
    display: grid;
    grid-template-columns: 
    repeat(
        auto-fit,
        minmax(150px, 1fr)
    );
    gap: 32px;
    justify-content: space-around;
    align-items: center;
    padding: 50px 15px;
    text-align: center;
    max-width: 1200px;
}

.benefits{
    margin: auto;
    width: 160px;
}

.benefits-img{
    width: 60%;
}

.benefits-descriptions{
    font-size: 15px;
    font-weight: 1000;
}

/*FOOTER*/

footer{
    background-color: black;
    position: relative;
    width: 100%;
    min-height: 350px;
    padding: 3rem 1rem;
}

.container-footer{
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.col .fa-facebook,
.col .fa-instagram,
.col .fa-tiktok{
    font-size: 25px;
}

.row{
    display: flex;
    justify-content: space-between;
}

.col{
    color: white;
    font-family: 'Poppins', sans-serif;
    padding: 0 2rem;
    font-size: 13px;
}

.col img{
    width: 100px;
    margin-bottom: 25px;
}

.col h3{
    color: aquamarine;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.col h4{
    color: beige;
}

.col h3::after{
    content: '';
    height: 3px;
    width: 0px;
    background-color: aquamarine;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 0.3s ease;
}

.col h3:hover::after{
    width: 50px;
}

.col .social a i{
    color: white;
    margin-top: 2rem;
    margin-right: 20px;
    transition: 0.3s ease;
}

.col .social a i:hover{
    transform: scale(1.5);
    filter: grayscale(25);
}

.col .links a{
    display: block;
    text-decoration: none;
    color: white;
    margin-bottom: 5px;
    position: relative;
    transition: 0.5s ease;
}

.col .links a:before{
    content: '';
    height: 16px;
    width: 3px;
    position: absolute;
    top: 5px;
    left: -10px;
    background-color: aquamarine;
    transition: 0.5s ease;
    opacity: 0;
}

.col .links a:hover::before{
    opacity: 1;
}

.col .links a:hover{
    transform: translateX(-8px);
    color: aquamarine;
}

.col2 a{
    color: white;
    margin: auto;
    text-decoration: none;
    align-items: center;
}

.col2 .fa-solid{
    font-size: 80px;
    margin-bottom: 15px;
}

/*PARA CELULAR*/

@media(max-width:991px){

    .header{
        padding: 12px 0;
    }

    .header .menu{
        position: fixed;
        right: 0;
        top: 0;
        width: 320px;
        height: 100%;
        background-color: hsl(0, 0%, 87%);
        padding: 15px 30px 30px;
        overflow-y: auto;
        z-index: 1;
        transform: translateX(100%);
    }

    .header .menu.open{
        transform: none;
    }

    .header .menu .head{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 25px;
    }

    .header .menu .close-menu-btn{
        height: 35px;
        width: 35px;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        cursor: pointer;
        border: none;
    }

    .header .menu .close-menu-btn::before,
    .header .menu .close-menu-btn::after{
        content: '';
        position: absolute;
        width: 80%;
        height: 2px;
        background-color: hsl(100, 100%, 0%);
    }

    .header .menu .close-menu-btn::before{
        transform: rotate(45deg);
    }

    .header .menu .close-menu-btn::after{
        transform: rotate(-45deg);
    }

    .header .menu > ul > li{
        display: block;
    }

    .header .menu > ul > li:not(:last-child){
        margin-right: 0;
    }

    .header .menu li{
        border-bottom: 1px solid hsla(100, 100%, 0%, 0.75);
    }

    .header .menu li:first-child{
        border-top: 1px solid hsla(100, 100%, 0%, 0.75);
    }

    .header .menu > ul > li > a{
        padding: 12px 0;
    }

    .header .menu > ul > .dropdown > a{
        padding-right: 34px;
    }

    .header .menu i{
        height: 34px;
        width: 34px;
        border: 1px solid hsla(100, 100%, 0%, 0.75);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        cursor: pointer;
        top: 7px;
    }

    .header .menu .dropdown.active > i{
        background-color: hsla(0, 0%, 58%, 0.75);
        transform: rotate(180deg);
    }

    .header .menu .sub-menu{
        position: static;
        opacity: 1;
        transform: none;
        visibility: visible;
        padding: 0;
        transition: none;
        box-shadow: none;
        width: 100%;
        display: none;
    }

    .header .menu .dropdown.active > .sub-menu{
        display: block;
    }

    .header .menu .sub-menu li:last-child{
        border: none;
    }

    .header .menu .sub-menu a{
        padding: 12px 0 12px 15px;
    }

    .header .menu .sub-menu .sub-menu a{
        padding-left: 30px;
    }

    .header .menu .sub-menu span{
        background-image: none;
    }

    .header .menu .sub-menu i{
        transform: none;
        right: 0;
    }

    .header-right .open-menu-btn{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 44px;
        cursor: pointer;
        position: relative;
        background-color: transparent;
        border: none;
    }

    .header-right .open-menu-btn .line{
        height: 2px;
        width: 30px;
        background-color: hsl(100, 100%, 0%);
        position: absolute;
    }

    .header-right .open-menu-btn .line-1{
        transform: translateY(-8px);
    }

    .header-right .open-menu-btn .line-3{
        transform: translateY(8px);
    }

/* BANNER INICIO */

    .inner{
        display: block;
    }

    .inner .image-holder{
        width: 100%;
    }

    .inner form{
        width: 100%;
        padding: 40px 0 30px;
    }

    .btn-form{
        margin-top: 60px;
    }
}

@media screen and (max-width: 340px) {
    .containercard{
        margin-inline: 1rem;
    }

    .card-data{
        width: 250px;
        padding: 1rem;
    }
}

@media screen and (min-width: 768px) {
    .card-container{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem;
    }
}

@media screen and (min-width: 1120px) {
    .card-container{
        grid-template-columns: repeat(3, 1fr);
    }

    .card-img{
        width: 348px;
    }

    .card-data{
        width: 260px;
        padding-inline: 2.5rem;
    }
}

@media(max-width:900px) {
    
    /*FOOTER*/

    .row{
        flex-direction: column;
    }
    
    .col{
        width: 100%;
        text-align: left;
        margin-bottom: 25px;
    }
}

@media(max-width:768px) {
    
    /*FOOTER*/

    .row{
        flex-direction: column;
    }
    
    .col{
        width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }
    
    .header-right .horarios{
        font-size: 13px;
    }

    .botton-group .button{
        font-size: 10px;
    }
    
    .header-right .horarios{
        font-size: 13px;
    }

    .botton-group .button{
        font-size: 10px;
    }
}