/**
 * GEN BE HEALTH — Design Tokens (frontend público/compra).
 * Origen: Doc214 (Taskmaster Task 3) · coordinado con gbh-brand-guidelines.
 * Base de variables. NO construye UI; solo define el sistema.
 */

:root {
  /* ---- Color: primarios / acentos ---- */
  --gbh-color-navy: #142A47;            /* texto / marca / estructura */
  --gbh-color-purple-cta: #8A2D92;      /* CTA / acento principal */
  --gbh-color-turquoise-accent: #00C6B4;/* señal / dato positivo (no texto sobre blanco) */
  --gbh-color-magenta-accent: #E10ECD;  /* señal puntual mínima */

  /* ---- Color: neutros / superficies ---- */
  --gbh-color-ink: #0A0A14;
  --gbh-color-white: #FFFFFF;
  --gbh-surface-1: #F6F7FA;
  --gbh-surface-2: #F1F4F9;
  --gbh-color-border: #D2D7E0;
  --gbh-color-divider: #E2E8F0;
  --gbh-color-muted: #5A6478;

  /* ---- Color: estados ---- */
  --gbh-success: #1A8F6B;
  --gbh-warning: #C98A14;
  --gbh-error: #C8364A;
  --gbh-info: #2F6BBF;

  /* ---- Tipografía ---- */
  --gbh-font-primary: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --gbh-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- Spacing (base 8px) ---- */
  --gbh-space-4: 4px;
  --gbh-space-8: 8px;
  --gbh-space-12: 12px;
  --gbh-space-16: 16px;
  --gbh-space-24: 24px;
  --gbh-space-32: 32px;
  --gbh-space-48: 48px;
  --gbh-space-64: 64px;
  --gbh-space-96: 96px;
  --gbh-container-max: 1200px;
  --gbh-section-pad-desktop: 80px;
  --gbh-section-pad-mobile: 40px;

  /* ---- Radius ---- */
  --gbh-radius-card: 18px;
  --gbh-radius-button: 14px;   /* no pill */
  --gbh-radius-input: 12px;
  --gbh-radius-modal: 22px;
  --gbh-radius-badge: 999px;   /* solo chips/badges */

  /* ---- Shadows ---- */
  --gbh-shadow-card: 0 4px 20px rgba(20, 42, 71, 0.06);
  --gbh-shadow-hover: 0 8px 28px rgba(20, 42, 71, 0.10);
  --gbh-shadow-panel: 0 12px 32px rgba(20, 42, 71, 0.12);

  /* ---- Borders ---- */
  --gbh-border-width: 1px;

  /* ---- Focus / accesibilidad ---- */
  --gbh-focus-ring: 0 0 0 3px rgba(0, 198, 180, 0.45); /* turquesa */

  /* ---- Breakpoints (referencia para CSS/Elementor) ---- */
  --gbh-bp-mobile: 360px;
  --gbh-bp-tablet: 768px;
  --gbh-bp-desktop: 1024px;
  --gbh-bp-wide: 1440px;
}

/* Foco visible base (accesibilidad). */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gbh-color-turquoise-accent);
  outline-offset: 2px;
}

