
html {

}

body {
font-family: 'Lato', sans-serif;
margin: 0px;
padding: 0px;
font-size: 15px;
color: #333;
background-repeat:no-repeat;
}

/* CONTENEDOR PRINCIPAL */
.gwx-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: #ffffff !important;
  z-index: 99999 !important;
  width: 100vw;
 height: 100dvh; /* 🔥 solución moderna */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;

  display: flex;
  flex-direction: column;
}

/* ACTIVO */
.gwx-overlay.gwx-open {
  opacity: 1;
  visibility: visible;
}
.gwx-overlay .gwx-link {
  opacity: 0 !important;
}

.gwx-overlay.gwx-open .gwx-link {
  opacity: 1 !important;
}
/* HEADER */
.gwx-header {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
}

.gwx-close {
  font-size: 24px;
  cursor: pointer;
  color: #111;
}

/* NAV */
.gwx-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* 🔥 CAMBIO */
  padding-top: 100px; /* espacio arriba */
  overflow-y: auto; /* 🔥 scroll si no entra */
}

/* LINKS */
.gwx-link {
  font-family: Arial, sans-serif !important;
  font-size: 24px !important;
  color: #111 !important;
  text-decoration: none !important;
  margin: 14px 0 !important;

  opacity: 0;
  transform: translateY(25px);
  transition: all 0.4s ease;
}

/* ANIMACIÓN */
.gwx-overlay.gwx-open .gwx-link {
  opacity: 1;
  transform: translateY(0);
}

/* DELAYS */
.gwx-overlay.gwx-open .gwx-link:nth-child(1) { transition-delay: 0.05s; }
.gwx-overlay.gwx-open .gwx-link:nth-child(2) { transition-delay: 0.1s; }
.gwx-overlay.gwx-open .gwx-link:nth-child(3) { transition-delay: 0.15s; }
.gwx-overlay.gwx-open .gwx-link:nth-child(4) { transition-delay: 0.2s; }
.gwx-overlay.gwx-open .gwx-link:nth-child(5) { transition-delay: 0.25s; }
.gwx-overlay.gwx-open .gwx-link:nth-child(6) { transition-delay: 0.3s; }
.gwx-overlay.gwx-open .gwx-link:nth-child(7) { transition-delay: 0.35s; }

/* HOVER */
.gwx-link:hover {
  color: #2AA953 !important;
}

/* ACTIVO */
.gwx-active {
  color: #2AA953 !important;
  padding: 10px 24px;
  border-radius: 6px;
}

/* CTA */
.gwx-cta {
  border: 2px solid #2AA953 !important;
  padding: 10px 24px;
  border-radius: 6px;
  color: #2AA953 !important;
}

.gwx-cta:hover {
  background: #2AA953 !important;
  color: #fff !important;
}

/* BOTÓN */
.gwx-menu-toggle {
  width: 30px;
  height: 22px;
  position: fixed; /* 🔥 ESTE ES EL FIX */
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 100000;
}
/* BARRAS */
.gwx-bar {
  position: absolute;
  background: #000000;
  left: 0;
  transition: all 0.3s ease;
  transform-origin: center; /* 🔥 CLAVE */
  height: 5px;
  border-radius: 3px;
  width: 30px; /* 🔥 igual al contenedor */
}

/* POSICIÓN INICIAL */
.gwx-bar:nth-child(1) { top: 0; }
.gwx-bar:nth-child(2) { top: 9px; }
.gwx-bar:nth-child(3) { top: 18px; }

/* ===== FIX REAL DE LA X ===== */
.gwx-menu-toggle.gwx-active .gwx-bar:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.gwx-menu-toggle.gwx-active .gwx-bar:nth-child(2) {
  opacity: 0;
}

.gwx-menu-toggle.gwx-active .gwx-bar:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}


