/* ============================================
   MAYAHUAL — NAVBAR FIJO GLOBAL
   ============================================ */

/* Ocultar el viejo menú desplegable completo */
.menu,
.menu-wrapper,
.menu-small,
.menu-button {
  display: none !important;
}

.languaje-box {
  opacity: 0;
  pointer-events: none;
}

/* Navbar fijo */
.mh-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #191d23;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.mh-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  gap: 2rem;
}

/* Logo */
.mh-navbar-brand img {
  display: block;
  width: 42px;
  height: auto;
  transition: opacity 0.2s;
}

.mh-navbar-brand:hover img {
  opacity: 0.8;
}

/* Links centrales */
.mh-navbar-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex: 1;
  justify-content: center;
}

.mh-nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
  padding-bottom: 0.35rem;
}

.mh-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background-color: #cba365;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.mh-nav-link:hover,
.mh-nav-link.active {
  color: #cba365;
}

.mh-nav-link:hover::after,
.mh-nav-link.active::after {
  transform: scaleX(1);
}

/* Zona de acciones (teléfono + botón) */
.mh-navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
}

.mh-navbar-actions .languaje-box {
  position: static;
  inset: auto;
  z-index: auto;
  gap: 0.45rem;
  height: 36px;
  margin: 0;
  padding: 0.32rem 0.78rem 0.32rem 0.36rem;
  border: 1px solid rgba(25, 29, 35, 0.24);
  border-radius: 999px;
  background: #d8d1c0;
  color: #1f2a25;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  transition: none !important;
  animation: none !important;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
}

.mh-navbar-actions .languaje-box:hover,
.mh-navbar-actions .languaje-box:focus,
.mh-navbar-actions .languaje-box:active,
.mh-navbar-actions .languaje-box:focus-visible {
  background: #d8d1c0;
  box-shadow: none;
  outline: none;
}

.mh-navbar-actions .usa-icon,
.mh-navbar-actions .spain-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background-color: transparent;
  transition: none !important;
  animation: none !important;
}

.mh-navbar-actions .usa-icon {
  display: block;
}

.mh-navbar-actions .spain-icon {
  display: none;
}

.mh-navbar-actions .usa-icon img,
.mh-navbar-actions .spain-icon img {
  display: block;
  padding: 0;
  transition: none !important;
  animation: none !important;
}

.mh-language-label {
  color: #1f2a25;
  font-family: Montserrat, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: none !important;
  animation: none !important;
}

.mh-nav-phone {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s;
}

.mh-nav-phone:hover {
  color: #fff;
}

.mh-nav-cta {
  background-color: #cba365;
  color: #fff;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  transition: background-color 0.25s, transform 0.2s;
}

.mh-nav-cta:hover {
  background-color: #b8914f;
  transform: translateY(-1px);
}

.mh-nav-cta.active {
  background-color: #b8914f;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.mh-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
}

.mh-menu-toggle:hover,
.mh-menu-toggle:focus,
.mh-menu-toggle:active,
.mh-menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  outline: none;
}

.mh-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mh-mobile-panel {
  display: none;
}

.mh-navbar.is-menu-open .mh-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mh-navbar.is-menu-open .mh-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.mh-navbar.is-menu-open .mh-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Espaciador para que el contenido no quede bajo el navbar fijo */
.mh-navbar-spacer {
  height: 75px;
  width: 100%;
}

/* Responsive: tablet */
@media (max-width: 991px) {
  .mh-navbar-links {
    gap: 1rem;
  }
  .mh-nav-phone {
    display: none;
  }
}

/* Responsive: móvil — menú desplegable */
@media (max-width: 767px) {
  body.mh-menu-open {
    overflow: hidden;
  }

  .mh-navbar-inner {
    padding: 0.75rem 1.2rem;
  }

  .mh-navbar-links {
    display: none;
  }

  .mh-navbar-actions {
    gap: 0.8rem;
  }

  .mh-navbar-actions .mh-nav-cta {
    display: none;
  }

  .mh-navbar-actions .languaje-box {
    display: flex;
  }

  .mh-nav-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.68rem;
  }

  .mh-menu-toggle {
    display: flex;
  }

  .mh-mobile-panel.is-open {
    display: flex !important;
  }

  body.mh-menu-open .mh-mobile-panel {
    display: flex !important;
  }

  .mh-mobile-panel {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    flex-direction: column;
    gap: 0;
    padding: 2.2rem 1.45rem 1.35rem;
    background:
      linear-gradient(#191d23, #191d23),
      radial-gradient(circle at 12% 18%, rgba(203, 163, 101, 0.14), transparent 30%);
    box-shadow: none;
    overflow-y: auto;
  }

  body.mh-menu-open .mh-navbar {
    visibility: visible;
  }

  .mh-mobile-panel-links {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(216, 209, 192, 0.22);
  }

  .mh-mobile-panel-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 81px;
    border-bottom: 1px solid rgba(216, 209, 192, 0.22);
    color: rgba(216, 209, 192, 0.68);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 9vw, 2.85rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
  }

  .mh-mobile-panel-link.active {
    color: #f3ead8;
  }

  .mh-mobile-panel-link.active::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 0.65rem;
    border-radius: 999px;
    background: #cba365;
  }

  .mh-mobile-panel-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 46px;
    height: 2px;
    border-radius: 999px;
    background: #cba365;
  }

  .mh-mobile-menu-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: 0;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: auto;
    padding-top: 2rem;
  }

  .mh-mobile-contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 47px;
    padding: 0.72rem 1.1rem;
    border-radius: 999px;
    background: #cba365;
    color: #191d23;
    font-family: Montserrat, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mh-mobile-language-slot .languaje-box {
    display: flex;
    position: static;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    height: 38px;
    margin: 0;
    padding: 0.32rem 0.74rem 0.32rem 0.38rem;
    border: 1px solid rgba(216, 209, 192, 0.32);
    border-radius: 999px;
    background: rgba(216, 209, 192, 0.08);
    color: #f3ead8;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
  }

  .mh-mobile-language-slot .languaje-box:hover,
  .mh-mobile-language-slot .languaje-box:focus,
  .mh-mobile-language-slot .languaje-box:active,
  .mh-mobile-language-slot .languaje-box:focus-visible {
    background: rgba(216, 209, 192, 0.08);
    box-shadow: none;
    outline: none;
  }

  .mh-mobile-language-slot .mh-language-label {
    color: #f3ead8;
  }

  .mh-mobile-language-slot .usa-icon,
  .mh-mobile-language-slot .spain-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background-color: transparent;
  }

  .mh-mobile-language-slot .usa-icon {
    display: block;
  }

  .mh-mobile-language-slot .spain-icon {
    display: none;
  }

  .mh-mobile-language-slot .usa-icon img,
  .mh-mobile-language-slot .spain-icon img {
    display: block;
    padding: 0;
  }
}
