/* ============================================================
   X-PHARMED / X-GAINZ — CSS GLOBAL MAESTRO
   VERSIÓN 15.6 — WOODMART DARK SAFE / PRESERVE ALL STYLES

   BASE:
   - Controlador post-hero por secciones activas
   - Fix one-section para Ciencia / ADN / Stack
   - Ajustes visuales ADN v12.5 conservados

   NOTA v12.8:
   - Reestructura real del mini menú ADN al panel derecho.
   - Partículas ADN con micro movimiento/glow estilo hero optimizado.
   - Tratamiento mobile más fino para hero + ADN.
   ============================================================ */


/* ── Variables globales ── */
:root {
  --xg-void: #020202;
  --xg-carbon: #090909;
  --xg-surface: #101010;
  --xg-white: #ffffff;
  --xg-silver: #d2d2d2;
  --xg-muted: #8a8a8a;
  --xg-muted-2: rgba(255,255,255,.42);
  --xg-green: #b8ff57;
  --xg-green-soft: rgba(184,255,87,0.14);
  --xg-font-display: 'Oswald', sans-serif;
  --xg-font-body: 'DM Sans', sans-serif;
  --xg-font-mono: 'DM Mono', monospace;
  --xg-transition-fast: 150ms ease;
  --xg-transition-base: 250ms ease;
  --xg-radius-lg: 12px;

  --xv-void:    #020202;
  --xv-green:   #b8ff57;
  --xv-white:   #ffffff;
  --xv-muted:   rgba(255,255,255,.28);
  --xv-border:  rgba(255,255,255,.08);
  --xv-font-d:  'Oswald', sans-serif;
  --xv-font-m:  'DM Mono', monospace;
  --xv-ease:    250ms ease;
}


/* ════════════════════════════════════
   BASE DEL SITIO — body.xp-pharmed-site
   Aplica en TODAS las páginas
════════════════════════════════════ */
html:has(body.xp-pharmed-site),
body.xp-pharmed-site {
  background: #020202 !important;
  background-color: #020202 !important;
}

body.xp-pharmed-site,
body.xp-pharmed-site * {
  box-sizing: border-box;
}

body.xp-pharmed-site a,
body.xp-pharmed-site button {
  -webkit-tap-highlight-color: transparent;
}

body.xp-pharmed-site a {
  color: inherit;
}

/* ── Override agresivo de Woodmart: todos los wrappers ── */
body.xp-pharmed-site .wd-page-wrapper,
body.xp-pharmed-site .website-wrapper,
body.xp-pharmed-site .main-page-wrapper,
body.xp-pharmed-site .wd-page-content,
body.xp-pharmed-site #page,
body.xp-pharmed-site #main-content,
body.xp-pharmed-site .content-layout-wrapper,
body.xp-pharmed-site .wd-content-layout {
  background: #020202 !important;
  background-color: #020202 !important;
  background-image: none !important;
}

/* ── Neutralizar container de Woodmart ── */
body.xp-pharmed-site main#main-content.container,
body.xp-pharmed-site .content-layout-wrapper.container,
body.xp-pharmed-site #main-content.container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

/* ── Ocultar header nativo de Woodmart ── */
body.xp-pharmed-site .whb-header-wrapper,
body.xp-pharmed-site .whb-main-header,
body.xp-pharmed-site .whb-top-bar,
body.xp-pharmed-site .whb-sticky-placeholder,
body.xp-pharmed-site #site-header {
  display: none !important;
}

/* ── Ocultar footer de Woodmart ── */
body.xp-pharmed-site .wd-footer,
body.xp-pharmed-site .footer-container {
  display: none !important;
}

/* ── Ocultar overlays / widgets de Woodmart ── */
body.xp-pharmed-site .wd-close-side,
body.xp-pharmed-site .mobile-nav,
body.xp-pharmed-site .cart-widget-side,
body.xp-pharmed-site .scrollToTop {
  display: none !important;
}

/* ── Override Elementor containers ── */
body.xp-pharmed-site .elementor-section,
body.xp-pharmed-site .elementor-container,
body.xp-pharmed-site .e-con,
body.xp-pharmed-site .elementor-widget-wrap {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* ── Excepción: header template de Elementor (ID 43) ── */
body.xp-pharmed-site .elementor-43,
body.xp-pharmed-site .elementor-43 .e-con,
body.xp-pharmed-site .elementor-43 .elementor-section {
  background: transparent !important;
}


/* ════════════════════════════════════
   HERO SCROLL LOCK — body.xp-pharmed-active
════════════════════════════════════ */
body.xp-pharmed-active {
  overflow: hidden !important;
}

html:has(body.xp-pharmed-active),
html.xp-pharmed-active-html {
  overflow: hidden;
  background: #020202;
}

body.xp-pharmed-active .elementor-element-16ab8c7,
body.xp-pharmed-active #seccion-particulas.e-con,
body.xp-pharmed-active #seccion-particulas.e-flex {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

body.xp-pharmed-active #seccion-particulas {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background: var(--xg-void);
  color: var(--xg-white);
  overflow: hidden;
  isolation: isolate;
  font-family: var(--xg-font-body);
}


/* ════════════════════════════════════
   BOTONES
════════════════════════════════════ */
body.xp-pharmed-site .xg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--xg-font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--xg-radius-lg);
  padding: 11px 24px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  outline: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
  background: transparent;
  transition:
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
  will-change: transform;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.xp-pharmed-site .xg-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  pointer-events: none;
}

body.xp-pharmed-site .xg-btn-primary {
  background: linear-gradient(168deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.06) 60%, rgba(0,0,0,.06) 100%);
  color: var(--xg-white);
  border-color: rgba(255,255,255,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.20), 0 6px 20px rgba(0,0,0,.32);
}

body.xp-pharmed-site .xg-btn-primary:hover {
  background: linear-gradient(168deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.10) 60%, rgba(0,0,0,.04) 100%);
  border-color: rgba(255,255,255,.32);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.20), inset 0 -1px 0 rgba(0,0,0,.24), 0 10px 28px rgba(0,0,0,.42);
}

body.xp-pharmed-site .xp-secondary-btn,
body.xp-pharmed-site .xp-hero-cta-secondary {
  background: linear-gradient(168deg, rgba(184,255,87,.10) 0%, rgba(184,255,87,.04) 60%, rgba(0,0,0,.08) 100%);
  color: var(--xg-green);
  border-color: rgba(184,255,87,.22);
  box-shadow: inset 0 1px 0 rgba(184,255,87,.18), inset 0 -1px 0 rgba(0,0,0,.22), 0 6px 20px rgba(0,0,0,.28);
}

body.xp-pharmed-site .xp-secondary-btn::after,
body.xp-pharmed-site .xp-hero-cta-secondary::after {
  background: linear-gradient(90deg, transparent, rgba(184,255,87,.22), transparent);
}

body.xp-pharmed-site .xp-secondary-btn:hover,
body.xp-pharmed-site .xp-hero-cta-secondary:hover {
  background: linear-gradient(168deg, rgba(184,255,87,.18) 0%, rgba(184,255,87,.08) 60%, rgba(0,0,0,.06) 100%);
  border-color: rgba(184,255,87,.38);
  transform: translateY(-1px);
}


/* ════════════════════════════════════
   CANVAS — body.xp-pharmed-active (solo hero)
════════════════════════════════════ */
body.xp-pharmed-active .xp-scroll-section {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10;
  overflow: hidden;
}

body.xp-pharmed-active .xp-sticky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.xp-pharmed-active #xp-particles-canvas {
  display: block;
  width: 100%;
  height: 100%;
}


/* ════════════════════════════════════
   FONDO — RINGS + BEAMS + GLOW
════════════════════════════════════ */
body.xp-pharmed-active .xp-bg-effects {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

body.xp-pharmed-active #xp-bg-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #020202;
}

body.xp-pharmed-active #xp-rings-canvas { display: none; }

body.xp-pharmed-active .xp-beam-left,
body.xp-pharmed-active .xp-beam-right {
  position: fixed;
  top: 0;
  width: 46vw;
  height: 78vh;
  pointer-events: none;
  z-index: 6;
}

body.xp-pharmed-active .xp-beam-left {
  left: 0;
  transform-origin: top left;
  background: conic-gradient(from 0deg at 0% 0%, transparent 0deg, rgba(200,220,255,0.000) 0deg, rgba(200,220,255,0.042) 18deg, rgba(200,220,255,0.080) 26deg, rgba(200,220,255,0.042) 34deg, rgba(200,220,255,0.000) 52deg, transparent 360deg);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.7) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.7) 40%, rgba(0,0,0,0) 100%);
}

body.xp-pharmed-active .xp-beam-right {
  right: 0;
  transform-origin: top right;
  background: conic-gradient(from 180deg at 100% 0%, transparent 0deg, rgba(200,220,255,0.000) 0deg, rgba(200,220,255,0.042) 18deg, rgba(200,220,255,0.080) 26deg, rgba(200,220,255,0.042) 34deg, rgba(200,220,255,0.000) 52deg, transparent 360deg);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.7) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.7) 40%, rgba(0,0,0,0) 100%);
}

body.xp-pharmed-active .xp-green-edge {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44vw;
  height: 36vh;
  pointer-events: none;
  z-index: 6;
  background: radial-gradient(ellipse 46% 100% at 50% 0%, rgba(184,255,87,0.18) 0%, rgba(184,255,87,0.08) 22%, rgba(184,255,87,0.024) 50%, rgba(184,255,87,0.004) 75%, transparent 92%);
}

body.xp-pharmed-active .xp-green-edge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,255,87,.40) 28%, rgba(255,255,255,.82) 50%, rgba(184,255,87,.40) 72%, transparent);
}

body.xp-pharmed-active .xp-vig {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: radial-gradient(ellipse 160% 120% at 50% 50%, transparent 30%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.60) 80%, rgba(0,0,0,.92) 100%);
}

body.xp-pharmed-active .xp-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='192' height='192' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 192px 192px;
  opacity: .07;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 8;
  animation: grainShift .1s steps(1) infinite;
}

@keyframes grainShift {
  0%   { background-position:   0px   0px; }
  25%  { background-position: -48px  22px; }
  50%  { background-position:  31px -19px; }
  75%  { background-position: -22px  44px; }
  100% { background-position:  19px -31px; }
}


/* ════════════════════════════════════
   HEADER LAYER — body.xp-pharmed-site
   Disponible en TODAS las páginas
════════════════════════════════════ */
body.xp-pharmed-site .xp-header-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  pointer-events: none;
  padding: clamp(22px, 2.8vw, 44px);
}

body.xp-pharmed-site .xp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 24px;
  pointer-events: auto;
}

body.xp-pharmed-site .xp-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

body.xp-pharmed-site .xp-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--xg-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--xg-white);
  text-transform: uppercase;
  line-height: 1;
}

body.xp-pharmed-site .xp-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

body.xp-pharmed-site .xp-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  font-family: var(--xg-font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.60);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--xg-transition-fast), transform var(--xg-transition-fast);
  position: relative;
  white-space: nowrap;
}

body.xp-pharmed-site .xp-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--xg-green), transparent);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

body.xp-pharmed-site .xp-nav a:hover { color: var(--xg-white); transform: translateY(-1px); }
body.xp-pharmed-site .xp-nav a.active { color: var(--xg-white); }
body.xp-pharmed-site .xp-nav a.active::after,
body.xp-pharmed-site .xp-nav a:hover::after { transform: scaleX(1); opacity: 1; }

body.xp-pharmed-site .xp-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  pointer-events: auto;
}

body.xp-pharmed-site .xp-utility-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 4px;
  pointer-events: auto;
}

body.xp-pharmed-site .xp-utility-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  font-family: var(--xg-font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,.42);
  transition: color var(--xg-transition-fast), opacity var(--xg-transition-fast), transform var(--xg-transition-fast);
  white-space: nowrap;
  opacity: .92;
}

body.xp-pharmed-site .xp-utility-link--utility::after { display: none; }
body.xp-pharmed-site .xp-utility-link--utility:hover { color: var(--xg-green); transform: none; opacity: 1; }

body.xp-pharmed-site .xp-utility-link:not(.xp-utility-link--utility)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,255,87,.70), transparent);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

body.xp-pharmed-site .xp-utility-link:not(.xp-utility-link--utility):hover { color: rgba(255,255,255,.82); transform: translateY(-1px); }
body.xp-pharmed-site .xp-utility-link:not(.xp-utility-link--utility):hover::after { transform: scaleX(1); opacity: 1; }

body.xp-pharmed-site .xp-header-shop {
  padding: 10px 18px;
  font-size: 11px;
  color: var(--xg-white);
}


/* ── SOCIAL ── */
body.xp-pharmed-site .xp-social {
  position: fixed;
  right: clamp(18px, 2.6vw, 40px);
  bottom: clamp(16px, 2.8vw, 36px);
  display: flex;
  flex-direction: row;
  gap: 8px;
  pointer-events: auto;
  z-index: 40;
  opacity: 0;
}

body.xp-pharmed-site .xp-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  transition: background var(--xg-transition-fast), border-color var(--xg-transition-fast), transform var(--xg-transition-fast);
  opacity: .72;
}

body.xp-pharmed-site .xp-social a:hover { background: rgba(184,255,87,.10); border-color: rgba(184,255,87,.32); transform: translateY(-2px); opacity: 1; }
body.xp-pharmed-site .xp-social svg { width: 13px; height: 13px; stroke: rgba(255,255,255,.55); fill: none; transition: stroke var(--xg-transition-fast); }
body.xp-pharmed-site .xp-social a:last-child svg { fill: rgba(255,255,255,.55); stroke: none; transition: fill var(--xg-transition-fast); }
body.xp-pharmed-site .xp-social a:hover svg { stroke: var(--xg-green); }
body.xp-pharmed-site .xp-social a:last-child:hover svg { fill: var(--xg-green); stroke: none; }


/* ── SOUND BUTTON ── */
body.xp-pharmed-site .xp-sound-btn {
  width: 46px; height: 46px;
  min-width: 46px; min-height: 46px;
  flex: 0 0 46px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--xg-transition-fast), border-color var(--xg-transition-fast), transform var(--xg-transition-fast), color var(--xg-transition-fast), opacity var(--xg-transition-fast);
  pointer-events: auto;
  z-index: 40;
  opacity: 0;
  color: var(--xg-silver);
  padding: 0; margin: 0;
}

body.xp-pharmed-site .xp-sound-btn--header {
  position: fixed;
  left: clamp(18px, 2.6vw, 40px);
  bottom: clamp(16px, 2.8vw, 36px);
}

body.xp-pharmed-site .xp-sound-btn:hover { background: rgba(255,255,255,.09); border-color: rgba(184,255,87,.22); transform: translateY(-1px); color: var(--xg-white); }
body.xp-pharmed-site .xp-sound-btn.active { border-color: rgba(184,255,87,.34); background: rgba(184,255,87,.08); color: var(--xg-green); }
body.xp-pharmed-site .xp-sound-btn svg.xg-audio-icon {
  width: 20px;
  height: 20px;
  overflow: visible;
}

body.xp-pharmed-site .xp-sound-btn .audio-speaker,
body.xp-pharmed-site .xp-sound-btn .audio-wave,
body.xp-pharmed-site .xp-sound-btn .audio-slash {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

body.xp-pharmed-site .xp-sound-btn .audio-speaker {
  stroke-width: 1.55;
  opacity: .92;
}

body.xp-pharmed-site .xp-sound-btn .audio-wave {
  stroke-width: 1.45;
  opacity: 0;
  transform-origin: 12px 12px;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.xp-pharmed-site .xp-sound-btn .audio-slash {
  stroke-width: 1.35;
  opacity: .62;
  transition: opacity 180ms ease;
}

body.xp-pharmed-site .xp-sound-btn.active .audio-wave-1 { opacity: .86; }
body.xp-pharmed-site .xp-sound-btn.active .audio-wave-2 { opacity: .46; }
body.xp-pharmed-site .xp-sound-btn.active .audio-slash { opacity: 0; }
body.xp-pharmed-site .xp-sound-btn.active .audio-speaker { opacity: 1; }

body.xp-pharmed-site .xp-sound-btn:hover .audio-wave-1,
body.xp-pharmed-site .xp-sound-btn:hover .audio-wave-2 {
  opacity: .48;
}

body.xp-pharmed-site .xp-sound-btn.active:hover .audio-wave-1 { opacity: .94; }
body.xp-pharmed-site .xp-sound-btn.active:hover .audio-wave-2 { opacity: .56; }


/* ── MENU TOGGLE ── */
body.xp-pharmed-site .xp-menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  padding: 0;
  pointer-events: auto;
  transition: background var(--xg-transition-fast), border-color var(--xg-transition-fast);
}

body.xp-pharmed-site .xp-menu-toggle:hover { background: rgba(255,255,255,.08); border-color: rgba(184,255,87,.22); }
body.xp-pharmed-site .xp-menu-toggle span { position: absolute; width: 18px; height: 1.5px; background: var(--xg-white); border-radius: 10px; transition: transform .24s ease, opacity .24s ease; }
body.xp-pharmed-site .xp-menu-toggle span:nth-child(1) { transform: translateY(-6px); }
body.xp-pharmed-site .xp-menu-toggle span:nth-child(2) { transform: translateY(0); }
body.xp-pharmed-site .xp-menu-toggle span:nth-child(3) { transform: translateY(6px); }
body.xp-pharmed-site .xp-menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg); }
body.xp-pharmed-site .xp-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
body.xp-pharmed-site .xp-menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg); }


/* ── MOBILE MENU ── */
body.xp-pharmed-site .xp-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: radial-gradient(circle at 50% 30%, rgba(184,255,87,.08), transparent 34%), linear-gradient(180deg, rgba(2,2,2,.98), rgba(0,0,0,.98));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

body.xp-pharmed-site .xp-mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

body.xp-pharmed-site .xp-mobile-menu-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 16px 22px;
}

body.xp-pharmed-site .xp-mobile-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.xp-pharmed-site .xp-mobile-menu-eyebrow { font-family: var(--xg-font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--xg-muted); }

body.xp-pharmed-site .xp-mobile-menu-close {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 0; cursor: pointer;
  transition: background var(--xg-transition-fast), border-color var(--xg-transition-fast);
}

body.xp-pharmed-site .xp-mobile-menu-close:hover { background: rgba(255,255,255,.08); border-color: rgba(184,255,87,.22); }
body.xp-pharmed-site .xp-mobile-menu-close span { position: absolute; width: 18px; height: 1.5px; background: var(--xg-white); border-radius: 10px; }
body.xp-pharmed-site .xp-mobile-menu-close span:nth-child(1) { transform: rotate(45deg); }
body.xp-pharmed-site .xp-mobile-menu-close span:nth-child(2) { transform: rotate(-45deg); }

body.xp-pharmed-site .xp-mobile-nav { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; }
body.xp-pharmed-site .xp-mobile-nav a { display: block; font-family: var(--xg-font-display); font-size: clamp(28px, 9vw, 42px); line-height: 1; letter-spacing: .05em; text-transform: uppercase; color: var(--xg-white); text-decoration: none; opacity: .94; }
body.xp-pharmed-site .xp-mobile-nav a.active { color: var(--xg-green); }

body.xp-pharmed-site .xp-mobile-menu-utility { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 0; border-top: 1px solid rgba(255,255,255,.06); margin-top: 4px; }
body.xp-pharmed-site .xp-mobile-utility-link { display: inline-flex; align-items: center; width: fit-content; font-family: var(--xg-font-mono); font-size: 10px; font-weight: 300; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.58); text-decoration: none; transition: color var(--xg-transition-fast), transform var(--xg-transition-fast); }
body.xp-pharmed-site .xp-mobile-utility-link:hover { color: var(--xg-green); transform: translateX(2px); }

body.xp-pharmed-site .xp-mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 18px; }
body.xp-pharmed-site .xp-mobile-menu-actions .xg-btn { width: 100%; }
body.xp-pharmed-site .xp-mobile-menu-social { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 18px; }
body.xp-pharmed-site .xp-mobile-menu-social a { font-family: var(--xg-font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--xg-muted); text-decoration: none; }


/* ════════════════════════════════════
   BOOT LOADER v14.2 — Activar Protocolo X Minimal + Responsiveness
   Capa independiente: no toca hero, dock ni rings
════════════════════════════════════ */
body.xp-pharmed-site .xp-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px);
  background: linear-gradient(180deg, #030303 0%, #020202 100%);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .76s cubic-bezier(.22,.61,.36,1), visibility .76s cubic-bezier(.22,.61,.36,1), filter .76s cubic-bezier(.22,.61,.36,1);
  overflow: hidden;
  isolation: isolate;
}

body.xp-pharmed-site .xp-boot-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.026) 0, rgba(255,255,255,0) 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 0, rgba(255,255,255,0) 1px);
  background-size: 100% 5px, 5px 100%;
  opacity: .035;
  pointer-events: none;
}

body.xp-pharmed-site .xp-boot-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 96% 64% at 50% 52%, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 54%, rgba(0,0,0,.78) 100%);
  pointer-events: none;
}

html.xp-boot-skip body.xp-pharmed-site .xp-boot-screen,
html.xp-boot-fail-safe body.xp-pharmed-site .xp-boot-screen,
body.xp-pharmed-site .xp-boot-screen.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(10px);
}

