body {
  margin: 0;
  font-family: sans-serif;
}

.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero-bg {
  width: 100%;
  display: block;
}
.hero-bg_div
{
  width: 100%;
  height: 20dvh;  
  overflow: hidden;
}

/* Contenedor absoluto encima de la imagen */
.hero-content {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo a la izquierda */
.logo img {
  height: 150px;
}

/* Menú a la derecha */
.menu {
  display: flex;
  gap: 20px;
}


.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
}
.menu a:hover {
  color: #7db520;
}


.contact-form {
  padding: 40px 20px;
  text-align: center;
}

.contact-form h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #094442;
}

form {
  max-width: 800px;
  margin: 0 auto;
}

.row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

input, textarea {
  flex: 1;
  padding: 10px;
  border: 2px solid #86b333;
  border-radius: 5px;
}

textarea {
  width: 100%;
  height: 100px;
  resize: none;
  margin-bottom: 15px;
}

button {
  background-color: #86b333;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.location {
  position: relative; 
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  background: white;
  gap: 20px;
}

.map {
  flex: 1 1 60%;
  min-width: 300px;
}

.info {
  flex: 1 1 35%;
  min-width: 280px;
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
/* Imagen posicionada en la esquina inferior derecha dentro de .location */
.img-inferior-derecha {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 150px;
  height: auto;
  z-index: 10;
}


.info h3 {
  margin: 10px 0 5px;
  color: #2a7830;
}

/* ✅ Adaptación a móviles */
@media (max-width: 768px) {
  .location {
    flex-direction: column;
  }

  .map,
  .info {
    flex: 1 1 100%;
    min-width: unset;
  }
   .img-inferior-derecha {
    position: static;
    margin: 20px auto 0;
    display: block;
  }
}


.footer {
  background-color: #101820;
  color: white;
  padding: 40px 20px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 200px; /* mínimo 200px por columna */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  width: 120px;
  height: auto;
}

.footer-titulo {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.footer-redes a img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}
@media (max-width: 768px) {
  /* Hero */
 .hero-content {
    flex-direction: row; /* ← Para mantener todo en una fila */
    justify-content: space-between; /* ← Logo a la izq., menú a la der. */
    align-items: center;
    padding: 0 20px;
  }

 .logo {
    text-align: left;
    height: 150px;
    right: 20px;
    width: 150px;
  }

.menu {
    background: none;
    padding-left: 0px;
    margin-top: 0;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    min-width: 150px; /* O el ancho que necesites */
}

.menu a {
    font-size: 12px; /* ← Tamaño más pequeño */
  }
.hero-title {
   position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: bold;
}
.hero h1 {
    font-size: 1.3rem;
    top: 160px; /* ← Más espacio debajo del menú */
    padding: 0 10px;
    text-align: center;
  }

  /* Formulario */
  .row {
    flex-direction: column;
  }

  input, textarea {
    width: 100%;
    font-size: 16px;
  }

  button {
    width: 100%;
  }

  /* Mapa + info */
  .location {
    flex-direction: column;
    padding: 10px;
  }

  .map iframe {
    width: 100%;
    height: 300px;
  }

  .img-inferior-derecha {
    position: static;
    margin: 10px auto 0;
    width: 100px;
  }

  /* Footer */
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-logo {
    width: 100px;
  }

  .footer-redes a img {
    width: 20px;
    height: 20px;
  }
}
