/* Variables */
:root{    
    --blanco: #ffffff;
    --oscuro: #212121;
    --primario: #ffc107;
    --secundario: #0097a7;
    --gris: #757575; 
    --grisClaro: #dfe9f3;
}
/* Globales */
html{
    font-size: 62.5%;
    box-sizing: border-box;   /* Facilita el tamaño de los elementos margin, padding...*/
    /* scroll-snap-type: y mandatory; */
}
/* Scroll snap */
/* .nav-bg, .servicios, .formulario{
    /* scroll-snap-align: center;
    scroll-snap-stop: always; */
/* } */
/* https://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
*, *:before, *:after {
    box-sizing: inherit;    
  } 
body{
    font-size: 16px;  /*  1 rem = 10 px */
    font-family: 'Krub', sans-serif; /* https://fonts.google.com/ */
    /* background-image: linear-gradient(to top, var(--grisClaro) 0%, var(--blanco) 100%); */
}
.boton{
    background-color: var(--secundario);
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 3rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: .5rem;
    width: 90%;
    text-align: center;
    border: none;
}
@media (min-width: 768px) {
    .boton{
        width: auto;
    }
}
.boton:hover{
    cursor: pointer;
}
.sombra{
    -webkit-box-shadow: 0px 5px 15px 0px rgba(112,112,112,0.48);
    -moz-box-shadow: 0px 5px 15px 0px rgba(112,112,112,0.48);
    box-shadow: 0px 5px 15px 0px rgba(112,112,112,0.48);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
}
/*Tipografias  */
h1{
    font-size: 3.5rem; 
}
h2{
    font-size: 2.5rem; 
}
h3{
    font-size: 1.5rem; 
}
h1,h2,h3{
    text-align: center;
}
.titulo span{
    font-size: 2rem;
    color: blue;
}
.contenedor{
    max-width: 80rem;
    margin: 0 auto;
}
/* Utilidades */
.w-sm-100{
    width: 100%;
}
@media (min-width: 768px) {
    .w-sm-100{
        width: auto;
    }
}
.flex{
    display: flex;
}
.alinear-derecha{
    justify-content: flex-end;
}
/* Navegacion principal */
.nav-bg{
    background-color: var(--secundario);
}
.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;
    padding: 1rem;
    color: var(--blanco);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}
.navegacion-principal a:hover{
    background-color: var(--primario);
    color: var(--oscuro);
}
/* Slider o imagen de fondo */
.slider{
    background-image: url(../img/slider.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 58rem;
    position: relative;
    margin-bottom: 2rem;
}
.contenido-slider{
    position: absolute;
    background-color: rgba(0, 0, 0, .7);
    width: 100%;
    height: 100%;
    /* Alinia el contenido horizontal y vertivalmente */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contenido-slider h2,
.contenido-slider p{
    color: var(--blanco);
}
/* Servicios */
@media (min-width: 768px) {
    .servicios{
        display: grid;
        /* grid-template-columns: 33.3% 33.3% 33.3%; */
        /* grid-template-columns: 1fr 1fr 1fr; */
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2rem;
    }
}
.servicio{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.servicio h3{
    color: var(--secundario);
    font-weight: normal;
}
.servicio .icono{
    height: 15rem;
    width: 15rem;
    background-color: var(--primario);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.servicio p{
    line-height: 1.5;
    text-align: center;
}
/* Contacto */
.formulario{
    background-color: var(--gris);
    width: min(60rem, 100%); /* toma el valor mas pequeño */
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
}
.formulario fieldset{
    border: none;
}
.formulario legend {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primario);
}
@media (min-width: 768px) {
    .contenedor-campos{
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1rem;
    }
}
.campo{
    margin-bottom: 1rem;
}
.campo:nth-child(3),
.campo:nth-child(4){
    grid-column: 1 / 3;
}
.campo label{
    color: var(--blanco);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}
/* .campo input[type="text"]{
    background-color: red;
} */
.input-text{
    width: 100%;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
}
.campo textarea{
    height: 12rem;
}
.footer{
    text-align: center;
}