body.xp-pharmed-site .xp-boot-shell {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 44px));
  min-height: min(520px, calc(100svh - 56px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 34px);
  padding: clamp(18px, 5vw, 48px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

body.xp-pharmed-site .xp-boot-shell::before {
  content: none;
  display: none;
}

body.xp-pharmed-site .xp-boot-shell::after {
  content: none;
  display: none;
}

body.xp-pharmed-site .xp-boot-brand,
body.xp-pharmed-site .xp-boot-status,
body.xp-pharmed-site .xp-boot-lines,
body.xp-pharmed-site .xp-boot-activate,
body.xp-pharmed-site .xp-boot-note {
  position: relative;
  z-index: 2;
}

body.xp-pharmed-site .xp-boot-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  animation: xpBootBrandIn .72s cubic-bezier(.22,.61,.36,1) .08s forwards;
}

body.xp-pharmed-site .xp-boot-brand-kicker {
  font-family: var(--xg-font-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.34);
}

body.xp-pharmed-site .xp-boot-brand strong {
  font-family: var(--xg-font-display);
  font-size: clamp(34px, 7vw, 72px);
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.94);
  line-height: .9;
  text-shadow: 0 22px 42px rgba(0,0,0,.54);
}

body.xp-pharmed-site .xp-boot-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 0;
  animation: xpBootBrandIn .58s cubic-bezier(.22,.61,.36,1) .34s forwards;
}

body.xp-pharmed-site .xp-boot-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(184,255,87,.72);
  box-shadow: 0 0 10px rgba(184,255,87,.12);
  opacity: .34;
  animation: xpBootStatusPulse 1.6s ease-in-out infinite;
}

body.xp-pharmed-site .xp-boot-status span:nth-child(2) { animation-delay: .18s; }
body.xp-pharmed-site .xp-boot-status span:nth-child(3) { animation-delay: .36s; }

body.xp-pharmed-site .xp-boot-lines {
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  min-height: 132px;
}

body.xp-pharmed-site .xp-boot-line {
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(5px);
  transition:
    opacity .46s cubic-bezier(.22,.61,.36,1),
    transform .46s cubic-bezier(.22,.61,.36,1),
    filter .46s cubic-bezier(.22,.61,.36,1),
    color .30s ease;
}

body.xp-pharmed-site .xp-boot-line.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

body.xp-pharmed-site .xp-boot-line.is-success .xp-boot-text {
  color: rgba(184,255,87,.86);
}

body.xp-pharmed-site .xp-boot-text {
  position: relative;
  font-family: var(--xg-font-mono);
  font-size: clamp(10px, 1.3vw, 12px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(0,0,0,.34);
}

body.xp-pharmed-site .xp-boot-line.is-current .xp-boot-text::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 8px;
  vertical-align: -2px;
  background: rgba(184,255,87,.82);
  animation: xpBootCaret .92s steps(1, end) infinite;
}

body.xp-pharmed-site .xp-boot-activate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: min(100%, 312px);
  min-height: 58px;
  padding: 13px 24px 12px;
  border-radius: 12px;
  border: 1px solid rgba(184,255,87,.24);
  background: linear-gradient(168deg, rgba(184,255,87,.115) 0%, rgba(184,255,87,.035) 58%, rgba(0,0,0,.10) 100%);
  box-shadow: inset 0 1px 0 rgba(184,255,87,.14), 0 12px 34px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.025);
  font-family: var(--xg-font-mono);
  color: rgba(184,255,87,.82);
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .36s cubic-bezier(.22,.61,.36,1),
    transform .36s cubic-bezier(.22,.61,.36,1),
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    color .22s ease;
  pointer-events: none;
}

body.xp-pharmed-site .xp-boot-screen.is-awaiting-input .xp-boot-activate {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: xpBootProtocolPulse 2.2s ease-in-out infinite;
}

body.xp-pharmed-site .xp-boot-screen.is-running .xp-boot-activate {
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  animation: none;
}

body.xp-pharmed-site .xp-boot-activate:hover,
body.xp-pharmed-site .xp-boot-activate:focus-visible {
  border-color: rgba(184,255,87,.42);
  background: linear-gradient(168deg, rgba(184,255,87,.17) 0%, rgba(184,255,87,.055) 58%, rgba(0,0,0,.08) 100%);
  box-shadow: inset 0 1px 0 rgba(184,255,87,.20), 0 16px 42px rgba(0,0,0,.44), 0 0 18px rgba(184,255,87,.055);
  color: rgba(184,255,87,.96);
  outline: none;
}

body.xp-pharmed-site .xp-boot-activate-label {
  font-size: 10px;
  letter-spacing: .22em;
  line-height: 1;
}

body.xp-pharmed-site .xp-boot-activate-sub {
  font-size: 8px;
  font-weight: 300;
  letter-spacing: .16em;
  color: rgba(255,255,255,.34);
  line-height: 1.25;
}

body.xp-pharmed-site .xp-boot-note {
  font-family: var(--xg-font-mono);
  font-size: 8px;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}

body.xp-pharmed-site .xp-boot-screen.is-awaiting-input .xp-boot-note {
  opacity: 1;
  transform: translateY(0);
}

body.xp-pharmed-site .xp-boot-screen.is-running .xp-boot-note {
  opacity: 0;
  transform: translateY(-5px);
}

@keyframes xpBootBrandIn {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes xpBootStatusPulse {
  0%, 100% { opacity: .26; transform: scale(.78); }
  50%      { opacity: .88; transform: scale(1); }
}

@keyframes xpBootCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes xpBootProtocolPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(184,255,87,.14), 0 12px 34px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.025); }
  50%      { box-shadow: inset 0 1px 0 rgba(184,255,87,.20), 0 16px 42px rgba(0,0,0,.44), 0 0 18px rgba(184,255,87,.060); }
}


/* ── Guard v14.1: durante el boot, el hero nunca debe filtrarse visualmente ── */
body.xp-pharmed-hero.xp-boot-active .xp-header-layer,
body.xp-pharmed-hero.xp-boot-active .xp-bg-effects,
body.xp-pharmed-hero.xp-boot-active .xp-scroll-section,
body.xp-pharmed-hero.xp-boot-active .xp-hero-overlay,
body.xp-pharmed-hero.xp-boot-active .xp-vig,
body.xp-pharmed-hero.xp-boot-active .xp-stage-dock,
body.xp-pharmed-hero.xp-boot-active .xp-social,
body.xp-pharmed-hero.xp-boot-active .xp-sound-btn {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.xp-pharmed-hero.xp-boot-active #xp-particles-canvas,
body.xp-pharmed-hero.xp-boot-active #xp-bg-canvas,
body.xp-pharmed-hero.xp-boot-active #xp-rings-canvas {
  opacity: 0 !important;
}

/* ── v14.3 Seamless Hero Reveal:
   Cuando termina la intro, el hero comienza debajo del fade del boot.
   Se libera solo el sistema visual del hero; el header sigue protegido hasta
   que termina la transición y se remueve .xp-boot-active. ── */
body.xp-pharmed-hero.xp-boot-active.xp-boot-revealing .xp-bg-effects,
body.xp-pharmed-hero.xp-boot-active.xp-boot-revealing .xp-scroll-section,
body.xp-pharmed-hero.xp-boot-active.xp-boot-revealing .xp-hero-overlay,
body.xp-pharmed-hero.xp-boot-active.xp-boot-revealing .xp-vig {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

body.xp-pharmed-hero.xp-boot-active.xp-boot-revealing #xp-particles-canvas,
body.xp-pharmed-hero.xp-boot-active.xp-boot-revealing #xp-bg-canvas,
body.xp-pharmed-hero.xp-boot-active.xp-boot-revealing #xp-rings-canvas {
  opacity: 1 !important;
}

/* ════════════════════════════════════
   HERO OVERLAY — solo hero
════════════════════════════════════ */
body.xp-pharmed-active .xp-hero-overlay {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none;
}

body.xp-pharmed-active .xp-hero-overlay::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 35%, rgba(0,0,0,.35) 80%);
  pointer-events: none; z-index: 0;
}

body.xp-pharmed-active .xp-hero-overlay > * { position: relative; z-index: 1; }

body.xp-pharmed-active .xp-hero-center {
  position: absolute; left: 50%; top: calc(50% - 42px);
  transform: translate(-50%, -50%);
  width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
  pointer-events: none; padding: 0 clamp(16px, 4vw, 48px);
}

body.xp-pharmed-active .xp-pre-eye {
  font-family: var(--xg-font-mono); font-size: 9px; font-weight: 300; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(184,255,87,0.65); margin-bottom: clamp(22px, 3vh, 40px);
  display: flex; align-items: center; gap: 10px; opacity: 0;
}

body.xp-pharmed-active .xp-pre-eye::before,
body.xp-pharmed-active .xp-pre-eye::after { content: ""; display: block; width: 24px; height: 1px; background: rgba(184,255,87,.30); }

body.xp-pharmed-active .hl-block { display: flex; flex-direction: column; align-items: center; width: 100%; }

body.xp-pharmed-active .hl-top {
  font-family: var(--xg-font-display); font-weight: 200; font-size: clamp(11px, 1.8vw, 26px); letter-spacing: .58em;
  text-transform: uppercase; color: rgba(255,255,255,.65); line-height: 1; padding-right: .58em;
  margin-bottom: clamp(14px, 2vh, 28px); opacity: 0;
}

body.xp-pharmed-active .hl-main {
  font-family: var(--xg-font-display); font-weight: 300; text-transform: uppercase;
  color: var(--xg-white); line-height: .88; white-space: nowrap; text-align: center;
  opacity: 0; transform-origin: center center;
}

body.xp-pharmed-active .hl-bottom {
  font-family: var(--xg-font-mono); font-weight: 300; font-size: clamp(9px, 1.1vw, 13px); letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.60); display: inline-block; background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 5px 14px;
  border-radius: 4px; border: 1px solid rgba(255,255,255,.07); line-height: 1.4;
  margin-top: clamp(16px, 2.4vh, 32px); opacity: 0;
}

body.xp-pharmed-active .hl-sub {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: clamp(154px, 21vh, 226px); width: 100%; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 clamp(16px, 4vw, 48px); pointer-events: none; z-index: 1;
}

body.xp-pharmed-active .hl-sub span {
  font-family: var(--xg-font-mono); font-size: clamp(11px, 1.1vw, 13px); font-weight: 300; letter-spacing: .07em;
  color: rgba(255,255,255,.52); text-shadow: 0 1px 12px rgba(0,0,0,.9), 0 0 28px rgba(0,0,0,.7);
  line-height: 1.65; opacity: 0;
}

body.xp-pharmed-active .hl-sub .cta-hint {
  margin-top: clamp(14px, 1.8vh, 22px); font-size: clamp(9px, .85vw, 11px) !important;
  letter-spacing: .22em !important; color: rgba(184,255,87,.55) !important;
  display: flex !important; align-items: center; justify-content: center; gap: 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,.8) !important; opacity: 0;
}

body.xp-pharmed-active .hl-sub .cta-hint::before,
body.xp-pharmed-active .hl-sub .cta-hint::after { content: ""; display: block; width: 22px; height: 1px; background: rgba(184,255,87,.28); }

body.xp-pharmed-active .xp-scroll-indicator {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: clamp(104px, 13vh, 158px); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--xg-font-mono); font-size: 10px; letter-spacing: .22em;
  color: var(--xg-muted); text-transform: uppercase; pointer-events: none;
  width: max-content; opacity: 0; transition: opacity .3s ease; z-index: 1;
}

body.xp-pharmed-active .xp-scroll-indicator svg { animation: xpScrollBounce 2.2s ease-in-out infinite; }

@keyframes xpScrollBounce { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(8px); opacity: 1; } }

body.xp-pharmed-active .xp-left-rail,
body.xp-pharmed-active .xp-right-rail {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent 8%, rgba(255,255,255,.10) 28%, rgba(255,255,255,.10) 72%, transparent 92%);
  pointer-events: none; z-index: 25; opacity: 0;
}

body.xp-pharmed-active .xp-left-rail  { left: clamp(35px, 3vw, 50px); }
body.xp-pharmed-active .xp-right-rail { right: clamp(35px, 3vw, 50px); }

body.xp-pharmed-active .xp-left-rail::after,
body.xp-pharmed-active .xp-right-rail::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent 0%, transparent 24%, var(--xg-green) 50%, transparent 76%, transparent 100%);
  opacity: .6;
}

body.xp-pharmed-active .xp-left-rail::after  { left: 0;  animation: xpRailPulse 4.6s ease-in-out infinite; }
body.xp-pharmed-active .xp-right-rail::after { right: 0; animation: xpRailPulse 4.6s ease-in-out 2.3s infinite; }

@keyframes xpRailPulse { 0%,100% { opacity: 0; transform: translateY(-100%); } 50% { opacity: .6; transform: translateY(0); } }

@keyframes xpActivate {
  0%   { filter: brightness(1); }
  40%  { filter: brightness(1.25) drop-shadow(0 0 14px rgba(184,255,87,.28)); }
  100% { filter: brightness(1); }
}

body.xp-pharmed-active .hl-main.xp-activated { animation: xpActivate 1.1s ease forwards; }


/* ════════════════════════════════════
   DOCK — solo hero
════════════════════════════════════ */
body.xp-pharmed-active .xp-stage-dock {
  position: fixed; left: 0; right: 0; margin: 0 auto;
  bottom: clamp(20px, 3vw, 38px);
  width: min(820px, calc(100vw - 168px));
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 16px; padding: 15px 20px;
  background: linear-gradient(168deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.028) 55%, rgba(0,0,0,.14) 100%);
  border: 1px solid rgba(255,255,255,.10); border-radius: 14px;
  backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.28), 0 12px 40px rgba(0,0,0,.52);
  pointer-events: auto; z-index: 29; opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}

body.xp-pharmed-active .xp-stage-dock.visible { opacity: 1; visibility: visible; }

body.xp-pharmed-active .xp-stage-dock::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.75'/%3E%3C/svg%3E");
  background-size: 128px 128px; opacity: .15; mix-blend-mode: overlay; pointer-events: none; z-index: 1;
}

body.xp-pharmed-active .xp-stage-dock::after {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), rgba(184,255,87,.28), rgba(255,255,255,.18), transparent);
  pointer-events: none; z-index: 3;
}

body.xp-pharmed-active .xp-stage-dock > * { position: relative; z-index: 2; }

body.xp-pharmed-active .xp-stage-dock-counter { display: flex; align-items: baseline; gap: 3px; font-family: var(--xg-font-mono); font-size: 11px; letter-spacing: .10em; color: rgba(255,255,255,.40); }
body.xp-pharmed-active #stage-current { font-family: var(--xg-font-display); font-size: 22px; font-weight: 300; color: var(--xg-green); line-height: 1; letter-spacing: .04em; }
body.xp-pharmed-active #stage-total { font-size: 12px; color: rgba(255,255,255,.30); }
body.xp-pharmed-active .xp-stage-dock-copy { text-align: center; position: relative; }
body.xp-pharmed-active #dynamic-text { font-family: var(--xg-font-display); font-weight: 300; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; color: var(--xg-white); }
body.xp-pharmed-active .xp-stage-dock-action { display: flex; justify-content: flex-end; }

body.xp-pharmed-active #dynamic-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px;
  background: linear-gradient(168deg, rgba(184,255,87,.12) 0%, rgba(184,255,87,.05) 100%);
  border: 1px solid rgba(184,255,87,.24); border-radius: 8px;
  font-family: var(--xg-font-display); font-size: 12px; font-weight: 400; letter-spacing: .10em; text-transform: uppercase;
  color: var(--xg-green); text-decoration: none; transition: all var(--xg-transition-fast);
  box-shadow: inset 0 1px 0 rgba(184,255,87,.14); position: relative;
}

body.xp-pharmed-active #dynamic-btn::before {
  content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,255,87,.30), transparent); pointer-events: none;
}

body.xp-pharmed-active #dynamic-btn:hover {
  background: linear-gradient(168deg, rgba(184,255,87,.22) 0%, rgba(184,255,87,.10) 100%);
  border-color: rgba(184,255,87,.46); transform: translateX(2px);
  box-shadow: inset 0 1px 0 rgba(184,255,87,.22), 0 0 12px rgba(184,255,87,.08);
}

body.xp-pharmed-active .xp-stats-bar,
body.xp-pharmed-active .xp-stat,
body.xp-pharmed-active .xp-stat-value,
body.xp-pharmed-active .xp-stat-label { display: none !important; }


/* ════════════════════════════════════
   ADMIN BAR OFFSET
════════════════════════════════════ */
body.admin-bar.xp-pharmed-site .xp-header-layer { top: 32px; }

body.admin-bar.xp-pharmed-active .xp-hero-overlay,
body.admin-bar.xp-pharmed-active .xp-bg-effects,
body.admin-bar.xp-pharmed-active .xp-scroll-section,
body.admin-bar.xp-pharmed-active .xp-mobile-menu { top: 32px; height: calc(100% - 32px); }

@media screen and (max-width: 782px) {
  body.admin-bar.xp-pharmed-site .xp-header-layer { top: 46px; }
  body.admin-bar.xp-pharmed-active .xp-hero-overlay,
  body.admin-bar.xp-pharmed-active .xp-bg-effects,
  body.admin-bar.xp-pharmed-active .xp-scroll-section,
  body.admin-bar.xp-pharmed-active .xp-mobile-menu { top: 46px; height: calc(100% - 46px); }
}


/* ════════════════════════════════════
   RESPONSIVE TABLET/LAPTOP
════════════════════════════════════ */
@media (max-width: 1180px) {
  body.xp-pharmed-site .xp-header { align-items: center; }
  body.xp-pharmed-site .xp-header-left { gap: 24px; }
  body.xp-pharmed-site .xp-nav { gap: 16px; }
  body.xp-pharmed-site .xp-utility-nav { gap: 10px; margin-right: 0; }
  body.xp-pharmed-site .xp-utility-link { font-size: 9px; letter-spacing: .12em; }
  body.xp-pharmed-site .xp-header-shop { padding: 10px 16px; }
  body.xp-pharmed-active .xp-stage-dock { width: min(760px, calc(100vw - 120px)); }
}


