: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 {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: 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/servicios.jpg');
  background-size: cover;
  background-position: center;
}

.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;
  }
}


.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%;
  margin: 0 auto;
  padding: 0px 0px !important;
  background-color: white !important;
  
}

.service-item {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  background-color: var(--gris-claro);
  padding: 0px;

}

/* Clases para el orden de los elementos */
.service-item.reverse {
  flex-direction: row-reverse;
  background-color: var(--azul-oscuro);
  padding: 0px;
  gap: 0px;
  
  p{
    color: var(--blanco) !important;
  }
  .service-content{
    padding: 0px 3rem;
  }
}

.service-content {
  flex: 1;
  padding: 0rem 4rem;

}

.service-image {
  flex: 1;
  position: relative;
  margin: 0;
}


.service-image img {
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
}

/* 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.4rem 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;
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {


  h2 {
    font-size: 1.8em;
  }
}

@media screen and (max-width: 768px) {


  .headerServicios {
    width: 100%;
    height: 65vh;

  }

  .servicios {
    padding: 4rem 1rem;
    text-align: left;
  }


  .header-servicios h1 {
    font-size: 2.5rem;

  }

  .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: 3rem 2rem!important;
    

  }

  .service-content {
    order: 1;
    justify-content: left;
    padding: 0rem !important;
  }
  

  .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%;
  margin-top: 2rem;
  
}

}