:root{
    --fontTitles: "Lexend", sans-serif;
    --fontText: "Red Hat Mono", monospace;

    --white: #FFF;
    --bg: #F3F4F4;
    --black: #37353E;
    --price: #1cb800;
    --borders: rgba(131, 131, 131, 0.51);

    --princ: #44ACFF;
    --sec: #89D4FF;
}
html{
    box-sizing: border-box;
    font-size: 62.5%;
}
*,*:before,*:after{
    box-sizing: inherit;
}
body{
    font-family: var(--fontText);
    background-color: var(--bg);
    font-size: 1.6rem;
    line-height: 2;
    min-height: 100vh;
    margin: 0;
}

/*  globales    */
.container{
    width: min(90%,120rem);
    margin : 0 auto;
}
a{
    text-decoration: none;
}
h1,h2,h3,h4{
    font-family: var(--fontTitles);
    line-height: 1.2;
}
h1{
    font-size: 4.8rem;
}
h2{
    font-size: 4rem;
}
h3{
    font-size: 3.2rem;
}
h4{
    font-size: 2.8rem;
}

img{
    max-width: 100%;
}


/*   Navegador    */

.navegador{
    background-color: var(--princ);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 4rem;
}
.separador{
    margin: 5rem;
    width: 90%;
    border: 1px var(--borders) solid;
}

.logo{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}
.logo svg{
    width: 50px;
    height: 50px;
    fill: none;
    stroke: var(--white);
    stroke-width: 1;
}
.logoTitulo{
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
}

.navLinks{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 2rem;
}
li{
    list-style: none;
}
li a{
    padding: .5rem 1rem;
    border-radius: 15px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.8rem;
}
li a:hover{
    background-color: var(--sec); 
    color: var(--black);
    transition: 500ms;
    transform:scale(1.2);
}
@media(max-width: 800px) {
    .navegador, .navLinks{
        flex-direction: column;
        justify-content: center;
    }
    
}

/*   form         */
.form{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/*   User Data   */

.userData{
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    border: 1px var(--borders) solid;
    gap: 1rem;
    margin-top: 2rem;   
}
.field{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
.field select, 
.field input{
    border: 1px var(--borders) solid;
    border-radius: 15px;
    padding: 1rem 2rem;
    width: 100%;
}
@media(max-width: 800px){
    .userData{
        flex-direction: column;
        justify-content: center;
    }
}

/*  Section   */
.seccionProductosResumen{
    display: flex;
    flex-direction: row;
    gap: 3rem;
}
.seccionProductos{
    flex: 0 0 60%;
}
@media(max-width: 800px){
    .seccionProductosResumen{
        flex-direction: column;
    }
}
/*   Products   */


.products{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-height: 60rem;
    overflow-y: scroll;
}

.product{
    width: 100%;
    height: 100%;
    min-height: 20rem;
    background-color: var(--sec);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;

}
.productImg{
    min-width: 10rem;
    min-height: 10rem;
    max-width: 10rem;
    max-height: 10rem;
    background-color: var(--black);
}
.productName{
    color: var(--black);
    font-family: var(--fontText);
    font-weight: 700;
    font-size: 1.7rem;
    text-align: center;
}
.productPrice{
    text-align: center;
    color: var(--price);
    font-family: var(--fontText);
    font-weight: 700;
    font-size: 1.7rem;
}
.productAgregar{
    width: 100%;
    border-radius: 15px;
    background-color: var(--white);
    color: var(--black);
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    font-family: var(--fontText);
    text-transform: uppercase;
}

@media(max-width: 650px){
    .products{
        grid-template-columns: repeat(2, 1fr);
    }
}


/*  carrito   */

.comprarBtn{
    width: 100%;
    border-radius: 15px;
    background-color: var(--white);
    color: var(--black);
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    font-family: var(--fontText);
    text-transform: uppercase;
    margin-top: 1rem;
}
.comprarBtn:hover{
    background-color: var(--sec);
}

.cart{
    flex: 0 0 40%;
}
.cartItem{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2rem;
    color: var(--black);
    font-family: var(--fontText);
    font-weight: 700;
}
.cartItem:nth-child(odd){
    background-color: var(--borders);
}

.cartItem span{
    flex: 1;
}

.cartItem input{
    width: 60px;
}

.cartItem button{
    background: red;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50% 50%;
}
.cartTotal{
    background-color: var(--sec);
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
}


/*  seccion de examenes   */

.examenes{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    gap: 2rem;
    width: 100%;
}

.examImg{
    width: 220px;
    cursor: pointer;
}

.modal{
    display: none;
    position: fixed;
    inset: 0;
    background: var(--borders);
    justify-content: center;
    align-items: center;
}

.modalContent{
    max-width: 80%;
    max-height: 80%;
}

.close{
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
}
@media(max-width: 1000px){
    .examenes{
        flex-direction: column;
    }
}
/*   footer  */
footer{
    display: flex;
    justify-content: center;
    margin-bottom: 5rem;
}
footer a{
    color: var(--black);
    text-align: center;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
}
footer a:hover{
    background-color: var(--sec);
    border-radius: 15px;
    transition: 500ms;
    transform:scale(1.2);
}
