:root {
    --primary-color: #07418d;
    --dark-color: #05326D;
    --light-color: #042552;
    --secondary-color: #FF914D;
    --white-color: #FFFFFF;
    --black-color: #50626C;
    --base-color: #f0f0f5;

    --text-primary: #607086;
    --text-dark: #252831;
    --text-light: #aab2bd;


    --t1: 50px;
    --t2: 24px;
    --t3: 18px;
    --t4: 16px;
    --t5: 14px;
    --t6: 12px;
    --t7: 10px;
    --t8: 8px;

}

html{
    scroll-behavior: smooth;
}


*,*::after,*::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Roboto', sans-serif;
    padding-top: 0px;
    background-color: var(--white-color);
}

p{
    font-size: var(--t3);
    color: var(--text-dark);
    font-weight: 300;
    line-height : 30px;
}

.link {
    text-decoration: none;
    color: var(--primary-color);

}

.link:hover {
    font-weight: 500;
}


.list{
    padding: 15px;
    font-weight: 300;
}

.list li{
    margin-bottom: 10px;
}

/* ====================  PRELOADER ============================ */

.container-preloader{
    background-color: var(--primary-color);
    width: 100vw;
    height: 100vh;
    z-index: 999;
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
      transform: translate(0, 0);
    }
    100% {
      transform: translate(24px, 0);
    }
}


@keyframes loader{
    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40%{
        box-shadow: 0 2.5em 0 0;
    }
}


/* ====================  HEADER Y BARRA DE MENU ============================ */

.header{
    background-color: var(--white-color);
    border-bottom: 1px solid rgb(211, 211, 211);
    height: 60px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 140px;
    z-index: 100;
}

.nav{
    display: flex;
    justify-content: space-between;
}

.item-link{
    text-decoration: none;
    color: var(--text-primary);
    font-size: var(--t3);
    font-weight: 400;
}

.item-link:hover{
    transition: 0.2s;
    color: var(--primary-color);
    font-weight: 500;
}

.nav-logo{
    display: flex;
    align-items: center;
}

.logo{
    font-weight: 800;
    text-decoration: none;
}

.logo img{
    width: 140px;
}

.nav-menu{
    display: flex;
    list-style: none;
}

.menu-item{
    margin: 0 8px;
    line-height: 60px;
    width: max-content;
}

.nav-button{
    font-size: 30px;
    color: var(--text-dark);
    background: none;
    border: none;
    padding: 0 20px;
    line-height: 60px;
    display: none;
}

/* ====================  PORTADA DE LANDING PAGE ============================ */

.cover-page{
    width: 100%;
    height: 100vh;
    padding-top: 60px; /* pading del top si se coloca fondo al navbar */
}

.cover-page-contenido{
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    background-color: rgba(0, 0, 0, 0.281)
}

.cover-page-logo{
    background-color: rgba(255, 255, 255, 0.329);
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color: white;
}

.cover-page-info{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px;
}

.cover-page-info h1{
    font-size: var(--t1);
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
    margin-bottom: 50px;
}

.cover-page-info p{
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: white;
    margin-bottom: 75px;
}

.cover-page-info a{
    text-decoration: none;
    color: black;
    font-weight: 700;
    padding: 10px 50px;
    border-radius: 5px;
    background-color: white;
}

.cover-page-info a:hover{
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 55px;
    transition: 0.2s;
}

