:root {
  --blanco: #ffffff;
  --oscuro: #212121;
  --primario: #ffc107;
  --secundario: #0097a7;
  --gris: #5a5656;
  --fondo: #BEFCFB;
}

/* Globales */
html {
  font-size: 62.5%;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-size: 16px; /* 1rem = 10px */
  font-family: 'Ubuntu', sans-serif;
  background-image: linear-gradient(to top, var(--fondo) 0%, var(--blanco) 80%);
}
.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: 80%;
  text-align: center;
  border: none;
}

/* Utilidades */
.w-100 {
  width: 100%;
}

/* Tipografia */
h1 {
  font-size: 3.8rem;
}
h2 {
  font-size: 2.8rem;
}
h3 {
  font-size: 1.8rem;
}
h1, h2, h3 {
  text-align: center;
}

/* Titulos */
h1 span {
  font-size: 3rem;
}
h2 span {
 font-size: 2rem;
}

/* Navegación */
.nav-bg{
  background-color: var(--secundario);
}
.navegacion-principal {
  max-width: 120rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.navegacion-principal a {
  display: block;
  text-align: center;
  color: var(--blanco);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  padding: 1rem;
}
.navegacion-principal a:hover {
  background-color: var(--primario);
  color: var(--oscuro);
}

/* Foto de fondo */
.foto {
  background-image: url(img/pantcod.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  height: 450px;
  position: relative;
  margin-bottom: 2rem;
}
.contenido-foto {
  position:absolute;
  background-color: rgba(0,0,0,.6); /* Anterior*/
  background-color: rgb(0 0 0 / 70%); /* Nueva */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contenido-foto h2, .contenido-foto p {
  color: var(--blanco);
}

/* Servicios */
.contenedor {
  max-width: 120rem;
  margin: 0 auto;
}
.sombra {
  box-shadow: 0px 5px 10px 1px rgba(0,0,0,0.75);
  background-color: var(--blanco);
  padding: 2rem;
  border-radius: 2rem;
}
.servicio {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.servicio h3 {
  color: var(--secundario);
  font-weight: 1000;
}
.servicio p {
  line-height: 2;
  text-align: center;
}
.servicio .iconos {
  height: 15rem;
  width: 15rem;
  background-color: var(--primario);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contacto */
.formulario {
  background-color: var(--gris);
  width: min(60rem, 100%); /*¨Utiliza el valor más pequeño */
  margin: 0 auto;
  border-radius: 1rem;
  padding: 2rem;
}
.formulario fieldset {
  border: none;
}
.formulario legend {
  text-align: center;
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primario);
}
.campos {
  margin-bottom: 1rem;
}
.campos label {
  color: var(--blanco);
  font-weight: bold;
  margin-bottom: .5rem;
  display: block;
}
.input-text {
  width: 100%;
  border: none;
  border-radius: .5rem;
  padding: .5rem;
}
.boton:hover {
  cursor: pointer;
}
.campos textarea {
  height: 15rem;
}
.campos:nth-child(3), .campos:nth-child(4) {
  grid-column: 1 / 3;
}

footer {
  text-align: center;
  font-size: 1.9rem;
}
footer p span {
  font-size: 1.5rem;
}

/* Resoluciones */
@media (min-width: 480px) { /* Celular */
}
@media (min-width: 768px) { /* Tablet */
  .navegacion-principal {
    flex-direction: row;
    justify-content: space-between;
  }
  .servicios {
    display: grid;
   grid-template-columns: repeat(3,1fr);
   column-gap: 5rem;
  }
  .boton {
    width: auto;
  }
  .contenedor-campos {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: auto auto 20rem;
    column-gap: 1rem;
  }
}
@media (min-width: 1140px) { /* Monitor*/
}
@media (min-width: 1400px) { /* Televisor */
}