/* ════════════════════════════════════
   RESPONSIVE MOBILE
════════════════════════════════════ */
@media (max-width: 768px) {
  body.xp-pharmed-site .xp-boot-screen {
    padding: 14px;
  }

  body.xp-pharmed-site .xp-boot-shell {
    width: calc(100vw - 24px);
    min-height: min(540px, calc(100svh - 28px));
    padding: 28px 18px;
    gap: 20px;
    border-radius: 15px;
  }

  body.xp-pharmed-site .xp-boot-brand-kicker {
    font-size: 8px;
    letter-spacing: .20em;
  }

  body.xp-pharmed-site .xp-boot-brand strong {
    font-size: clamp(32px, 12vw, 48px);
    letter-spacing: .08em;
  }

  body.xp-pharmed-site .xp-boot-lines {
    width: 100%;
    gap: 10px;
    min-height: 148px;
  }

  body.xp-pharmed-site .xp-boot-text {
    font-size: 9px;
    letter-spacing: .10em;
    white-space: normal;
    text-wrap: balance;
    max-width: min(88vw, 320px);
  }

  body.xp-pharmed-site .xp-boot-activate {
    min-width: min(100%, 292px);
    min-height: 56px;
    padding: 12px 18px;
  }

  body.xp-pharmed-site .xp-boot-activate-label {
    font-size: 9px;
    letter-spacing: .17em;
  }

  body.xp-pharmed-site .xp-boot-activate-sub {
    font-size: 7.5px;
    letter-spacing: .11em;
    text-wrap: balance;
  }

  body.xp-pharmed-site .xp-boot-note {
    max-width: 286px;
    font-size: 7.5px;
    letter-spacing: .12em;
    line-height: 1.6;
  }

  body.xp-pharmed-site .xp-header-layer { padding: 12px 12px; }
  body.xp-pharmed-site .xp-nav,
  body.xp-pharmed-site .xp-utility-nav,
  body.xp-pharmed-site .xp-social { display: none; }
  body.xp-pharmed-active .xp-left-rail,
  body.xp-pharmed-active .xp-right-rail { display: none; }

  body.xp-pharmed-site .xp-header {
    align-items: center;
    gap: 10px;
  }

  body.xp-pharmed-site .xp-header-left {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }

  body.xp-pharmed-site .xp-logo {
    font-size: 14px;
    letter-spacing: .11em;
  }

  body.xp-pharmed-site .xp-header-right {
    gap: 6px;
    margin-left: auto;
  }

  body.xp-pharmed-site .xp-header-shop {
    order: 1;
    min-height: 36px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 9px;
    letter-spacing: .11em;
    color: var(--xg-white);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.16), 0 4px 14px rgba(0,0,0,.20);
  }

  body.xp-pharmed-site .xp-sound-btn--header {
    position: relative;
    left: auto;
    bottom: auto;
    top: auto;
    right: auto;
    order: 2;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex: 0 0 38px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 50%;
    opacity: 1;
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.08);
    color: rgba(255,255,255,.72);
  }

  body.xp-pharmed-site .xp-sound-btn:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(184,255,87,.18);
    transform: translateY(-1px);
  }

  body.xp-pharmed-site .xp-sound-btn.active {
    background: rgba(184,255,87,.07);
    border-color: rgba(184,255,87,.28);
  }

  body.xp-pharmed-site .xp-sound-btn svg.xg-audio-icon {
    width: 17px;
    height: 17px;
  }

  body.xp-pharmed-site .xp-sound-btn .audio-speaker { stroke-width: 1.62; }
  body.xp-pharmed-site .xp-sound-btn .audio-wave { stroke-width: 1.36; }
  body.xp-pharmed-site .xp-sound-btn .audio-slash { stroke-width: 1.24; }

  body.xp-pharmed-site .xp-menu-toggle {
    display: flex;
    order: 3;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  body.xp-pharmed-site .xp-menu-toggle span { width: 16px; }

  /* Overlay SOLO mobile — versión suavizada */
  body.xp-pharmed-active .xp-hero-overlay::after {
    background:
      linear-gradient(
        180deg,
        rgba(2,2,2,.00) 0%,
        rgba(2,2,2,.02) 16%,
        rgba(2,2,2,.07) 34%,
        rgba(2,2,2,.20) 56%,
        rgba(2,2,2,.42) 78%,
        rgba(2,2,2,.62) 100%
      ),
      radial-gradient(
        ellipse 88% 82% at 50% 26%,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.03) 44%,
        rgba(0,0,0,.12) 72%,
        rgba(0,0,0,.22) 100%
      );
  }

  body.xp-pharmed-active #xp-particles-canvas {
    transform: translateY(38px);
  }

  body.xp-pharmed-active .xp-hero-center {
    top: calc(50% - 18px);
    padding: 0 14px;
  }

  body.xp-pharmed-active .xp-pre-eye {
    position: absolute;
    top: -156px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 28px);
    justify-content: center;
    margin-bottom: 0;
    font-size: 8px;
    letter-spacing: .24em;
    white-space: nowrap;
    z-index: 24;
  }

  body.xp-pharmed-active .xp-pre-eye::before,
  body.xp-pharmed-active .xp-pre-eye::after { width: 18px; }

  body.xp-pharmed-active .hl-block {
    min-height: 176px;
    justify-content: flex-start;
  }

  body.xp-pharmed-active .hl-top {
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(13px, 3.6vw, 16px);
    letter-spacing: .28em;
    padding-right: 0;
    margin-bottom: 12px;
  }

  body.xp-pharmed-active .hl-top.hide-mobile {
    display: flex;
    visibility: hidden;
    opacity: 0 !important;
  }

  body.xp-pharmed-active .hl-main {
    white-space: nowrap;
    width: auto;
    max-width: 94vw;
    margin-inline: auto;
    line-height: .88;
    text-wrap: nowrap;
  }

  body.xp-pharmed-active .hl-bottom {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 30px);
    padding: 8px 10px;
    font-size: clamp(8px, 2.5vw, 10px);
    letter-spacing: .15em;
    line-height: 1.45;
    white-space: normal;
    text-wrap: balance;
    margin-top: 14px;
  }

  body.xp-pharmed-active .hl-sub {
    bottom: 120px;
    padding: 0 20px;
  }

  body.xp-pharmed-active .hl-sub span {
    font-size: 11px;
    line-height: 1.68;
  }

  body.xp-pharmed-active .hl-sub span:not(.cta-hint) {
    max-width: min(84vw, 296px);
  }

  body.xp-pharmed-active .hl-sub .cta-hint {
    margin-top: 12px;
    font-size: 9px !important;
    letter-spacing: .18em !important;
  }

  body.xp-pharmed-active .hl-sub .cta-hint::before,
  body.xp-pharmed-active .hl-sub .cta-hint::after { width: 18px; }

  body.xp-pharmed-active .xp-scroll-indicator {
    bottom: 74px;
    gap: 6px;
    font-size: 9px;
  }

  body.xp-pharmed-active .xp-beam-left,
  body.xp-pharmed-active .xp-beam-right { opacity: .48; }

  body.xp-pharmed-active .xp-green-edge { width: 68vw; }

  body.xp-pharmed-active .xp-stage-dock {
    width: calc(100% - 20px);
    grid-template-columns: auto 1fr;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 12px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    cursor: pointer;
    background: linear-gradient(168deg, rgba(255,255,255,.060) 0%, rgba(255,255,255,.020) 56%, rgba(0,0,0,.12) 100%);
    border-color: rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 -1px 0 rgba(0,0,0,.18), 0 8px 26px rgba(0,0,0,.34);
  }

  body.xp-pharmed-active .xp-stage-dock:active { transform: translateY(1px); }

  body.xp-pharmed-active .xp-stage-dock-action { display: none; }

  body.xp-pharmed-active .xp-stage-dock-copy {
    padding-right: 16px;
    text-align: left;
  }

  body.xp-pharmed-active .xp-stage-dock-copy::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid rgba(184,255,87,.72);
    border-right: 1.5px solid rgba(184,255,87,.72);
    transform: translateY(-50%) rotate(45deg);
    opacity: .88;
    pointer-events: none;
  }

  body.xp-pharmed-active #stage-current { font-size: 15px; color: var(--xg-green); }
  body.xp-pharmed-active #stage-total { font-size: 9px; }
  body.xp-pharmed-active #dynamic-text {
    font-size: 10px;
    letter-spacing: .03em;
    line-height: 1.32;
    color: rgba(255,255,255,.92);
  }
}

@media (max-width: 400px) {
  body.xp-pharmed-site .xp-header-layer { padding: 11px 10px; }
  body.xp-pharmed-site .xp-logo { font-size: 13px; }
  body.xp-pharmed-site .xp-header-right { gap: 5px; }
  body.xp-pharmed-site .xp-header-shop {
    min-height: 34px;
    padding: 0 10px;
    font-size: 8.6px;
  }
  body.xp-pharmed-site .xp-sound-btn--header {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    aspect-ratio: 1 / 1;
  }
  body.xp-pharmed-site .xp-menu-toggle { width: 36px; height: 36px; flex-basis: 36px; }

  body.xp-pharmed-active #xp-particles-canvas { transform: translateY(34px); }
  body.xp-pharmed-active .xp-hero-center { top: calc(50% - 14px); }
  body.xp-pharmed-active .xp-pre-eye {
    top: -146px;
    max-width: calc(100vw - 24px);
    font-size: 7.4px;
    letter-spacing: .20em;
  }
  body.xp-pharmed-active .xp-pre-eye::before,
  body.xp-pharmed-active .xp-pre-eye::after { width: 14px; }

  body.xp-pharmed-active .hl-block { min-height: 168px; }
  body.xp-pharmed-active .hl-main { max-width: 94vw; }
  body.xp-pharmed-active .hl-bottom {
    min-height: 40px;
    max-width: calc(100vw - 24px);
    letter-spacing: .13em;
    padding: 7px 9px;
  }

  body.xp-pharmed-active .hl-sub {
    bottom: 114px;
    padding: 0 18px;
  }

  body.xp-pharmed-active .hl-sub span:not(.cta-hint) {
    max-width: min(88vw, 284px);
  }

  body.xp-pharmed-active .xp-scroll-indicator { bottom: 70px; }

  body.xp-pharmed-active .xp-stage-dock {
    width: calc(100% - 18px);
    padding: 10px 12px;
    grid-template-columns: 1fr;
    gap: 5px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  body.xp-pharmed-active .xp-stage-dock-counter { justify-content: center; }
  body.xp-pharmed-active .xp-stage-dock-copy {
    padding-right: 14px;
    text-align: center;
  }
  body.xp-pharmed-active .xp-stage-dock-copy::after { right: 0; width: 6px; height: 6px; }
  body.xp-pharmed-active #dynamic-text { font-size: 9.6px; }
}


/* ════════════════════════════════════
   HEADER UNIVERSAL — páginas internas
════════════════════════════════════ */
body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-social,
body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-sound-btn {
  opacity: 1;
}

body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-social {
  pointer-events: auto;
}

body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-header-layer {
  visibility: visible;
  opacity: 1;
}


/* ════════════════════════════════════
   VERIFICADOR — independiente de la home
════════════════════════════════════ */
.xv-section,
.xv-section * { box-sizing: border-box; }

.xv-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(184,255,87,.035) 0%, rgba(184,255,87,0) 34%),
    linear-gradient(180deg, #050505 0%, #020202 100%);
  color: #fff;
  width: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Reset agresivo de Elementor dentro del verificador */
.xv-section .elementor-widget-container,
.xv-section .e-con,
.xv-section .elementor-element,
.xv-section .elementor {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.xv-section a { text-decoration: none; }
.xv-section button, .xv-section input { font: inherit; }
.xv-section img { max-width: 100%; height: auto; }

/* Fondo hero-like desactivado en verificador */
.xv-rings-canvas,
.xv-grain,
.xv-vig {
  display: none !important;
}

.xv-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 86px 32px 72px;
}

.xv-eyebrow {
  font-family: var(--xv-font-m);
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(184,255,87,.64);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.xv-eyebrow::before,
.xv-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(184,255,87,.25);
}

.xv-heading {
  font-family: var(--xv-font-d);
  font-weight: 300;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--xv-white);
  line-height: .9;
  margin-bottom: 10px;
}

.xv-sub {
  font-family: var(--xv-font-m);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--xv-muted);
  margin-bottom: 44px;
}

.xv-input-label {
  font-family: var(--xv-font-m);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin-bottom: 8px;
}

.xv-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.xv-input {
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 15px 20px;
  font-family: var(--xv-font-m);
  font-size: 14px;
  letter-spacing: .16em;
  color: var(--xv-white);
  outline: none;
  text-transform: uppercase;
  transition: border-color var(--xv-ease), background var(--xv-ease), box-shadow var(--xv-ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.xv-input::placeholder {
  color: rgba(255,255,255,.24);
  text-transform: uppercase;
}

.xv-input:hover {
  border-color: rgba(255,255,255,.22);
}

.xv-input:focus {
  border-color: rgba(184,255,87,.46);
  background: linear-gradient(180deg, rgba(184,255,87,.05) 0%, rgba(255,255,255,.03) 100%);
  box-shadow: 0 0 0 1px rgba(184,255,87,.14), inset 0 1px 0 rgba(255,255,255,.08);
}

.xv-input.xv-input-error {
  border-color: rgba(255,90,90,.48);
  box-shadow: 0 0 0 1px rgba(255,90,90,.18);
}

.xv-btn-verify {
  padding: 15px 26px;
  background: linear-gradient(168deg, rgba(184,255,87,.14) 0%, rgba(184,255,87,.05) 100%);
  border: 1px solid rgba(184,255,87,.28);
  border-radius: 10px;
  color: var(--xv-green);
  font-family: var(--xv-font-m);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--xv-ease);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(184,255,87,.14);
  position: relative;
  overflow: hidden;
}

.xv-btn-verify::after {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,255,87,.22), transparent);
}

.xv-btn-verify:hover {
  background: linear-gradient(168deg, rgba(184,255,87,.24) 0%, rgba(184,255,87,.10) 100%);
  border-color: rgba(184,255,87,.52);
  color: var(--xv-green);
  box-shadow: 0 0 18px rgba(184,255,87,.08), inset 0 1px 0 rgba(184,255,87,.22);
}

.xv-btn-verify:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.xv-btn-verify svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

.xv-btn-qr {
  width: 52px;
  flex-shrink: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--xv-ease);
  color: rgba(255,255,255,.52);
}

.xv-btn-qr:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(184,255,87,.25);
  color: var(--xv-green);
}

.xv-btn-qr svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.xv-qr-container {
  display: none;
  margin-top: 20px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.xv-qr-container.active { display: block; animation: xvFadeUp .3s ease; }
.xv-qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--xv-font-m);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.xv-qr-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.35);
  font-size: 16px;
  line-height: 1;
  transition: color var(--xv-ease);
}
.xv-qr-close:hover { color: var(--xv-white); }
#xv-qr-reader { width: 100%; }
#xv-qr-reader video { width: 100% !important; }

.xv-scanner { display: none; margin-top: 28px; }
.xv-scanner.active { display: block !important; visibility: visible; opacity: 1; animation: xvFadeUp .3s ease; }
.xv-scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.xv-scanner-id {
  font-family: var(--xv-font-m);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.35);
}
.xv-scanner-status {
  font-family: var(--xv-font-m);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--xv-green);
  display: flex;
  align-items: center;
  gap: 7px;
}

.xv-scan-meta {
  margin-bottom: 12px;
}

.xv-scan-code-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  min-width: min(100%, 420px);
  background: linear-gradient(168deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.018) 60%, rgba(0,0,0,.08) 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.xv-scan-code-label {
  font-family: var(--xv-font-m);
  font-size: 8px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(255,255,255,.30);
}

.xv-scan-code {
  font-family: var(--xv-font-m);
  font-size: 13px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.88);
  word-break: break-word;
}

.xv-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--xv-green);
  animation: xvDotPulse 1s ease infinite;
}
@keyframes xvDotPulse { 0%,100% { opacity: .3; transform: scale(.75); } 50% { opacity: 1; transform: scale(1); } }

.xv-scan-box {
  background: linear-gradient(168deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.015) 60%, rgba(0,0,0,.10) 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.xv-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,255,87,.65), transparent);
  top: 0;
  animation: xvScanLine 1.9s ease-in-out infinite;
}
@keyframes xvScanLine { 0% { top: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.xv-scan-box::before, .xv-scan-box::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(184,255,87,.35);
  border-style: solid;
}
.xv-scan-box::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.xv-scan-box::after  { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.xv-phases { display: flex; flex-direction: column; gap: 11px; margin-bottom: 20px; }
.xv-phase {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--xv-font-m);
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.25);
  transition: color .4s ease;
}
.xv-phase.active { color: var(--xv-green); }
.xv-phase.done   { color: rgba(255,255,255,.6); }
.xv-phase-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0;
  flex-shrink: 0;
  transition: all .4s ease;
}
.xv-phase.active .xv-phase-icon { border-color: rgba(184,255,87,.55); color: var(--xv-green); animation: xvIconPulse .9s ease infinite; }
.xv-phase.done .xv-phase-icon { background: rgba(184,255,87,.12); border-color: rgba(184,255,87,.35); color: var(--xv-green); }
@keyframes xvIconPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(184,255,87,.25); } 50% { box-shadow: 0 0 0 5px rgba(184,255,87,.04); } }

.xv-progress-track { height: 2px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.xv-progress-bar { height: 100%; background: linear-gradient(90deg, rgba(184,255,87,.6), var(--xv-green)); border-radius: 2px; width: 0; transition: width .1s linear; }
.xv-hex-stream {
  font-family: var(--xv-font-m);
  font-size: 9px;
  letter-spacing: .1em;
  color: rgba(184,255,87,.3);
  margin-top: 14px;
  line-height: 1.9;
  word-break: break-all;
  min-height: 38px;
}

.xv-result { display: none; margin-top: 28px; }
.xv-result.show { display: block !important; animation: xvFadeUp .55s ease; }

@keyframes xvFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.xv-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.xv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(184,255,87,.08);
  border: 1px solid rgba(184,255,87,.28);
  border-radius: 6px;
  font-family: var(--xv-font-m);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--xv-green);
}
.xv-badge.danger { background: rgba(255,60,60,.08); border-color: rgba(255,60,60,.28); color: rgba(255,100,100,.9); }
.xv-badge svg { width: 13px; height: 13px; stroke: currentColor; flex-shrink: 0; }
.xv-result-lote { font-family: var(--xv-font-m); font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.28); }
.xv-prod-name { font-family: var(--xv-font-d); font-weight: 300; font-size: clamp(22px, 4vw, 36px); letter-spacing: .09em; text-transform: uppercase; color: var(--xv-white); margin-bottom: 4px; }
.xv-prod-cat { font-family: var(--xv-font-m); font-size: 9px; letter-spacing: .2em; color: rgba(184,255,87,.6); margin-bottom: 24px; }
.xv-alert-warn { display: none; background: rgba(255,180,0,.06); border: 1px solid rgba(255,180,0,.22); border-radius: 8px; padding: 11px 16px; margin-bottom: 18px; font-family: var(--xv-font-m); font-size: 10px; letter-spacing: .1em; color: rgba(255,195,50,.85); }

.xv-data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.xv-data-card { background: linear-gradient(168deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.018) 60%, rgba(0,0,0,.10) 100%); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; padding: 14px 16px; position: relative; overflow: hidden; transition: border-color var(--xv-ease); }
.xv-data-card::after { content: ''; position: absolute; top: 0; left: 14%; right: 14%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent); }
.xv-data-card.feat { border-color: rgba(184,255,87,.2); background: linear-gradient(168deg, rgba(184,255,87,.08) 0%, rgba(184,255,87,.025) 60%, rgba(0,0,0,.10) 100%); }
.xv-data-card.feat::after { background: linear-gradient(90deg, transparent, rgba(184,255,87,.2), transparent); }
.xv-data-card.full { grid-column: 1 / -1; }
.xv-data-label { font-family: var(--xv-font-m); font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 6px; }
.xv-data-val { font-family: var(--xv-font-m); font-size: 14px; letter-spacing: .06em; color: var(--xv-white); line-height: 1.3; }
.xv-data-val.green { color: var(--xv-green); }
.xv-data-val.warn  { color: rgba(255,180,0,.85); }
.xv-data-sub { font-size: 8px; letter-spacing: .1em; color: rgba(255,255,255,.22); margin-top: 3px; }

.xv-integrity { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; padding: 18px; margin-bottom: 18px; }
.xv-integrity-title { font-family: var(--xv-font-m); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 14px; }
.xv-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.xv-bar-row:last-child { margin-bottom: 0; }
.xv-bar-label { font-family: var(--xv-font-m); font-size: 9px; letter-spacing: .10em; color: rgba(255,255,255,.38); width: 140px; flex-shrink: 0; }
.xv-bar-track { flex: 1; height: 3px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.xv-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(184,255,87,.6), var(--xv-green)); width: 0; transition: width 1.4s cubic-bezier(.22,.61,.36,1); }
.xv-bar-pct { font-family: var(--xv-font-m); font-size: 9px; letter-spacing: .1em; color: rgba(184,255,87,.65); width: 36px; text-align: right; flex-shrink: 0; }

.xv-prod-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: 8px; font-family: var(--xv-font-m); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.56); text-decoration: none; transition: all var(--xv-ease); margin-bottom: 18px; }
.xv-prod-link:hover { background: rgba(184,255,87,.06); border-color: rgba(184,255,87,.25); color: var(--xv-green); }
.xv-prod-link svg { width: 12px; height: 12px; stroke: currentColor; }

.xv-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.xv-footer-txt { font-family: var(--xv-font-m); font-size: 8px; letter-spacing: .12em; color: rgba(255,255,255,.2); }
.xv-new-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--xv-font-m);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
  transition: background var(--xv-ease), border-color var(--xv-ease), color var(--xv-ease), transform var(--xv-ease);
  padding-top: 0;
}
.xv-new-btn:hover {
  background: rgba(184,255,87,.06);
  border-color: rgba(184,255,87,.24);
  color: var(--xv-green);
  transform: translateY(-1px);
}

.xv-fail {
  display: none;
  margin-top: 28px;
  background: rgba(255,50,50,.05);
  border: 1px solid rgba(255,60,60,.20);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  animation: xvFadeUp .45s ease;
}
.xv-fail.show { display: block !important; }
.xv-fail-icon { font-size: 32px; color: rgba(255,80,80,.6); margin-bottom: 12px; }
.xv-fail-title { font-family: var(--xv-font-d); font-size: 20px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,110,110,.9); margin-bottom: 8px; }
.xv-fail-sub { font-family: var(--xv-font-m); font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.3); line-height: 1.9; margin-bottom: 20px; }
.xv-fail-sub a { color: rgba(184,255,87,.55); }
.xv-fail-sub a:hover { color: rgba(184,255,87,.9); }
.xv-recalled { background: rgba(255,100,0,.06); border: 1px solid rgba(255,100,0,.25); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; font-family: var(--xv-font-m); font-size: 10px; letter-spacing: .1em; color: rgba(255,130,50,.9); display: none; }

@media (max-width: 640px) {
  .xv-inner { padding: 60px 18px 54px; }
  .xv-input-row { flex-wrap: wrap; }
  .xv-btn-verify { width: 100%; justify-content: center; }
  .xv-btn-qr { width: 100%; height: 48px; }
  .xv-data-grid { grid-template-columns: 1fr 1fr; }
  .xv-bar-label { width: 100px; }
  .xv-result-top { flex-direction: column; align-items: flex-start; }
  .xv-scanner-header { flex-direction: column; align-items: flex-start; }
  .xv-scan-code-wrap { width: 100%; min-width: 0; }
}

@media (max-width: 380px) {
  .xv-data-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════
   REDUCED MOTION
════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .xv-scan-line, .xv-dot-pulse, .xv-grain,
  body.xp-pharmed-active .xp-left-rail::after,
  body.xp-pharmed-active .xp-right-rail::after,
  body.xp-pharmed-active .xp-scroll-indicator svg,
  body.xp-pharmed-active .xp-grain,
  body.xp-pharmed-site .xp-sound-btn .audio-wave,
  body.xp-pharmed-site .xp-sound-btn .audio-slash { animation: none !important; }
  .xv-bar-fill { transition: none; }
  body.xp-pharmed-site .xg-btn,
  body.xp-pharmed-site .xp-sound-btn { transition: none; }
  body.xp-pharmed-active .xp-stage-dock { transition: none; }
} /* ← CIERRE AGREGADO AQUÍ */

/* ============================================================
   SECCIONES POST-HERO — BASE COMPARTIDA
   Aplica a #ciencia, #adn y #stack
   APPEND al final de xpharmed-global.css
   ============================================================ */

/* ── Variables de secciones ── */
:root {
  --xg-section-pad-v: clamp(80px, 11vh, 140px);
  --xg-section-pad-h: clamp(24px, 6vw, 96px);
  --xg-pillar-border: rgba(255,255,255,.07);
  --xg-section-max: 1080px;
}

