body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
}

header {
  position: fixed;
  background: #4e6747;
  color: white;
  padding: 1.5rem 2rem;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: flex-end; /* el botón se va a la derecha */
}

header .logo {
  position: absolute;        /* centrado absoluto */
  left: 50%;
  transform: translateX(-50%); /* lo centra horizontalmente */
  width: 220px;
  height: auto;
}

header .boton {
  background-color: white;
  color: #4e6747;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

header .boton:hover {
  background-color: #4cae4c;
}

section {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
  background: white;
  margin-bottom: 1rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

#servicios {
  background-color: white;
  text-align: center;
}

#servicios h2 {
  padding-top: 50px;
  font-size: 1.5rem;

}

#servicios h3 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #4e6747;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.servicio {
  background: #919a5b;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 250px;
}

.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.servicio h3 {
  color: white;
  margin-bottom: 1rem;
}

.servicio p {
  color: white;
  line-height: 1.5;
  text-align: left;
}

.resaltado {
  font-weight: bold;      
  color: #4e6747;         
}

#sobre-mi {
  max-width: 800px;
  margin: auto;
  background: white;
  margin-bottom: 1rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

#sobre-mi h2 {
  color: #4e6747;
}

#sobre-mi p {
  color: #4e6747;
}

#valores {
  color: white;
  background: #4e6747;
  text-align: center;
}

#valores h3 {
  text-align: center;
}

#valores p {
  text-align: initial;
  margin-left: 100px;
  margin-right: 100px;
}

#valores .boton {
  background-color: white;
  color: #4e6747;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#valores .boton:hover {
  background-color: #4cae4c;
}

#cobertura {
  text-align: center;
  max-width: 800px;
  margin: auto;
  background: white;
  margin-bottom: 1rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

#cobertura .ubicacion {
  max-width: 200px;
}

#cobertura .iconos {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-left: 200px;
}

#cobertura .iconos li::before {
  content: "";
  display: inline-block;
  width: 32px;            
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;       
  vertical-align: middle;
}

#cobertura .iconos .auto::before {
  background-image: url("assets/auto.png");
}

#cobertura .iconos .candado::before {
  background-image: url("assets/candado.png");
}

#cobertura .iconos .persona::before {
  background-image: url("assets/persona.png");
}

footer {
  text-align: center;
  padding: 1rem;
  background: white;
  font-size: 0.9rem;
}

footer p {
  text-align: left;
  margin-left: 280px;
}

@media (max-width: 768px) {
  /* Header */
  header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  header .logo {
    position: static;
    transform: none;
    width: 140px;
    margin-bottom: 0.5rem;
  }

  header .boton {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Sección Valores */
  #valores p {
    margin-left: 1rem;
    margin-right: 1rem;
    text-align: center;
  }

  /* Sección Cobertura */
  #cobertura .iconos {
    margin-left: 0;
    text-align: center;
  }

  #cobertura .iconos li {
    display: inline-block; /* los íconos quedan centrados horizontalmente */
    margin: 0.5rem;
    text-align: center;
  }

  /* Footer */
  footer p {
    margin-left: 0;
    text-align: center;
  }
}