/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #1E6E64;
  display: flex;
  justify-content: space-between; /* 🔹 distribuye botón y menú en PC */
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

.menu-btn {
  font-size: 1.8rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900; /* debajo del panel */
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu {
  z-index: 1000;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 60px 20px 20px;     /* espacio superior para la X */
  position: fixed;
  top: 0;
  left: -100%;                 /* oculto fuera de pantalla */
  width: 70%;
  max-width: 320px;
  height: 100vh;
  background: #1E6E64;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: left 0.35s ease;
  z-index: 1000;
  overflow-y: auto;            /* si hay muchos links, scroll solo del panel */
}

.menu.open { left: 0; }

.menu li { margin: 0; }
.menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
  padding: 12px 4px;
}

.menu-close{
  position: sticky;     /* se queda arriba aunque el panel haga scroll */
  top: 0;
  align-self: flex-end;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 10px 6px;
}

.menu-btn{
  font-size: 1.8rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;        /* por encima del panel */
}

@media (min-width: 768px){
  .menu {
    position: static;
    left: auto;
    width: auto; max-width: none; height: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    flex-direction: row;
    gap: 20px;
  }
  .menu-close, .menu.open { display: none; }  /* no se usa en desktop */
  .menu-btn { display: none; }
  .menu li a { padding: 0; }
}

/*SECCION IMAGENES*/
/* --- Secciones con imágenes fullscreen --- */
.section-img {
  height: auto;        /* 🔹 deja que crezca según la imagen */
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.section-img img {
  max-width: 100%;     /* 🔹 nunca se pasa del ancho */
  height: auto;        /* 🔹 mantiene proporción */
  object-fit: contain;
}