/* ── Base de sección ── */
body.xp-pharmed-site .xp-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--xg-void);
  overflow: hidden;
  isolation: isolate;
}

/* ── Canvas decorativo interno ── */
body.xp-pharmed-site .xp-section-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* ── Inner container ── */
body.xp-pharmed-site .xp-section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--xg-section-max);
  margin: 0 auto;
  padding: var(--xg-section-pad-v) var(--xg-section-pad-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* ── Eyebrow ── */
body.xp-pharmed-site .xp-section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--xg-font-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(184,255,87,.60);
  margin-bottom: clamp(22px, 3.5vh, 40px);
}

body.xp-pharmed-site .xp-eyebrow-sep {
  display: block;
  width: 20px;
  height: 1px;
  background: rgba(184,255,87,.25);
  flex-shrink: 0;
}

/* ── Heading ── */
body.xp-pharmed-site .xp-section-heading {
  font-family: var(--xg-font-display);
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 56px);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--xg-white);
  line-height: .95;
  margin: 0 0 clamp(16px, 2.5vh, 28px);
}

/* ── Sub ── */
body.xp-pharmed-site .xp-section-sub {
  font-family: var(--xg-font-mono);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--xg-muted);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 0 clamp(48px, 7vh, 88px);
}

/* ── CTA ── */
body.xp-pharmed-site .xp-section-cta {
  margin-top: clamp(40px, 6vh, 72px);
}

body.xp-pharmed-site .xp-section-btn {
  gap: 10px;
  font-size: 12px;
  letter-spacing: .16em;
}


/* ============================================================
   PILARES — #ciencia
   ============================================================ */
body.xp-pharmed-site .xp-pillars {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 860px;
  background: linear-gradient(168deg,
    rgba(255,255,255,.045) 0%,
    rgba(255,255,255,.018) 55%,
    rgba(0,0,0,.08) 100%
  );
  border: 1px solid var(--xg-pillar-border);
  border-radius: var(--xg-radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
}

/* Línea superior sutil */
body.xp-pharmed-site .xp-pillars::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(184,255,87,.18),
    transparent
  );
  pointer-events: none;
}

body.xp-pharmed-site .xp-pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 4vh, 48px) clamp(20px, 2.5vw, 36px);
  gap: 8px;
}

/* Divisor vertical entre pilares */
body.xp-pharmed-site .xp-pillar-divider {
  width: 1px;
  background: var(--xg-pillar-border);
  flex-shrink: 0;
  align-self: stretch;
}

/* Número grande */
body.xp-pharmed-site .xp-pillar-num {
  font-family: var(--xg-font-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: .04em;
  color: var(--xg-green);
  line-height: 1;
}

body.xp-pharmed-site .xp-pillar-num span {
  font-size: .55em;
  letter-spacing: .08em;
  opacity: .75;
}

/* Label */
body.xp-pharmed-site .xp-pillar-label {
  font-family: var(--xg-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--xg-white);
  margin-top: 4px;
}

/* Descripción */
body.xp-pharmed-site .xp-pillar-desc {
  font-family: var(--xg-font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--xg-muted);
  line-height: 1.65;
  max-width: 200px;
}


/* ============================================================
   RESPONSIVE — SECCIONES POST-HERO
   ============================================================ */
@media (max-width: 768px) {

  body.xp-pharmed-site .xp-section-sub br {
    display: none;
  }

  body.xp-pharmed-site .xp-section-heading br {
    display: none;
  }

  body.xp-pharmed-site .xp-pillars {
    flex-direction: column;
    max-width: 100%;
  }

  body.xp-pharmed-site .xp-pillar-divider {
    width: auto;
    height: 1px;
    align-self: stretch;
  }

  body.xp-pharmed-site .xp-pillar {
    padding: 28px 24px;
  }

  body.xp-pharmed-site .xp-pillar-desc {
    max-width: 100%;
  }

}

@media (max-width: 480px) {

  body.xp-pharmed-site .xp-section-eyebrow {
    font-size: 8px;
    letter-spacing: .22em;
    gap: 8px;
  }

  body.xp-pharmed-site .xp-section-sub {
    font-size: 11px;
  }
}
/* ============================================================
   SECCIÓN #ADN — CSS
   APPEND al final de xpharmed-global.css (después del bloque de #ciencia)
   ============================================================ */

/* ── Layout dividido ── */
body.xp-pharmed-site .xp-section--adn {
  align-items: stretch;
  padding: 0;
}

body.xp-pharmed-site .xp-adn-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

/* ── Izquierda ── */
body.xp-pharmed-site .xp-adn-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 8vh, 100px) clamp(24px, 4vw, 64px);
  border-right: 1px solid rgba(255,255,255,.06);
  position: relative;
  gap: 20px;
}

body.xp-pharmed-site .xp-adn-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--xg-font-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(184,255,87,.60);
  align-self: flex-start;
}

/* ── Stack tabs ── */
body.xp-pharmed-site .xp-stack-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 3px;
  align-self: flex-start;
}

body.xp-pharmed-site .xp-stack-tab {
  font-family: var(--xg-font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all var(--xg-transition-base);
  white-space: nowrap;
}

body.xp-pharmed-site .xp-stack-tab:hover {
  color: rgba(255,255,255,.72);
}

body.xp-pharmed-site .xp-stack-tab.active {
  background: rgba(184,255,87,.10);
  border: 1px solid rgba(184,255,87,.22);
  color: var(--xg-green);
}

/* ── Figura canvas ── */
body.xp-pharmed-site .xp-adn-figure-wrap {
  flex: 1;
  width: 100%;
  position: relative;
  min-height: 300px;
}

body.xp-pharmed-site #xp-adn-canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ── Derecha ── */
body.xp-pharmed-site .xp-adn-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 8vh, 100px) clamp(24px, 4vw, 64px);
}

/* ── Monitor ── */
body.xp-pharmed-site .xp-monitor {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Monitor header */
body.xp-pharmed-site .xp-monitor-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.xp-pharmed-site .xp-monitor-id {
  font-family: var(--xg-font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
}

body.xp-pharmed-site .xp-monitor-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.xp-pharmed-site .xp-monitor-protocol {
  font-family: var(--xg-font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--xg-green);
  transition: opacity .25s ease;
}

/* Wave section */
body.xp-pharmed-site .xp-monitor-wave-wrap {
  background: linear-gradient(168deg,
    rgba(255,255,255,.032) 0%,
    rgba(255,255,255,.012) 60%,
    rgba(0,0,0,.08) 100%
  );
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--xg-radius-lg);
  overflow: hidden;
  position: relative;
}

body.xp-pharmed-site .xp-monitor-wave-label {
  font-family: var(--xg-font-mono);
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.20);
  padding: 10px 14px 0;
}

body.xp-pharmed-site #xp-monitor-canvas {
  display: block;
  width: 100%;
  height: 72px;
}

/* Metrics */
body.xp-pharmed-site .xp-monitor-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body.xp-pharmed-site .xp-monitor-metric {
  background: linear-gradient(168deg,
    rgba(255,255,255,.042) 0%,
    rgba(255,255,255,.015) 60%,
    rgba(0,0,0,.08) 100%
  );
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease;
}

body.xp-pharmed-site .xp-monitor-metric::after {
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}

