:root {
    --primario: #9C27B0;
    --primarioOscuro: #89119D;
    --secundario: #FFCE00;
    --secundarioOscuro: rgb(233, 287, 2);
    --blanco: #fff;
    --negro: #000;
}



/* apply a natural box layout model to all elements, but allowing components to change */
html {
    box-sizing: border-box;
    /*le ponemos este porcentaje para 1 rem= 10px*/
    font-size: 62.5%;
    background-image: linear-gradient(180deg, #734b6d 100%, #42275a 100%);
    background-repeat: no-repeat;

}

*,
*:before,
*:after {
    box-sizing: inherit;
}


/* Globales */

body {
    font-size: 1.6rem;
    /* 1rem = 10px */
    color: white;
    line-height: 1.5;
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
    font-family: 'PT Sans', sans-serif;
    font-family: 'Raleway', sans-serif;
}

p {
    font-size: 1.8rem;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
    text-align: center;
}

h1,
h2,
h3 {
    text-align: center;
    color: var(--secundario);
    font-family: var(--fuentePrincipal);
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}




input[type=number] {
    text-align: center;
    font-size: 3rem;
}

/* botones */

.boton {
    border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    border: 0px solid #000000;
    padding: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
    width: 100%;
}

@media (min-width: 768px) {
    .boton {
        width: auto;
    }
}

/* logo */
nav a img {
    width: 20rem;
}

/* formulario */

#formulario {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1.2rem;
}

.contenedor {
    /*alineamos verticalmente y horizontalmente*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



/* alertas */

.correcto {
    background-color: rgb(74, 185, 0);
    text-align: center;
    padding: 1rem;
    text-transform: uppercase;
}

.incorrecto {
    background-color: rgb(185, 0, 0);
    text-align: center;
    padding: 1rem;
    text-transform: uppercase;
}

/*nav*/

@media (max-width: 768px) {
    .layout {
        text-align: center;
        text-transform: uppercase;
        background-color: rgba(255,255,255,0.5);
        border: 5px solid #fece00;
        border-radius: 10px;
        color: black;
        display: grid;
        grid-template-rows: repeat(3, auto);
        gap: 1.5rem;
        margin: 1.5rem;
        padding: 1rem;
    }
}
@media (min-width: 768px) {
    .layout {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        text-align: center;
        align-items: center;
        text-transform: uppercase;
        background-color: rgba(255,255,255,0.5);
        border: 5px solid #fece00;
        border-radius: 10px;
        color: black;
        padding: 2rem;
        margin: 1rem;
    
    }  
}



.total {
    margin-top: 2.5rem;
    padding: 1rem;
    border: 2px solid black;
    background-color: black;
}

a:visited {
    color: black;
}

/* estilos a los enlaces de navegacion */

.navegacion__enlace {
    padding: 15px 25px;
    border: unset;
    border-radius: 15px;
    color: #212121;
    z-index: 1;
    background-color: rgba(255,255,255,0.5);
    position: relative;
    font-weight: 1000;
    font-size: 17px;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 250ms;
    overflow: hidden;
    font-weight: bold;
    font-size: 2rem;
   }
   
   .navegacion__enlace::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: #212121;
    z-index: -1;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 250ms
   }
   
   .navegacion__enlace:hover {
    color: #e8e8e8;
   }
   
   .navegacion__enlace:hover::before {
    width: 100%;
   }

   @media (min-width: 768px) {
       .navegacion__enlace {
           width: 70%;
       }
   }

   /* Utilities */

input[type="submit"],
input[type="button"]{
    cursor: pointer;
}

.oculto {
    visibility: hidden;
}