:root {
  --azul-oscuro: #202531;
  --gris-oscuro: #505E75;
  --naranja: #EB5C21;
  --gris-claro: #D7D9D8;
  --blanco: #FFFFFF;
}

@font-face {
  font-family: 'Avenir';
  src: url('../fuente/avenir-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir';
  src: url('../fuente/avenir-black.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir';
  src: url('../fuente/avenir-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

.headerServicios,
.headerServicios2,
.headerServicios3 {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.headerServicios {
  background-image:
    linear-gradient(to bottom, rgb(3, 3, 3) 0%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0) 100%),
    url('../img/serviciosdetallados/servicio1.jpg');

}

.headerServicios2 {
  background-image:
    linear-gradient(to bottom, rgb(3, 3, 3) 0%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0) 100%),
    url('../img/serviciosdetallados/servicio2.jpg');
}

.headerServicios3 {
  background-image:
    linear-gradient(to bottom, rgb(3, 3, 3) 0%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0) 100%),
    url('../img/serviciosdetallados/servicio3.jpg');
}

.header-servicios {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  margin-top: 3rem;

  h1 {
    color: var(--naranja);
    font-size: 4rem;

  }

  h2 {
    font-size: 3rem;
    color: var(--blanco);

  }

  p {
    width: 40%;
    font-weight: 700;
  }

  b {
    color: var(--blanco);
  }
}


.servicios {
  margin: auto;
  padding: 6rem;
  font-family: sans-serif;
}

.header-servicios p {
  font-size: 1.2em;
  line-height: 1.6;
  color: white;
  max-width: 50vw;
  margin: 0 auto;
  font-family: 'Avenir';

}


.services-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 0;
  background-color: white !important;

}

.service-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 0px;
  text-align: left;
  background-color: var(--gris-claro);

}

/* Clases para el orden de los elementos */
.service-item.reverse {
  flex-direction: row-reverse;
  background-color: var(--gris-oscuro);

  p {
    color: var(--blanco) !important;


  }
}

.service-content {
  flex: 1;
  padding: 0rem 3rem;
}

.service-image {
  flex: 1;
  position: relative;
  aspect-ratio: 16/9;
}


.service-image img {
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  aspect-ratio: 5/4;
  object-fit: cover;

  /* 'center' centra la imagen dentro del contenedor, asegurando que el recorte sea desde el medio. */
  object-position: center;
}

/* Estilos de tipografía */
.service-content h2 {
  font-size: 1.6rem !important;
  color: var(--naranja) !important;
  margin-bottom: 20px;
}

.service-content p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--azul-oscuro);
}

.service-content b {
  font-weight: bold;

}

.service-item button {
  border: none;
  font-family: 'Avenir';
  padding: 0.2rem 1rem;
  background-color: var(--naranja);
  margin-top: 1rem;
  color: var(--blanco);
  transition: ease-in-out 0.3s;
}

.service-item button:hover {
  background-color: var(--gris-oscuro);
  cursor: pointer;
  transition: ease-in-out 0.3s;
}

.contactate {
  text-align: center;
  padding: 7rem;
  gap: 1rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(to bottom, rgb(3, 3, 3) 0%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0) 100%),
    url('../img/contactate.jpg');

    h2{
      color:var(--naranja);
      font-size: 2rem;
    }
    p{
      color: var(--blanco);
      max-width: 60%;
      font-size: 1.2rem;
    }
   
    b{
      font-weight: 600;
    }
     .contactate-botones{
      background-color: var(--naranja);
      padding: 0.5rem 1rem;
      color: var(--blanco);
      border-radius: 2px;
      margin-top: 2rem;
      transition: ease-in-out 0.3s;
    }
    .contactate-botones:hover{
      background-color: var(--gris-oscuro);
      transition: ease-in-out 0.3s;
    }
}


/* Media query para dispositivos móviles */
@media (max-width: 768px) {


  h2 {
    font-size: 1.8em;
  }
}

@media screen and (max-width: 768px) {


  .headerServicios,
  .headerServicios2,
  .headerServicios3 {
    width: 100%;
    height: 40vh;

  }


  .header-servicios h1 {
    font-size: 2rem;
    padding: 0 3%;

  }

  .header-servicios p {
    font-size: 1.1em;
    line-height: 1.6;
    color: white;
    min-width: 65%;
    margin: 0 auto;
    font-family: 'Avenir';
    font-weight: 600;

  }

  .service-item,
  .service-item.reverse {
    flex-direction: row-reverse;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin: 0px 0px;
    border-bottom: solid 1px var(--gris-claro);
    padding: 4rem 2rem;


  }

  .service-content {
    order: 1;
    justify-content: left;
    padding: 0%;
  }


  .service-image {
    order: 2;
    display: none;
  }

  .services-section {
    padding: 0rem !important;

  }


  /* Estilos de tipografía */
  .service-content h2 {
    font-size: 1.4rem !important;
    margin-bottom: 20px;
    text-align: left;
  }

  .service-content p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--azul-oscuro);
    text-align: left;
  }

  .service-content b {
    font-weight: bold;

  }

  .service-item button {
    width: 100%;


  }
  .contactate{
    padding: 4rem 2rem;
    width: 100%;

    p{
      max-width: 100%;
    }
    .contactate-botones{
      margin-top: 1rem;
  }

  }
}