body.xp-pharmed-site .xp-metric-label {
  font-family: var(--xg-font-mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  line-height: 1.3;
}

body.xp-pharmed-site .xp-metric-value {
  font-family: var(--xg-font-display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--xg-green);
  line-height: 1;
}

body.xp-pharmed-site .xp-metric-value span {
  font-size: 11px;
  letter-spacing: .10em;
  opacity: .65;
}

/* Compounds */
body.xp-pharmed-site .xp-monitor-compounds {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.xp-pharmed-site .xp-compounds-label {
  font-family: var(--xg-font-mono);
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
}

body.xp-pharmed-site .xp-compounds-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.xp-pharmed-site .xp-compound-tag {
  font-family: var(--xg-font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 5px 10px;
  transition: all var(--xg-transition-fast);
}

body.xp-pharmed-site .xp-compound-tag:hover {
  color: var(--xg-green);
  border-color: rgba(184,255,87,.22);
}

/* CTA */
body.xp-pharmed-site .xp-monitor-cta {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: .16em;
  gap: 10px;
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {

  body.xp-pharmed-site .xp-adn-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  body.xp-pharmed-site .xp-adn-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    min-height: 60vh;
    padding: 48px 24px 32px;
  }

  body.xp-pharmed-site .xp-adn-figure-wrap {
    min-height: 260px;
    width: 100%;
  }

  body.xp-pharmed-site .xp-adn-right {
    padding: 32px 24px 56px;
  }

  body.xp-pharmed-site .xp-monitor {
    max-width: 100%;
  }

  body.xp-pharmed-site .xp-monitor-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 480px) {

  body.xp-pharmed-site .xp-stack-tab {
    padding: 7px 12px;
    font-size: 9px;
    letter-spacing: .10em;
  }

  body.xp-pharmed-site .xp-monitor-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  body.xp-pharmed-site .xp-metric-value {
    font-size: 18px;
  }

  body.xp-pharmed-site .xp-monitor-cta {
    width: 100%;
    justify-content: center;
  }

}
/* ============================================================
   FIX FINAL v12.3B — POST-HERO / ONE SECTION PER VIEW
   Objetivo:
   - Mientras el hero está activo, #ciencia/#adn/#stack no ocupan layout.
   - Al salir del hero, cada sección ocupa exactamente una pantalla.
   - Evita que #ciencia y #adn se visualicen simultáneamente.
   - Neutraliza la excepción anterior de ADN height:auto en mobile/tablet.
   - Usa !important porque existe CSS inline crítico en wp_head.
   ============================================================ */

/* Evita offsets raros al navegar por hash/anclas */
html:has(body.xp-pharmed-site),
body.xp-pharmed-site {
  scroll-padding-top: 0 !important;
}

/* Snap solo cuando el hero ya no está en modo narrativo */
html:has(body.xp-pharmed-site:not(.xp-pharmed-hero)) {
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
}

/* Durante el hero, las secciones post-hero NO deben participar del flujo */
body.xp-pharmed-hero .xp-section {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Una vez liberado el hero, cada sección funciona como pantalla completa */
body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  width: 100% !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  height: 100vh !important;
  height: 100svh !important;
  max-height: 100vh !important;
  max-height: 100svh !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Cuando el usuario salió del hero, el bloque intro queda completamente colapsado */
body.xp-pharmed-site:not(.xp-pharmed-hero) #seccion-particulas {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Asegura que los anchors no queden desplazados por header fijo */
body.xp-pharmed-site .xp-section[id] {
  scroll-margin-top: 0 !important;
}

/* Inner genérico: contenido contenido dentro de la pantalla */
body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section-inner {
  max-height: 100% !important;
  overflow: hidden !important;
}

/* Neutraliza wrappers de Elementor que pueden agregar alto extra entre secciones */
body.xp-pharmed-site .elementor-widget-html:has(.xp-section),
body.xp-pharmed-site .elementor-widget-html:has(.xp-section) .elementor-widget-container,
body.xp-pharmed-site .elementor-12 .e-con:has(.xp-section) {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ============================================================
   CIENCIA — compresión visual segura dentro de 100svh
   ============================================================ */
body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-inner {
  justify-content: center !important;
}

@media (max-height: 760px) and (min-width: 769px) {
  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-inner {
    padding-top: 58px !important;
    padding-bottom: 42px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-eyebrow {
    margin-bottom: 18px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-heading {
    font-size: clamp(30px, 3.8vw, 46px) !important;
    margin-bottom: 14px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-sub {
    margin-bottom: 34px !important;
    line-height: 1.55 !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-cta {
    margin-top: 30px !important;
  }
}

@media (max-width: 768px) {
  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-inner {
    padding: 72px 18px 26px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-eyebrow {
    margin-bottom: 14px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-heading {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: .98 !important;
    margin-bottom: 12px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-sub {
    font-size: 10px !important;
    line-height: 1.52 !important;
    margin-bottom: 18px !important;
    max-width: 94vw !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-pillars {
    max-height: calc(100svh - 335px) !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-pillar {
    padding: 13px 18px !important;
    gap: 5px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-pillar-num {
    font-size: clamp(24px, 7vw, 34px) !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-pillar-label,
  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-pillar-desc {
    font-size: 9px !important;
    line-height: 1.35 !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #ciencia .xp-section-cta {
    margin-top: 18px !important;
  }
}

/* ============================================================
   ADN — NO permitir height:auto; contenido adaptado a 100svh
   ============================================================ */
body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn {
  align-items: stretch !important;
  padding: 0 !important;
}

body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-layout {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn {
    height: 100vh !important;
    height: 100svh !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    max-height: 100vh !important;
    max-height: 100svh !important;
    overflow: hidden !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-adn-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 52%) minmax(0, 48%) !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-adn-left {
    min-height: 0 !important;
    height: 100% !important;
    padding: 70px 20px 16px !important;
    gap: 9px !important;
    overflow: hidden !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-adn-eyebrow {
    font-size: 8px !important;
    letter-spacing: .22em !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-stack-tabs {
    transform: scale(.92) !important;
    transform-origin: left center !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-adn-figure-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-adn-right {
    min-height: 0 !important;
    height: 100% !important;
    padding: 16px 20px 22px !important;
    overflow: hidden !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-monitor {
    max-height: 100% !important;
    gap: 9px !important;
    overflow: hidden !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) #xp-monitor-canvas {
    height: 50px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-monitor-wave-label {
    padding-top: 8px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-monitor-metric {
    padding: 8px 7px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-metric-value {
    font-size: 16px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-compound-tag {
    padding: 4px 7px !important;
    font-size: 8px !important;
  }
}

@media (max-width: 480px) {
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-adn-layout {
    grid-template-rows: minmax(0, 50%) minmax(0, 50%) !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-adn-left {
    padding: 64px 16px 12px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-adn-right {
    padding: 12px 16px 18px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-monitor-header {
    gap: 5px !important;
  }

  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-monitor-protocol {
    font-size: 9px !important;
    letter-spacing: .12em !important;
  }
}
/* ============================================================
   POST-HERO CONTROLLER — v12.4
   Muestra una sola sección activa: Ciencia / ADN / Catálogo / Stack
   ============================================================ */
html.xp-post-sections-html,
html:has(body.xp-post-sections-active),
body.xp-post-sections-active {
  overflow: hidden !important;
  height: 100% !important;
  min-height: 100% !important;
  background: #020202 !important;
  scroll-snap-type: none !important;
  overscroll-behavior: none !important;
}

body.xp-post-sections-active #seccion-particulas {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.xp-post-sections-active .xp-scroll-section,
body.xp-post-sections-active .xp-bg-effects,
body.xp-post-sections-active .xp-hero-overlay,
body.xp-post-sections-active .xp-stage-dock {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.xp-post-sections-active .xp-section {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100svh !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  max-height: 100vh !important;
  max-height: 100svh !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--xg-void) !important;
  transform: translateZ(0);
}

body.xp-post-sections-active .xp-section.is-active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.xp-post-sections-active .xp-section-inner {
  width: 100% !important;
  max-height: 100vh !important;
  max-height: 100svh !important;
  overflow: visible !important;
  padding-top: clamp(78px, 10vh, 112px) !important;
  padding-bottom: clamp(42px, 7vh, 82px) !important;
}

body.xp-post-sections-active .xp-section--adn,
body.xp-post-sections-active .xp-section--adn.is-active {
  align-items: stretch !important;
}

body.xp-post-sections-active .xp-section--adn .xp-adn-layout {
  width: 100% !important;
  height: 100vh !important;
  height: 100svh !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  max-height: 100vh !important;
  max-height: 100svh !important;
  overflow: hidden !important;
}

body.xp-post-sections-active .xp-section--adn .xp-adn-left,
body.xp-post-sections-active .xp-section--adn .xp-adn-right {
  min-height: 0 !important;
  overflow: hidden !important;
}

body.xp-post-sections-active .xp-header-layer {
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 80 !important;
}

body.xp-post-sections-active .xp-social,
body.xp-post-sections-active .xp-sound-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.xp-post-sections-active .xp-nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

@media (max-width: 900px) {
  body.xp-post-sections-active .xp-section {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
  }

  body.xp-post-sections-active .xp-section-inner {
    padding-top: 78px !important;
    padding-bottom: 28px !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-layout {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
}


/* ============================================================
   ADN VISUAL FIX — v12.5
   - Baja el mini menú de tabs en desktop para que no compita con el header.
   - Aumenta el espacio útil de la figura humana.
   - Agranda moderadamente el monitor solo en escritorio.
   - Mantiene mobile compacto, con figura más inmersiva pero sin romper el monitor.
   ============================================================ */
@media (min-width: 901px) {
  body.xp-post-sections-active .xp-section--adn .xp-adn-layout,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-layout {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-left,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-left {
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding-top: clamp(126px, 14vh, 168px) !important;
    padding-right: clamp(34px, 5vw, 82px) !important;
    padding-bottom: clamp(34px, 5vh, 72px) !important;
    padding-left: clamp(46px, 5.4vw, 96px) !important;
    gap: clamp(14px, 2vh, 24px) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-eyebrow,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-eyebrow,
  body.xp-post-sections-active .xp-section--adn .xp-stack-tabs,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-stack-tabs {
    align-self: flex-start !important;
    margin-left: 0 !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-figure-wrap,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-figure-wrap {
    flex: 1 1 auto !important;
    min-height: clamp(440px, 58vh, 680px) !important;
    height: auto !important;
    max-height: calc(100svh - 220px) !important;
    margin-top: clamp(10px, 1.8vh, 24px) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-right,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-right {
    padding-left: clamp(34px, 4vw, 72px) !important;
    padding-right: clamp(44px, 5vw, 96px) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-monitor,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor {
    max-width: clamp(470px, 34vw, 560px) !important;
    gap: clamp(20px, 2.2vh, 26px) !important;
  }

  body.xp-post-sections-active .xp-section--adn #xp-monitor-canvas,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn #xp-monitor-canvas {
    height: clamp(84px, 8vh, 104px) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-monitor-wave-label,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor-wave-label {
    padding: 12px 16px 0 !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-monitor-metrics,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor-metrics {
    gap: 12px !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-monitor-metric,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor-metric {
    padding: 14px 12px !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-metric-value,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-metric-value {
    font-size: 26px !important;
  }
}

@media (max-width: 900px) {
  body.xp-post-sections-active .xp-section--adn .xp-adn-layout,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-layout {
    grid-template-rows: minmax(0, 54%) minmax(0, 46%) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-left,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-left {
    padding-top: 78px !important;
    padding-bottom: 10px !important;
    gap: 8px !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-figure-wrap,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-figure-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-right,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-right {
    padding-top: 12px !important;
  }
}

@media (max-width: 480px) {
  body.xp-post-sections-active .xp-section--adn .xp-adn-layout,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-layout {
    grid-template-rows: minmax(0, 53%) minmax(0, 47%) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-left,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-left {
    padding-top: 72px !important;
  }
}


/* ============================================================
   ADN PREMIUM CONTROLLER — v12.7
   - Tabs del protocolo al panel derecho en desktop.
   - Figura humana con más espacio e inmersión.
   - Canvas oculto hasta que el JS inicia el reveal premium.
   - Mobile conserva layout compacto, con partículas más finas por JS.
   ============================================================ */

body.xp-pharmed-site .xp-adn-figure-wrap #xp-adn-canvas {
  opacity: 0;
  visibility: hidden;
  transition: opacity 340ms ease, visibility 0s linear 340ms;
}

body.xp-pharmed-site .xp-adn-figure-wrap.is-ready #xp-adn-canvas {
  opacity: 1;
  visibility: visible;
  transition: opacity 340ms ease, visibility 0s linear 0s;
}

@media (min-width: 901px) {
  body.xp-post-sections-active .xp-section--adn .xp-adn-layout,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-layout {
    position: relative !important;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-left,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-left {
    position: static !important;
    justify-content: center !important;
    align-items: stretch !important;
    padding-top: clamp(84px, 9vh, 122px) !important;
    padding-right: clamp(30px, 4.4vw, 76px) !important;
    padding-bottom: clamp(28px, 4vh, 62px) !important;
    padding-left: clamp(48px, 5.6vw, 104px) !important;
    gap: 0 !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-eyebrow,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-eyebrow,
  body.xp-post-sections-active .xp-section--adn .xp-stack-tabs,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-stack-tabs {
    position: absolute !important;
    left: calc(50% + clamp(34px, 4vw, 72px)) !important;
    right: clamp(44px, 5vw, 96px) !important;
    width: min(560px, calc(50vw - 120px)) !important;
    max-width: 560px !important;
    z-index: 82 !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-eyebrow,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-eyebrow {
    top: clamp(144px, 16.5vh, 198px) !important;
    margin: 0 !important;
    align-self: auto !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-stack-tabs,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-stack-tabs {
    top: clamp(176px, 20vh, 236px) !important;
    margin: 0 !important;
    align-self: auto !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-figure-wrap,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-figure-wrap {
    flex: 1 1 auto !important;
    min-height: clamp(560px, 76vh, 820px) !important;
    max-height: calc(100svh - 128px) !important;
    height: auto !important;
    margin-top: 0 !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-right,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-right {
    padding-top: clamp(168px, 19vh, 224px) !important;
    padding-left: clamp(34px, 4vw, 72px) !important;
    padding-right: clamp(44px, 5vw, 96px) !important;
    align-items: flex-start !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-monitor,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor {
    max-width: clamp(500px, 36vw, 590px) !important;
    gap: clamp(18px, 2vh, 24px) !important;
  }
}

@media (max-width: 900px) {
  body.xp-post-sections-active .xp-section--adn .xp-adn-eyebrow,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-eyebrow,
  body.xp-post-sections-active .xp-section--adn .xp-stack-tabs,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-stack-tabs {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: 100% !important;
  }
}


/* ============================================================
   ADN HERO-MATCH CONTROLLER — v12.8
   - Reestructura real: el mini menú ADN vive dentro del panel derecho.
   - El CSS deja de usar absolute para los tabs, evitando solapes.
   - Layout responsive limpio: figura izquierda protagonista + panel clínico derecho.
   ============================================================ */

@media (min-width: 901px) {
  body.xp-post-sections-active .xp-section--adn .xp-adn-layout,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-layout {
    grid-template-columns: minmax(0, 1.16fr) minmax(440px, .84fr) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-left,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-left {
    justify-content: center !important;
    align-items: stretch !important;
    padding-top: clamp(78px, 8vh, 112px) !important;
    padding-right: clamp(28px, 4vw, 70px) !important;
    padding-bottom: clamp(30px, 4vh, 64px) !important;
    padding-left: clamp(52px, 6vw, 112px) !important;
    gap: 0 !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-right,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-right {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: clamp(104px, 11vh, 148px) !important;
    padding-left: clamp(34px, 4vw, 72px) !important;
    padding-right: clamp(44px, 5vw, 96px) !important;
    padding-bottom: clamp(48px, 6vh, 86px) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-controls,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-controls {
    width: min(590px, 38vw) !important;
    max-width: 590px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin: 0 0 clamp(18px, 2.4vh, 28px) !important;
    position: relative !important;
    z-index: 3 !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-eyebrow,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-eyebrow,
  body.xp-post-sections-active .xp-section--adn .xp-stack-tabs,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-stack-tabs {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-stack-tabs,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-stack-tabs {
    display: inline-flex !important;
    align-self: flex-start !important;
    overflow: hidden !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-stack-tab,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-stack-tab {
    padding: 10px 18px !important;
    min-height: 42px !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-monitor,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor {
    width: min(590px, 38vw) !important;
    max-width: 590px !important;
    gap: clamp(16px, 2vh, 22px) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-figure-wrap,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-figure-wrap {
    min-height: clamp(590px, 78vh, 840px) !important;
    max-height: calc(100svh - 112px) !important;
  }
}

@media (max-width: 900px) {
  body.xp-post-sections-active .xp-section--adn .xp-adn-controls,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-controls {
    display: contents !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-eyebrow,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-eyebrow,
  body.xp-post-sections-active .xp-section--adn .xp-stack-tabs,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-stack-tabs {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: 100% !important;
  }
}


/* ============================================================
   ADN PERFORMANCE + LAYOUT FIX — v12.8B
   - Panel derecho con margen seguro en escritorio.
   - Monitor y tabs contenidos dentro de la columna clínica.
   - Wave sin desborde visual.
   - Mantiene intacto el controlador post-hero y el layout mobile.
   ============================================================ */

@media (min-width: 901px) {
  body.xp-post-sections-active .xp-section--adn .xp-adn-layout,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-layout {
    grid-template-columns: minmax(0, 1.22fr) minmax(400px, .78fr) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-right,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-right {
    padding-left: clamp(28px, 3.2vw, 58px) !important;
    padding-right: clamp(86px, 7.5vw, 156px) !important;
    overflow: visible !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-controls,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-controls,
  body.xp-post-sections-active .xp-section--adn .xp-monitor,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor {
    width: min(560px, 34vw) !important;
    max-width: 560px !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-monitor-wave-wrap,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor-wave-wrap {
    overflow: hidden !important;
    min-width: 0 !important;
  }

  body.xp-post-sections-active .xp-section--adn #xp-monitor-canvas,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn #xp-monitor-canvas {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-monitor-metrics,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-monitor-metric,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor-metric {
    min-width: 0 !important;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  body.xp-post-sections-active .xp-section--adn .xp-adn-layout,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-layout {
    grid-template-columns: minmax(0, 1.10fr) minmax(380px, .90fr) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-right,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-right {
    padding-right: clamp(54px, 5vw, 92px) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-controls,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-controls,
  body.xp-post-sections-active .xp-section--adn .xp-monitor,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor {
    width: min(520px, 41vw) !important;
    max-width: 520px !important;
  }
}

/* ============================================================
   ADN STYLE PRESERVE — v12.8C2
   - Reafirma tipografías, colores y estados visuales del panel ADN.
   - No cambia la lógica ni la animación single reveal v12.8C.
   - Sirve como capa final por si cache/orden de CSS pisa estilos previos.
   ============================================================ */

body.xp-pharmed-site .xp-section--adn,
body.xp-pharmed-site .xp-section--adn * {
  box-sizing: border-box;
}

body.xp-pharmed-site .xp-section--adn .xp-adn-controls,
body.xp-pharmed-site .xp-section--adn .xp-monitor {
  font-family: var(--xg-font-mono) !important;
  color: var(--xg-white) !important;
}

body.xp-pharmed-site .xp-section--adn .xp-adn-eyebrow {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-family: var(--xg-font-mono) !important;
  font-size: 9px !important;
  font-weight: 300 !important;
  letter-spacing: .32em !important;
  text-transform: uppercase !important;
  color: rgba(184,255,87,.60) !important;
  line-height: 1.2 !important;
}

body.xp-pharmed-site .xp-section--adn .xp-eyebrow-sep {
  display: block !important;
  width: 20px !important;
  height: 1px !important;
  background: rgba(184,255,87,.25) !important;
  flex-shrink: 0 !important;
}

body.xp-pharmed-site .xp-section--adn .xp-stack-tabs {
  display: inline-flex !important;
  gap: 2px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  padding: 3px !important;
  overflow: hidden !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

body.xp-pharmed-site .xp-section--adn .xp-stack-tab {
  font-family: var(--xg-font-mono) !important;
  font-size: 10px !important;
  font-weight: 300 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.38) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  padding: 10px 18px !important;
  min-height: 42px !important;
  cursor: pointer !important;
  transition: background var(--xg-transition-base), border-color var(--xg-transition-base), color var(--xg-transition-base) !important;
  white-space: nowrap !important;
}

body.xp-pharmed-site .xp-section--adn .xp-stack-tab:hover {
  color: rgba(255,255,255,.72) !important;
}

body.xp-pharmed-site .xp-section--adn .xp-stack-tab.active {
  background: rgba(184,255,87,.10) !important;
  border-color: rgba(184,255,87,.26) !important;
  color: var(--xg-green) !important;
  box-shadow: inset 0 1px 0 rgba(184,255,87,.12) !important;
}

body.xp-pharmed-site .xp-section--adn .xp-monitor {
  display: flex !important;
  flex-direction: column !important;
}

body.xp-pharmed-site .xp-section--adn .xp-monitor-id {
  font-family: var(--xg-font-mono) !important;
  font-size: 9px !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.22) !important;
}

body.xp-pharmed-site .xp-section--adn .xp-monitor-status-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.xp-pharmed-site .xp-section--adn .xp-monitor-protocol {
  font-family: var(--xg-font-mono) !important;
  font-size: 10px !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: var(--xg-green) !important;
  transition: opacity 180ms ease !important;
}

body.xp-pharmed-site .xp-section--adn .xp-monitor-wave-wrap {
  background: linear-gradient(168deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.016) 60%, rgba(0,0,0,.10) 100%) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

body.xp-pharmed-site .xp-section--adn .xp-monitor-wave-label,
body.xp-pharmed-site .xp-section--adn .xp-metric-label,
body.xp-pharmed-site .xp-section--adn .xp-compounds-label {
  font-family: var(--xg-font-mono) !important;
  font-size: 8px !important;
  letter-spacing: .20em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.24) !important;
}

body.xp-pharmed-site .xp-section--adn .xp-monitor-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  transition: opacity 180ms ease !important;
}

body.xp-pharmed-site .xp-section--adn .xp-monitor-metric {
  min-width: 0 !important;
  background: linear-gradient(168deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.016) 60%, rgba(0,0,0,.12) 100%) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 11px !important;
  padding: 13px 14px !important;
  position: relative !important;
  overflow: hidden !important;
}

body.xp-pharmed-site .xp-section--adn .xp-metric-value {
  font-family: var(--xg-font-display) !important;
  font-weight: 300 !important;
  font-size: clamp(24px, 2.3vw, 34px) !important;
  letter-spacing: .04em !important;
  line-height: 1 !important;
  color: var(--xg-green) !important;
}

body.xp-pharmed-site .xp-section--adn .xp-metric-value span {
  font-size: .42em !important;
  letter-spacing: .03em !important;
  color: rgba(184,255,87,.75) !important;
}

body.xp-pharmed-site .xp-section--adn .xp-compounds-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  transition: opacity 220ms ease !important;
}

body.xp-pharmed-site .xp-section--adn .xp-compound-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  font-family: var(--xg-font-mono) !important;
  font-size: 8px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.54) !important;
}

@media (max-width: 900px) {
  body.xp-pharmed-site .xp-section--adn .xp-stack-tabs {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.xp-pharmed-site .xp-section--adn .xp-stack-tabs::-webkit-scrollbar {
    display: none !important;
  }

  body.xp-pharmed-site .xp-section--adn .xp-stack-tab {
    flex: 1 0 auto !important;
    padding: 9px 12px !important;
    min-height: 38px !important;
    font-size: 9px !important;
  }
}

/* ============================================================
   CLEAN SHOP GATEWAY — v12.9
   - #catalogo queda desactivado como sección interna legacy.
   - La tienda real vive en /tienda/ y recibe estética dark premium.
   ============================================================ */

/* Si el container antiguo #catalogo sigue en Elementor, no debe aparecer ni
   bloquear botones. El stage Arsenal del hero redirige a /tienda/. */
body.xp-pharmed-site #catalogo.xp-section,
body.xp-pharmed-site .xp-section--catalogo {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Refuerzo final del post-controller limpio */
body.xp-pharmed-site.xp-post-sections-active .xp-section:not(.is-active) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

body.xp-pharmed-site.xp-post-sections-active .xp-section.is-active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

/* ============================================================
   WOOCOMMERCE CUSTOM REMOVED — v15.6
   Woodmart Dark queda a cargo de tienda/productos/carrito.
   Se conserva el resto del micrositio X-Pharmed sin tocar.
   ============================================================ */

/* ============================================================
   X-PHARMED / X-GAINZ — STACK BUILDER + MINI CRM v1.1 SAFE
   - CSS depurado, legible y 100% scoped a body.xp-pharmed-site.
   - Integra #stack al controlador post-hero sin romper Ciencia/ADN.
   - Panel derecho con scroll interno para productos/formulario.
   - Mobile full-screen con objetivos en carrusel horizontal.
   ============================================================ */

body.xp-pharmed-site .xp-section--stack {
  align-items: stretch !important;
  justify-content: center !important;
  background:
    radial-gradient(circle at 70% 18%, rgba(184,255,87,.055), transparent 30%),
    radial-gradient(circle at 12% 80%, rgba(255,255,255,.030), transparent 34%),
    linear-gradient(180deg, #020202 0%, #050505 100%) !important;
  overflow: hidden !important;
}

body.xp-pharmed-site .xp-section--stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.020) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: .12;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 74%);
  pointer-events: none;
  z-index: 0;
}

body.xp-pharmed-site .xp-section--stack::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, transparent 0%, rgba(0,0,0,.10) 58%, rgba(0,0,0,.52) 100%);
  pointer-events: none;
  z-index: 0;
}

body.xp-post-sections-active .xp-section--stack.is-active {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  overflow: hidden !important;
}

body.xp-pharmed-site .xp-stack-shell {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100vw - 96px));
  height: 100svh;
  min-height: 0;
  max-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(92px, 10vh, 128px) 0 clamp(38px, 5vh, 70px);
  color: var(--xg-white);
  overflow: hidden;
}

body.xp-pharmed-site .xp-stack-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.xp-pharmed-site .xp-stack-eyebrow {
  margin-bottom: clamp(20px, 3vh, 34px) !important;
}

body.xp-pharmed-site .xp-stack-title {
  font-family: var(--xg-font-display);
  font-weight: 300;
  font-size: clamp(42px, 5.6vw, 88px);
  line-height: .88;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--xg-white);
  margin: 0 0 clamp(16px, 2.4vh, 24px);
}

body.xp-pharmed-site .xp-stack-sub {
  max-width: 520px;
  font-family: var(--xg-font-mono);
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: .06em;
  color: rgba(255,255,255,.46);
  margin: 0 0 clamp(24px, 4vh, 42px);
}

body.xp-pharmed-site .xp-stack-objectives {
  display: grid;
  gap: 8px;
  width: min(430px, 100%);
}

body.xp-pharmed-site .xp-stack-objective {
  appearance: none;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(168deg, rgba(255,255,255,.045), rgba(255,255,255,.016));
  color: rgba(255,255,255,.56);
  font-family: var(--xg-font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

body.xp-pharmed-site .xp-stack-objective span {
  color: rgba(184,255,87,.58);
  font-size: 9px;
}

body.xp-pharmed-site .xp-stack-objective:hover,
body.xp-pharmed-site .xp-stack-objective.is-active {
  color: var(--xg-white);
  border-color: rgba(184,255,87,.28);
  background: linear-gradient(168deg, rgba(184,255,87,.105), rgba(255,255,255,.018));
  transform: translateX(2px);
}

body.xp-pharmed-site .xp-stack-shop-link {
  display: inline-flex;
  margin-top: 20px;
  font-family: var(--xg-font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(184,255,87,.72);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

body.xp-pharmed-site .xp-stack-shop-link:hover {
  color: var(--xg-green);
  transform: translateX(2px);
}

body.xp-pharmed-site .xp-stack-panel {
  min-width: 0;
  width: 100%;
  max-height: calc(100svh - 150px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background:
    linear-gradient(168deg, rgba(255,255,255,.065) 0%, rgba(255,255,255,.020) 58%, rgba(0,0,0,.16) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 18px 54px rgba(0,0,0,.38);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,255,87,.28) rgba(255,255,255,.04);
}

body.xp-pharmed-site .xp-stack-panel::-webkit-scrollbar {
  width: 6px;
}

body.xp-pharmed-site .xp-stack-panel::-webkit-scrollbar-track {
  background: rgba(255,255,255,.035);
}

body.xp-pharmed-site .xp-stack-panel::-webkit-scrollbar-thumb {
  background: rgba(184,255,87,.26);
  border-radius: 999px;
}

body.xp-pharmed-site .xp-stack-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

body.xp-pharmed-site .xp-stack-panel-kicker,
body.xp-pharmed-site .xp-stack-panel-status,
body.xp-pharmed-site .xp-stack-products-head,
body.xp-pharmed-site .xp-stack-summary-row,
body.xp-pharmed-site .xp-stack-form label span {
  font-family: var(--xg-font-mono);
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}

body.xp-pharmed-site .xp-stack-panel-title {
  margin-top: 7px;
  font-family: var(--xg-font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--xg-green);
}

body.xp-pharmed-site .xp-stack-panel-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(184,255,87,.62);
  white-space: nowrap;
}

body.xp-pharmed-site .xp-stack-buytype {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
}

body.xp-pharmed-site .xp-stack-buytype-btn {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,.44);
  font-family: var(--xg-font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

body.xp-pharmed-site .xp-stack-buytype-btn:hover,
body.xp-pharmed-site .xp-stack-buytype-btn.is-active {
  color: var(--xg-green);
  border-color: rgba(184,255,87,.24);
  background: rgba(184,255,87,.08);
}

body.xp-pharmed-site .xp-stack-products-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

body.xp-pharmed-site .xp-stack-products-head strong {
  color: rgba(184,255,87,.72);
  font-weight: 400;
}

body.xp-pharmed-site .xp-stack-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.xp-pharmed-site .xp-stack-loading,
body.xp-pharmed-site .xp-stack-empty {
  grid-column: 1 / -1;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  font-family: var(--xg-font-mono);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.34);
}

body.xp-pharmed-site .xp-stack-product {
  position: relative;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  background: linear-gradient(168deg, rgba(255,255,255,.045), rgba(255,255,255,.014));
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.xp-pharmed-site .xp-stack-product:hover,
body.xp-pharmed-site .xp-stack-product.is-selected {
  border-color: rgba(184,255,87,.28);
  background: linear-gradient(168deg, rgba(184,255,87,.085), rgba(255,255,255,.016));
}

body.xp-pharmed-site .xp-stack-product.is-selected {
  transform: translateY(-1px);
}

body.xp-pharmed-site .xp-stack-product-name {
  max-width: calc(100% - 24px);
  font-family: var(--xg-font-display);
  font-size: 19px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}

body.xp-pharmed-site .xp-stack-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--xg-font-mono);
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

body.xp-pharmed-site .xp-stack-product-meta strong {
  color: rgba(184,255,87,.72);
  font-weight: 400;
  white-space: nowrap;
}

body.xp-pharmed-site .xp-stack-product-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
}

body.xp-pharmed-site .xp-stack-product.is-selected .xp-stack-product-check {
  border-color: rgba(184,255,87,.55);
  background: rgba(184,255,87,.18);
  box-shadow: 0 0 0 3px rgba(184,255,87,.04);
}

body.xp-pharmed-site .xp-stack-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.xp-pharmed-site .xp-stack-summary-row {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

body.xp-pharmed-site .xp-stack-summary-row strong {
  font-family: var(--xg-font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}

body.xp-pharmed-site .xp-stack-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.xp-pharmed-site .xp-stack-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.xp-pharmed-site .xp-stack-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body.xp-pharmed-site .xp-stack-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.xp-pharmed-site .xp-stack-form-full {
  grid-column: 1 / -1;
}

body.xp-pharmed-site .xp-stack-form input,
body.xp-pharmed-site .xp-stack-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: var(--xg-white);
  font-family: var(--xg-font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  outline: none;
  padding: 12px 13px;
  resize: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.xp-pharmed-site .xp-stack-form input::placeholder,
body.xp-pharmed-site .xp-stack-form textarea::placeholder {
  color: rgba(255,255,255,.24);
}

body.xp-pharmed-site .xp-stack-form input:focus,
body.xp-pharmed-site .xp-stack-form textarea:focus {
  border-color: rgba(184,255,87,.42);
  box-shadow: 0 0 0 1px rgba(184,255,87,.08);
  background: rgba(184,255,87,.035);
}

body.xp-pharmed-site .xp-stack-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

body.xp-pharmed-site .xp-stack-submit {
  flex: 1;
}

body.xp-pharmed-site .xp-stack-store {
  min-width: 120px;
}

body.xp-pharmed-site .xp-stack-result {
  padding: 18px;
  border: 1px solid rgba(184,255,87,.24);
  border-radius: 14px;
  background: rgba(184,255,87,.06);
}

body.xp-pharmed-site .xp-stack-result[hidden] {
  display: none !important;
}

body.xp-pharmed-site .xp-stack-result-ref {
  font-family: var(--xg-font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(184,255,87,.70);
  margin-bottom: 8px;
}

body.xp-pharmed-site .xp-stack-result-title {
  font-family: var(--xg-font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--xg-white);
  margin-bottom: 6px;
}

body.xp-pharmed-site .xp-stack-result p {
  font-family: var(--xg-font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: rgba(255,255,255,.48);
  margin: 0 0 14px;
}

body.xp-pharmed-site .xp-stack-wa {
  width: 100%;
}

@media (max-width: 1100px) {
  body.xp-pharmed-site .xp-stack-shell {
    width: min(1080px, calc(100vw - 56px));
    grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  body.xp-pharmed-site .xp-section--stack {
    align-items: stretch !important;
  }

  body.xp-pharmed-site .xp-stack-shell {
    width: calc(100vw - 24px);
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    padding: 74px 0 18px;
  }

  body.xp-pharmed-site .xp-stack-left {
    text-align: center;
    align-items: center;
    min-height: 0;
  }

  body.xp-pharmed-site .xp-stack-eyebrow {
    justify-content: center;
    margin-bottom: 12px !important;
  }

  body.xp-pharmed-site .xp-stack-title {
    font-size: clamp(30px, 8vw, 42px);
    margin-bottom: 8px;
  }

  body.xp-pharmed-site .xp-stack-title br {
    display: none;
  }

  body.xp-pharmed-site .xp-stack-sub {
    display: none;
  }

  body.xp-pharmed-site .xp-stack-objectives {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  body.xp-pharmed-site .xp-stack-objectives::-webkit-scrollbar {
    display: none;
  }

  body.xp-pharmed-site .xp-stack-objective {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 8px;
    letter-spacing: .12em;
    transform: none !important;
  }

  body.xp-pharmed-site .xp-stack-shop-link {
    display: none;
  }

  body.xp-pharmed-site .xp-stack-panel {
    max-height: none;
    height: 100%;
    min-height: 0;
    padding: 14px;
    border-radius: 15px;
    gap: 10px;
  }

  body.xp-pharmed-site .xp-stack-panel-head {
    align-items: center;
  }

  body.xp-pharmed-site .xp-stack-panel-status {
    display: none;
  }

  body.xp-pharmed-site .xp-stack-buytype {
    gap: 4px;
  }

  body.xp-pharmed-site .xp-stack-buytype-btn {
    min-height: 34px;
    font-size: 8px;
    letter-spacing: .10em;
  }

  body.xp-pharmed-site .xp-stack-products {
    grid-template-columns: 1fr;
  }

  body.xp-pharmed-site .xp-stack-product {
    min-height: 70px;
  }

  body.xp-pharmed-site .xp-stack-product-name {
    font-size: 18px;
  }

  body.xp-pharmed-site .xp-stack-summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.xp-pharmed-site .xp-stack-summary-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 9px 11px;
  }

  body.xp-pharmed-site .xp-stack-form-grid {
    grid-template-columns: 1fr;
  }

  body.xp-pharmed-site .xp-stack-form-full {
    grid-column: auto;
  }

  body.xp-pharmed-site .xp-stack-actions {
    flex-direction: column;
  }

  body.xp-pharmed-site .xp-stack-actions .xg-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  body.xp-pharmed-site .xp-stack-shell {
    width: calc(100vw - 20px);
    padding-top: 68px;
    padding-bottom: 14px;
  }

  body.xp-pharmed-site .xp-stack-panel {
    padding: 12px;
  }

  body.xp-pharmed-site .xp-stack-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  body.xp-pharmed-site .xp-stack-product-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
/* ============================================================
   X-PHARMED / X-GAINZ — HERO SURGERY v13.1
   APPEND al final de xpharmed-global.css
   ============================================================ */

body.xp-pharmed-active.xp-hero-stage-1 .xp-pre-eye,
body.xp-pharmed-active.xp-hero-stage-2 .xp-pre-eye,
body.xp-pharmed-active.xp-hero-stage-3 .xp-pre-eye,
body.xp-pharmed-active.xp-hero-stage-4 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-1 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-2 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-3 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-4 .xp-pre-eye {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (min-width: 769px) {
  body.xp-pharmed-active.xp-hero-stage-1 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-2 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-3 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-4 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-1 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-2 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-3 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-4 .xp-hero-center {
    transform: translate(-50%, -52%) !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-top,
  #seccion-particulas.xp-hero-stage-1 .hl-top,
  #seccion-particulas.xp-hero-stage-2 .hl-top,
  #seccion-particulas.xp-hero-stage-3 .hl-top,
  #seccion-particulas.xp-hero-stage-4 .hl-top {
    opacity: .62;
    margin-bottom: clamp(14px, 2.2vh, 24px);
  }
}

@media (max-width: 768px) {
  body.xp-pharmed-active.xp-hero-stage-0 .xp-pre-eye,
  #seccion-particulas.xp-hero-stage-0 .xp-pre-eye {
    margin-bottom: clamp(20px, 4.2vh, 34px) !important;
    transform: translateY(10px);
  }

  body.xp-pharmed-active.xp-hero-stage-0 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-0 .xp-hero-center {
    transform: translate(-50%, -46%) !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-top,
  #seccion-particulas.xp-hero-stage-1 .hl-top,
  #seccion-particulas.xp-hero-stage-2 .hl-top,
  #seccion-particulas.xp-hero-stage-3 .hl-top,
  #seccion-particulas.xp-hero-stage-4 .hl-top {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-2 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-3 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-4 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-1 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-2 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-3 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-4 .xp-hero-center {
    top: 34% !important;
    transform: translate(-50%, -50%) !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-block,
  #seccion-particulas.xp-hero-stage-1 .hl-block,
  #seccion-particulas.xp-hero-stage-2 .hl-block,
  #seccion-particulas.xp-hero-stage-3 .hl-block,
  #seccion-particulas.xp-hero-stage-4 .hl-block {
    gap: 10px;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-main,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-main,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-main,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-main,
  #seccion-particulas.xp-hero-stage-1 .hl-main,
  #seccion-particulas.xp-hero-stage-2 .hl-main,
  #seccion-particulas.xp-hero-stage-3 .hl-main,
  #seccion-particulas.xp-hero-stage-4 .hl-main {
    line-height: .92 !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-bottom,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-bottom,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-bottom,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-bottom,
  #seccion-particulas.xp-hero-stage-1 .hl-bottom,
  #seccion-particulas.xp-hero-stage-2 .hl-bottom,
  #seccion-particulas.xp-hero-stage-3 .hl-bottom,
  #seccion-particulas.xp-hero-stage-4 .hl-bottom {
    max-width: min(88vw, 390px);
    margin-inline: auto;
  }

  body.xp-pharmed-active .xp-stage-dock,
  #seccion-particulas .xp-stage-dock {
    width: calc(100vw - 28px) !important;
    min-height: 64px !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 13px 12px 16px !important;
    border-radius: 16px !important;
    cursor: pointer;
  }

  body.xp-pharmed-active .xp-stage-dock-counter,
  #seccion-particulas .xp-stage-dock-counter {
    min-width: auto !important;
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  body.xp-pharmed-active .xp-stage-dock-counter #stage-current,
  #seccion-particulas .xp-stage-dock-counter #stage-current {
    font-size: 24px !important;
    line-height: 1 !important;
    color: var(--xg-green, #b8ff57) !important;
  }

  body.xp-pharmed-active .xp-stage-dock-counter span:not(#stage-current),
  #seccion-particulas .xp-stage-dock-counter span:not(#stage-current) {
    font-size: 10px !important;
    line-height: 1 !important;
    opacity: .48 !important;
  }

  body.xp-pharmed-active .xp-stage-dock-copy,
  #seccion-particulas .xp-stage-dock-copy {
    min-width: 0 !important;
    display: block !important;
    text-align: left !important;
    overflow: hidden !important;
  }

  body.xp-pharmed-active .xp-stage-dock-copy span,
  #seccion-particulas .xp-stage-dock-copy span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(10px, 2.75vw, 13px) !important;
    line-height: 1.15 !important;
    letter-spacing: .09em !important;
    color: rgba(255,255,255,.82) !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action,
  #seccion-particulas .xp-stage-dock-action {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action a,
  #seccion-particulas .xp-stage-dock-action a {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--xg-green, #b8ff57) !important;
    background: rgba(184,255,87,.08) !important;
    border: 1px solid rgba(184,255,87,.22) !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action a span,
  #seccion-particulas .xp-stage-dock-action a span {
    display: none !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action svg,
  #seccion-particulas .xp-stage-dock-action svg {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
  }
}

@media (max-width: 420px) {
  body.xp-pharmed-active .xp-stage-dock,
  #seccion-particulas .xp-stage-dock {
    width: calc(100vw - 22px) !important;
    gap: 10px !important;
    padding-left: 13px !important;
    padding-right: 11px !important;
  }

  body.xp-pharmed-active .xp-stage-dock-copy span,
  #seccion-particulas .xp-stage-dock-copy span {
    font-size: 10px !important;
    letter-spacing: .075em !important;
  }
}
/* ============================================================
   X-PHARMED / X-GAINZ — HERO STATE LOCK + MOBILE REFINEMENT v13.2
   APPEND al final de xpharmed-global.css
   ============================================================ */

/* 1) Pre-eye solo Stage 01, con prioridad sobre estados inline heredados. */
body.xp-pharmed-active.xp-hero-stage-1 .xp-pre-eye,
body.xp-pharmed-active.xp-hero-stage-2 .xp-pre-eye,
body.xp-pharmed-active.xp-hero-stage-3 .xp-pre-eye,
body.xp-pharmed-active.xp-hero-stage-4 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-1 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-2 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-3 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-4 .xp-pre-eye {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2) Sombra premium SOLO en subtítulo principal superior (.hl-top).
   No se aplica a .hl-main ni a otros textos. */
body.xp-pharmed-site #seccion-particulas .hl-top {
  text-shadow: 0 2px 10px rgba(0,0,0,.56), 0 1px 2px rgba(0,0,0,.34);
}

/* 3) Desktop Stage 02–05: composición más limpia al desaparecer pre-eye. */
@media (min-width: 769px) {
  body.xp-pharmed-active.xp-hero-stage-1 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-2 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-3 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-4 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-1 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-2 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-3 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-4 .xp-hero-center {
    transform: translate(-50%, -52%) !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-top,
  #seccion-particulas.xp-hero-stage-1 .hl-top,
  #seccion-particulas.xp-hero-stage-2 .hl-top,
  #seccion-particulas.xp-hero-stage-3 .hl-top,
  #seccion-particulas.xp-hero-stage-4 .hl-top {
    opacity: .64;
    margin-bottom: clamp(14px, 2.2vh, 24px);
  }
}

/* 4) Mobile Stage 01: etiqueta verde centrada y más integrada al bloque. */
@media (max-width: 768px) {
  body.xp-pharmed-active.xp-hero-stage-0 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-0 .xp-hero-center {
    width: min(92vw, 430px) !important;
    left: 50% !important;
    top: 47% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
  }

  body.xp-pharmed-active.xp-hero-stage-0 .xp-pre-eye,
  #seccion-particulas.xp-hero-stage-0 .xp-pre-eye {
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: clamp(18px, 3.8vh, 30px) !important;
    text-align: center !important;
    transform: translateY(8px);
  }
}

/* 5) Mobile Stage 02–05: menos dispersión, más composición.
      Ocultamos descriptor superior y subimos el grupo para liberar siluetas. */
@media (max-width: 768px) {
  body.xp-pharmed-active.xp-hero-stage-1 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-top,
  #seccion-particulas.xp-hero-stage-1 .hl-top,
  #seccion-particulas.xp-hero-stage-2 .hl-top,
  #seccion-particulas.xp-hero-stage-3 .hl-top,
  #seccion-particulas.xp-hero-stage-4 .hl-top {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-2 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-3 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-4 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-1 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-2 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-3 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-4 .xp-hero-center {
    width: min(94vw, 430px) !important;
    left: 50% !important;
    top: 38% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-block,
  #seccion-particulas.xp-hero-stage-1 .hl-block,
  #seccion-particulas.xp-hero-stage-2 .hl-block,
  #seccion-particulas.xp-hero-stage-3 .hl-block,
  #seccion-particulas.xp-hero-stage-4 .hl-block {
    gap: 9px !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-bottom,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-bottom,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-bottom,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-bottom,
  #seccion-particulas.xp-hero-stage-1 .hl-bottom,
  #seccion-particulas.xp-hero-stage-2 .hl-bottom,
  #seccion-particulas.xp-hero-stage-3 .hl-bottom,
  #seccion-particulas.xp-hero-stage-4 .hl-bottom {
    max-width: min(88vw, 390px) !important;
    margin-inline: auto !important;
  }

  /* Ligero aumento visual del campo de partículas en mobile, sin romper desktop. */
  body.xp-pharmed-active #xp-particles-canvas,
  #seccion-particulas #xp-particles-canvas {
    transform: scale(1.045);
    transform-origin: center center;
  }
}

/* 6) Dock mobile: contador 02 / 05 intacto, texto centrado y flecha limpia. */
@media (max-width: 768px) {
  body.xp-pharmed-active .xp-stage-dock,
  #seccion-particulas .xp-stage-dock {
    width: calc(100vw - 28px) !important;
    min-height: 62px !important;
    bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px)) !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 12px 12px 15px !important;
    border-radius: 16px !important;
    cursor: pointer !important;
  }

  body.xp-pharmed-active .xp-stage-dock-counter,
  #seccion-particulas .xp-stage-dock-counter {
    min-width: 54px !important;
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  body.xp-pharmed-active .xp-stage-dock-counter #stage-current,
  #seccion-particulas .xp-stage-dock-counter #stage-current {
    font-size: 23px !important;
    line-height: 1 !important;
    color: var(--xg-green, #b8ff57) !important;
  }

  body.xp-pharmed-active .xp-stage-dock-counter span:not(#stage-current),
  #seccion-particulas .xp-stage-dock-counter span:not(#stage-current) {
    font-size: 10px !important;
    line-height: 1 !important;
    opacity: .48 !important;
  }

  body.xp-pharmed-active .xp-stage-dock-copy,
  #seccion-particulas .xp-stage-dock-copy {
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  body.xp-pharmed-active .xp-stage-dock-copy span,
  #seccion-particulas .xp-stage-dock-copy span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(10px, 2.75vw, 13px) !important;
    line-height: 1.15 !important;
    letter-spacing: .09em !important;
    color: rgba(255,255,255,.84) !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action,
  #seccion-particulas .xp-stage-dock-action {
    width: 28px !important;
    min-width: 28px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    pointer-events: none !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action a,
  #seccion-particulas .xp-stage-dock-action a {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--xg-green, #b8ff57) !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action a span,
  #seccion-particulas .xp-stage-dock-action a span {
    display: none !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action svg,
  #seccion-particulas .xp-stage-dock-action svg {
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    opacity: .92 !important;
  }
}

@media (max-width: 420px) {
  body.xp-pharmed-active .xp-stage-dock,
  #seccion-particulas .xp-stage-dock {
    width: calc(100vw - 22px) !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 10px !important;
  }

  body.xp-pharmed-active .xp-stage-dock-counter,
  #seccion-particulas .xp-stage-dock-counter {
    min-width: 50px !important;
  }

  body.xp-pharmed-active .xp-stage-dock-copy span,
  #seccion-particulas .xp-stage-dock-copy span {
    font-size: 10px !important;
    letter-spacing: .075em !important;
  }
}
/* ============================================================
   X-PHARMED / X-GAINZ — HERO STABILITY + PERFORMANCE v13.3
   APPEND al final de xpharmed-global.css

   Alcance:
   - Fix fuerte de estados visuales al avanzar/retroceder.
   - Mobile Stage 01 más compacto y centrado hacia arriba.
   - Limpieza de elementos exclusivos del Stage 01 en Stage 02–05.
   - Dock mobile con una sola flecha verde minimalista.
   - Side beams removidos.
   - Anillos menos cargados + glow inferior sutil.
   ============================================================ */

/* 1) Side beams removidos: CSS + canvas JS ya no los dibuja. */
body.xp-pharmed-site #seccion-particulas .xp-beam-left,
body.xp-pharmed-site #seccion-particulas .xp-beam-right,
body.xp-pharmed-active #seccion-particulas .xp-beam-left,
body.xp-pharmed-active #seccion-particulas .xp-beam-right {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  filter: none !important;
}

/* 2) Glow inferior atmosférico muy sutil, complementa el green-edge superior. */
body.xp-pharmed-active .xp-bg-effects::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: -22vh;
  transform: translateX(-50%);
  width: min(92vw, 980px);
  height: 46vh;
  pointer-events: none;
  z-index: 6;
  background: radial-gradient(ellipse at 50% 100%, rgba(184,255,87,.052) 0%, rgba(184,255,87,.018) 34%, rgba(184,255,87,.004) 64%, transparent 82%);
  opacity: .72;
}

/* 3) Estado visual: Stage 01-only elements bloqueados fuera de Stage 01. */
body.xp-pharmed-active.xp-hero-stage-1 .xp-pre-eye,
body.xp-pharmed-active.xp-hero-stage-2 .xp-pre-eye,
body.xp-pharmed-active.xp-hero-stage-3 .xp-pre-eye,
body.xp-pharmed-active.xp-hero-stage-4 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-1 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-2 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-3 .xp-pre-eye,
#seccion-particulas.xp-hero-stage-4 .xp-pre-eye,
body.xp-pharmed-active.xp-hero-stage-1 .hl-sub span,
body.xp-pharmed-active.xp-hero-stage-2 .hl-sub span,
body.xp-pharmed-active.xp-hero-stage-3 .hl-sub span,
body.xp-pharmed-active.xp-hero-stage-4 .hl-sub span,
body.xp-pharmed-active.xp-hero-stage-1 .xp-scroll-indicator,
body.xp-pharmed-active.xp-hero-stage-2 .xp-scroll-indicator,
body.xp-pharmed-active.xp-hero-stage-3 .xp-scroll-indicator,
body.xp-pharmed-active.xp-hero-stage-4 .xp-scroll-indicator {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 4) Sombra premium SOLO en subtítulo principal superior (.hl-top). */
body.xp-pharmed-site #seccion-particulas .hl-top {
  text-shadow: 0 2px 10px rgba(0,0,0,.56), 0 1px 2px rgba(0,0,0,.34);
}

/* Desktop: al limpiar pre-eye, composición estable. */
@media (min-width: 769px) {
  body.xp-pharmed-active.xp-hero-stage-1 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-2 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-3 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-4 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-1 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-2 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-3 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-4 .xp-hero-center {
    transform: translate(-50%, -52%) !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-top,
  #seccion-particulas.xp-hero-stage-1 .hl-top,
  #seccion-particulas.xp-hero-stage-2 .hl-top,
  #seccion-particulas.xp-hero-stage-3 .hl-top,
  #seccion-particulas.xp-hero-stage-4 .hl-top {
    opacity: .64;
    margin-bottom: clamp(14px, 2.2vh, 24px);
  }
}

/* 5) Mobile: Stage 01 más agrupado y un poco más arriba. */
@media (max-width: 768px) {
  body.xp-pharmed-active.xp-hero-stage-0 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-0 .xp-hero-center {
    width: min(92vw, 430px) !important;
    left: 50% !important;
    top: 42.5% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    padding-inline: 12px !important;
  }

  body.xp-pharmed-active.xp-hero-stage-0 .xp-pre-eye,
  #seccion-particulas.xp-hero-stage-0 .xp-pre-eye {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: calc(100vw - 34px) !important;
    margin: 0 auto clamp(14px, 2.8vh, 22px) !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    font-size: clamp(6.8px, 1.85vw, 8.2px) !important;
    letter-spacing: clamp(.12em, .72vw, .22em) !important;
  }

  body.xp-pharmed-active.xp-hero-stage-0 .xp-pre-eye::before,
  body.xp-pharmed-active.xp-hero-stage-0 .xp-pre-eye::after,
  #seccion-particulas.xp-hero-stage-0 .xp-pre-eye::before,
  #seccion-particulas.xp-hero-stage-0 .xp-pre-eye::after {
    flex: 0 0 clamp(10px, 4vw, 18px) !important;
  }

  body.xp-pharmed-active.xp-hero-stage-0 .hl-block,
  #seccion-particulas.xp-hero-stage-0 .hl-block {
    min-height: 0 !important;
    gap: 0 !important;
  }

  body.xp-pharmed-active.xp-hero-stage-0 .hl-top,
  #seccion-particulas.xp-hero-stage-0 .hl-top {
    margin-bottom: 10px !important;
  }

  body.xp-pharmed-active.xp-hero-stage-0 .hl-bottom,
  #seccion-particulas.xp-hero-stage-0 .hl-bottom {
    margin-top: 13px !important;
  }
}

/* 6) Mobile Stage 02–05: limpiar, compactar arriba y dejar siluetas respirar. */
@media (max-width: 768px) {
  body.xp-pharmed-active.xp-hero-stage-1 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-top,
  #seccion-particulas.xp-hero-stage-1 .hl-top,
  #seccion-particulas.xp-hero-stage-2 .hl-top,
  #seccion-particulas.xp-hero-stage-3 .hl-top,
  #seccion-particulas.xp-hero-stage-4 .hl-top {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-2 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-3 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-4 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-1 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-2 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-3 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-4 .xp-hero-center {
    width: min(94vw, 430px) !important;
    left: 50% !important;
    top: 34% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-block,
  #seccion-particulas.xp-hero-stage-1 .hl-block,
  #seccion-particulas.xp-hero-stage-2 .hl-block,
  #seccion-particulas.xp-hero-stage-3 .hl-block,
  #seccion-particulas.xp-hero-stage-4 .hl-block {
    min-height: 0 !important;
    gap: 8px !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-bottom,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-bottom,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-bottom,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-bottom,
  #seccion-particulas.xp-hero-stage-1 .hl-bottom,
  #seccion-particulas.xp-hero-stage-2 .hl-bottom,
  #seccion-particulas.xp-hero-stage-3 .hl-bottom,
  #seccion-particulas.xp-hero-stage-4 .hl-bottom {
    max-width: min(88vw, 390px) !important;
    margin: 12px auto 0 !important;
  }

  body.xp-pharmed-active #xp-particles-canvas,
  #seccion-particulas #xp-particles-canvas {
    transform: scale(1.04) translateY(8px) !important;
    transform-origin: center center !important;
  }

  body.xp-pharmed-active .xp-bg-effects::after {
    height: 42vh;
    bottom: -20vh;
    opacity: .50;
  }
}

/* 7) Dock mobile: una sola línea, texto centrado y UNA sola flecha verde. */
@media (max-width: 768px) {
  body.xp-pharmed-active .xp-stage-dock,
  #seccion-particulas .xp-stage-dock {
    width: calc(100vw - 28px) !important;
    min-height: 62px !important;
    bottom: max(30px, calc(env(safe-area-inset-bottom) + 22px)) !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px 12px 16px !important;
    border-radius: 16px !important;
    cursor: pointer !important;
  }

  body.xp-pharmed-active .xp-stage-dock-counter,
  #seccion-particulas .xp-stage-dock-counter {
    min-width: 54px !important;
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  body.xp-pharmed-active .xp-stage-dock-counter #stage-current,
  #seccion-particulas .xp-stage-dock-counter #stage-current {
    font-size: 23px !important;
    line-height: 1 !important;
    color: var(--xg-green, #b8ff57) !important;
  }

  body.xp-pharmed-active .xp-stage-dock-counter span:not(#stage-current),
  #seccion-particulas .xp-stage-dock-counter span:not(#stage-current) {
    font-size: 10px !important;
    line-height: 1 !important;
    opacity: .48 !important;
  }

  body.xp-pharmed-active .xp-stage-dock-copy,
  #seccion-particulas .xp-stage-dock-copy {
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    padding-right: 0 !important;
  }

  body.xp-pharmed-active .xp-stage-dock-copy::after,
  #seccion-particulas .xp-stage-dock-copy::after {
    content: none !important;
    display: none !important;
  }

  body.xp-pharmed-active .xp-stage-dock-copy span,
  #seccion-particulas .xp-stage-dock-copy span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(10px, 2.75vw, 13px) !important;
    line-height: 1.15 !important;
    letter-spacing: .085em !important;
    color: rgba(255,255,255,.86) !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action,
  #seccion-particulas .xp-stage-dock-action {
    width: 24px !important;
    min-width: 24px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    pointer-events: none !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action a,
  #seccion-particulas .xp-stage-dock-action a {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--xg-green, #b8ff57) !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action a span,
  #seccion-particulas .xp-stage-dock-action a span {
    display: none !important;
  }

  body.xp-pharmed-active .xp-stage-dock-action svg,
  #seccion-particulas .xp-stage-dock-action svg {
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    opacity: .95 !important;
  }
}

@media (max-width: 420px) {
  body.xp-pharmed-active .xp-stage-dock,
  #seccion-particulas .xp-stage-dock {
    width: calc(100vw - 22px) !important;
    gap: 8px !important;
    padding-left: 13px !important;
    padding-right: 11px !important;
  }

  body.xp-pharmed-active .xp-stage-dock-counter,
  #seccion-particulas .xp-stage-dock-counter {
    min-width: 50px !important;
  }

  body.xp-pharmed-active .xp-stage-dock-copy span,
  #seccion-particulas .xp-stage-dock-copy span {
    font-size: 10px !important;
    letter-spacing: .066em !important;
  }
}
/* ============================================================
   X-PHARMED / X-GAINZ — HERO VISUAL POLISH v13.4
   APPEND al final de xpharmed-global.css

   Base: v13.3 estable.
   Alcance:
   - Reintroducir hl-top en mobile Stage 02–05 con estilo premium.
   - Mejorar lectura sin tocar títulos protagonistas.
   - Reforzar glow inferior sutil.
   - Limpiar flecha extra del dock mobile.
   - Mantener cantidad/espaciado de anillos; nitidez se corrige en JS HiDPI.
   ============================================================ */

/* 1) Glow inferior un poco más visible, sin volverse protagonista. */
body.xp-pharmed-active .xp-bg-effects::after {
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(184,255,87,.078) 0%,
    rgba(184,255,87,.030) 32%,
    rgba(184,255,87,.008) 62%,
    transparent 84%
  ) !important;
  opacity: .86 !important;
}

@media (max-width: 768px) {
  body.xp-pharmed-active .xp-bg-effects::after {
    height: 45vh !important;
    bottom: -21vh !important;
    opacity: .68 !important;
  }
}

/* 2) Mobile: volver a mostrar subtítulos principales del hero.
      Aplica a CIENCIA APLICADA / DOBLE HÉLICE / ARSENAL / STACK.
      No toca .hl-main. */
@media (max-width: 768px) {
  body.xp-pharmed-active.xp-hero-stage-1 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-top,
  #seccion-particulas.xp-hero-stage-1 .hl-top,
  #seccion-particulas.xp-hero-stage-2 .hl-top,
  #seccion-particulas.xp-hero-stage-3 .hl-top,
  #seccion-particulas.xp-hero-stage-4 .hl-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: .68 !important;
    min-height: 14px !important;
    margin-bottom: clamp(9px, 1.8vh, 14px) !important;
    padding-right: 0 !important;
    font-size: clamp(9px, 2.55vw, 11px) !important;
    line-height: 1 !important;
    letter-spacing: clamp(.20em, .82vw, .30em) !important;
    color: rgba(255,255,255,.66) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.58), 0 1px 2px rgba(0,0,0,.38) !important;
    pointer-events: none !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-2 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-3 .xp-hero-center,
  body.xp-pharmed-active.xp-hero-stage-4 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-1 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-2 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-3 .xp-hero-center,
  #seccion-particulas.xp-hero-stage-4 .xp-hero-center {
    top: 32.5% !important;
  }

  body.xp-pharmed-active.xp-hero-stage-1 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-block,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-block,
  #seccion-particulas.xp-hero-stage-1 .hl-block,
  #seccion-particulas.xp-hero-stage-2 .hl-block,
  #seccion-particulas.xp-hero-stage-3 .hl-block,
  #seccion-particulas.xp-hero-stage-4 .hl-block {
    gap: 6px !important;
  }
}

/* 3) Mobile dock: eliminar cualquier chevron heredado y dejar una sola flecha SVG verde. */
@media (max-width: 768px) {
  body.xp-pharmed-site.xp-pharmed-active .xp-stage-dock .xp-stage-dock-copy::after,
  body.xp-pharmed-active .xp-stage-dock .xp-stage-dock-copy::after,
  #seccion-particulas .xp-stage-dock .xp-stage-dock-copy::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
  }

  body.xp-pharmed-site.xp-pharmed-active .xp-stage-dock .xp-stage-dock-action a,
  body.xp-pharmed-active .xp-stage-dock .xp-stage-dock-action a,
  #seccion-particulas .xp-stage-dock .xp-stage-dock-action a {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.xp-pharmed-site.xp-pharmed-active .xp-stage-dock .xp-stage-dock-action a::before,
  body.xp-pharmed-site.xp-pharmed-active .xp-stage-dock .xp-stage-dock-action a::after,
  body.xp-pharmed-active .xp-stage-dock .xp-stage-dock-action a::before,
  body.xp-pharmed-active .xp-stage-dock .xp-stage-dock-action a::after,
  #seccion-particulas .xp-stage-dock .xp-stage-dock-action a::before,
  #seccion-particulas .xp-stage-dock .xp-stage-dock-action a::after {
    content: none !important;
    display: none !important;
  }

  body.xp-pharmed-site.xp-pharmed-active .xp-stage-dock .xp-stage-dock-action svg,
  body.xp-pharmed-active .xp-stage-dock .xp-stage-dock-action svg,
  #seccion-particulas .xp-stage-dock .xp-stage-dock-action svg {
    color: var(--xg-green, #b8ff57) !important;
    stroke: currentColor !important;
    opacity: .96 !important;
  }
}

/* 4) Canvas rings: el JS ya los dibuja en HiDPI; este refuerzo evita filtros borrosos. */
body.xp-pharmed-active #xp-bg-canvas,
#seccion-particulas #xp-bg-canvas {
  image-rendering: auto !important;
  filter: none !important;
}
/* ============================================================
   X-PHARMED / X-GAINZ — HERO FINAL POLISH v13.5
   APPEND al final de xpharmed-global.css

   Alcance quirúrgico:
   - Mobile .hl-top con transición más estable: fade limpio, sin salto.
   - Sombra oscura más fuerte solo en subtítulos principales (.hl-top).
   - Anillos inferiores sutiles se agregan desde JS como continuidad del fondo.
   ============================================================ */

/* 1) Sombra solo para subtítulos principales:
      BIENVENIDO, / CIENCIA APLICADA / DOBLE HÉLICE / ARSENAL / STACK.
      No afecta .hl-main. */
body.xp-pharmed-active .hl-top,
#seccion-particulas .hl-top {
  text-shadow:
    0 4px 18px rgba(0,0,0,.82),
    0 2px 8px rgba(0,0,0,.72),
    0 1px 2px rgba(0,0,0,.88) !important;
}

/* 2) Mobile: estabilizar .hl-top para que no salte entre stages.
      Evitamos cambios bruscos de layout y dejamos que el JS haga fade. */
@media (max-width: 768px) {
  body.xp-pharmed-active.xp-hero-stage-1 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-top,
  #seccion-particulas.xp-hero-stage-1 .hl-top,
  #seccion-particulas.xp-hero-stage-2 .hl-top,
  #seccion-particulas.xp-hero-stage-3 .hl-top,
  #seccion-particulas.xp-hero-stage-4 .hl-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 16px !important;
    height: 16px !important;
    margin-bottom: clamp(8px, 1.55vh, 12px) !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: geometricPrecision !important;
    will-change: opacity !important;
  }
}

/* 3) El glow inferior puede respirar un poco más fuerte porque ahora
      los anillos inferiores lo justifican visualmente. */
body.xp-pharmed-active .xp-bg-effects::after {
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(184,255,87,.095) 0%,
    rgba(184,255,87,.042) 30%,
    rgba(184,255,87,.012) 62%,
    transparent 86%
  ) !important;
  opacity: .92 !important;
}

@media (max-width: 768px) {
  body.xp-pharmed-active .xp-bg-effects::after {
    opacity: .76 !important;
  }
}
/* ============================================================
   X-PHARMED / X-GAINZ — HERO LOWER MIRROR POLISH v13.6
   APPEND al final de xpharmed-global.css

   Alcance quirúrgico:
   - Mobile .hl-top con transición más estable: fade limpio, sin salto.
   - Sombra oscura más fuerte solo en subtítulos principales (.hl-top).
   - Anillos inferiores sutiles se agregan desde JS como continuidad del fondo.
   ============================================================ */

/* 1) Sombra solo para subtítulos principales:
      BIENVENIDO, / CIENCIA APLICADA / DOBLE HÉLICE / ARSENAL / STACK.
      No afecta .hl-main. */
body.xp-pharmed-active .hl-top,
#seccion-particulas .hl-top {
  text-shadow:
    0 4px 18px rgba(0,0,0,.82),
    0 2px 8px rgba(0,0,0,.72),
    0 1px 2px rgba(0,0,0,.88) !important;
}

/* 2) Mobile: estabilizar .hl-top para que no salte entre stages.
      Evitamos cambios bruscos de layout y dejamos que el JS haga fade. */
@media (max-width: 768px) {
  body.xp-pharmed-active.xp-hero-stage-1 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-top,
  #seccion-particulas.xp-hero-stage-1 .hl-top,
  #seccion-particulas.xp-hero-stage-2 .hl-top,
  #seccion-particulas.xp-hero-stage-3 .hl-top,
  #seccion-particulas.xp-hero-stage-4 .hl-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 16px !important;
    height: 16px !important;
    margin-bottom: clamp(8px, 1.55vh, 12px) !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: geometricPrecision !important;
    will-change: opacity !important;
  }
}

/* 3) El glow inferior puede respirar un poco más fuerte porque ahora
      los anillos inferiores lo justifican visualmente. */
body.xp-pharmed-active .xp-bg-effects::after {
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(184,255,87,.095) 0%,
    rgba(184,255,87,.042) 30%,
    rgba(184,255,87,.012) 62%,
    transparent 86%
  ) !important;
  opacity: .92 !important;
}

@media (max-width: 768px) {
  body.xp-pharmed-active .xp-bg-effects::after {
    opacity: .76 !important;
  }
}


/* v13.6 — mejorar legibilidad de subtítulos principales (.hl-top)
   sin tocar títulos protagonistas. Más blanco, misma sombra. */
body.xp-pharmed-active .hl-top,
#seccion-particulas .hl-top {
  color: rgba(255,255,255,.78) !important;
}

@media (max-width: 768px) {
  body.xp-pharmed-active .hl-top,
  #seccion-particulas .hl-top {
    color: rgba(255,255,255,.82) !important;
  }
}
/* ============================================================
   X-PHARMED / X-GAINZ — HERO LOWER MIRROR FINAL v13.7
   APPEND al final de xpharmed-global.css

   Alcance quirúrgico:
   - Mobile .hl-top con transición más estable: fade limpio, sin salto.
   - Sombra oscura más fuerte solo en subtítulos principales (.hl-top).
   - Anillos inferiores sutiles se agregan desde JS como continuidad del fondo.
   ============================================================ */

/* 1) Sombra solo para subtítulos principales:
      BIENVENIDO, / CIENCIA APLICADA / DOBLE HÉLICE / ARSENAL / STACK.
      No afecta .hl-main. */
body.xp-pharmed-active .hl-top,
#seccion-particulas .hl-top {
  text-shadow:
    0 4px 18px rgba(0,0,0,.82),
    0 2px 8px rgba(0,0,0,.72),
    0 1px 2px rgba(0,0,0,.88) !important;
}

/* 2) Mobile: estabilizar .hl-top para que no salte entre stages.
      Evitamos cambios bruscos de layout y dejamos que el JS haga fade. */
@media (max-width: 768px) {
  body.xp-pharmed-active.xp-hero-stage-1 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-2 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-3 .hl-top,
  body.xp-pharmed-active.xp-hero-stage-4 .hl-top,
  #seccion-particulas.xp-hero-stage-1 .hl-top,
  #seccion-particulas.xp-hero-stage-2 .hl-top,
  #seccion-particulas.xp-hero-stage-3 .hl-top,
  #seccion-particulas.xp-hero-stage-4 .hl-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 16px !important;
    height: 16px !important;
    margin-bottom: clamp(8px, 1.55vh, 12px) !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: geometricPrecision !important;
    will-change: opacity !important;
  }
}

/* 3) El glow inferior puede respirar un poco más fuerte porque ahora
      los anillos inferiores lo justifican visualmente. */
body.xp-pharmed-active .xp-bg-effects::after {
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(184,255,87,.095) 0%,
    rgba(184,255,87,.042) 30%,
    rgba(184,255,87,.012) 62%,
    transparent 86%
  ) !important;
  opacity: .92 !important;
}

@media (max-width: 768px) {
  body.xp-pharmed-active .xp-bg-effects::after {
    opacity: .76 !important;
  }
}


/* v13.6 — mejorar legibilidad de subtítulos principales (.hl-top)
   sin tocar títulos protagonistas. Más blanco, misma sombra. */
body.xp-pharmed-active .hl-top,
#seccion-particulas .hl-top {
  color: rgba(255,255,255,.78) !important;
}

@media (max-width: 768px) {
  body.xp-pharmed-active .hl-top,
  #seccion-particulas .hl-top {
    color: rgba(255,255,255,.82) !important;
  }
}


/* ============================================================
   X-PHARMED — HERO v13.7
   Dock siempre por encima del glow/anillos inferiores
   ============================================================ */

body.xp-pharmed-active #seccion-particulas .xp-stage-dock,
#seccion-particulas .xp-stage-dock {
  position: fixed !important;
  z-index: 90 !important;
  isolation: isolate !important;
}

body.xp-pharmed-active #seccion-particulas .xp-stage-dock *,
#seccion-particulas .xp-stage-dock * {
  position: relative;
  z-index: 2;
}