/* ---- Top-bar de utilidad (webapp): franja sutil con redes + Agendar cita ---- */
.gbh-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E9EDF3;
  font-family: var(--gbh-font-primary);
  padding: 0 28px; /* = padding lateral del contenedor del header (alineación de márgenes) */
}
.gbh-topbar__in {
  max-width: 1140px; /* = ancho de contenido del header (logo↔CTA al ras) */
  margin: 0 auto;
  padding: 7px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gbh-topbar__social { display: inline-flex; align-items: center; gap: 14px; }
.gbh-topbar__social a { color: var(--gbh-color-muted); display: inline-flex; line-height: 0; transition: color .15s ease, transform .15s ease; }
.gbh-topbar__social a svg { width: 16px; height: 16px; display: block; }
.gbh-topbar__social a:hover { color: var(--gbh-color-purple-cta); transform: translateY(-1px); }
.gbh-topbar__book { display: inline-flex; align-items: center; gap: 7px; color: var(--gbh-color-navy); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .15s ease; }
.gbh-topbar__book svg { width: 16px; height: 16px; }
.gbh-topbar__book:hover { color: var(--gbh-color-purple-cta); }
@media (max-width: 767px) {
  .gbh-topbar__in { padding: 6px 0; gap: 10px; }
  .gbh-topbar__social { gap: 12px; }
  .gbh-topbar__book { font-size: 12.5px; }
}
/* Desktop: alinear "Agendar cita" al borde visible del botón "Quiero mi Kit"
   (el pill queda ~10px dentro del borde del contenedor del header). */
@media (min-width: 1025px) {
  .gbh-topbar__book { margin-right: 10px; }
}

/* Respeto a prefers-reduced-motion (baseline). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- GBH Footer v2: forzar layout de columnas (fallback al ancho de columna de Elementor
   que no se aplica en este entorno; las columnas caían a 100% y se apilaban). --- */
.elementor-location-footer .elementor-top-section > .elementor-container,
.elementor-location-footer .elementor-inner-section > .elementor-container {
  flex-wrap: nowrap;
  align-items: flex-start;
}
.elementor-location-footer .elementor-col-40 { width: 40%; flex: 0 0 40%; max-width: 40%; }
.elementor-location-footer .elementor-col-60 { width: 60%; flex: 0 0 60%; max-width: 60%; }
.elementor-location-footer .elementor-inner-section .elementor-col-33 { width: 33.333%; flex: 0 0 33.333%; max-width: 33.333%; }
.elementor-location-footer .elementor-inner-section .elementor-col-34 { width: 33.334%; flex: 0 0 33.334%; max-width: 33.334%; }
@media (max-width: 767px) {
  .elementor-location-footer .elementor-top-section > .elementor-container,
  .elementor-location-footer .elementor-inner-section > .elementor-container {
    flex-wrap: wrap;
  }
  .elementor-location-footer .elementor-col-40,
  .elementor-location-footer .elementor-col-60,
  .elementor-location-footer .elementor-inner-section .elementor-col-33,
  .elementor-location-footer .elementor-inner-section .elementor-col-34 {
    width: 100%; flex-basis: 100%; max-width: 100%;
  }
}

/* ===================================================================
   GBH Footer webapp navy (app-shell). Solo CSS, scope footer.
   Spec: 2026-07-08-footer-webapp-navy-design.md
   =================================================================== */
/* Lienzo navy + esquinas superiores redondeadas */
.elementor-location-footer {
  background: var(--gbh-color-navy, #142A47);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
}
/* Secciones internas transparentes (heredan el navy del lienzo).
   !important porque Elementor pinta background-color blanco per-section con más especificidad */
.elementor-location-footer .elementor-section,
.elementor-location-footer .e-con,
.elementor-location-footer .elementor-top-section,
.elementor-location-footer .elementor-inner-section { background: transparent !important; }

/* Tipografía: headings blancos, texto atenuado.
   !important porque Elementor inyecta color per-widget (.elementor-element-{id}) después de tokens.css */
.elementor-location-footer .elementor-heading-title { color: #FFFFFF !important; }
/* !important: Elementor pinta el color per-widget (#5A6478) con más especificidad → forzar
   blanco 0.82 para contraste AA sobre el footer navy (a11y, Lighthouse). */
.elementor-location-footer .elementor-widget-text-editor,
.elementor-location-footer .elementor-widget-text-editor p,
.elementor-location-footer .elementor-icon-list-text { color: rgba(255, 255, 255, 0.82) !important; }

/* Links (icon-list Explora/Legal + enlaces de texto): hover turquesa */
.elementor-location-footer .elementor-icon-list-item a,
.elementor-location-footer .elementor-widget-text-editor a {
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.elementor-location-footer .elementor-icon-list-item a:hover,
.elementor-location-footer .elementor-icon-list-item a:focus-visible,
.elementor-location-footer .elementor-widget-text-editor a:hover {
  color: var(--gbh-color-turquoise, #00C6B4);
}
/* Área táctil cómoda en links de lista */
.elementor-location-footer .elementor-icon-list-item { min-height: 32px; }
.elementor-location-footer .elementor-icon-list-item a { display: inline-flex; align-items: center; min-height: 32px; }

/* Barrita de acento SOLO bajo los headings de columna (van dentro de inner-section;
   el heading de marca "GEN BE HEALTH" está en la columna externa y no la recibe) */
.elementor-location-footer .elementor-inner-section .elementor-widget-heading .elementor-heading-title {
  position: relative; padding-bottom: 10px;
}
.elementor-location-footer .elementor-inner-section .elementor-widget-heading .elementor-heading-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gbh-color-turquoise, #00C6B4), var(--gbh-color-purple, #8A2D92));
}

/* Social como chips circulares */
.elementor-location-footer .elementor-social-icon {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.elementor-location-footer .elementor-social-icon i,
.elementor-location-footer .elementor-social-icon svg { color: #FFFFFF; fill: #FFFFFF; }
.elementor-location-footer .elementor-social-icon:hover {
  background: var(--gbh-color-purple, #8A2D92);
  border-color: var(--gbh-color-purple, #8A2D92);
  transform: translateY(-2px);
}
/* WhatsApp del footer: hover al morado de marca como el resto (antes turquesa). */

/* Métodos de pago (fallback pre-enhancement): los span de texto como chips legibles
   sobre navy. Excluye .gbh-pay-tile (los tiles con logos que inyecta gbh-footer.js) */
.elementor-location-footer .elementor-inner-section .elementor-widget-text-editor span:not(.gbh-pay-tile) {
  background: rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 8px;
  padding: 6px 12px !important;
  margin: 0 6px 6px 0;
  display: inline-block;
}

/* Barra inferior: separador translúcido + © atenuado */
.elementor-location-footer .elementor-top-section:last-child { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.elementor-location-footer .elementor-top-section:last-child .elementor-widget-text-editor,
.elementor-location-footer .elementor-top-section:last-child .elementor-widget-text-editor p {
  color: rgba(255, 255, 255, 0.62);
}

/* Clearance del bottom-nav: body.gbh-has-bottomnav YA reserva ~58px para la barra fija,
   así que el footer solo necesita un colchón pequeño (evitar doble aire abajo). */
@media (max-width: 1024px) {
  .elementor-location-footer { padding-bottom: 4px; }
}

/* Motion: reveal por scroll SOLO con soporte y sin reduced-motion (sin JS) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .elementor-location-footer .elementor-widget-heading,
    .elementor-location-footer .elementor-widget-social-icons,
    .elementor-location-footer .elementor-widget-icon-list,
    .elementor-location-footer .elementor-widget-text-editor {
      animation: gbhFooterReveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    @keyframes gbhFooterReveal {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ===================================================================
   GBH Footer iteración 2 (gbh-footer.js): logo SVG, tiles de pago,
   contacto rápido, fix de espaciado. Spec: footer-webapp-navy-design §it.2
   =================================================================== */
/* Texto solo para lectores de pantalla (conserva nombre de marca sin verlo) */
.gbh-sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Logo SVG de marca (reemplaza el texto del heading) */
.elementor-location-footer .gbh-footer-logo { line-height: 0; margin-bottom: 18px; }
.elementor-location-footer .gbh-footer-logo::after { display: none; } /* sin barrita de acento en la marca */
.elementor-location-footer .gbh-footer-logo svg { height: 42px; width: auto; max-width: 230px; display: block; }

/* Espaciado: separar la columna de marca de las de navegación (anchos medios) */
@media (min-width: 768px) {
  .elementor-location-footer .elementor-col-40 { padding-right: 48px; }
}

/* Métodos de pago: tiles blancos con logos a color */
.elementor-location-footer .gbh-pay-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px;
}
.elementor-location-footer .gbh-pay-tile {
  border-radius: 6px; padding: 0; overflow: hidden; line-height: 0;
  display: inline-flex; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}
.elementor-location-footer .gbh-pay-tile svg { height: 30px; width: auto; display: block; }

/* Alineación con el header: el footer usaba contenedor de 1200px y el header 1140px
   (bordes 150/1290 en 1440). Constreñir a 1140 centrado para alinear ambos bloques.
   !important porque Elementor fija el ancho per-section (.elementor-element-{id}). */
.elementor-location-footer .elementor-top-section > .elementor-container {
  max-width: 1140px !important; margin-left: auto !important; margin-right: auto !important;
}

/* Reducir aire de la zona del © en todos los breakpoints (menos padding en la sección
   principal-abajo y en la barra de copyright arriba/abajo) */
.elementor-location-footer .elementor-top-section:not(:last-child) { padding-bottom: 10px !important; }
.elementor-location-footer .elementor-top-section:last-child { padding-top: 8px !important; padding-bottom: 2px !important; }
/* El párrafo del © trae margin-bottom por defecto (~14px) → quitarlo (todos los breakpoints) */
.elementor-location-footer .elementor-top-section:last-child .elementor-widget-text-editor p { margin-bottom: 0 !important; }

/* Mejora mobile del footer: marca centrada + Explora|Legal en 2 columnas + Métodos a lo ancho */
@media (max-width: 767px) {
  .elementor-location-footer .elementor-col-40 { text-align: center; padding-right: 0; margin-bottom: 34px; }
  .elementor-location-footer .gbh-footer-logo { margin-bottom: 14px; }
  /* Más aire entre las redes y los grupos de links */
  .elementor-location-footer .elementor-col-40 .elementor-widget-social-icons { margin-bottom: 6px; }
  .elementor-location-footer .gbh-footer-logo svg { margin-left: auto; margin-right: auto; }
  .elementor-location-footer .elementor-col-40 .elementor-widget-text-editor { text-align: center; }
  .elementor-location-footer .elementor-col-40 .elementor-social-icons-wrapper { justify-content: center; }
  /* Grupos de links: Explora | Legal en fila; Métodos de Pago a todo el ancho */
  .elementor-location-footer .elementor-inner-section > .elementor-container { flex-wrap: wrap; }
  .elementor-location-footer .elementor-inner-section .elementor-column {
    width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important;
    text-align: center; margin-bottom: 22px;
  }
  .elementor-location-footer .elementor-inner-section .elementor-column:last-child {
    width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important;
  }
  /* Barras de acento centradas bajo los headings centrados */
  .elementor-location-footer .elementor-inner-section .elementor-widget-heading .elementor-heading-title::after {
    left: 50%; transform: translateX(-50%);
  }
  /* Tiles de pago centrados */
  .elementor-location-footer .gbh-pay-row { justify-content: center; }
  /* Links de las listas (Explora/Legal) centrados: los items son flex → justify-content */
  .elementor-location-footer .elementor-inner-section .elementor-icon-list-items { align-items: center; }
  .elementor-location-footer .elementor-inner-section .elementor-icon-list-item { justify-content: center; }
  .elementor-location-footer .elementor-inner-section .elementor-icon-list-item a { justify-content: center; }
}

/* --- GBH Scrollbar en morado de marca --- */
html { scrollbar-color: var(--gbh-color-purple-cta) rgba(20, 42, 71, 0.06); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(20, 42, 71, 0.06); }
::-webkit-scrollbar-thumb {
  background: var(--gbh-color-purple-cta); border-radius: 8px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #7A2782; }

/* --- GBH Header sticky: sombra sutil al fijarse --- */
[data-elementor-type="header"] .elementor-sticky--active { transition: box-shadow 0.2s ease; }
[data-elementor-type="header"] .elementor-sticky--effects { box-shadow: 0 2px 16px rgba(20, 42, 71, 0.08); }

/* Header menu-cart: mostrar solo icono + contador (ocultar subtotal y label) */
[data-elementor-type="header"] .elementor-menu-cart__toggle .elementor-button-text { display: none; }
[data-elementor-type="header"] .elementor-menu-cart__toggle .elementor-button { padding-left: 0; padding-right: 0; background: transparent; }

/* Header cluster derecho: no colapsar ni solapar (fallback flex Elementor) */
[data-elementor-type="header"] .elementor-element-hdrright1 { flex-shrink: 0 !important; flex-grow: 0 !important; }
[data-elementor-type="header"] .elementor-element-hdrright1 > .elementor-widget { flex-shrink: 0; width: auto; }
[data-elementor-type="header"] .elementor-element-hdrright1 .elementor-button { white-space: nowrap; }
[data-elementor-type="header"] .elementor-element-hdrright1 .elementor-widget-button:not(.elementor-widget-woocommerce-menu-cart) .elementor-button { border: 0; box-shadow: none; }
/* Carrito: ocultar el badge cuando está en 0 (look limpio de la referencia) */
[data-elementor-type="header"] .elementor-button-icon-qty[data-counter="0"] { display: none !important; }

/* Header layout robusto: el sizing de hijos de containers Elementor no es fiable en este
   entorno (cluster derecho tomaba 100% y aplastaba logo+nav a 0). Forzamos la fila. */
[data-elementor-type="header"] .elementor-element-hdrwrap1 > .e-con-inner {
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
  align-items: center !important; justify-content: space-between !important; gap: 28px !important;
}
[data-elementor-type="header"] .elementor-element-hdrlogo1 { flex: 0 0 auto !important; width: auto !important; }
[data-elementor-type="header"] .elementor-element-hdrlogo1 img { width: 172px !important; height: auto !important; max-width: 172px !important; }
[data-elementor-type="header"] .elementor-element-hdrnav001 { flex: 0 1 auto !important; width: auto !important; }
[data-elementor-type="header"] .elementor-element-hdrnav001 .elementor-nav-menu { flex-wrap: nowrap !important; }
[data-elementor-type="header"] .elementor-element-hdrright1 { flex: 0 0 auto !important; width: auto !important; }
[data-elementor-type="header"] .elementor-element-hdrright1 > .e-con-inner {
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
  align-items: center !important; width: auto !important; gap: 22px !important;
}
@media (max-width: 1024px) {
  [data-elementor-type="header"] .elementor-element-hdrwrap1 > .e-con-inner { flex-wrap: wrap !important; }
}

/* Carrito: quitar borde/caja del toggle → solo icono limpio */
[data-elementor-type="header"] .elementor-menu-cart__toggle .elementor-button {
  border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 4px !important; min-width: 0 !important;
}
[data-elementor-type="header"] .elementor-menu-cart__toggle .elementor-button-icon { border: 0 !important; }
[data-elementor-type="header"] .elementor-menu-cart__toggle .elementor-button-icon svg,
[data-elementor-type="header"] .elementor-menu-cart__toggle .elementor-button-icon i { color: #142A47 !important; font-size: 22px !important; }

/* Dropdown del menú: hover claro con tinte de marca (no bloque oscuro) + estilo tarjeta */
[data-elementor-type="header"] .elementor-nav-menu .sub-menu,
[data-elementor-type="header"] .elementor-nav-menu--dropdown {
  border-radius: 12px !important; box-shadow: 0 12px 32px rgba(20, 42, 71, 0.12) !important;
  padding: 6px !important; border: 1px solid #EDF0F5 !important; margin-top: 8px !important;
}
[data-elementor-type="header"] .elementor-nav-menu .sub-menu .elementor-sub-item {
  color: #142A47 !important; border-radius: 8px !important; margin: 2px 0 !important;
  transition: background .15s ease, color .15s ease !important;
}
[data-elementor-type="header"] .elementor-nav-menu .sub-menu .elementor-sub-item:hover,
[data-elementor-type="header"] .elementor-nav-menu .sub-menu .elementor-sub-item.elementor-item-active {
  background: #F5EAF6 !important; color: #8A2D92 !important;
}

/* Menú MÓVIL (dropdown): hover/activo morado claro, sin bloque oscuro */
[data-elementor-type="header"] .elementor-nav-menu--dropdown .elementor-item,
[data-elementor-type="header"] .elementor-nav-menu--dropdown .elementor-sub-item {
  color: #142A47 !important; background-color: transparent !important; border-radius: 8px;
}
[data-elementor-type="header"] .elementor-nav-menu--dropdown .elementor-item:hover,
[data-elementor-type="header"] .elementor-nav-menu--dropdown .elementor-item.elementor-item-active,
[data-elementor-type="header"] .elementor-nav-menu--dropdown .elementor-sub-item:hover,
[data-elementor-type="header"] .elementor-nav-menu--dropdown .elementor-sub-item.elementor-item-active {
  background-color: #F5EAF6 !important; color: #8A2D92 !important;
}

/* --- Pulido verde --- */
/* Chevron rota 180° al abrir el dropdown */
[data-elementor-type="header"] .elementor-nav-menu .sub-arrow { transition: transform .2s ease; }
[data-elementor-type="header"] .elementor-nav-menu a[aria-expanded="true"] .sub-arrow,
[data-elementor-type="header"] .elementor-nav-menu li.menu-item:hover > a .sub-arrow { transform: rotate(180deg); }
/* CTA micro-lift */
[data-elementor-type="header"] .elementor-element-hdrcta001 .elementor-button { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
[data-elementor-type="header"] .elementor-element-hdrcta001 .elementor-button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(138, 45, 146, 0.35); }
/* Sticky shrink: al fijarse, logo y padding se reducen */
[data-elementor-type="header"] .elementor-element-hdrwrap1 > .e-con-inner { transition: padding .2s ease; }
[data-elementor-type="header"] .elementor-element-hdrlogo1 img { transition: width .2s ease; }
[data-elementor-type="header"] .elementor-sticky--effects.elementor-element-hdrwrap1 > .e-con-inner { padding-top: 4px !important; padding-bottom: 4px !important; }
[data-elementor-type="header"] .elementor-sticky--effects .elementor-element-hdrlogo1 img { width: 140px !important; }

/* --- Responsive tablet/móvil ≤1024: header en UNA fila limpia --- */
@media (max-width: 1024px) {
  [data-elementor-type="header"] .elementor-element-hdrwrap1 > .e-con-inner {
    flex-wrap: nowrap !important; gap: 10px !important; justify-content: space-between !important; align-items: center !important;
  }
  [data-elementor-type="header"] .elementor-element-hdrlogo1 { order: 1; flex: 0 0 auto !important; margin-right: auto !important; }
  [data-elementor-type="header"] .elementor-element-hdrright1 { order: 2; flex: 0 0 auto !important; gap: 12px !important; }
  [data-elementor-type="header"] .elementor-element-hdrnav001 { order: 3; flex: 0 0 auto !important; width: auto !important; }
  [data-elementor-type="header"] .elementor-element-hdrlogo1 img { width: 128px !important; max-width: 128px !important; }
  /* ocultar "Acceder" en móvil (queda dentro del menú/futuro); mantener carrito + CTA visibles */
  [data-elementor-type="header"] .elementor-element-hdracct1 { display: none !important; }
  [data-elementor-type="header"] .elementor-element-hdrcta001 .elementor-button { padding: 10px 16px !important; font-size: 13px !important; }
  /* --- Menú móvil como DRAWER lateral izquierdo (app-like) --- */
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown {
    position: fixed !important; top: 0 !important; left: 0 !important; right: auto !important; bottom: 0 !important;
    width: 84vw !important; max-width: 330px !important; height: 100vh !important; max-height: 100vh !important;
    transform: translateX(-100%); transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform;
    display: flex !important; flex-direction: column !important; overflow-y: auto !important; z-index: 100000 !important;
    background: linear-gradient(160deg, #142A47 0%, #2d1c4d 100%) !important;
    box-shadow: 6px 0 32px rgba(10, 15, 30, 0.35) !important;
    padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  }
  body.gbh-drawer-open [data-elementor-type="header"] nav.elementor-nav-menu--dropdown { transform: translateX(0); }
  /* Durante el swipe: el panel sigue al dedo 1:1 (sin transición). */
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown.gbh-dragging { transition: none !important; }
  /* Sacar el drawer del contexto de apilamiento del header sticky para que quede
     por ENCIMA del overlay (si no, el backdrop intercepta los toques del menú). */
  body.gbh-drawer-open [data-elementor-type="header"] .elementor-element-hdrwrap1 { position: relative !important; z-index: 100001 !important; }
  .gbh-drawer-overlay { position: fixed; inset: 0; background: rgba(20, 42, 71, 0.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 99999; }
  body.gbh-drawer-open .gbh-drawer-overlay { opacity: 1; pointer-events: auto; }
  body.gbh-drawer-open { overflow: hidden; }
  body.gbh-drawer-open [data-elementor-type="header"] .elementor-menu-toggle { position: relative; z-index: 100001; }
  /* Drawer oscuro: nav items en blanco, hover/activo MORADO (marca) */
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .elementor-item { color: #FFFFFF !important; font-size: 17px !important; padding: 14px 18px !important; margin: 2px 12px !important; border-radius: 12px !important; display: flex !important; align-items: center; position: relative; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .elementor-item:hover,
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .elementor-item.elementor-item-active { background: rgba(197, 125, 206, 0.16) !important; color: #C77DCE !important; box-shadow: inset 3px 0 0 #C77DCE; }
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .elementor-sub-item { color: rgba(255, 255, 255, 0.82) !important; }
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .elementor-sub-item:hover,
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .elementor-sub-item.elementor-item-active { background: rgba(197, 125, 206, 0.14) !important; color: #C77DCE !important; }
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .sub-arrow { color: #FFFFFF !important; }
  /* Iconos SVG por ítem del nav */
  [data-elementor-type="header"] .gbh-nav-ico { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; margin-right: 13px; flex-shrink: 0; color: rgba(255, 255, 255, 0.68); }
  [data-elementor-type="header"] .gbh-nav-ico svg { width: 21px; height: 21px; }
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .elementor-item:hover .gbh-nav-ico,
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .elementor-item.elementor-item-active .gbh-nav-ico { color: #C77DCE; }
  /* Iconos por submódulo (heredan el color del sub-item -> activo morado) */
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .elementor-sub-item { display: flex !important; align-items: center; }
  [data-elementor-type="header"] .gbh-subnav-ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 10px; flex-shrink: 0; opacity: .9; }
  [data-elementor-type="header"] .gbh-subnav-ico svg { width: 18px; height: 18px; }
  /* En el drawer móvil: solo icono + nombre (la descripción es para el mega-menú desktop) */
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .gbh-sub-text { display: inline-flex; flex-direction: column; }
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .gbh-sub-desc { display: none; }

  /* Header del drawer: logo + botón cerrar, con más aire hacia el menú */
  [data-elementor-type="header"] .gbh-drawer-brand { display: flex; align-items: center; justify-content: space-between; padding: 30px 22px 24px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
  [data-elementor-type="header"] .gbh-drawer-brand > a { display: block; line-height: 0; }
  [data-elementor-type="header"] .gbh-drawer-brand img { width: 150px; height: auto; display: block; }
  /* Botón cerrar (✕) */
  [data-elementor-type="header"] .gbh-drawer-close { appearance: none; -webkit-appearance: none; background: rgba(255, 255, 255, 0.12); border: 0; width: 46px; height: 46px; border-radius: 50%; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .18s ease, color .18s ease, transform .25s ease; }
  [data-elementor-type="header"] .gbh-drawer-close svg { width: 24px; height: 24px; }
  [data-elementor-type="header"] .gbh-drawer-close:hover { background: rgba(199, 125, 206, 0.30); transform: rotate(90deg); }
  [data-elementor-type="header"] .gbh-drawer-close:focus-visible { outline: 2px solid #C77DCE; outline-offset: 2px; }

  /* Acciones (Acceder blanco + CTA) */
  [data-elementor-type="header"] nav.elementor-nav-menu--dropdown .gbh-drawer-actions { margin: 10px 22px 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-direction: column; gap: 12px; }
  [data-elementor-type="header"] .gbh-drawer-actions .elementor-element-hdracct1,
  [data-elementor-type="header"] .gbh-drawer-actions .elementor-element-hdrcta001 { display: block !important; }
  [data-elementor-type="header"] .gbh-drawer-actions .elementor-element-hdracct1 .elementor-button { color: #FFFFFF !important; padding-left: 0 !important; justify-content: flex-start; }
  [data-elementor-type="header"] .gbh-drawer-actions .elementor-element-hdracct1 .elementor-button i,
  [data-elementor-type="header"] .gbh-drawer-actions .elementor-element-hdracct1 .elementor-button svg { color: #FFFFFF !important; fill: #FFFFFF !important; }
  [data-elementor-type="header"] .gbh-drawer-actions .elementor-element-hdrcta001 .elementor-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; text-align: center; }
  [data-elementor-type="header"] .gbh-drawer-actions .gbh-cta-ico { display: inline-flex; align-items: center; }
  [data-elementor-type="header"] .gbh-drawer-actions .gbh-cta-ico svg { width: 18px; height: 18px; display: block; }
  /* Microcopy de confianza bajo el CTA */
  [data-elementor-type="header"] .gbh-drawer-trust { margin: 10px 0 0; text-align: center; color: rgba(255, 255, 255, 0.62); font-size: 12px; line-height: 1.4; letter-spacing: .01em; }

  /* Redes sociales en el footer del drawer: chips circulares visibles */
  [data-elementor-type="header"] .gbh-drawer-social { display: flex; justify-content: center; gap: 14px; padding: 18px 22px 22px; margin: 8px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  [data-elementor-type="header"] .gbh-drawer-social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #FFFFFF !important; display: inline-flex; align-items: center; justify-content: center; line-height: 1; transition: background .18s ease, color .18s ease, transform .18s ease; }
  [data-elementor-type="header"] .gbh-drawer-social a svg { width: 20px; height: 20px; display: block; fill: #FFFFFF !important; }
  [data-elementor-type="header"] .gbh-drawer-social a:hover { background: rgba(199, 125, 206, 0.42); color: #FFFFFF !important; transform: translateY(-3px); }
  [data-elementor-type="header"] .gbh-drawer-social a:hover svg { fill: #FFFFFF !important; }

  /* Stagger de entrada (app-like) */
  @keyframes gbhDrawerIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown > .gbh-drawer-brand,
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown ul.elementor-nav-menu--dropdown > li,
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown > .gbh-drawer-actions,
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown > .gbh-drawer-social { animation: gbhDrawerIn .5s cubic-bezier(0.22, 1, 0.36, 1) both; }
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown ul.elementor-nav-menu--dropdown > li:nth-child(1) { animation-delay: .06s; }
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown ul.elementor-nav-menu--dropdown > li:nth-child(2) { animation-delay: .11s; }
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown ul.elementor-nav-menu--dropdown > li:nth-child(3) { animation-delay: .16s; }
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown ul.elementor-nav-menu--dropdown > li:nth-child(4) { animation-delay: .21s; }
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown ul.elementor-nav-menu--dropdown > li:nth-child(5) { animation-delay: .26s; }
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown > .gbh-drawer-actions { animation-delay: .30s; }
  body.gbh-drawer-open nav.elementor-nav-menu--dropdown > .gbh-drawer-social { animation-delay: .34s; }
  @media (prefers-reduced-motion: reduce) {
    body.gbh-drawer-open nav.elementor-nav-menu--dropdown > *,
    body.gbh-drawer-open nav.elementor-nav-menu--dropdown ul.elementor-nav-menu--dropdown > li { animation: none !important; }
  }
}
/* Móvil ≤767: soltar el CTA del top-bar (no cabe) → logo + carrito + hamburguesa */
@media (max-width: 767px) {
  [data-elementor-type="header"] .elementor-element-hdrcta001 { display: none !important; }
  [data-elementor-type="header"] .elementor-element-hdrlogo1 img { width: 118px !important; max-width: 118px !important; }
  [data-elementor-type="header"] .elementor-element-hdrright1 { gap: 10px !important; }
}

/* ============================================================
   MEGA-MENÚ de Módulos Genéticos (SOLO desktop ≥1025).
   Toma el control del show/hide con hover propio (Elementor lo
   oculta con display:none) → forzamos display:grid + opacity.
   Scopeado a nav--main para NO afectar el drawer móvil.
   ============================================================ */
@media (min-width: 1025px) {
  [data-elementor-type="header"] nav.elementor-nav-menu--main li.menu-item-has-children { position: relative; }
  [data-elementor-type="header"] nav.elementor-nav-menu--main li.menu-item-has-children > ul.sub-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(215px, 1fr));
    gap: 4px;
    width: auto !important; min-width: 470px !important; max-width: 92vw;
    position: absolute; top: 100%; left: 0; right: auto;
    transform: translateY(10px);
    margin-top: 6px; padding: 12px !important;
    background: #FFFFFF;
    border: 1px solid var(--gbh-color-divider);
    border-radius: var(--gbh-radius-modal);
    box-shadow: var(--gbh-shadow-panel);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 100000;
  }
  [data-elementor-type="header"] nav.elementor-nav-menu--main li.menu-item-has-children:hover > ul.sub-menu,
  [data-elementor-type="header"] nav.elementor-nav-menu--main li.menu-item-has-children:focus-within > ul.sub-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
  }
  /* Puente invisible que cubre el hueco trigger↔panel para no perder el :hover al bajar el mouse. */
  [data-elementor-type="header"] nav.elementor-nav-menu--main li.menu-item-has-children > ul.sub-menu::before {
    content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 16px;
  }
  [data-elementor-type="header"] nav.elementor-nav-menu--main ul.sub-menu > li { width: auto; margin: 0; }
  [data-elementor-type="header"] nav.elementor-nav-menu--main ul.sub-menu .elementor-sub-item {
    display: flex !important; align-items: center; gap: 12px;
    padding: 10px 12px !important; border-radius: 12px; white-space: normal;
    transition: background .15s ease;
  }
  [data-elementor-type="header"] nav.elementor-nav-menu--main ul.sub-menu .elementor-sub-item:hover,
  [data-elementor-type="header"] nav.elementor-nav-menu--main ul.sub-menu .elementor-sub-item.elementor-item-active {
    background: rgba(138, 45, 146, 0.06);
  }
  [data-elementor-type="header"] nav.elementor-nav-menu--main ul.sub-menu .gbh-subnav-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    background: rgba(138, 45, 146, 0.09); color: var(--gbh-color-purple-cta); margin: 0;
  }
  [data-elementor-type="header"] nav.elementor-nav-menu--main ul.sub-menu .gbh-subnav-ico svg { width: 21px; height: 21px; }
  [data-elementor-type="header"] nav.elementor-nav-menu--main ul.sub-menu .gbh-sub-text { display: flex; flex-direction: column; line-height: 1.25; }
  [data-elementor-type="header"] nav.elementor-nav-menu--main ul.sub-menu .gbh-sub-name { font-weight: 700; color: var(--gbh-color-navy); font-size: 15px; }
  [data-elementor-type="header"] nav.elementor-nav-menu--main ul.sub-menu .gbh-sub-desc { display: block; font-size: 12.5px; color: var(--gbh-color-muted); margin-top: 1px; }
}

/* ============================================================
   BOTTOM-NAV (webapp mobile-first): barra fija inferior ≤1024.
   Inicio · Módulos · WhatsApp · Carrito · Menú. Safe-area iOS.
   ============================================================ */
@media (max-width: 1024px) {
  .gbh-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
    display: flex; justify-content: space-around; align-items: stretch;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--gbh-color-divider);
    box-shadow: 0 -4px 20px rgba(20, 42, 71, 0.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .gbh-bn-item {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: 0; cursor: pointer; text-decoration: none;
    color: var(--gbh-color-muted); font-family: var(--gbh-font-primary);
    font-size: 10.5px; font-weight: 600; padding: 4px 2px;
  }
  .gbh-bn-item.is-active { color: var(--gbh-color-purple-cta); }
  /* Interacción = mismo morado del header (mata el highlight magenta/gris por defecto) */
  .gbh-bn-item { -webkit-tap-highlight-color: rgba(138, 45, 146, 0.16); }
  .gbh-bn-item:hover,
  .gbh-bn-item:focus,
  .gbh-bn-item:focus-visible,
  .gbh-bn-item:active {
    color: var(--gbh-color-purple-cta) !important;
    background: rgba(138, 45, 146, 0.09) !important;
  }
  .gbh-bn-item:focus-visible { outline: 2px solid var(--gbh-color-purple-cta); outline-offset: -2px; }
  .gbh-bn-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
  .gbh-bn-ico svg { width: 23px; height: 23px; }
  .gbh-bn-lb { line-height: 1; white-space: nowrap; }
  .gbh-bn-badge {
    position: absolute; top: -6px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
    /* Mismo morado que el badge del header (.elementor-button-icon-qty = #8A2D92), no magenta */
    background: var(--gbh-color-purple-cta); color: #FFFFFF; border-radius: 999px;
    font-size: 10px; font-weight: 700; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
  }
  body.gbh-has-bottomnav { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  /* Ocultar la barra cuando el drawer o el side-cart están abiertos (no solaparse). */
  body.gbh-drawer-open .gbh-bottomnav,
  body.gbh-cart-open .gbh-bottomnav { transform: translateY(120%); }
}
@media (min-width: 1025px) {
  .gbh-bottomnav { display: none !important; }
}

/* ============================================================
   SIDE-CART (mini-cart nativo de Elementor) — pase on-brand GBH.
   ============================================================ */
.elementor-menu-cart__container { font-family: var(--gbh-font-primary); }
/* Thumbnail del ítem: cuadrado redondeado, imagen encajada (object-fit cover) */
.elementor-menu-cart__container .elementor-menu-cart__product-image,
.elementor-menu-cart__container .elementor-menu-cart__product img,
.elementor-menu-cart__container .woocommerce-mini-cart-item img {
  width: 64px !important; height: 64px !important;
  object-fit: cover !important; object-position: center !important;
  border-radius: 12px !important;
  border: 1px solid var(--gbh-color-divider);
  background: var(--gbh-surface-1);
}
.elementor-menu-cart__container .elementor-menu-cart__product a:not(.remove_from_cart_button):not(.elementor_remove_from_cart_button) { color: var(--gbh-color-navy); font-weight: 600; }
.elementor-menu-cart__container .elementor-menu-cart__product a:not(.remove_from_cart_button):not(.elementor_remove_from_cart_button):hover { color: var(--gbh-color-purple-cta); }
.elementor-menu-cart__container .woocommerce-mini-cart__total,
.elementor-menu-cart__container .elementor-menu-cart__subtotal { color: var(--gbh-color-navy); font-weight: 700; }
/* Finalizar compra = CTA morado */
.elementor-menu-cart__container .elementor-button--checkout {
  background: var(--gbh-color-purple-cta) !important;
  color: #FFFFFF !important;
  border: 0 !important;
  border-radius: var(--gbh-radius-button) !important;
  font-weight: 700;
}
.elementor-menu-cart__container .elementor-button--checkout:hover { opacity: .92; }
/* Ver carrito = outline navy */
.elementor-menu-cart__container .elementor-button--view-cart {
  background: transparent !important;
  color: var(--gbh-color-navy) !important;
  border: 1.5px solid var(--gbh-color-navy) !important;
  border-radius: var(--gbh-radius-button) !important;
  font-weight: 600;
}
.elementor-menu-cart__container .elementor-button--view-cart:hover {
  background: var(--gbh-color-navy) !important;
  color: #FFFFFF !important;
}
