/* HOMQI Suite — Menú Editorial premium (Nación ADS)
   Paleta: #0c181f · #0f1c26 · #e3a708 · #c19b67 · #ffffff
   Sin Font Awesome. Responsive + UX.
*/

.hqm-header {
  --hqm-gold: #e3a708;
  --hqm-gold-2: #f0bc2e;
  --hqm-logo-gold: #c19b67;
  --hqm-gold-soft: #d4af74;
  --hqm-ink: #0c181f;
  --hqm-menu: #0f1c26;
  --hqm-text: #ffffff;
  --hqm-muted: rgba(255, 255, 255, .7);
  --hqm-line: rgba(193, 155, 103, .28);
  --hqm-topline-h: 42px;
  --hqm-bar-h: 102px;
  --hqm-ctrl: 46px;
  --hqm-sans: Montserrat, "Segoe UI", system-ui, sans-serif;
  position: relative;
  z-index: 10050;
  width: 100%;
  max-width: 100%;
  font-family: var(--hqm-sans);
  color: var(--hqm-text);
  isolation: isolate;
  overflow: visible;
}

/* Aislamiento vs Houzez / Elementor / temas */
.elementor-widget-homqi_menu,
.elementor-widget-homqi_menu > .elementor-widget-container,
.elementor-element.elementor-widget-homqi_menu {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.hqm-header *,
.hqm-header *::before,
.hqm-header *::after { box-sizing: border-box; }

.hqm-header a {
  text-decoration: none !important;
  color: inherit;
  box-shadow: none;
}
.hqm-header ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hqm-header button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

/* Sticky shell (topline + bar) — respeta admin bar WP */
.hqm-header.is-sticky-ready.is-stuck .hqm-header__shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: hqm-drop .28s ease;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .35);
  z-index: 10050;
}
.admin-bar .hqm-header.is-sticky-ready.is-stuck .hqm-header__shell {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .hqm-header.is-sticky-ready.is-stuck .hqm-header__shell {
    top: 46px;
  }
}
@keyframes hqm-drop {
  from { transform: translateY(-8px); opacity: .55; }
  to { transform: translateY(0); opacity: 1; }
}
.hqm-header.is-shrink-ready.is-stuck { --hqm-bar-h: 84px; }
.hqm-header.is-stuck .hqm-topline {
  display: none;
}
.hqm-header__spacer {
  display: none;
  height: var(--hqm-bar-h);
}
.hqm-header.is-stuck .hqm-header__spacer { display: block; }

/* —— Topline premium —— */
.hqm-topline {
  height: var(--hqm-topline-h);
  background: linear-gradient(180deg, #0a141a 0%, var(--hqm-ink) 100%);
  border-bottom: 1px solid rgba(193, 155, 103, .26);
}
.hqm-topline__inner {
  max-width: 1480px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 40px); /* mismo padding que .hqm-header__inner */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.hqm-topline__left,
.hqm-topline__right {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.hqm-topline__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2px;
  color: var(--hqm-muted);
  white-space: nowrap;
  transition: color .2s ease;
}
.hqm-topline__link:hover,
.hqm-topline__link:focus-visible {
  color: var(--hqm-gold-soft);
  outline: none;
}
.hqm-topline__link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: var(--hqm-logo-gold);
  fill: none;
}

/* WhatsApp — dorado premium (sin verde) */
.hqm-topline__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(193, 155, 103, .55);
  background: linear-gradient(180deg, rgba(193, 155, 103, .16), rgba(193, 155, 103, .06));
  color: var(--hqm-gold-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: .22s ease;
}
.hqm-topline__wa svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.hqm-topline__wa:hover,
.hqm-topline__wa:focus-visible {
  background: linear-gradient(180deg, var(--hqm-logo-gold), #a88452);
  color: #0c181f;
  border-color: var(--hqm-logo-gold);
  outline: none;
}

/* Social */
.hqm-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hqm-social__link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(193, 155, 103, .32);
  color: rgba(255, 255, 255, .65);
  transition: .22s ease;
}
.hqm-social__link svg { width: 13px; height: 13px; }
.hqm-social__link:hover,
.hqm-social__link:focus-visible {
  color: #0c181f;
  background: var(--hqm-logo-gold);
  border-color: var(--hqm-logo-gold);
  outline: none;
}
.hqm-social--lg { gap: 10px; }
.hqm-social--lg .hqm-social__link {
  width: 44px;
  height: 44px;
}
.hqm-social--lg .hqm-social__link svg { width: 17px; height: 17px; }

