/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  overflow-x: hidden;
}

section {
  padding: 80px 10%;
}

h1,
h2 {
  font-weight: 400;
  margin-bottom: 40px;
  font-size: 3rem;
  text-align: center;
}

.h2 .sobre-nosotros-title {
  text-align: left;

}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Estilos del header */
header {
  background-color: white;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 80px;
  height: auto;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #2dd4bf;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  padding: 80px 10%;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-content h1 {
  font-size: 4rem;
  text-align: left;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
}

/* Sobre Nosotros */
.sobre-nosotros {
  background-color: #2dd4bf;
  color: white;
}

.sobre-nosotros-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.sobre-nosotros-image {
  flex: 1;
}

.sobre-nosotros-image img {
  width: 100%;
  border-radius: 10px;
}

.sobre-nosotros-content {
  flex: 1.5;
}

.sobre-nosotros-columns {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.sobre-nosotros-text {
  flex: 1;
}

.sobre-nosotros-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.mision-box {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
}

.mision-box h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Valores */
.valores {
  background-color: #2dd4bf;
  color: white;
  text-align: center;
}

.valores-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.valor {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
  padding: 30px;
  border-radius: 5px;
  width: calc(33.33% - 20px);
  min-width: 250px;
  transition: transform 0.3s;
}

.valor:hover {
  transform: translateY(-10px);
}

.valor i {
  font-size: 2rem;
  margin-bottom: 15px;
}

.valor h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Equipo */
.equipo {
  background-color: white;
}

.equipo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.miembro {
  width: calc(33.33% - 20px);
  min-width: 300px;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.miembro:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.miembro img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.miembro-info {
  padding: 20px;
}

.miembro-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.miembro-info h4 {
  color: #2dd4bf;
  margin-bottom: 15px;
}

.miembro-info p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Servicios */
.servicios {
  background-color: white;
}

.servicios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.servicio {
  width: calc(33.33% - 20px);
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.servicio:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.servicio img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.servicio-info {
  padding: 20px;
}

.servicio-info h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.servicio-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
}

/* Contacto */
.contacto {
  background-color: #111;
  color: white;
}

.contacto-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contacto-form {
  flex: 1;
  min-width: 300px;
}

.contacto-info {
  flex: 1;
  min-width: 300px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background-color: #222;
  border: 1px solid #333;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
}

.form-group textarea {
  height: 150px;
  resize: none;
}

button {
  background-color: #2dd4bf;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  width: 100%;
}

button:hover {
  background-color: #26b0a0;
}

.contacto-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contacto-info-item i {
  margin-right: 15px;
  font-size: 1.2rem;
  color: #2dd4bf;
}

.contacto-info-item div {
  flex: 1;
}

.contacto-info-item h4 {
  margin-bottom: 5px;
  color: #ccc;
}

/* Footer */
footer {
  background-color: #000;
  color: #ccc;
  padding: 20px 10%;
  text-align: center;
}

.divider {
  height: 1px;
  background-color: #333;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {

  h1,
  h2 {
    font-size: 2rem;
  }

  .hero {
    flex-direction: column;
    padding: 40px 5%;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .sobre-nosotros-container {
    flex-direction: column;
  }

  section {
    padding: 40px 5%;
  }

  .valor,
  .miembro,
  .servicio {
    width: 100%;
  }

  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .sobre-nosotros-columns {
    flex-direction: column;
  }

  .sobre-nosotros-text,
  .mision-box {
    flex: none;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1001;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu ul li {
  margin: 20px 0;
  text-align: center;
}

.mobile-menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1.5rem;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* Infinity symbol */
.infinity {
  font-size: 2rem;
  margin-bottom: 10px;
}

.message-container {
  margin-bottom: 10px;
  font-size: 1rem;
  text-align: center;
  min-height: 10px;
}

.message-container .success {
  color: #2dd4bf;
}

.message-container .error {
  color: #ff0000;
}