/*seudo selectores  inician con ":" almacena variables - paleta de colores*/
:root {
    --Fresh: #f7f5e6;
    --Azulosc: #333a56;
    --Azulcla: #52658f;
    --claro: #e8e8e8;

}

html{
    font-size: 62.5%;
    box-sizing: border-box; /*este snipet ayuda a corregir las medidas del modelo del bloque*/
    scroll-snap-type: y mandatory;
}
/*Scroll Snap*/
.navegacion-principal,
.servicios,
.formulario {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
*, *:before, *:after { /*la línea 14 y 15 lo que hace es que aplique a todos los objetos que lo necesiten dentro del html*/
    box-sizing: inherit;
}
body {
    font-size: 16px; /* 1rem = 10px*/
    font-family: 'Quantico', sans-serif;
    background-image: linear-gradient(to top, 0%, var(--claro) 100%);
}

h1 {
    font-size: 3.8rem;
}
h2 {
    font-size: 2.8rem;
}
h3 {
    font-size: 1.8rem;
}
h1,h2,h3 {
    text-align: center;
}

.titulo span {
    font-size: 2rem;
}
.contenedor{
    max-width: 120rem;
    margin: 0 auto 0 auto; 
}
.boton {
    background-color: var(--Azulosc);
    color: var(--claro);
    padding: 1rem 3rem;
    text-decoration: none;
    margin-top: 1rem;
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: 100%;
    text-align: center;
    border: none;
}
@media (min-width:768px) {
    .boton {
        width: auto;
    }
}
.boton:hover {
    cursor: pointer;
}

.sombra {
    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.75);
    background-color: var(--Fresh);
    padding: 2rem;
    border-radius: 1rem;
}
.nav-bg{
    background-color: var(--Azulosc);
}
.navegacion-principal{
    display: flex;
    flex-direction: column;
    
}
@media (min-width: 768px) {
    .navegacion-principal{
        flex-direction: row;
        justify-content: space-between
    }
}
.navegacion-principal a{
    display: block;
    text-align: center;
    font-family: 'Quantico', sans-serif;
    color: var(--Fresh);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem;
    
}
.navegacion-principal a:hover {
    background-color: var(--Fresh);
    color: var(--Azulosc);
}
.bg {
    background-image: url(../img/imgbg1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 450px;
    position: relative;
    margin-bottom: 2rem;
}
.contenido-bg{
    position: absolute;
    background-color: rgba(0, 0, 0, .5%);
    width: 100%;
    height: 100%;

    display: flex; /* este código alinea horizotal y verticalmente 76,77,78,79 sirve para alinear en cualquier proyecto*/
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contenido-bg h2,
.contenido-bg p {
    color: var(--claro);
}


/*servicios*/
@media (min-width: 768px) {
    .servicios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1rem;
    }
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.servicio h3 {
    color: var(--Azulcla);
}
.servicio p{
    line-height: 2;
    font-weight: normal;
    text-align: center;
}
.servicio .iconos {
    height: 15rem;
    width: 15rem;
    background-color: var(--Azulosc);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
/*FORMULARIO*/

/*contacto*/
.formulario {
    background-color: var(--Azulcla);
    width: min( 60rem, 100%); /*min en una ecuación donde va a tomar el valor más pequeño Ej: toma 60rem - 600 px o el otro valor en este caso 100% */
    margin: 0 auto; /* para centrar el bloque del formulario*/
    padding: 2rem;
    border-radius: 2rem;
}
.formulario fieldset{
    border: none;
}
.formulario legend {
    text-align: center;
    font-size: 1.8rem;
    color: var(--Azulosc);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
}
/*.contenedor-campos {

}*/
.campo {
    margin-bottom: 1rem;
}
.campo label {
    color: var(--Fresh);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
    }
.input-text {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}
/*Footer*/
.footer {
    text-align: center;
}