/* —— Language switcher (listo para módulo i18n) —— */
.hqm-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hqm-lang__icon {
  display: inline-flex;
  color: var(--hqm-logo-gold);
  line-height: 0;
}
.hqm-lang__icon svg {
  width: 15px;
  height: 15px;
}
.hqm-lang__list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hqm-lang__sep {
  color: rgba(193, 155, 103, .45);
  font-size: 11px;
  line-height: 1;
}
.hqm-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--hqm-muted);
  border: 1px solid transparent;
  transition: .2s ease;
  line-height: 1;
}
.hqm-lang__btn:hover,
.hqm-lang__btn:focus-visible {
  color: var(--hqm-gold-soft);
  outline: none;
}
.hqm-lang__btn.is-active {
  color: #0c181f;
  background: linear-gradient(180deg, #d4af74, var(--hqm-logo-gold));
  border-color: var(--hqm-logo-gold);
}
.hqm-lang--topline .hqm-lang__btn {
  height: 26px;
  min-width: 26px;
}
.hqm-lang--actions {
  height: var(--hqm-ctrl);
  padding: 0 10px 0 0;
  margin: 0;
  border-right: 1px solid rgba(193, 155, 103, .28);
  align-self: center;
}
.hqm-lang--actions .hqm-lang__btn {
  height: 30px;
  min-width: 30px;
}
.hqm-lang--drawer {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
}
.hqm-lang--drawer .hqm-lang__list { gap: 8px; }
.hqm-lang--drawer .hqm-lang__btn {
  min-width: 52px;
  height: 40px;
  border: 1px solid rgba(193, 155, 103, .35);
  background: rgba(255, 255, 255, .02);
}
.hqm-lang--drawer .hqm-lang__btn.is-active {
  color: #0c181f;
  background: linear-gradient(180deg, #d4af74, var(--hqm-logo-gold));
  border-color: var(--hqm-logo-gold);
}
.hqm-drawer__lang {
  padding: 4px 0 8px;
  border-top: 1px solid rgba(193, 155, 103, .18);
}

/* En desktop el idioma vive en la topline; en actions solo si no hay topline visible */
.hqm-lang--actions { display: none; }

/* Versión Propiedades: barra limpia (sin topline) */
.hqm-header--version-propiedades {
  --hqm-topline-h: 0px;
}
.hqm-header--version-propiedades .hqm-topline {
  display: none !important;
}
.hqm-header--version-propiedades .hqm-header__bar {
  border-top: 0;
}

/* Main bar — overflow visible para dropdowns */
.hqm-header__shell,
.hqm-header__bar {
  overflow: visible;
}
.hqm-header__bar {
  height: var(--hqm-bar-h);
  background: linear-gradient(180deg, #12202a 0%, var(--hqm-menu) 100%);
  border-bottom: 1px solid rgba(193, 155, 103, .32);
  transition: height .22s ease, background .22s ease, border-color .22s ease;
  position: relative;
  z-index: 2;
}
.hqm-header.is-stuck .hqm-header__bar {
  background: rgba(12, 24, 31, .985);
  border-bottom-color: rgba(193, 155, 103, .45);
}

.hqm-header__inner {
  max-width: 1480px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 40px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  column-gap: clamp(16px, 2.2vw, 36px);
  width: 100%;
  min-width: 0;
}

/* Logo */
.hqm-logo {
  display: inline-flex;
  align-items: center;
  align-self: center;
  line-height: 0;
  position: relative;
  z-index: 2;
  padding-right: 12px;
  height: 100%;
}
.hqm-logo picture {
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.hqm-logo img,
.hqm-logo__img {
  height: 78px;
  width: auto;
  max-width: min(320px, 54vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: height .22s ease, opacity .22s ease;
}
.hqm-header.is-stuck .hqm-logo img,
.hqm-header.is-stuck .hqm-logo__img { height: 62px; }

/* Nav — overflow visible para que el submenu no se corte */
.hqm-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  padding-left: 4px;
  height: 100%;
  overflow: visible;
  position: relative;
  z-index: 4;
}

/* Alineación del menú (Elementor → Estilo) */
.hqm-header--nav-start .hqm-nav { justify-content: flex-start; }
.hqm-header--nav-center .hqm-nav { justify-content: center; }
.hqm-header--nav-end .hqm-nav { justify-content: flex-end; }

/* Centro óptico: logo | menú centrado | acciones */
.hqm-header--nav-center .hqm-header__inner {
  grid-template-columns: 1fr auto 1fr;
}
.hqm-header--nav-center .hqm-logo {
  justify-self: start;
}
.hqm-header--nav-center .hqm-nav {
  justify-self: center;
  padding-left: 0;
}
.hqm-header--nav-center .hqm-actions {
  justify-self: end;
}
.hqm-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(4px, 1vw, 18px);
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}
.hqm-nav__item {
  position: relative;
  flex: 0 0 auto;
}

.hqm-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 clamp(2px, .5vw, 6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--hqm-muted);
  transition: color .2s ease;
  white-space: nowrap;
}
.hqm-nav__link > i:not(.hqm-nav__caret),
.hqm-nav__link > .hqm-ico { display: none !important; }

/* Raya inferior: hover + página activa */
.hqm-nav__link::after {
  content: "";
  position: absolute;
  left: clamp(2px, .5vw, 6px);
  right: clamp(2px, .5vw, 6px);
  bottom: 8px;
  height: 2px;
  background: var(--hqm-logo-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
  pointer-events: none;
}
.hqm-nav__item:hover > .hqm-nav__link::after,
.hqm-nav__item.is-current > .hqm-nav__link::after,
.hqm-nav__link.is-active::after,
.hqm-nav__link:focus-visible::after {
  transform: scaleX(1);
}
/* Refuerzo por si el tema anula color */
.hqm-nav > .hqm-nav__list > .hqm-nav__item.is-current > .hqm-nav__link,
.hqm-nav > .hqm-nav__list > .hqm-nav__item.is-current > .hqm-nav__row > .hqm-nav__link,
.hqm-nav > .hqm-nav__list > .hqm-nav__item > .hqm-nav__link.is-active,
.hqm-nav > .hqm-nav__list > .hqm-nav__item > .hqm-nav__row > .hqm-nav__link.is-active {
  color: var(--hqm-logo-gold) !important;
}

.hqm-nav__row {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.hqm-nav__row > .hqm-nav__link {
  flex: 1 1 auto;
  min-width: 0;
}
.hqm-nav__toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.hqm-nav__caret {
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
  transition: transform .2s ease, opacity .2s ease;
  flex: 0 0 auto;
}

.hqm-nav__item:hover > .hqm-nav__link,
.hqm-nav__item:hover > .hqm-nav__row > .hqm-nav__link,
.hqm-nav__link:focus-visible {
  color: var(--hqm-text);
  outline: none;
}
.hqm-nav__item.is-current > .hqm-nav__link,
.hqm-nav__item.is-current > .hqm-nav__row > .hqm-nav__link,
.hqm-nav__link.is-active {
  color: var(--hqm-logo-gold);
}
.hqm-nav__item:hover .hqm-nav__caret,
.hqm-nav__item.is-open .hqm-nav__caret {
  opacity: .9;
  transform: rotate(225deg) translateY(-1px);
}

/* Submenú: sin raya; resalta item activo del dropdown */
.hqm-nav__sub .hqm-nav__link::after { display: none; }
.hqm-nav__sub .hqm-nav__item.is-current > .hqm-nav__link,
.hqm-nav__sub .hqm-nav__link.is-active {
  color: var(--hqm-logo-gold);
  background: rgba(193, 155, 103, .1);
}

/* Dropdown — panel vertical completo (no linea cortada) */
.hqm-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px);
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none !important;
  border: 1px solid rgba(193, 155, 103, .35);
  background: #0c181f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 10060;
}
/* Desktop: solo hover/focus — no usar is-open aquí (pegaba el dropdown en Nosotros) */
.hqm-nav > .hqm-nav__list > .hqm-nav__item:hover > .hqm-nav__sub,
.hqm-nav > .hqm-nav__list > .hqm-nav__item:focus-within > .hqm-nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
/* En desktop el toggle móvil no se usa */
.hqm-nav .hqm-nav__toggle { display: none; }
.hqm-nav__sub .hqm-nav__item {
  display: block;
  width: 100%;
}
.hqm-nav__sub .hqm-nav__link {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  text-transform: none;
  letter-spacing: .3px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none !important;
  color: rgba(255, 255, 255, .85);
}
.hqm-nav__sub .hqm-nav__link:hover,
.hqm-nav__sub .hqm-nav__link:focus-visible {
  color: var(--hqm-logo-gold);
  background: rgba(193, 155, 103, .1);
  box-shadow: none !important;
}

/* Actions — columna fija; nunca la tapa el nav */
.hqm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-left: 16px;
  margin-left: 4px;
  border-left: 1px solid rgba(193, 155, 103, .28);
  position: relative;
  z-index: 5;
  background: var(--hqm-menu);
  flex: 0 0 auto;
  flex-shrink: 0;
  height: var(--hqm-ctrl);
  min-width: max-content;
}
.hqm-header.is-stuck .hqm-actions {
  background: rgba(12, 24, 31, .985);
}

.hqm-actions__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--hqm-ctrl);
  min-height: var(--hqm-ctrl);
  padding: 0 16px;
  border: 1px solid rgba(193, 155, 103, .38);
  color: rgba(255, 255, 255, .82);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: .22s ease;
  white-space: nowrap;
  line-height: 1;
  background: rgba(255, 255, 255, .02);
}
.hqm-actions__login svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--hqm-logo-gold);
}
.hqm-actions__login:hover,
.hqm-actions__login:focus-visible,
.hqm-actions__login.is-auth {
  color: #fff;
  border-color: var(--hqm-logo-gold);
  background: rgba(193, 155, 103, .1);
  outline: none;
}
.hqm-actions__login.is-auth { color: var(--hqm-gold-soft); }