/* Evita que el glow/canvas de fondo visualmente “tiña” por encima del dock. */
body.xp-pharmed-active #seccion-particulas .xp-bg-effects,
#seccion-particulas .xp-bg-effects {
  z-index: 0 !important;
}

body.xp-pharmed-active #seccion-particulas .xp-vig,
#seccion-particulas .xp-vig {
  z-index: 2 !important;
  pointer-events: none !important;
}

body.xp-pharmed-active #seccion-particulas .xp-hero-overlay,
#seccion-particulas .xp-hero-overlay {
  z-index: 5 !important;
}

@media (max-width: 768px) {
  body.xp-pharmed-active #seccion-particulas .xp-stage-dock,
  #seccion-particulas .xp-stage-dock {
    z-index: 95 !important;
  }
}
/* ============================================================
   X-PHARMED — HERO v13.8
   Dock Above Glow Fix / blindaje visual del dock

   Problema:
   El dock ya está por encima en z-index, pero su fondo es muy translúcido
   y usa backdrop-filter; por eso el glow/anillos inferiores se ven
   "atravesando" el dock.

   Solución:
   - Mantener el dock por encima.
   - Crear una base oscura interna casi opaca.
   - Conservar textura premium y línea superior.
   - Evitar que el glow verde se perciba como si estuviera encima.
   ============================================================ */

