:root {
    --blanco: #fff;
    --oscuro: #000;
    --primario: #F39C12;
    --secundario: #21618c;
    --gris: #757575;
    --grisClaro: #DFE9F3;

}

/* GLOBALES */
html {
    font-size: 62.5%;
    box-sizing: border-box;
}
*, *:before, *:after{
    box-sizing: inherit;
}

.sombra{
    -webkit-box-shadow: 0px 5px 15px 0px rgba(117,116,117,0.54);
    -moz-box-shadow: 0px 5px 15px 0px rgba(117,116,117,0.54);
    box-shadow: 0px 5px 15px 0px rgba(117,116,117,0.54);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
}

body{
    font-size: 16px;
    font-family: 'Krub', sans-serif; 
    background-image: linear-gradient(to top, var(--grisClaro) 0%, var(--blanco) 100%);

}
.body-contacto{
    background-color: var(--blanco);
}

h1{
    font-size: 3.8rem; 
}
h2{
    font-size: 2.8rem; 
}
h3{
    font-size: 1.8rem; 
}
h1, h2, h3 {
   text-align: center;
  
 }

 .titulo {
      font-size: 3rem;
      color: var(--secundario);
  }

.contenedor{
    max-width: 120rem;
    margin: 0 auto;
 }
 .contenedor h3{
    color: var(--secundario);
 }
 .contenedor-mapa{
    padding: 2rem;
    max-width: 120rem;
    margin: 0 auto;

 }
 /* .contenedor-header{
    display: flex;
    max-width: auto;
    margin: 0 auto;
    justify-content: center;
    padding: 1rem;
    background:-webkit-linear-gradient(top, rgb(29, 28, 28) , #1162ac, white );

 } */
 .ubicacion{
    display: flex;
    align-items: flex-end;
}

.ubicacion{
    display: flex;
    align-items: flex-end;
}

/* BOTON */
 .boton{
    background-color: var(--secundario);
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: 90%;
    text-align: center;
    border: none;

}
@media (min-width: 768px){
    .boton{
        width: auto;
    }
}
.boton:hover{
    cursor: pointer;
}

/* Utilidades */
.w-100{
    width: 100%;
}
@media (min-width: 768px){
    .w-100{
        width: auto;
    }
}
.flex{
    display: flex;
}
.alinear-derecha{
    justify-content:flex-end;
}

/* NAVEGACION */
.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;
    color: var(--blanco);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;

}

.navegacion-principal a:hover {
    background-color: var(--primario);
    color: var(--oscuro);    
}

/* HERO */
.hero{
    background-image: url(../imagenes/compresorrojo.jpg);
    background-size: cover;
    height: 450px;
    position: relative;
    margin-bottom: 2rem;
    
}
.contenido-hero{
    position: absolute;
    background-color: rgb(0, 0, 0, .7);
    width: 100%;
    height: 100%;
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contenido-hero h2,
.contenido-hero p{
    color: var(--blanco);
}

/* 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(--secundario);
    font-weight: normal;
}
.servicio p {
    line-height: 2;
    text-align: center;
}
.servicio .iconos{
    height: 15rem;
    width: 15rem;
    background-color: var(--blanco);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
@media (min-width: 768px) {
    .iconos-redes {
        display: flex;
        justify-content: space-between;
    }
}
/* Contacto */

.contacto-bg {
    background-image: url(../imagenes/compresorrojo.png);
    height: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 50rem;
}

.formulario{
    background-color: var(--gris);
    width: min( 60rem, 100% ); /**Utiliza eñ valor más pequeño **/
    margin: -10rem auto 0 auto;
    padding: 3rem;
    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: repeat(2, 1fr);
        grid-template-rows: auto auto 20rem;
        column-gap: 1rem;
      }
        .campo:nth-child(3), 
        .campo:nth-child(4){
            grid-column: 1 /3;
        }
}

.campo{
margin-bottom: 1rem;
}
.campo label{
    color: var(--blanco);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
    
}
.campo textarea{
    height: 20rem;
}

.input-text{
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}

/* Footer */
.footer{
    padding: 3rem;
    text-align: center;
    align-items: center;
}
/* Grid  */
.grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;

}

/* BOTON WHATSSPP */
.btn-whatsapp {
    display:block;
    width:70px;
    height:70px;
    color: #ffffff;
    position: fixed;
    right:20px;
    bottom:20px;
    border-radius:50%;
    line-height:80px;
    text-align:center;
    z-index:999;
}

/* Nosotros */
.nosotros{
    display: grid;
    grid-template-rows: repeat(2, auto);
}

@media (min-width: 768px){
.nosotros{
    
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
}
.nosotros__imagen{
    grid-row: 1 / 2 ;
   }
@media (min-width: 768px){
    .nosotros__imagen{
        grid-column: 2/3;
    }
}