:root {
  --verde: #006B3C;
  --amarillo: #FFD43B;
  --gris: #F7F7F7;
  --texto: #333;
  --blanco: #fff;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gris);
  color: var(--texto);
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6%;
  background: var(--blanco);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 20;
}



.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 55px;
}

.logo h1 {
  font-size: 1.2rem;
  color: var(--verde);
  letter-spacing: 1px;
} 
.menu-toggle {
  display: none; /* Oculto por defecto */
  background: none;
  border: none;
  font-size: 1.5rem; /* Ajusta el tamaño del icono */
  cursor: pointer;
  color: var(--verde); /* Color del icono */
}

.menu {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  position: relative;
  background: linear-gradient(135deg, var(--verde) 30%, var(--gris) 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sombra para destacar la sección */
}

.hero-text {
  flex: 1;
  text-align: left;
  color: var(--blanco); /* Cambia el color del texto para que contraste con el fondo */
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Animación para las imágenes */
@keyframes float {
  0%, 100% {
    transform: translateY(0); /* Posición inicial y final */
  }
  50% {
    transform: translateY(-10px); /* Movimiento hacia arriba */
  }
}

.hero-imgs {
  flex: 1;
  position: relative;
  height: 400px;
}

.hero-imgs img {
  width: 180px;
  height: auto;
  border-radius: 12px;
  position: absolute;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite; /* Aplica la animación */
}

.hero-imgs img:nth-child(1) {
  top: 20px;
  left: 40px;
  animation-delay: 0s; /* Sin retraso */
}

.hero-imgs img:nth-child(2) {
  top: 80px;
  left: 120px;
  animation-delay: 0.5s; /* Retraso de 0.5 segundos */
}

.hero-imgs img:nth-child(3) {
  top: 140px;
  left: 200px;
  animation-delay: 1s; /* Retraso de 1 segundo */
}

.hero-imgs img:nth-child(4) {
  top: 200px;
  left: 280px;
  animation-delay: 1.5s; /* Retraso de 1.5 segundos */
}

/* Círculo amarillo */
.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--amarillo);
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1; /* Coloca el círculo detrás del contenido */
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  background: var(--verde);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
}

.hero::before,
.hero::after {
  display: none;
}

/* Nosotros */
.nosotros {
  text-align: center;
  padding: 40px;
}

.nosotros h3 {
  font-size: 1.8rem;
  color: var(--verde);
  margin-bottom: 35px;
}

.nosotros-content {
  display: flex;
  align-items: center; /* Alinea los elementos verticalmente */
  justify-content: space-between; /* Distribuye los elementos horizontalmente */
  gap: 20px; /* Espacio entre el texto y la imagen */
  margin-top: 50px;
}

.divTextoNosotros, .divImagenNosotros {
  flex: 1; /* Ambos divs ocupan el mismo espacio */
  max-width: 50%; /* Limita el ancho de cada div al 50% */
}

.divTextoNosotros {
  text-align: left; /* Alinea el texto a la izquierda */
}

.divTextoNosotros p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.divTextoNosotros img{
    width: 40%; /* La imagen ocupa todo el ancho del div */
  height: auto;
  margin-top: 20px;
  border-radius: 8px; /* Opcional: bordes redondeados */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Opcional: sombra */
}

.divImagenNosotros img {
  width: 30%; /* La imagen ocupa todo el ancho del div */
  height: auto;
}

/* Misión, Visión, Valores */
.mvv {
  display: flex;
  justify-content: space-around; /* Distribuye los elementos horizontalmente */
  gap: 20px;
  margin-top: 40px;
}

.mvv div {
  text-align: center;
  flex: 1; /* Cada elemento ocupa el mismo espacio */
}

.mvv img {
  width: 80px; /* Ajusta el tamaño de los íconos */
  height: auto;
  margin-bottom: 10px;
}

.mvv h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.mvv p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Servicios */
.servicios {
  background: var(--blanco);
  padding: 70px 10%;
  text-align: center;
}

.servicios h3 {
  font-size: 1.8rem;
  color: var(--verde);
  margin-bottom: 35px;
}

.servicios-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.card {
  background: var(--gris);
  border-radius: 10px;
  padding: 25px;
  width: 260px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--verde);
  color: var(--blanco);
  transform: translateY(-4px);
}

/* Contacto */
.contacto {
  background: var(--verde);
  color: var(--blanco);
  text-align: center;
  padding: 70px 10%;
}

.contacto h3 {
  font-size: 1.9rem;
  margin-bottom: 25px;
}

.contacto p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  background: var(--amarillo);
  color: var(--verde);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #ffe463;
  transform: scale(1.05);
}

/* Footer */
footer {
  background: #00331D;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Ajustes para vista móvil */
@media (max-width: 768px) {
  .header {
    flex-direction: column; /* Cambia el diseño del header a una columna */
    align-items: center; /* Centra los elementos */
    padding: 10px; /* Reduce el espacio */
  }

  .logo h1 {
    font-size: 1.5rem; /* Reduce el tamaño de la fuente */
    text-align: center; /* Centra el texto */
    line-height: 1.2; /* Ajusta el espacio entre líneas */
  }

  .logo img {
    width: 80px; /* Reduce el tamaño del logo */
    height: auto;
  }

  .menu-toggle {
    display: block; /* Muestra el botón en vista móvil */
    font-size: 2rem; /* Ajusta el tamaño del icono para móviles */
    position: absolute;
    top: 50px;
    right: 20px;
  }

  .menu {
    display: none; /* Oculta el menú por defecto */
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 60px;
    right: 10px;
    background: var(--blanco);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    z-index: 10;
  }

  .menu.active {
    display: flex; /* Muestra el menú cuando está activo */
  }

  .hero-text h2 {
    font-size: 1.8rem; /* Ajusta el tamaño del texto principal */
  }

  .hero-text p {
    font-size: 1rem; /* Ajusta el tamaño del texto secundario */
  }

  .hero {
    padding: 20px;
    flex-direction: column; /* Cambia el diseño a una columna */
    gap: 20px;
  }

  .hero-imgs {
    display: flex;
    justify-content: center; /* Centra las imágenes */
    flex-wrap: wrap; /* Permite que las imágenes se ajusten en filas */
    gap: 10px;
  }

  .hero-imgs img {
    width: 120px; /* Reduce el tamaño de las imágenes */
    height: auto;
    position: static; /* Elimina la posición absoluta */
  }

  .hero::before {
    display: none; /* Oculta el círculo amarillo en vista móvil */
  }

  .mvv {
    flex-direction: column; /* Cambia el diseño a una columna */
    gap: 20px; /* Espacio entre los elementos */
    align-items: center; /* Centra los elementos horizontalmente */
  }

  .mvv div {
    width: 100%; /* Cada elemento ocupa todo el ancho disponible */
    text-align: center; /* Centra el contenido */
  }

  .mvv img {
    margin-bottom: 10px; /* Espacio entre el ícono y el texto */
  }

  .nosotros-content {
    flex-direction: column; /* Cambia el diseño a una columna */
    align-items: center; /* Centra los elementos horizontalmente */
    gap: 20px; /* Espacio entre el texto y la imagen */
  }

  .divTextoNosotros, .divImagenNosotros {
    max-width: 100%; /* Cada div ocupa todo el ancho disponible */
    text-align: center; /* Centra el contenido */
  }

  .divTextoNosotros p {
    font-size: 1rem; /* Ajusta el tamaño del texto */
    line-height: 1.5;
  }

  .divImagenNosotros img {
    width: 80%; /* Ajusta el tamaño de la imagen */
    height: auto;
  }
}