/* Define el tamaño y tipografía para el sitio */
body {
  font-size: 16px;
  font-family: sans-serif;
}

/* Define el estilo para el encabezado y la navegación */
header {
  background-color: #333;
  color: #fff;
  padding: 20px;
}

header h1 {
  margin: 0;
  font-size: 24px;
}

header ul {
  margin: 0;
  padding: 0;
  display: flex;
}

header li {
  list-style: none;
  margin-right: 20px;
}

header a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

header a:hover {
  color: #ccc;
}

/* Define el estilo para la sección hero */
#hero {
  background-color: #eee;
  padding: 100px 0;
  text-align: center;
  animation: fadeIn 2s ease;
}

#hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

#hero p {
  font-size: 24px;
  margin-bottom: 40px;
}

#hero .button {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#hero .button:hover {
  background-color: #ccc;
}

/* Define el estilo para la sección de servicios */
#services {
  background-color: #fff;
  padding: 100px 0;
}

#services h2 {
  text-align: center;
  margin-bottom: 50px;
}

#services .services-container {
  display: flex;
  justify-content: space-between;
}

#services .service {
  width: 30%;
  text-align: center;
  animation: fadeIn 2s ease;
}

#services .service img {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

#services .service h3 {
  margin: 0;
  font-size: 18px;
}

#services .service p {
  font-size: 14px;
}



/* Define el estilo para la sección de testimonios */
#testimonials {
  background-color: #eee;
  padding: 100px 0;
}

#testimonials h2 {
  text-align: center;
  margin-bottom: 50px;
}

#testimonials .testimonials-container {
  display: flex;
  justify-content: space-between;
}

#testimonials .testimonial {
  width: 30%;
  text-align: center;
  animation: fadeIn 2s ease;
}

#testimonials .testimonial p {
  font-size: 18px;
  margin-bottom: 20px;
}

#testimonials .testimonial-author {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

#testimonials .testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 20px;
}

#testimonials .testimonial-author h4 {
  margin: 0;
  font-size: 18px;
}

#testimonials .testimonial-author p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Define el estilo para la sección "¿Por qué elegirnos a nosotros?" */
#what-sets-us-apart {
  background-color: #fff;
  padding: 100px 0;
}

#what-sets-us-apart h2 {
  text-align: center;
  margin-bottom: 50px;
}

#what-sets-us-apart .what-sets-us-apart-container {
  display: flex;
  justify-content: space-between;
}

#what-sets-us-apart .benefit {
  width: 30%;
  text-align: center;
  animation: fadeIn 2s ease;
}

#what-sets-us-apart .benefit img {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

#what-sets-us-apart .benefit h3 {
  margin: 0;
  font-size: 18px;
}

#what-sets-us-apart .benefit p {
  font-size: 14px;
}

/* Define el estilo para la sección de contacto */
#contact {
  background-color: #eee;
  padding: 100px 0;
}

#contact h2 {
  text-align: center;
  margin-bottom: 50px;
}

#contact p {
  font-size: 18px;
  margin-bottom: 40px;
  text-align: center;
}

#contact .button {
  display: block;
  margin: 0 auto;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#contact .button:hover {
  background-color: #ccc;
}

#contact form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#contact form label {
  display: block;
  width: 100%;
  font-size: 18px;
  margin-bottom: 10px;
}

#contact form input,
#contact form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 16px;
}

#contact form textarea {
  height: 200px;
}

#contact form button {
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 10px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#contact form button:hover {
  background-color: #ccc;
}

/* Define el estilo para el pie de página */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* Define algunas animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}


/* Define estilos para pantallas de ancho inferior a 600px */
@media screen and (max-width: 800px) {
  header ul {
    flex-direction: column;
  }
  header li {
    margin-bottom: 20px;
  }
  #services .services-container {
    flex-direction: column;
  }
  #services .service {
    width: 100%;
  }
  #testimonials .testimonials-container {
    flex-direction: column;
  }
  #testimonials .testimonial {
    width: 100%;
  }
  #what-sets-us-apart .what-sets-us-apart-container {
    flex-direction: column;
  }
  #what-sets-us-apart .benefit {
    width: 100%;
  }
}
