:root {
    --blanco: #ffffff;
    --oscuro: #212121;
    --primario: #ff070f;
    --secundario: #1300a7;
    --gris: #757575;
} /* Se puede poner adentro del :root una paleta de colores o se puede almacenar cualquier valor*/ 
/* Ejemplo de otro valor --fuente-principal: 3.8rem */ 

html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-snap-type: y mandatory;
}

/*.servicios, .navegacion-principal, .formulario {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}*/

*, *:before, *:after {
  box-sizing: inherit;
}

body {
    font-size: 16px; /* 1rem = 10px */ 
    font-family: "Roboto", sans-serif;
    background-image: linear-gradient(to top, #DFE9F3 0%, var(--blanco) 100% );
}

h1{
    font-size: 3.8rem; /* Este mide 38 pixeles*/
    color: var(--primario); 
}

h2{
    font-size: 2.8rem; /* Este mide 28 pixeles*/
    color: var(--primario) 
}

h3{
    font-size: .8rem; /* Este mide 18 pixeles*/ 
}

h1, h2, h3 {
      text-align: center;
}

/* Este código ya no hace falta, ya que lo reemplaza el h1, h2, h3 
.titulo {
    text-align: center;
    color: blue;
    color: var(--primario)
}*/

.titulo span {
    font-size: 2rem;
}

.contenedor {
max-width: 120rem;
margin: 0 auto;
}

/* Despues de contenedot ponemos el boton*/

.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: bold;
    border-radius: 5px;
    width: 90%;
    text-align: center;
    border: none;

}

/*Se le pone un hover al boton*/
.boton:hover {
    cursor: pointer;
    background-color: var(--primario);
    color: var(--blanco);
}
/*Se le pone un hover al boton*/

/* Despues de contenedor ponemos el boton*/

/* El efecto de la sombra se hace usando el siguiente recurso*/
/* https://cssgenerator.org/box-shadow-css-generator.html */

.sombra {
        
         box-shadow: 13px 13px 5px 0px rgba(255,16,16,0.75);
        -webkit-box-shadow: 13px 13px 5px 0px rgba(255,16,16,0.75);
        -moz-box-shadow: 13px 13px 5px 0px rgba(255,16,16,0.75);
        padding: 2rem;
        border-radius: 1rem;
}

/* El efecto de la sombra se hace usando el siguiente recurso*/
/* https://cssgenerator.org/box-shadow-css-generator.html */




/* Desarrollo del menú */

.nav-bg {
    background-color: var(--secundario);
}

.navegacion-principal {
    display: flex;
    flex-direction: column;
}

.navegacion-principal a{
    display: block;
    text-align: center;
    color: var(--blanco);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem;
} /* text-decoration - me permite eliminar la linea del link */

.navegacion-principal a:hover{
    background-color: var(--primario);
    color: var(--blanco);
} /* El hover me permite aplicar el efecto del cambio del color, cuando se posiciona sobre el item */

/* Desarrollo del menú */

/* Código, del responsive */ 

@media (min-width: 768px) {
      
    .boton {
          width: auto;
      }
    
    .navegacion-principal {

    flex-direction: row;
    justify-content: space-between;

}

.servicios {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2rem;
}/* Servicios */

/* Código, del responsive */

}

.hero {
 
    background-image: url(../img/hero.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 450px;
    position: relative;
    margin-bottom: 2rem;

}

.contenido-hero {
      
      position: absolute;
      background-color: rgba(0, 0, 0, .7); /** Anterior - transparente **/
      background-color: rgb( 0 0 0 / 70%); /** Nuevo - transparente - Algunos navegadores lo consideran muy nueva este tipo de sintaxis**/
      width: 100%;
      height: 100%;

      /* Código, para poder alinear de forma vertical y horizontal de forma simultanea */ 
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      /* Código, para poder alinear de forma vertical y horizontal de forma simultanea */

}

.contenido-hero h2, .contenido-hero p{
    
    color: var(--blanco);

}

.ubicacion {
    
    display: flex;
    align-items: flex-end;

}

.servicio {
display: flex;
flex-direction: column;
align-items: center;
}


.servicio p {
    line-height: 2;
    text-align: center;
    font-weight: bold;
}

.servicio .iconos {
    height: 15rem;
    width: 15rem;
    background-color: var(--oscuro);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.servicio .iconos svg {
    color: var(--blanco);
}



/** Contacto **/

.formulario {
background-color: var(--secundario);
width: min( 60rem, 100%);
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(--blanco);

}

.contenedor-campos {
 
}

.campo {
    margin-bottom: 1rem;
}

.campo label {
color: var(--blanco);
font-weight: bold;
margin-bottom: .5rem;
display: block;
}

.input-text {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}

.enviar .boton {
    width: 100%;
    background-color: var(--primario);
}

/** Galería de imágenes - Clientes **/

.img {
    width: 100%;
    object-fit: cover;
}

.gallery__container {
width: 90%;
max-width: 1100px;
margin: 40px auto;

display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
grid-auto-rows: 200px;
gap: 0px;

background-color: var(--primario);
}

.gallery__container img {
    height: 100%;
    width: 100%;
}

/** Galería de imágenes - Clientes **/



/** Botón de regresar al inicio **/

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--oscuro);
    border-radius: 0.5rem;
    padding: 0.5 rem;
    text-decoration: none;
    transition: 0.2s ease-out;
}

.back-to-top span {
    color: var(--primario);
    font-size: 3rem;
    transition: 0.2 ease-out;
}

.back-to-top:hover {
    background-color: black;
}

.back-to-top:hover span {
    transform: translateY(-4px);
}

html {
    scroll-behavior: smooth;
}


/** Botón de regresar al inicio **/

/* Construcción del footer */

.footer{
    position: relative;
    width: 100%;
    background-color:#DFE9F3;
    min-height: 100px;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 10px 5px;
    flex-wrap: wrap;
}

.icon-elemen {
    list-style: none;
}

.icon {
    color: var(--secundario);
    font-size: 32px;
    display: inline-block;
    margin: 0 10px;
    transition: 0.5s;
}

.icon:hover {
    transform: translateY(-10px);
}