.slider{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slides{
    width: 300%;
    height: 100%;
    display: flex;
    background-color: #252831;
    margin-left: -100%;
}

.slide{
    width: 100%;
}

.slider-control{
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.slider-control .slider-btn{
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 50px;
    color: var(--white-color);
    padding: 10px 10px;
    border-radius: 50%;
}

.slider-control .slider-btn:hover{
    background-color: rgba(0, 0, 0, 0.212);
}


/* ====================  BANER ============================ */

.container-all{
    width: 100%;
    padding-top: 60px;
}

.banner-container{
    height: 450px;
    width: 100%;
}

.banner{
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.banner-image{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-info{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.212);
    color: var(--white-color);
    font-size: var(--t3);
    padding-right: 40%;
    padding-left: 50px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.banner-info h2{
    font-size: var(--t1);
    margin-bottom: 25px;
}

.banner-info p{
    color: var(--white-color);
}

/* ====================  CONTENEDOR GENERAL DE LAS SECCIONES ============================ */

.container{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-color: var(--white-color);
}

.content{
    width: 70%;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.content-header{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    color: var(--text-dark);
}

.content-body{
    width: 100%;
}

.scroll-x{
    overflow-x: auto;
    scroll-behavior: smooth;
}

.content-row-menu{
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-scroll-x{
    padding: 0 10px;
}
.control-scroll-x button{
    border: none;
    color: white;
    background-color: rgb(206, 206, 206);
    border-radius: 50%;
    padding: 5px 6px;
    font-size: 18px;
    cursor: pointer;
}

.scroll-x::-webkit-scrollbar{
    height: 7px;
}

.scroll-x::-webkit-scrollbar-thumb{
    background-color: #bcbec0;
    border-radius: 5px;
}

.container-row-menu{
    width: 100%;
    padding-bottom: 60px;
}

.row-menu{
    min-height: 180px;
    padding: 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}


.card-logo{
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.card-logo:hover{
    transform: scale(1.02);
    transition: 0.2s;
}

.select-card-logo{
    position: relative;
}

.select-card-logo:hover::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 6px solid var(--primary-color);
    border-radius: 50%;
}

.select-card-logo-active::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 6px solid var(--primary-color);
    border-radius: 50%;
}

.card-active{
    transform: scale(1.03);
}

.card-logo .image{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
}

.form-circle{
    border-radius: 50%;
    overflow: hidden;
}

.card-logo .image img{
    width: 100%;
}

.content-info-menu{
    width: 100%;
}

.hidden{
    display: none;
}

.info-menu-item{
    width: 100%;
    min-height: 300px;
    padding: 25px;
}

/* ====================  CONTENEDOR DE CARDS ============================ */

.container-cards{
    width: 100%;
    padding: 0 0 80px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;

}



/* ====================  CARDS ============================ */

.card{
    background-color: var(--white-color);
    min-height: 500px;
    width: 30%;
    flex-shrink: 1;
    box-shadow: 1px 1px 5px rgba(80, 80, 80, 0.329);

}

.card .card-header{
    color: white;
    text-align: center;
    height: 200px;
}

.card .card-header img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .card-body{
    padding: 30px;
}

.card .card-body h2{
    font-size: var(--t3);
    margin-bottom: 15px;
}

/* ====================  LARGE CARDS ============================ */

.border{
    box-shadow: 1px 1px 5px rgba(80, 80, 80, 0.329);
}



.card-large{
    background-color: var(--white-color);
    min-height: 500px;
    width: 100%;
    display: flex;
    flex-direction: row;
}

.card-large-reverse{
    background-color: var(--white-color);
    min-height: 500px;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
}

.card-large .card-header,
.card-large-reverse .card-header{
    color: white;
    text-align: center;
    width: 50%;
    overflow: hidden;
}

.card-large .card-header img,
.card-large-reverse .card-header img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-large .card-body,
.card-large-reverse .card-body{
    padding: 30px;
    width: 50%;
}

.card-large .card-body h2,
.card-large-reverse .card-body h2{
    font-size: var(--t3);
    margin-bottom: 15px;
}

.card-large .container-info,
.card-large-reverse .container-info{
    display: flex;
    gap: 25px;
    margin-bottom: 25px;

}

/* ====================  FLIP CARDS ============================ */

.card-flip-container{
    position: relative;
    perspective: 1000px;
    width: 30%;
}

.card-flip{
    min-height: 400px;
    width: 100%;
    transform-style: preserve-3d;
    transition: all 0.5s;

}

.card-flip .front,
.card-flip .back{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
}

.card-flip .front{
    background-color: white;
}

.card-flip .back{
    transform: rotateY(180deg);
    background-color: #3a3f51;
}

.card-flip-container:hover .card-flip{
    transform: rotateY(-180deg);
}

/* ====================  CARDS CON FONDO DE IMAGEN ============================ */

.card-image{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: 1px 1px 5px rgba(80, 80, 80, 0.329);
    position: relative;
}

.card-image .image{
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.card-image .image img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.card-image .title{
    width: 100%;
    min-height: 75px;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 15px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    word-wrap: break-word;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* ====================  CARDS DE TEXTO ============================ */

.card-text{
    width: 100%;
    min-height: 100%;
    background-color: var(--white-color);
    padding: 25px;
    font-weight: 300;
    box-shadow: 1px 1px 5px rgba(80, 80, 80, 0.329);
}

.card-text h3 {
    margin-bottom: 15px;
}

.card-text p {
    margin-bottom: 15px;
}



/* ====================  CAJAS DE TEXTO ============================ */

.box{
    text-align: center;
    width: 20%;
}

.box h3{
    margin-bottom: 20px;
}

.box p{
    margin-bottom: 10px;
}

.box img{
    width: 100%;
    cursor: pointer;
}

.box img:hover{
    transform: scale(1.1);
    transition: 0.2s;
}

/* ====================  FORMS ============================ */

form{
    width: 100%;
}

.form{
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}

.form-item{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 400px;
}

.form-item input{
    padding: 5px 5px;
    font-size: 16px;
    height: 35px;
    border: 1px solid var(--black-color);
}

.form-item select{
    padding: 5px 5px;
    font-size: 16px;
    height: 35px;
    border: 1px solid var(--black-color);
}

.form-item input:focus{
    outline-color: #0e5fd1be;
}

.form-item select:focus{
    outline-color: #0e5fd1be;
}

.form-item-control{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.form-item-control .submit{
    padding: 0px 70px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 3px;
    cursor: pointer;
}

.form-item select{
    height: 35px;
}


/* ====================  FOOTER ============================ */

.footer{
    padding: 20px 0;
    text-align: center;
    font-size: var(--t4);
    font-weight: 500;
}

.btn{
    text-decoration: none;
    padding: 10px 25px;
    cursor: pointer;
}

.btn-primary{
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-youtube{
    background-color: red;
    color: var(--white-color);
}


.zoom:hover {
    transform: scale(1.02);
    transition: 0.2s;
}

@media (min-width: 2500px){
    .card-flip{
        min-height: 800px;

    }

    .card-flip a{
        font-size: 30px;
    }

    p{
        font-size: 30px;
    }

    h1{
        font-size: 35px;
    }

    h3{
        font-size: 30px;
    }
}


@media (max-width: 1400px){
    .content{
        width: 80%;
    }
}


@media (max-width: 1200px){
    .content{
        width: 90%;
    }

    .header{
        padding: 0 60px;
    }
}


@media (max-width: 992px){

    .header{
        padding: 0 20px;
    }

    .cover-page-logo{
        display: none;
    }

    .cover-page-info{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 50px;
    }

    .banner-info{
        padding-right: 50px;
    }

    .card{
        width: 40%;
    }

    .card-flip-container{
        width: 40%;
    }
}

@media (max-width: 768px){


    .header{
        height: 60px;
    }

    .logo{
        font-size: 25px;
        font-weight: bold;
        padding: 0 20px;
        line-height: 60px;
    }

    .nav-menu{
        flex-direction: column;
        align-items: center;
        margin-right: 20px;
        background-color: var(--white-color);
        position: fixed;
        left: 0;
        top: -100%;
        width: 100%;
        padding: 20px 0;
        transition: top 0.1s;

    }


    .nav-button{
        display: block;
    }

    .item-link{
        color: var(--text-dark);
    }

    .nav-button-open{
        color: var(--text-dark);
    }

    .header-menu-open{
        background-color: var(--white-color);
    }

    .nav-menu-open{
        top: 60px;
    }

    .card{
        width: 70%;
    }

    .card-mini{
        width: 40%;
    }

    .box{
        width: 40%;
    }

    .card-large,
    .card-large-reverse{

        display: flex;
        flex-direction: column;
    }

    .card-large .card-header,
    .card-large-reverse .card-header{
        width: 100%;
    }

    .card-large .card-body,
    .card-large-reverse .card-body{
        width: 100%;
    }

    .card-large .container-info,
    .card-large-reverse .container-info{
        flex-wrap: wrap;
        gap: 5;
    }

}

@media (max-width: 576px){
    .card{
        width: 100%;
    }

    .card-flip-container{
        width: 100%;
    }

    .container h1{
        font-size: 2em;
    }

    .card .card-header{
        font-size: 1.2em;
    }

    .box{
        width: 80%;

    }

    .card-logo{
        width: 150px;
        height: 150px;
    }


}


/*colores*/
.primary-color{ background: var(--primary-color);}
.dark-color{ background: var(--dark-color);}
.light-color{ background: var(--light-color);}
.white-color{ background: var(--white-color);}
.black-color{ background: var(--black-color);}
.base-color{ background: var(--base-color);}
.none-color{background: none;}


/*colores de texto*/
.text-primary{color: var(--text-primary);}
.text-dark{ color: var(--text-dark);}
.text-light{ color: var(--text-light);}
.text-white{ color: var(--white-color) ;}
.text-primary{ color: var(--primary-color)}