.hqm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--hqm-ctrl);
  min-height: var(--hqm-ctrl);
  padding: 0 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: .22s ease;
  white-space: nowrap;
  line-height: 1;
  border-radius: 0;
  border: 1px solid transparent;
}
.hqm-btn__short { display: none; }
.hqm-btn--gold {
  background: linear-gradient(180deg, #d4af74 0%, var(--hqm-logo-gold) 52%, #a88452 100%);
  color: #0c181f !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 8px 22px rgba(193, 155, 103, .2);
}
.hqm-btn--gold:hover,
.hqm-btn--gold:focus-visible {
  background: linear-gradient(180deg, #e0c08a 0%, #d4af74 55%, var(--hqm-logo-gold) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 10px 26px rgba(193, 155, 103, .3);
  outline: none;
}
.hqm-btn--ghost {
  border: 1px solid rgba(193, 155, 103, .45);
  color: #fff;
  background: rgba(255, 255, 255, .02);
}
.hqm-btn--ghost:hover,
.hqm-btn--ghost:focus-visible {
  border-color: var(--hqm-logo-gold);
  color: var(--hqm-gold-soft);
  background: rgba(193, 155, 103, .1);
  outline: none;
}

/* WhatsApp drawer — mismo lenguaje dorado premium */
.hqm-btn--wa {
  background: linear-gradient(180deg, rgba(193, 155, 103, .22), rgba(193, 155, 103, .08));
  border: 1px solid rgba(193, 155, 103, .55);
  color: var(--hqm-gold-soft) !important;
}
.hqm-btn--wa:hover,
.hqm-btn--wa:focus-visible {
  background: linear-gradient(180deg, var(--hqm-logo-gold), #a88452);
  border-color: var(--hqm-logo-gold);
  color: #0c181f !important;
  outline: none;
}

/* Burger — misma caja que el CTA, animación a X */
.hqm-burger {
  display: none;
  width: var(--hqm-ctrl);
  height: var(--hqm-ctrl);
  min-width: var(--hqm-ctrl);
  min-height: var(--hqm-ctrl);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(193, 155, 103, .4);
  background: rgba(193, 155, 103, .06);
  flex-shrink: 0;
  line-height: 0;
  vertical-align: middle;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.hqm-burger:hover,
.hqm-burger:focus-visible {
  border-color: var(--hqm-logo-gold);
  background: rgba(193, 155, 103, .14);
  outline: none;
}
.hqm-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--hqm-gold-soft);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, width .25s ease;
  flex: 0 0 auto;
  transform-origin: center;
}
.hqm-burger[aria-expanded="true"] {
  border-color: var(--hqm-logo-gold);
  background: rgba(193, 155, 103, .16);
}
.hqm-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hqm-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hqm-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Drawer — overlay + panel con transición suave */
.hqm-drawer[hidden] { display: none !important; }
.hqm-drawer {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .32s ease,
    visibility .32s ease,
    background .32s ease,
    backdrop-filter .32s ease,
    -webkit-backdrop-filter .32s ease;
}
.hqm-drawer.is-open,
.hqm-drawer.is-closing {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
}
.hqm-drawer.is-open {
  opacity: 1;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.hqm-drawer.is-closing {
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}
.hqm-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100%;
  height: 100dvh;
  background: linear-gradient(180deg, #12202a 0%, var(--hqm-ink) 40%);
  border-left: 1px solid rgba(193, 155, 103, .28);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: auto;
  transform: translateX(104%);
  opacity: .85;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .35);
  transition:
    transform .38s cubic-bezier(.22, 1, .36, 1),
    opacity .3s ease;
}
.hqm-drawer.is-open .hqm-drawer__panel {
  transform: translateX(0);
  opacity: 1;
}
.hqm-drawer.is-closing .hqm-drawer__panel {
  transform: translateX(104%);
  opacity: .7;
}
.hqm-drawer.is-open .hqm-drawer__nav .hqm-nav__item,
.hqm-drawer.is-open .hqm-drawer__lang,
.hqm-drawer.is-open .hqm-drawer__contact,
.hqm-drawer.is-open .hqm-drawer__social,
.hqm-drawer.is-open .hqm-drawer__ctas {
  animation: hqm-fade-up .42s cubic-bezier(.22, 1, .36, 1) both;
}
.hqm-drawer.is-open .hqm-drawer__nav .hqm-nav__item:nth-child(1) { animation-delay: .06s; }
.hqm-drawer.is-open .hqm-drawer__nav .hqm-nav__item:nth-child(2) { animation-delay: .1s; }
.hqm-drawer.is-open .hqm-drawer__nav .hqm-nav__item:nth-child(3) { animation-delay: .14s; }
.hqm-drawer.is-open .hqm-drawer__nav .hqm-nav__item:nth-child(4) { animation-delay: .18s; }
.hqm-drawer.is-open .hqm-drawer__lang { animation-delay: .22s; }
.hqm-drawer.is-open .hqm-drawer__contact { animation-delay: .26s; }
.hqm-drawer.is-open .hqm-drawer__social { animation-delay: .3s; }
.hqm-drawer.is-open .hqm-drawer__ctas { animation-delay: .34s; }
@keyframes hqm-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hqm-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(193, 155, 103, .22);
}
.hqm-drawer__top picture {
  display: block;
  line-height: 0;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(148px, 58vw);
}
.hqm-drawer__logo,
.hqm-drawer__top img.hqm-drawer__logo,
.hqm-drawer__top picture .hqm-drawer__logo {
  height: 32px !important;
  width: auto !important;
  max-width: min(148px, 58vw) !important;
  max-height: 32px !important;
  object-fit: contain;
}
.hqm-drawer__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(193, 155, 103, .4);
  background: rgba(193, 155, 103, .06);
  color: var(--hqm-gold-soft);
  flex-shrink: 0;
  transition: border-color .22s ease, background .22s ease, color .22s ease, transform .22s ease;
}
.hqm-drawer__close svg {
  width: 18px;
  height: 18px;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.hqm-drawer__close:hover,
.hqm-drawer__close:focus-visible {
  border-color: var(--hqm-logo-gold);
  background: rgba(193, 155, 103, .16);
  color: #fff;
  outline: none;
}
.hqm-drawer__close:hover svg,
.hqm-drawer__close:focus-visible svg {
  transform: rotate(90deg);
}
.hqm-drawer__nav .hqm-nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.hqm-drawer__nav .hqm-nav__row {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hqm-drawer__nav .hqm-nav__caret--desktop { display: none; }
.hqm-drawer__nav .hqm-nav__toggle {
  display: inline-flex;
  color: var(--hqm-gold-soft);
}
.hqm-drawer__nav .hqm-nav__item.is-open > .hqm-nav__row .hqm-nav__toggle .hqm-nav__caret {
  opacity: .9;
  transform: rotate(225deg) translateY(-1px);
}
.hqm-drawer__nav .hqm-nav__link {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0 4px;
  justify-content: flex-start;
  letter-spacing: 1.3px;
  border-bottom: 0;
  box-shadow: none !important;
  color: rgba(255, 255, 255, .78);
}
.hqm-drawer__nav .hqm-nav__item:not(.has-children) > .hqm-nav__link {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
/* Raya inferior activa en drawer (igual que desktop) */
.hqm-drawer__nav .hqm-nav__link::after {
  display: block;
  left: 4px;
  right: 4px;
  bottom: 6px;
  height: 2px;
  background: var(--hqm-logo-gold);
  transform: scaleX(0);
}
.hqm-drawer__nav .hqm-nav__item.is-current > .hqm-nav__link::after,
.hqm-drawer__nav .hqm-nav__item.is-current > .hqm-nav__row > .hqm-nav__link::after,
.hqm-drawer__nav .hqm-nav__link.is-active::after {
  transform: scaleX(1);
}
.hqm-drawer__nav .hqm-nav__item.is-current > .hqm-nav__link,
.hqm-drawer__nav .hqm-nav__item.is-current > .hqm-nav__row > .hqm-nav__link,
.hqm-drawer__nav .hqm-nav__link.is-active {
  color: var(--hqm-logo-gold) !important;
}
.hqm-drawer__nav .hqm-nav__sub .hqm-nav__link::after {
  display: none;
}
.hqm-drawer__nav .hqm-nav__sub .hqm-nav__item.is-current > .hqm-nav__link,
.hqm-drawer__nav .hqm-nav__sub .hqm-nav__link.is-active {
  color: var(--hqm-logo-gold) !important;
  background: rgba(193, 155, 103, .1);
}
.hqm-drawer__nav .hqm-nav__sub {
  position: static;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  box-shadow: none;
  background: transparent;
  border: 0;
  padding: 0 0 8px 12px;
  display: none;
  min-width: 0;
}
.hqm-drawer__nav .hqm-nav__item.is-open > .hqm-nav__sub { display: block; }
.hqm-drawer__nav .hqm-nav__sub .hqm-nav__link {
  min-height: 46px;
  text-transform: none;
  letter-spacing: .2px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 0;
  color: var(--hqm-muted);
}

.hqm-drawer__label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hqm-logo-gold);
}
.hqm-drawer__contact {
  padding: 16px 0 4px;
  border-top: 1px solid rgba(193, 155, 103, .22);
}
.hqm-drawer__social {
  padding: 8px 0 4px;
}
.hqm-drawer__contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--hqm-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease;
}
.hqm-drawer__contact-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: var(--hqm-logo-gold);
  fill: none;
}
.hqm-drawer__contact-link:hover,
.hqm-drawer__contact-link:focus-visible {
  color: #fff;
  outline: none;
}
.hqm-drawer__ctas {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(193, 155, 103, .18);
}
.hqm-drawer__ctas .hqm-btn {
  width: 100%;
  height: 48px;
  min-height: 48px;
}
.hqm-drawer__ctas .hqm-btn__short { display: none; }
.hqm-drawer__ctas .hqm-btn__full { display: inline; }