/* 1) Dock: capa superior real + contexto aislado */
body.xp-pharmed-active #seccion-particulas .xp-stage-dock,
#seccion-particulas .xp-stage-dock {
  position: fixed !important;
  z-index: 140 !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background:
    linear-gradient(168deg,
      rgba(20,20,20,.94) 0%,
      rgba(10,10,10,.93) 55%,
      rgba(0,0,0,.96) 100%
    ) !important;
  background-color: rgba(8,8,8,.96) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: translateZ(0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -1px 0 rgba(0,0,0,.44),
    0 18px 54px rgba(0,0,0,.68),
    0 0 0 1px rgba(255,255,255,.055) !important;
}

/* 2) Base interna: tapa el glow del fondo pero conserva textura premium */
body.xp-pharmed-active #seccion-particulas .xp-stage-dock::before,
#seccion-particulas .xp-stage-dock::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  background:
    linear-gradient(168deg,
      rgba(255,255,255,.045) 0%,
      rgba(255,255,255,.018) 42%,
      rgba(0,0,0,.22) 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.48'/%3E%3C/svg%3E") !important;
  background-size: auto, 128px 128px !important;
  background-blend-mode: normal, overlay !important;
}

/* 3) Línea superior del dock: sigue arriba de la base interna */
body.xp-pharmed-active #seccion-particulas .xp-stage-dock::after,
#seccion-particulas .xp-stage-dock::after {
  z-index: 3 !important;
}

/* 4) Contenido del dock siempre por encima de la base */
body.xp-pharmed-active #seccion-particulas .xp-stage-dock > *,
#seccion-particulas .xp-stage-dock > * {
  position: relative !important;
  z-index: 2 !important;
}

/* 5) Fondo/viñeta por debajo: refuerzo de orden visual */
body.xp-pharmed-active #seccion-particulas .xp-bg-effects,
#seccion-particulas .xp-bg-effects {
  z-index: 0 !important;
}

body.xp-pharmed-active #seccion-particulas .xp-scroll-section,
#seccion-particulas .xp-scroll-section {
  z-index: 10 !important;
}

body.xp-pharmed-active #seccion-particulas .xp-vig,
#seccion-particulas .xp-vig {
  z-index: 12 !important;
  pointer-events: none !important;
}

body.xp-pharmed-active #seccion-particulas .xp-hero-overlay,
#seccion-particulas .xp-hero-overlay {
  z-index: 20 !important;
}

/* 6) Mobile: mismo blindaje, apenas más oscuro porque el glow está más cerca del dock */
@media (max-width: 768px) {
  body.xp-pharmed-active #seccion-particulas .xp-stage-dock,
  #seccion-particulas .xp-stage-dock {
    z-index: 150 !important;
    background:
      linear-gradient(168deg,
        rgba(18,18,18,.96) 0%,
        rgba(8,8,8,.95) 56%,
        rgba(0,0,0,.97) 100%
      ) !important;
    background-color: rgba(6,6,6,.97) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      inset 0 -1px 0 rgba(0,0,0,.46),
      0 14px 46px rgba(0,0,0,.74),
      0 0 0 1px rgba(255,255,255,.052) !important;
  }
}
/* ============================================================
   X-PHARMED — HERO v13.9
   Lower Glow Subtle + Dock Restore

   Objetivo:
   - Dejar el dock con el estilo premium translúcido anterior.
   - NO blindar el dock con base opaca.
   - Quitar el brillo verde inferior fuerte.
   - Mantener apenas un detalle verde muy sutil al borde inferior de la pantalla.
   - No toca JS, partículas, anillos, navegación ni textos.
   ============================================================ */

/* 1) Restaurar el dock: anula el blindaje opaco de v13.8
      y vuelve a una cápsula dark translúcida premium. */
body.xp-pharmed-active #seccion-particulas .xp-stage-dock,
#seccion-particulas .xp-stage-dock {
  z-index: 90 !important;
  isolation: auto !important;
  overflow: hidden !important;
  background:
    linear-gradient(168deg,
      rgba(255,255,255,.080) 0%,
      rgba(255,255,255,.035) 44%,
      rgba(0,0,0,.18) 100%
    ) !important;
  background-color: rgba(16,16,16,.52) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    0 18px 54px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.060) !important;
}

/* 2) Restaurar textura interna del dock a un detalle liviano,
      sin capa negra opaca. */
body.xp-pharmed-active #seccion-particulas .xp-stage-dock::before,
#seccion-particulas .xp-stage-dock::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: .34 !important;
  mix-blend-mode: overlay !important;
  background:
    linear-gradient(168deg,
      rgba(255,255,255,.050) 0%,
      rgba(255,255,255,.014) 42%,
      rgba(0,0,0,.12) 100%
    ) !important;
}

/* 3) Mantener contenido y línea superior del dock en su lugar. */
body.xp-pharmed-active #seccion-particulas .xp-stage-dock::after,
#seccion-particulas .xp-stage-dock::after {
  z-index: 3 !important;
}

body.xp-pharmed-active #seccion-particulas .xp-stage-dock > *,
#seccion-particulas .xp-stage-dock > * {
  position: relative !important;
  z-index: 2 !important;
}

/* 4) Quitar el glow inferior fuerte.
      Lo dejamos como un detalle mínimo, pegado al borde inferior real,
      para que no invada ni tiña el dock. */
body.xp-pharmed-active .xp-bg-effects::after,
body.xp-pharmed-site .xp-bg-effects::after,
#seccion-particulas .xp-bg-effects::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  height: clamp(110px, 18vh, 190px) !important;
  pointer-events: none !important;
  opacity: .34 !important;
  background:
    radial-gradient(
      ellipse at 50% 100%,
      rgba(184,255,87,.030) 0%,
      rgba(184,255,87,.014) 34%,
      rgba(184,255,87,.004) 66%,
      transparent 100%
    ) !important;
  filter: none !important;
  mix-blend-mode: screen !important;
}