/* Variantes */
.hqm-header--crystal .hqm-header__bar {
  background: transparent;
  border-bottom-color: transparent;
}
.hqm-header--crystal .hqm-actions { background: transparent; }
.hqm-header--crystal.is-stuck .hqm-header__bar,
.hqm-header--crystal.is-stuck .hqm-actions {
  background: rgba(15, 28, 38, .96);
}
.hqm-header--noir .hqm-header__bar,
.hqm-header--editorial .hqm-header__bar,
.hqm-header--split .hqm-header__bar {
  background: var(--hqm-menu);
}
.hqm-header--split .hqm-nav { justify-content: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .hqm-topline__link span { display: none; }
  .hqm-nav__list { gap: 2px; }
  .hqm-nav__link { letter-spacing: .8px; padding: 0 4px; font-size: 10.5px; }
  .hqm-logo img,
  .hqm-logo__img { height: 68px; max-width: min(280px, 46vw); }
  .hqm-header__inner { column-gap: 14px; }
  .hqm-actions__login span { display: none; }
  .hqm-actions__login { width: var(--hqm-ctrl); padding: 0; }
}

@media (max-width: 1200px) {
  .hqm-btn__full { display: none; }
  .hqm-btn__short { display: inline; }
  .hqm-btn--gold { padding: 0 12px; min-width: 96px; }
}

/* Laptop / tablet: drawer — evita choque con menús largos */
@media (max-width: 1100px) {
  .hqm-header {
    --hqm-bar-h: 84px;
    --hqm-ctrl: 44px;
  }
  .hqm-header.is-shrink-ready.is-stuck { --hqm-bar-h: 74px; }

  .hqm-topline { display: none; }
  .hqm-nav { display: none; }
  .hqm-actions__login { display: none; }

  .hqm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 12px;
    padding: 0 16px;
  }

  .hqm-logo {
    padding-right: 0;
    flex: 0 1 auto;
    min-width: 0;
  }
  .hqm-logo img,
  .hqm-logo__img {
    height: 56px;
    max-width: min(240px, 50vw);
  }

  .hqm-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    border-left: 0;
    padding: 0;
    margin: 0;
    gap: 8px;
    height: var(--hqm-ctrl);
    min-height: var(--hqm-ctrl);
    background: transparent !important;
  }

  .hqm-lang--actions {
    display: inline-flex;
    align-items: center;
    height: var(--hqm-ctrl);
    padding: 0 8px 0 0;
    margin: 0;
    border-right: 1px solid rgba(193, 155, 103, .3);
  }
  .hqm-lang--actions .hqm-lang__icon { display: none; }
  .hqm-lang--actions .hqm-lang__list { gap: 4px; }
  .hqm-lang--actions .hqm-lang__btn {
    height: 32px;
    min-width: 28px;
    padding: 0 5px;
    font-size: 10.5px;
  }
  .hqm-lang--actions .hqm-lang__sep { font-size: 10px; }

  .hqm-btn--gold,
  .hqm-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--hqm-ctrl);
    min-height: var(--hqm-ctrl);
    max-height: var(--hqm-ctrl);
    margin: 0;
    align-self: center;
  }

  .hqm-btn--gold {
    padding: 0 12px;
    min-width: 92px;
    font-size: 10px;
    letter-spacing: 1.1px;
    box-shadow: none;
  }

  .hqm-burger {
    width: var(--hqm-ctrl);
    min-width: var(--hqm-ctrl);
  }
}

/* Móvil estrecho: idioma solo en drawer (más respiro) */
@media (max-width: 520px) {
  .hqm-header {
    --hqm-bar-h: 74px;
    --hqm-ctrl: 42px;
  }
  .hqm-header.is-shrink-ready.is-stuck { --hqm-bar-h: 66px; }

  .hqm-header__inner { padding: 0 12px; column-gap: 8px; }
  .hqm-logo img,
  .hqm-logo__img {
    height: 50px;
    max-width: min(210px, 52vw);
  }

  .hqm-lang--actions { display: none; }

  .hqm-actions { gap: 8px; }

  .hqm-btn--gold {
    padding: 0 10px;
    min-width: 0;
    font-size: 9.5px;
    letter-spacing: .9px;
  }

  .hqm-drawer__panel { width: 100vw; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hqm-header *,
  .hqm-header *::before,
  .hqm-header *::after,
  .hqm-drawer,
  .hqm-drawer__panel,
  .hqm-burger span,
  .hqm-drawer__close svg {
    animation: none !important;
    transition: none !important;
  }
  .hqm-drawer.is-open .hqm-drawer__panel {
    transform: none;
  }
}