/* Mobile: todavía más sutil, porque el dock está más cerca del borde inferior. */
@media (max-width: 768px) {
  body.xp-pharmed-active .xp-bg-effects::after,
  body.xp-pharmed-site .xp-bg-effects::after,
  #seccion-particulas .xp-bg-effects::after {
    height: 120px !important;
    opacity: .22 !important;
    background:
      radial-gradient(
        ellipse at 50% 100%,
        rgba(184,255,87,.022) 0%,
        rgba(184,255,87,.010) 38%,
        rgba(184,255,87,.003) 70%,
        transparent 100%
      ) !important;
  }

  body.xp-pharmed-active #seccion-particulas .xp-stage-dock,
  #seccion-particulas .xp-stage-dock {
    background:
      linear-gradient(168deg,
        rgba(255,255,255,.082) 0%,
        rgba(255,255,255,.036) 46%,
        rgba(0,0,0,.20) 100%
      ) !important;
    background-color: rgba(16,16,16,.55) !important;
    backdrop-filter: blur(18px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.13),
      0 16px 48px rgba(0,0,0,.48),
      0 0 0 1px rgba(255,255,255,.058) !important;
  }
}

/* ============================================================
   FINAL SECTION OVERRIDES — v15.6
   Conserva la base completa y aplica únicamente los ajustes finales
   aprobados para Factor X, ADN y Stack.
   ============================================================ */

/* ============================================================
   FACTOR X — Final Section Polish
   v15.5 — Vertical Center + Dual CTA
   ============================================================ */

@media (min-width: 901px) {
  body.xp-pharmed-site .xp-section--factor-x .xp-section-inner {
    transform: translateY(clamp(22px, 3vh, 42px));
  }
}

body.xp-pharmed-site .xp-section-sub--factor {
  max-width: 760px;
}

body.xp-pharmed-site .xp-section-cta--dual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

body.xp-pharmed-site .xp-section-btn-minimal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(184,255,87,.72);
  text-decoration: none;
  font-family: var(--xg-font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  opacity: .88;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

body.xp-pharmed-site .xp-section-btn-minimal svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: .68;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

body.xp-pharmed-site .xp-section-btn-minimal:hover {
  color: var(--xg-green);
  opacity: 1;
  transform: translateY(-1px);
}

body.xp-pharmed-site .xp-section-btn-minimal:hover svg {
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 640px) {
  body.xp-pharmed-site .xp-section-sub--factor br {
    display: none;
  }

  body.xp-pharmed-site .xp-section-cta--dual {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  body.xp-pharmed-site .xp-section-btn-minimal {
    width: 100%;
    max-width: 320px;
    min-height: 36px;
    padding: 0;
  }

  body.xp-pharmed-site .xp-section-cta--dual .xp-section-btn {
    width: 100%;
    max-width: 320px;
  }
}


/* ============================================================
   ADN — Final Balance + Real Molecular Rings
   v15.5 — Contained Rings + Monitor Integration
   ============================================================ */

@media (min-width: 901px) {
  body.xp-post-sections-active .xp-section--adn .xp-adn-layout,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-left,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-left {
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(72px, 8vh, 104px) clamp(30px, 4vw, 58px) clamp(48px, 6vh, 78px) !important;
    border-right: 0 !important;
    position: relative;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-left::after,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-left::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(255,255,255,.026) 17%,
      rgba(255,255,255,.068) 50%,
      rgba(255,255,255,.026) 83%,
      transparent 100%
    );
    pointer-events: none;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-right,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-right {
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(72px, 8vh, 104px) clamp(26px, 3.2vw, 52px) clamp(48px, 6vh, 78px) !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-monitor,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor {
    width: min(100%, 500px) !important;
    max-width: 500px !important;
    transform: translate(-28px, 8px);
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-figure-wrap,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-figure-wrap {
    width: min(100%, 560px) !important;
    min-height: min(70vh, 660px) !important;
    height: min(70vh, 660px) !important;
    margin-inline: auto !important;
    position: relative;
    overflow: visible !important;
    transform: translateX(10px);
  }
}

body.xp-pharmed-site .xp-adn-figure-wrap {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
}

body.xp-pharmed-site .xp-adn-molecular-rings {
  position: absolute;
  left: 50%;
  top: 53%;
  width: min(44vw, 460px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  background-image: url("https://xpharmed.emetagencia.com/wp-content/uploads/sites/17/2026/05/X-GAINZ-FONDO-CIRCULOS.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .28;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 8px rgba(255,255,255,.025))
    drop-shadow(0 0 14px rgba(184,255,87,.020));
  animation: xpAdnRingsFloat 42s linear infinite;
  will-change: transform;
}

body.xp-pharmed-site .xp-adn-molecular-rings::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 46%,
      rgba(0,0,0,.10) 72%,
      rgba(0,0,0,.28) 100%
    );
}

body.xp-pharmed-site #xp-adn-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
}

body.xp-pharmed-site .xp-adn-figure-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 53%;
  width: min(26vw, 250px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(184,255,87,.030) 0%,
    rgba(184,255,87,.012) 34%,
    rgba(184,255,87,.004) 58%,
    transparent 74%
  );
  filter: blur(3px);
  opacity: .52;
}

@media (min-width: 901px) {
  body.xp-pharmed-site .xp-adn-molecular-rings {
    width: min(42vw, 430px);
    top: 53%;
    opacity: .24;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  body.xp-post-sections-active .xp-section--adn .xp-monitor,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-monitor {
    transform: translate(-24px, 0);
    gap: 14px !important;
  }

  body.xp-post-sections-active .xp-section--adn .xp-adn-figure-wrap,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--adn .xp-adn-figure-wrap {
    min-height: min(62vh, 560px) !important;
    height: min(62vh, 560px) !important;
    transform: translateX(8px);
  }

  body.xp-pharmed-site .xp-adn-molecular-rings {
    width: min(38vw, 390px);
    opacity: .22;
  }
}

@media (max-width: 900px) {
  body.xp-pharmed-site .xp-adn-molecular-rings {
    width: min(58vw, 260px);
    top: 53%;
    opacity: .18;
    animation: none;
  }

  body.xp-pharmed-site .xp-adn-figure-wrap::before {
    width: min(56vw, 220px);
    opacity: .24;
  }
}

@media (max-width: 480px) {
  body.xp-pharmed-site .xp-adn-molecular-rings {
    width: min(62vw, 235px);
    opacity: .16;
  }

  body.xp-pharmed-site .xp-adn-figure-wrap::before {
    width: min(54vw, 200px);
    opacity: .22;
  }
}

@keyframes xpAdnRingsFloat {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  body.xp-pharmed-site .xp-adn-molecular-rings {
    animation: none !important;
  }
}


/* ============================================================
   STACK — Final Clean Builder
   v15.5 — Black Background + Desktop Harmony + Mobile Panel Scroll
   ============================================================ */

body.xp-pharmed-site .xp-section--stack {
  align-items: stretch !important;
  justify-content: center !important;
  background: #020202 !important;
  background-image: none !important;
  overflow: hidden !important;
}

body.xp-pharmed-site .xp-section--stack::before,
body.xp-pharmed-site .xp-section--stack::after {
  background: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
  content: "";
  pointer-events: none;
}

body.xp-post-sections-active .xp-section--stack.is-active {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  overflow: hidden !important;
}

body.xp-pharmed-site .xp-stack-shell {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100vw - 96px));
  height: 100svh;
  min-height: 0;
  max-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(76px, 7vw, 128px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(92px, 10vh, 126px) 0 clamp(56px, 7vh, 86px);
  color: var(--xg-white);
  overflow: hidden;
}

body.xp-pharmed-site .xp-stack-left {
  min-width: 0;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transform: translateY(2px);
}

body.xp-pharmed-site .xp-stack-eyebrow {
  margin-bottom: clamp(20px, 3vh, 34px) !important;
}

body.xp-pharmed-site .xp-stack-title {
  max-width: 540px;
  margin: 0 0 clamp(16px, 2.4vh, 24px);
  font-family: var(--xg-font-display);
  font-weight: 300;
  font-size: clamp(52px, 5.1vw, 88px);
  line-height: .89;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: var(--xg-white);
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

body.xp-pharmed-site .xp-stack-title span {
  display: block;
}

body.xp-pharmed-site .xp-stack-sub {
  max-width: 540px;
  margin: 0 0 clamp(24px, 4vh, 42px);
  font-family: var(--xg-font-mono);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: .06em;
  color: rgba(255,255,255,.48);
}

body.xp-pharmed-site .xp-stack-objectives {
  display: grid;
  gap: 10px;
  width: min(430px, 100%);
}

body.xp-pharmed-site .xp-stack-objective {
  appearance: none;
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.018);
  box-shadow: none;
  color: rgba(255,255,255,.56);
  font-family: var(--xg-font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

body.xp-pharmed-site .xp-stack-objective span {
  color: rgba(184,255,87,.58);
  font-size: 9px;
}

body.xp-pharmed-site .xp-stack-objective:hover {
  color: rgba(255,255,255,.86);
  border-color: rgba(184,255,87,.18);
  background: rgba(184,255,87,.026);
  transform: translateY(-1px);
  box-shadow: none;
}

body.xp-pharmed-site .xp-stack-objective.is-active {
  color: var(--xg-white);
  border-color: rgba(184,255,87,.30);
  background: rgba(184,255,87,.075);
  box-shadow:
    inset 0 1px 0 rgba(184,255,87,.08),
    0 0 18px rgba(184,255,87,.026);
}

body.xp-pharmed-site .xp-stack-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 18px;
  font-family: var(--xg-font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(184,255,87,.68);
  text-decoration: none;
  opacity: .86;
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

body.xp-pharmed-site .xp-stack-shop-link svg {
  width: 12px;
  height: 12px;
  opacity: .62;
  transition: transform 220ms ease, opacity 220ms ease;
}

body.xp-pharmed-site .xp-stack-shop-link:hover {
  color: var(--xg-green);
  opacity: 1;
  transform: translateY(-1px);
}

body.xp-pharmed-site .xp-stack-shop-link:hover svg {
  transform: translateX(3px);
  opacity: 1;
}

body.xp-pharmed-site .xp-stack-panel {
  min-width: 0;
  width: min(100%, 560px);
  max-width: 560px;
  max-height: min(74vh, 680px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-self: start;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 18px;
  background: rgba(255,255,255,.030) !important;
  background-image: none !important;
  box-shadow:
    0 26px 72px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.050);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,255,87,.22) rgba(255,255,255,.025);
}

body.xp-pharmed-site .xp-stack-panel::before,
body.xp-pharmed-site .xp-stack-panel::after {
  background: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
}

body.xp-pharmed-site .xp-stack-panel::-webkit-scrollbar { width: 4px; }
body.xp-pharmed-site .xp-stack-panel::-webkit-scrollbar-track { background: rgba(255,255,255,.022); border-radius: 999px; }
body.xp-pharmed-site .xp-stack-panel::-webkit-scrollbar-thumb { background: rgba(184,255,87,.24); border-radius: 999px; }
body.xp-pharmed-site .xp-stack-panel::-webkit-scrollbar-thumb:hover { background: rgba(184,255,87,.34); }

body.xp-pharmed-site .xp-stack-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 6px;
}

body.xp-pharmed-site .xp-stack-panel-kicker,
body.xp-pharmed-site .xp-stack-panel-status,
body.xp-pharmed-site .xp-stack-products-head,
body.xp-pharmed-site .xp-stack-summary-row,
body.xp-pharmed-site .xp-stack-form label span {
  font-family: var(--xg-font-mono);
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}

body.xp-pharmed-site .xp-stack-panel-title {
  margin-top: 7px;
  font-family: var(--xg-font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(184,255,87,.86);
}

body.xp-pharmed-site .xp-stack-panel-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(184,255,87,.62);
  white-space: nowrap;
}

body.xp-pharmed-site .xp-stack-buytype {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.070);
  background: rgba(255,255,255,.026);
}

body.xp-pharmed-site .xp-stack-buytype-btn {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,.44);
  font-family: var(--xg-font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

body.xp-pharmed-site .xp-stack-buytype-btn:hover,
body.xp-pharmed-site .xp-stack-buytype-btn.is-active {
  color: var(--xg-green);
  border-color: rgba(184,255,87,.28);
  background: rgba(184,255,87,.080);
  box-shadow:
    inset 0 1px 0 rgba(184,255,87,.08),
    0 0 16px rgba(184,255,87,.020);
}

body.xp-pharmed-site .xp-stack-products-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

body.xp-pharmed-site .xp-stack-products-head strong {
  color: rgba(184,255,87,.72);
  font-weight: 400;
}

body.xp-pharmed-site .xp-stack-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.xp-pharmed-site .xp-stack-loading,
body.xp-pharmed-site .xp-stack-empty {
  grid-column: 1 / -1;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  font-family: var(--xg-font-mono);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.34);
}

body.xp-pharmed-site .xp-stack-product {
  position: relative;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  background: rgba(255,255,255,.026);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body.xp-pharmed-site .xp-stack-product:hover,
body.xp-pharmed-site .xp-stack-product.is-selected {
  border-color: rgba(184,255,87,.34);
  background: rgba(184,255,87,.060);
}

body.xp-pharmed-site .xp-stack-product.is-selected {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(184,255,87,.09),
    0 0 18px rgba(184,255,87,.030);
}

body.xp-pharmed-site .xp-stack-product-name {
  max-width: calc(100% - 24px);
  font-family: var(--xg-font-display);
  font-size: 19px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}

body.xp-pharmed-site .xp-stack-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--xg-font-mono);
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

body.xp-pharmed-site .xp-stack-product-meta strong {
  color: rgba(184,255,87,.72);
  font-weight: 400;
  white-space: nowrap;
}

body.xp-pharmed-site .xp-stack-product-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
}

body.xp-pharmed-site .xp-stack-product.is-selected .xp-stack-product-check {
  border-color: rgba(184,255,87,.55);
  background: rgba(184,255,87,.18);
  box-shadow: 0 0 0 3px rgba(184,255,87,.04);
}

body.xp-pharmed-site .xp-stack-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.xp-pharmed-site .xp-stack-summary-row {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: rgba(255,255,255,.026);
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: none;
}

body.xp-pharmed-site .xp-stack-summary-row strong {
  font-family: var(--xg-font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}

body.xp-pharmed-site .xp-stack-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.xp-pharmed-site .xp-stack-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.xp-pharmed-site .xp-stack-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body.xp-pharmed-site .xp-stack-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.xp-pharmed-site .xp-stack-form-full {
  grid-column: 1 / -1;
}

body.xp-pharmed-site .xp-stack-form input,
body.xp-pharmed-site .xp-stack-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  background: rgba(255,255,255,.026);
  color: var(--xg-white);
  font-family: var(--xg-font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  outline: none;
  padding: 12px 13px;
  resize: none;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.xp-pharmed-site .xp-stack-form input::placeholder,
body.xp-pharmed-site .xp-stack-form textarea::placeholder {
  color: rgba(255,255,255,.24);
}

body.xp-pharmed-site .xp-stack-form input:focus,
body.xp-pharmed-site .xp-stack-form textarea:focus {
  border-color: rgba(184,255,87,.28);
  box-shadow: 0 0 0 1px rgba(184,255,87,.045);
  background: rgba(255,255,255,.030);
}

body.xp-pharmed-site .xp-stack-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

body.xp-pharmed-site .xp-stack-submit {
  flex: 1;
}

body.xp-pharmed-site .xp-stack-store {
  min-width: 120px;
}

body.xp-pharmed-site .xp-stack-result {
  padding: 18px;
  border: 1px solid rgba(184,255,87,.24);
  border-radius: 14px;
  background: rgba(184,255,87,.06);
}

body.xp-pharmed-site .xp-stack-result[hidden] {
  display: none !important;
}

body.xp-pharmed-site .xp-stack-result-ref {
  font-family: var(--xg-font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(184,255,87,.70);
  margin-bottom: 8px;
}

body.xp-pharmed-site .xp-stack-result-title {
  font-family: var(--xg-font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--xg-white);
  margin-bottom: 6px;
}

body.xp-pharmed-site .xp-stack-result p {
  font-family: var(--xg-font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: rgba(255,255,255,.48);
  margin: 0 0 14px;
}

body.xp-pharmed-site .xp-stack-wa {
  width: 100%;
}

@media (min-width: 901px) {
  body.xp-post-sections-active .xp-section--stack,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--stack {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
  }

  body.xp-post-sections-active .xp-section--stack .xp-stack-shell,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--stack .xp-stack-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(76px, 7vw, 128px) !important;
    width: 100% !important;
    max-width: 1420px !important;
    height: 100% !important;
    min-height: 100% !important;
    margin-inline: auto !important;
    padding: clamp(92px, 10vh, 126px) clamp(72px, 7vw, 128px) clamp(56px, 7vh, 86px) !important;
  }

  body.xp-post-sections-active .xp-section--stack .xp-stack-panel,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--stack .xp-stack-panel {
    width: min(100%, 560px) !important;
    max-width: 560px !important;
    max-height: min(74vh, 680px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateY(2px);
    justify-self: start;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  body.xp-post-sections-active .xp-section--stack .xp-stack-shell,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--stack .xp-stack-shell {
    gap: clamp(58px, 6vw, 96px) !important;
    padding-inline: clamp(56px, 6vw, 104px) !important;
    padding-top: clamp(78px, 9vh, 104px) !important;
    padding-bottom: clamp(44px, 6vh, 70px) !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-title {
    font-size: clamp(46px, 4.6vw, 74px);
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective {
    min-height: 48px;
  }

  body.xp-post-sections-active .xp-section--stack .xp-stack-panel,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--stack .xp-stack-panel {
    max-height: min(76vh, 620px) !important;
  }
}

@media (max-width: 900px) {
  body.xp-post-sections-active .xp-section--stack.is-active,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--stack.is-active {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    background: #020202 !important;
  }

  body.xp-post-sections-active .xp-section--stack .xp-stack-shell,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--stack .xp-stack-shell {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    gap: 18px !important;
    padding: 104px 18px 22px !important;
    overflow: hidden !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-eyebrow {
    justify-content: center;
    margin-bottom: 0 !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-title {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: .34em;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    font-size: clamp(27px, 7.2vw, 34px);
    line-height: 1;
    letter-spacing: .018em;
    white-space: nowrap !important;
    text-align: center;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-title span {
    display: inline-block;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-title br {
    display: none !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-sub {
    display: none;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objectives {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: calc(100% + 36px) !important;
    max-width: calc(100% + 36px) !important;
    margin-left: -18px !important;
    margin-right: -18px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    padding-bottom: 7px !important;
    gap: 9px !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
    position: relative;
    z-index: 5;
    scrollbar-width: none;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objectives::-webkit-scrollbar {
    display: none;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective {
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 9px !important;
    letter-spacing: .075em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    scroll-snap-align: start;
    touch-action: manipulation;
    transform: none !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective span {
    margin-right: 0 !important;
    font-size: 9px !important;
    letter-spacing: .04em !important;
    flex: 0 0 auto;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective[data-objective="fuerza"] {
    flex: 0 0 118px !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective[data-objective="definicion"] {
    flex: 0 0 146px !important;
    width: 146px !important;
    min-width: 146px !important;
    max-width: 146px !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective[data-objective="rendimiento"] {
    flex: 0 0 158px !important;
    width: 158px !important;
    min-width: 158px !important;
    max-width: 158px !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective[data-objective="recuperacion"] {
    flex: 0 0 162px !important;
    width: 162px !important;
    min-width: 162px !important;
    max-width: 162px !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-shop-link {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 2px;
    margin-bottom: 2px;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-panel {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: 20px 18px 24px !important;
    border-radius: 22px;
    background: rgba(255,255,255,.030) !important;
    box-shadow:
      0 22px 58px rgba(0,0,0,.42),
      inset 0 1px 0 rgba(255,255,255,.045);
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-panel::-webkit-scrollbar { width: 3px; }
  body.xp-pharmed-site .xp-section--stack .xp-stack-panel::-webkit-scrollbar-track { background: rgba(255,255,255,.02); border-radius: 999px; }
  body.xp-pharmed-site .xp-section--stack .xp-stack-panel::-webkit-scrollbar-thumb { background: rgba(184,255,87,.22); border-radius: 999px; }

  body.xp-pharmed-site .xp-section--stack .xp-stack-panel-head {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-panel-status {
    display: none;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-buytype {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-buytype-btn {
    min-width: 0;
    padding-inline: 6px;
    font-size: 9px;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-products {
    grid-template-columns: 1fr;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-summary {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-summary-row {
    min-height: 58px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-form-full {
    grid-column: auto;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-form label,
  body.xp-pharmed-site .xp-section--stack .xp-stack-form input,
  body.xp-pharmed-site .xp-section--stack .xp-stack-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-submit,
  body.xp-pharmed-site .xp-section--stack .xp-stack-store {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  body.xp-post-sections-active .xp-section--stack .xp-stack-shell,
  body.xp-pharmed-site:not(.xp-pharmed-hero) .xp-section--stack .xp-stack-shell {
    padding-inline: 16px !important;
    padding-top: 100px !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-title {
    font-size: clamp(25px, 7vw, 31px);
    gap: .30em;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective {
    font-size: 8.5px !important;
    letter-spacing: .065em !important;
    padding: 0 12px !important;
    gap: 7px !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective[data-objective="fuerza"] {
    flex-basis: 112px !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective[data-objective="definicion"] {
    flex-basis: 138px !important;
    width: 138px !important;
    min-width: 138px !important;
    max-width: 138px !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective[data-objective="rendimiento"] {
    flex-basis: 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-objective[data-objective="recuperacion"] {
    flex-basis: 154px !important;
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
  }

  body.xp-pharmed-site .xp-section--stack .xp-stack-panel {
    padding-inline: 16px !important;
  }
}