/* zx-design.css — ZentexNode · sistema visual «negro» (2026-10-22; fuente: docs/maquetas/2026-10-22-rediseno/LEEME.md)
   Un solo CSS común para toda la web: tokens → base → piezas → animaciones.
   Las piezas llevan prefijo zx- para convivir con el CSS actual mientras se migra página a página. */

/* ───────────── 1. Tokens ───────────── */
:root {
  /* color */
  --zx-bg: #000;
  --zx-bg-2: #07070b;
  --zx-surface: #0c0c12;
  --zx-surface-2: #13131c;
  --zx-line: rgba(255, 255, 255, .08);
  --zx-line-2: rgba(255, 255, 255, .14);
  --zx-text: #f4f4f8;
  --zx-muted: #9b9bb0;
  --zx-muted-2: #6b6b80;
  --zx-brand: #8b5cf6;
  --zx-brand-2: #c084fc;
  --zx-brand-glow: rgba(139, 92, 246, .35);
  --zx-ok: #34d399;
  --zx-warn: #fbbf24;
  --zx-bad: #f87171;
  --zx-err: var(--zx-bad);
  --zx-grad: linear-gradient(135deg, var(--zx-brand), var(--zx-brand-2));

  /* tipografía */
  --zx-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --zx-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --zx-fs-hero: clamp(2.9rem, 9vw, 7.2rem);
  --zx-fs-h2: clamp(1.9rem, 4.2vw, 3.1rem);
  --zx-fs-h3: 1.12rem;
  --zx-fs-body: 1rem;
  --zx-fs-small: .86rem;
  --zx-fs-micro: .72rem;

  /* forma y espacio */
  --zx-r-sm: 10px;
  --zx-r: 18px;
  --zx-r-lg: 26px;
  --zx-r-pill: 999px;
  --zx-wrap: 1180px;
  --zx-gutter: clamp(16px, 4vw, 32px);
  --zx-section: clamp(72px, 11vw, 140px);

  /* movimiento */
  --zx-ease: cubic-bezier(.22, 1, .36, 1);
  --zx-ease-in: cubic-bezier(.64, 0, .78, 0);
  --zx-dur: .7s;
  --zx-dur-fast: .25s;
  --zx-stagger: 70ms;
}

/* ───────────── 2. Base ─────────────
   Solo dentro de <body class="zx-page">: así el fichero se puede cargar en una página antigua sin cambiarle nada
   (tokens y piezas zx- sí funcionan en cualquier sitio). */
.zx-page, .zx-page *, .zx-page *::before, .zx-page *::after { box-sizing: border-box; }
html:has(> body.zx-page) { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.zx-page {
  margin: 0; background: var(--zx-bg); color: var(--zx-text);
  font: 400 var(--zx-fs-body)/1.6 var(--zx-font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;   /* clip: sin crear contenedor de scroll, si no «position: sticky» deja de funcionar */
}
.zx-page :where(img) { max-width: 100%; display: block; }
.zx-page :where(a) { color: inherit; text-decoration: none; }
.zx-page :where(h1, h2, h3, h4) { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.zx-page :where(p) { margin: 0; }
.zx-page ::selection { background: var(--zx-brand); color: #fff; }
.zx-page :focus-visible { outline: 2px solid var(--zx-brand-2); outline-offset: 3px; border-radius: 6px; }
.zx-wrap { width: 100%; max-width: var(--zx-wrap); margin: 0 auto; padding: 0 var(--zx-gutter); box-sizing: border-box; }
.zx-section { padding: var(--zx-section) 0; position: relative; }
.zx-muted { color: var(--zx-muted); }
.zx-grad-text { background: var(--zx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────────── 3. Piezas ───────────── */

/* 3.1 Etiqueta pequeña (eyebrow / chip) */
.zx-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--zx-line); border-radius: var(--zx-r-pill);
  font-size: var(--zx-fs-micro); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--zx-muted);
  background: rgba(255, 255, 255, .02);
}
.zx-chip .zx-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--zx-ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: zx-ping 2s infinite; }
.zx-chip img { width: 16px; border-radius: 2px; }

/* 3.2 Botones */
.zx-btn {
  --b: var(--zx-line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--zx-r-pill); border: 1px solid var(--b);
  font: 600 .95rem/1 var(--zx-font); color: var(--zx-text); background: transparent; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: transform var(--zx-dur-fast) var(--zx-ease), border-color var(--zx-dur-fast), background var(--zx-dur-fast);
}
.zx-btn:hover { transform: translateY(-2px); --b: rgba(255, 255, 255, .3); }
.zx-btn:active { transform: translateY(0) scale(.98); }
.zx-btn--primary { border-color: transparent; background: var(--zx-grad); color: #fff; box-shadow: 0 8px 30px -10px var(--zx-brand-glow); }
.zx-btn--primary::after { /* brillo que cruza al pasar el ratón */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--zx-ease);
}
.zx-btn--primary:hover::after { transform: translateX(120%); }
.zx-btn--lg { padding: 16px 26px; font-size: 1rem; }
.zx-btn--sm { padding: 9px 14px; font-size: .86rem; }
.zx-btn .zx-arrow { transition: transform var(--zx-dur-fast) var(--zx-ease); }
.zx-btn:hover .zx-arrow { transform: translateX(4px); }

/* 3.3 Cabecera con píldora deslizante */
.zx-nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0; transition: background var(--zx-dur-fast), backdrop-filter var(--zx-dur-fast), padding var(--zx-dur-fast); }
.zx-nav.is-scrolled { background: rgba(0, 0, 0, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); padding: 8px 0; border-bottom: 1px solid var(--zx-line); }
.zx-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* Variante en el flujo de la página: convive con barras que se insertan arriba (promo-banner.js, avisos). */
.zx-nav--sticky { position: sticky; top: 0; }
@media (max-width: 860px) { .zx-nav--sticky .zx-pillnav { position: absolute !important; top: calc(100% + 8px) !important; } }
.zx-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; }
.zx-brand img { width: 30px; height: 30px; }
.zx-brand b { color: var(--zx-brand-2); font-weight: 800; }
.zx-pillnav { position: relative; display: flex; gap: 2px; padding: 5px; border: 1px solid var(--zx-line); border-radius: var(--zx-r-pill); background: rgba(255, 255, 255, .02); }
.zx-pillnav a { position: relative; z-index: 1; padding: 8px 14px; border-radius: var(--zx-r-pill); font-size: .88rem; font-weight: 500; color: var(--zx-muted); transition: color var(--zx-dur-fast); }
.zx-pillnav a:hover, .zx-pillnav a.is-active { color: var(--zx-text); }
.zx-pillnav__ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: var(--zx-r-pill); background: var(--zx-surface-2); border: 1px solid var(--zx-line-2); opacity: 0; transition: transform .45s var(--zx-ease), width .45s var(--zx-ease), opacity var(--zx-dur-fast); }
.zx-nav__end { display: flex; align-items: center; gap: 10px; }
.zx-lang { font-size: .82rem; font-weight: 600; color: var(--zx-muted); padding: 8px 10px; border-radius: var(--zx-r-pill); border: 1px solid var(--zx-line); display: inline-flex; gap: 6px; align-items: center; }
.zx-lang img { width: 18px; border-radius: 2px; }
.zx-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--zx-line-2); background: none; color: var(--zx-text); cursor: pointer; }
.zx-burger span { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: currentColor; transition: transform var(--zx-dur-fast) var(--zx-ease), opacity var(--zx-dur-fast); }
.zx-nav.is-open .zx-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.zx-nav.is-open .zx-burger span:nth-child(2) { opacity: 0; }
.zx-nav.is-open .zx-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 3.4 Cabecera de sección */
.zx-head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.zx-head h2 { font-size: var(--zx-fs-h2); }
.zx-head p { color: var(--zx-muted); font-size: 1.05rem; max-width: 600px; }

/* 3.5 Tarjeta (con foco de luz que sigue al ratón) */
.zx-card {
  --mx: 50%; --my: 0%;
  position: relative; border: 1px solid var(--zx-line); border-radius: var(--zx-r); padding: 26px;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(139, 92, 246, .10), transparent 45%), var(--zx-surface);
  transition: border-color var(--zx-dur-fast), transform var(--zx-dur-fast) var(--zx-ease);
}
.zx-card:hover { border-color: rgba(192, 132, 252, .3); transform: translateY(-3px); }
.zx-card h3 { font-size: var(--zx-fs-h3); letter-spacing: -.01em; margin: 18px 0 8px; }
.zx-card p { color: var(--zx-muted); font-size: .94rem; line-height: 1.65; }
.zx-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--zx-line-2); background: var(--zx-surface-2); color: var(--zx-brand-2); }
.zx-icon svg { width: 20px; height: 20px; }
.zx-grid { display: grid; gap: 16px; }
.zx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.zx-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* 3.6 Dato con contador (stat) */
.zx-stat { display: grid; gap: 4px; }
.zx-stat b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.zx-stat span { font-size: var(--zx-fs-small); color: var(--zx-muted); }

/* 3.7 Panel en vivo (las tarjetas del hero) */
.zx-panel { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; padding: 12px; border: 1px solid var(--zx-line); border-radius: var(--zx-r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0)); box-shadow: 0 40px 120px -40px var(--zx-brand-glow); }
.zx-tile { border: 1px solid var(--zx-line); border-radius: var(--zx-r); background: var(--zx-surface); padding: 18px; display: grid; gap: 12px; align-content: start; min-height: 130px; }
.zx-tile__label { font-size: var(--zx-fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--zx-muted-2); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.zx-tile--accent { background: var(--zx-grad); border-color: transparent; color: #fff; }
.zx-tile--accent .zx-tile__label, .zx-tile--accent .zx-stat span { color: rgba(255, 255, 255, .8); }
.zx-tile--wide { grid-column: span 2; }
.zx-tile--tall { grid-row: span 2; }
.zx-ip { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--zx-line); border-radius: var(--zx-r-sm); padding: 10px 12px; background: var(--zx-bg); font-family: var(--zx-mono); font-size: .86rem; }
.zx-ip button { font: 600 .78rem var(--zx-font); color: var(--zx-text); background: var(--zx-surface-2); border: 1px solid var(--zx-line-2); padding: 6px 10px; border-radius: 8px; cursor: pointer; }

/* 3.8 Barras (gráfica mínima, crece al aparecer) */
.zx-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.zx-bars__col { flex: 1; display: grid; gap: 8px; justify-items: center; align-self: stretch; grid-template-rows: 1fr auto; }
.zx-bars__bar { width: 100%; align-self: end; height: var(--h); border-radius: 8px 8px 4px 4px; background: var(--zx-surface-2); border: 1px solid var(--zx-line); transform-origin: bottom; }
.zx-bars__col.is-hl .zx-bars__bar { background: var(--zx-grad); border-color: transparent; box-shadow: 0 10px 30px -8px var(--zx-brand-glow); }
.zx-bars__col small { font-size: var(--zx-fs-micro); color: var(--zx-muted); font-weight: 600; }

/* 3.9 Anillo de progreso */
.zx-ring { --p: 100; --size: 84px; --zx-ring-c: var(--zx-brand-2); --zx-ring-track: var(--zx-surface-2); --zx-ring-hole: var(--zx-surface); width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--zx-ring-c) calc(var(--p) * 1%), var(--zx-ring-track) 0); position: relative; }
.zx-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--zx-ring-hole); }
.zx-ring b { position: relative; font-size: .95rem; font-weight: 800; }

/* 3.10 Planes */
.zx-plan { display: flex; flex-direction: column; gap: 18px; padding: 30px; }
.zx-plan__price { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.zx-plan__price small { font-size: .95rem; font-weight: 500; color: var(--zx-muted); letter-spacing: 0; }
.zx-plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--zx-line); display: grid; gap: 11px; font-size: .93rem; color: var(--zx-muted); }
.zx-plan li { display: flex; gap: 10px; align-items: center; }
.zx-plan li b { color: var(--zx-text); }
.zx-plan li svg { width: 15px; height: 15px; flex: none; color: var(--zx-brand-2); }
.zx-plan .zx-btn { margin-top: auto; }
.zx-plan--featured { border-color: rgba(192, 132, 252, .45); background: radial-gradient(120% 80% at 50% 0%, rgba(139, 92, 246, .18), transparent 60%), var(--zx-surface); }
.zx-plan__tag { position: absolute; top: 18px; right: 18px; font-size: var(--zx-fs-micro); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--zx-r-pill); background: var(--zx-grad); color: #fff; }

/* 3.11 Preguntas (acordeón con altura animada) */
.zx-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.zx-faq details { border: 1px solid var(--zx-line); border-radius: var(--zx-r); background: var(--zx-surface); transition: border-color var(--zx-dur-fast); }
.zx-faq details[open] { border-color: rgba(192, 132, 252, .35); }
.zx-faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.zx-faq summary::-webkit-details-marker { display: none; }
.zx-faq summary i { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--zx-line-2); position: relative; transition: transform .4s var(--zx-ease), background .3s; }
.zx-faq summary i::before, .zx-faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.zx-faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.zx-faq details[open] summary i { transform: rotate(45deg); background: var(--zx-surface-2); }
.zx-faq__a { overflow: hidden; }
.zx-faq__a > div { padding: 0 22px 22px; color: var(--zx-muted); line-height: 1.7; }
.zx-faq a { color: var(--zx-brand-2); }

/* 3.12 Llamada final */
.zx-cta { text-align: center; border: 1px solid var(--zx-line); border-radius: var(--zx-r-lg); padding: clamp(40px, 7vw, 80px) var(--zx-gutter); background: radial-gradient(60% 120% at 50% 100%, rgba(139, 92, 246, .22), transparent 60%), var(--zx-surface); display: grid; gap: 18px; justify-items: center; overflow: hidden; position: relative; }
.zx-cta h2 { font-size: var(--zx-fs-h2); max-width: 760px; }
.zx-cta p { color: var(--zx-muted); max-width: 560px; }

/* 3.13 Pie */
.zx-foot { border-top: 1px solid var(--zx-line); padding: 64px 0 28px; color: var(--zx-muted); font-size: .92rem; }
.zx-foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.zx-foot h4 { color: var(--zx-text); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.zx-foot__col { display: grid; gap: 9px; align-content: start; }
.zx-foot__col a:hover { color: var(--zx-text); }
.zx-foot__brand p { margin: 14px 0 18px; max-width: 320px; }
.zx-socials { display: flex; gap: 8px; }
.zx-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--zx-line-2); display: grid; place-items: center; transition: border-color var(--zx-dur-fast), color var(--zx-dur-fast), transform var(--zx-dur-fast) var(--zx-ease); }
.zx-socials a:hover { color: var(--zx-brand-2); border-color: var(--zx-brand-2); transform: translateY(-2px); }
.zx-socials svg { width: 16px; height: 16px; }
.zx-foot__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--zx-line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--zx-muted-2); }

/* 3.13b Píldora como pestañas fuera de la cabecera (filtros, secciones): en móvil se desliza en horizontal */
.zx-pillnav--tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.zx-pillnav--tabs::-webkit-scrollbar { display: none; }
.zx-pillnav--tabs a, .zx-pillnav--tabs button { flex: none; white-space: nowrap; }
.zx-pillnav button { position: relative; z-index: 1; padding: 8px 14px; border-radius: var(--zx-r-pill); font: 500 .88rem var(--zx-font); color: var(--zx-muted); background: none; border: 0; cursor: pointer; }
.zx-pillnav button:hover, .zx-pillnav button.is-active { color: var(--zx-text); }

/* 3.13c Estado: etiqueta, punto y medidor */
.zx-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--zx-r-pill); font-size: var(--zx-fs-micro); font-weight: 700; letter-spacing: .04em; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 10%, transparent); color: var(--zx-muted); }
.zx-tag--ok { color: var(--zx-ok); } .zx-tag--warn { color: var(--zx-warn); } .zx-tag--bad { color: var(--zx-bad); } .zx-tag--brand { color: var(--zx-brand-2); }
.zx-dot--warn { background: var(--zx-warn); animation: none; } .zx-dot--bad { background: var(--zx-bad); animation: none; }
.zx-meter { height: 6px; border-radius: var(--zx-r-pill); background: var(--zx-surface-2); overflow: hidden; }
.zx-meter > i { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: var(--zx-grad); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--zx-ease); }
.is-in .zx-meter > i, .zx-meter.is-in > i { transform: none; }
.zx-meter--warn > i { background: var(--zx-warn); } .zx-meter--bad > i { background: var(--zx-bad); }

/* 3.13d Formularios: campo, opción en tarjeta, casilla, pasos */
.zx-field { display: grid; gap: 7px; }
.zx-field > label, .zx-label { font-size: var(--zx-fs-small); font-weight: 600; color: var(--zx-muted); }
.zx-input, .zx-select, .zx-textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: var(--zx-r-sm); border: 1px solid var(--zx-line-2);
  background: var(--zx-bg-2); color: var(--zx-text); font: 400 .95rem var(--zx-font); outline: none;
  transition: border-color var(--zx-dur-fast), box-shadow var(--zx-dur-fast);
}
.zx-input::placeholder, .zx-textarea::placeholder { color: var(--zx-muted-2); }
.zx-input:focus, .zx-select:focus, .zx-textarea:focus { border-color: var(--zx-brand-2); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.zx-input[aria-invalid="true"], .zx-input.is-error { border-color: var(--zx-bad); box-shadow: 0 0 0 4px rgba(248, 113, 113, .14); }
.zx-help { font-size: var(--zx-fs-small); color: var(--zx-muted-2); }
.zx-help.is-error { color: var(--zx-bad); }
.zx-affix { display: flex; align-items: stretch; border: 1px solid var(--zx-line-2); border-radius: var(--zx-r-sm); background: var(--zx-bg-2); overflow: hidden; transition: border-color var(--zx-dur-fast), box-shadow var(--zx-dur-fast); }
.zx-affix:focus-within { border-color: var(--zx-brand-2); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.zx-affix .zx-input { border: 0; box-shadow: none; background: transparent; }
.zx-affix > span { display: flex; align-items: center; padding: 0 12px; color: var(--zx-muted); font-size: .9rem; border-left: 1px solid var(--zx-line); white-space: nowrap; }
.zx-choice { position: relative; display: block; cursor: pointer; border: 1px solid var(--zx-line); border-radius: var(--zx-r); background: var(--zx-surface); padding: 16px 18px; transition: border-color var(--zx-dur-fast), background var(--zx-dur-fast), transform var(--zx-dur-fast) var(--zx-ease); }
.zx-choice:hover { border-color: var(--zx-line-2); transform: translateY(-1px); }
.zx-choice > input { position: absolute; opacity: 0; pointer-events: none; }
.zx-choice:has(> input:checked), .zx-choice.is-checked { border-color: var(--zx-brand-2); background: radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, .16), transparent 60%), var(--zx-surface); }
.zx-choice:has(> input:focus-visible) { outline: 2px solid var(--zx-brand-2); outline-offset: 3px; }
.zx-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.zx-check > input { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1px solid var(--zx-line-2); background: var(--zx-bg-2); display: grid; place-items: center; cursor: pointer; transition: background var(--zx-dur-fast), border-color var(--zx-dur-fast); }
.zx-check > input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .25s var(--zx-ease); }
.zx-check > input:checked { background: var(--zx-grad); border-color: transparent; }
.zx-check > input:checked::after { transform: rotate(-45deg) scale(1); }
.zx-check > input[type="radio"] { border-radius: 50%; }
.zx-steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: zx-step; }
.zx-steps > li { flex: 1; display: grid; gap: 8px; font-size: var(--zx-fs-small); color: var(--zx-muted-2); counter-increment: zx-step; }
.zx-steps > li::before { content: ""; height: 3px; border-radius: 3px; background: var(--zx-surface-2); transition: background .4s var(--zx-ease); }
.zx-steps > li.is-done::before, .zx-steps > li.is-active::before { background: var(--zx-grad); }
.zx-steps > li.is-active { color: var(--zx-text); font-weight: 600; }

/* 3.13e Tabla densa (paneles): en móvil cada fila pasa a tarjeta con data-label en cada celda */
.zx-table-wrap { border: 1px solid var(--zx-line); border-radius: var(--zx-r); overflow: auto; background: var(--zx-surface); }
.zx-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.zx-table th { text-align: left; font-size: var(--zx-fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--zx-muted-2); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--zx-line); white-space: nowrap; }
.zx-table td { padding: 12px 14px; border-bottom: 1px solid var(--zx-line); color: var(--zx-text); vertical-align: middle; }
.zx-table tr:last-child td { border-bottom: 0; }
.zx-table tbody tr { transition: background var(--zx-dur-fast); }
.zx-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
@media (max-width: 700px) {
  .zx-table--stack thead { display: none; }
  .zx-table--stack, .zx-table--stack tbody, .zx-table--stack tr, .zx-table--stack td { display: block; width: 100%; }
  .zx-table--stack tr { padding: 10px 4px; border-bottom: 1px solid var(--zx-line); }
  .zx-table--stack td { border: 0; padding: 5px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .zx-table--stack td::before { content: attr(data-label); color: var(--zx-muted-2); font-size: var(--zx-fs-micro); text-transform: uppercase; letter-spacing: .06em; text-align: left; }
}

/* 3.13f Hoja fija abajo en móvil (resumen de compra, carrito) */
.zx-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--zx-gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(10, 10, 15, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--zx-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(0); transition: transform .35s var(--zx-ease); }
.zx-sheet.is-hidden { transform: translateY(110%); }
@media (min-width: 861px) { .zx-sheet--mobile { display: none; } }

/* 3.13g Paneles (v3, 2026-10-22): cifra, ventana, barra inferior, lateral, cabecera de panel, pasos en píldora, resumen plegable */
/* Cifra de panel: línea de estado abajo (--ok/--warn/--bad/--brand) y variante en acento */
.zx-kpi { --zx-kpi-c: var(--zx-line-2); position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--zx-line); border-radius: var(--zx-r); background: var(--zx-surface); }
.zx-kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--zx-kpi-c); }
.zx-kpi__label { font-size: var(--zx-fs-micro); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--zx-muted-2); }
.zx-kpi__value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.zx-kpi__hint { font-size: var(--zx-fs-small); color: var(--zx-muted); }
.zx-kpi--ok { --zx-kpi-c: var(--zx-ok); } .zx-kpi--warn { --zx-kpi-c: var(--zx-warn); } .zx-kpi--bad { --zx-kpi-c: var(--zx-bad); } .zx-kpi--brand { --zx-kpi-c: var(--zx-grad); }
.zx-kpi--accent { background: var(--zx-grad); border-color: transparent; color: #fff; }
.zx-kpi--accent .zx-kpi__label, .zx-kpi--accent .zx-kpi__hint { color: rgba(255, 255, 255, .82); }
.zx-kpi--accent::after { display: none; }

/* Ventana (diálogo; «zx-modal» ya lo usa el área de cliente con otro estilo): <div class="zx-dialog" id="x" hidden><div class="zx-dialog__box">…</div></div>
   Se abre con data-zx-dialog-open="#x" o zx.dialog('#x', true); se cierra con data-zx-dialog-close, Esc o clic fuera. */
.zx-dialog { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: var(--zx-gutter); background: rgba(0, 0, 0, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: zx-dialog-bg .25s var(--zx-ease); }
.zx-dialog[hidden] { display: none; }
.zx-dialog__box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 2 * var(--zx-gutter)); overflow: auto; padding: 26px; border: 1px solid var(--zx-line-2); border-radius: var(--zx-r-lg); background: var(--zx-surface); box-shadow: 0 40px 120px -40px var(--zx-brand-glow), 0 20px 60px rgba(0, 0, 0, .5); animation: zx-dialog-in .35s var(--zx-ease); }
.zx-dialog__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--zx-line-2); background: var(--zx-surface-2); color: var(--zx-text); cursor: pointer; font-size: 1.1rem; line-height: 1; }
@keyframes zx-dialog-bg { from { opacity: 0; } to { opacity: 1; } }
@keyframes zx-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* Caja de icono en tres tamaños (la de .zx-icon es la mediana) */
.zx-iconbox { --s: 40px; width: var(--s); height: var(--s); flex: none; border-radius: calc(var(--s) * .28); display: grid; place-items: center; border: 1px solid var(--zx-line-2); background: var(--zx-surface-2); color: var(--zx-brand-2); }
.zx-iconbox svg { width: calc(var(--s) * .46); height: calc(var(--s) * .46); }
.zx-iconbox--sm { --s: 32px; } .zx-iconbox--lg { --s: 52px; }

/* Barra de navegación fija abajo en móvil (páginas con sesión). En escritorio no se ve. */
.zx-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; justify-content: space-around; gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 10, 15, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--zx-line); }
.zx-tabbar a, .zx-tabbar button { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 6px 4px; border: 0; border-radius: 12px; background: none; color: var(--zx-muted); font: 600 .68rem var(--zx-font); text-decoration: none; cursor: pointer; }
.zx-tabbar svg { width: 20px; height: 20px; }
.zx-tabbar .is-active, .zx-tabbar [aria-current="page"] { color: var(--zx-text); background: var(--zx-surface-2); }
@media (max-width: 860px) { .zx-tabbar { display: flex; } body.zx-page:has(> .zx-tabbar) { padding-bottom: 72px; } }

/* Lateral y cabecera de panel, fijos al bajar (con «overflow-x: clip» en body, sticky funciona) */
.zx-sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; border-right: 1px solid var(--zx-line); background: rgba(7, 7, 11, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.zx-sidebar a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--zx-muted); font-size: .9rem; font-weight: 500; text-decoration: none; transition: background var(--zx-dur-fast), color var(--zx-dur-fast); }
.zx-sidebar a:hover { background: var(--zx-surface); color: var(--zx-text); }
.zx-sidebar a.is-active, .zx-sidebar a[aria-current="page"] { background: var(--zx-surface-2); color: var(--zx-text); box-shadow: inset 2px 0 0 var(--zx-brand-2); }
.zx-sidebar__group { margin: 14px 12px 4px; font-size: var(--zx-fs-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zx-muted-2); }
.zx-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--zx-gutter); border-bottom: 1px solid var(--zx-line); background: rgba(0, 0, 0, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }

/* Pasos en píldora (variante de .zx-steps): números, halo en el activo y ✓ en los hechos */
.zx-steps--pill { gap: 4px; padding: 5px; border: 1px solid var(--zx-line); border-radius: var(--zx-r-pill); background: rgba(10, 10, 15, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.zx-steps--pill > li { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: var(--zx-r-pill); white-space: nowrap; }
.zx-steps--pill > li::before { content: counter(zx-step); width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--zx-surface-2); color: var(--zx-muted); }
.zx-steps--pill > li.is-active { background: var(--zx-surface-2); box-shadow: 0 0 0 1px rgba(192, 132, 252, .35), 0 8px 24px -10px var(--zx-brand-glow); }
.zx-steps--pill > li.is-active::before { background: var(--zx-grad); color: #fff; }
.zx-steps--pill > li.is-done::before { content: "✓"; background: rgba(52, 211, 153, .16); color: var(--zx-ok); }
@media (max-width: 640px) { .zx-steps--pill > li:not(.is-active) { font-size: 0; gap: 0; padding: 8px; } }

/* Resumen plegable: en escritorio, columna fija al lado; en móvil, barra abajo que se abre al tocar
   <aside class="zx-summary"><button class="zx-summary__bar" data-zx-summary-toggle>…total…</button><div class="zx-summary__body">…</div></aside> */
.zx-summary { position: sticky; top: 90px; border: 1px solid var(--zx-line); border-radius: var(--zx-r); background: var(--zx-surface); }
.zx-summary__bar { display: none; }
.zx-summary__body { padding: 20px; }
@media (max-width: 860px) {
  .zx-summary { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; border-radius: var(--zx-r) var(--zx-r) 0 0; border-bottom: 0; background: rgba(12, 12, 18, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .zx-summary__bar { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--zx-gutter) calc(14px + env(safe-area-inset-bottom)); border: 0; background: none; color: var(--zx-text); font: 600 .95rem var(--zx-font); cursor: pointer; }
  .zx-summary__body { display: none; max-height: 60vh; overflow: auto; padding-top: 0; }
  .zx-summary.is-open .zx-summary__body { display: block; }
  body.zx-page:has(.zx-summary) { padding-bottom: 76px; }
}

/* 3.14 Fondo: rejilla tenue + halo */
.zx-backdrop { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.zx-backdrop::before { content: ""; position: absolute; inset: -1px; background-image: linear-gradient(var(--zx-line) 1px, transparent 1px), linear-gradient(90deg, var(--zx-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: .55; }
.zx-backdrop::after { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(139, 92, 246, .28), transparent); filter: blur(10px); animation: zx-breathe 9s var(--zx-ease) infinite alternate; }

/* ───────────── 4. Animaciones ───────────── */
/* Aparición al entrar en pantalla. data-zx-reveal en el elemento; los hijos con data-zx-stagger entran en cascada. */
[data-zx-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity var(--zx-dur) var(--zx-ease), transform var(--zx-dur) var(--zx-ease), filter var(--zx-dur) var(--zx-ease); transition-delay: calc(var(--i, 0) * var(--zx-stagger)); }
[data-zx-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* Titular que sube desde una máscara, línea a línea */
.zx-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.zx-mask > span { display: block; transform: translateY(105%); transition: transform 1s var(--zx-ease); transition-delay: calc(var(--i, 0) * 120ms + 150ms); }
.is-booted .zx-mask > span { transform: none; }
/* Barras que crecen */
.zx-bars__bar { transform: scaleY(0); transition: transform 1.1s var(--zx-ease); transition-delay: calc(var(--i, 0) * 90ms + 300ms); }
.is-in .zx-bars__bar, .is-in.zx-bars__bar { transform: none; }
/* Anillo que se llena (lo anima zx.js cambiando --p) */
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.zx-ring { transition: --p 1.4s var(--zx-ease); }
@keyframes zx-ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
@keyframes zx-breathe { from { opacity: .7; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1.08); } }

/* ───────────── 5. Móvil ───────────── */
@media (max-width: 960px) {
  .zx-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .zx-foot__grid { grid-template-columns: 1fr 1fr; }
  .zx-foot__brand { grid-column: span 2; }
}
@media (max-width: 860px) {
  .zx-nav .zx-pillnav { position: fixed; left: var(--zx-gutter); right: var(--zx-gutter); top: 70px; flex-direction: column; padding: 8px; border-radius: var(--zx-r); background: rgba(12, 12, 18, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity var(--zx-dur-fast), transform .35s var(--zx-ease); }
  .zx-nav.is-open .zx-pillnav { opacity: 1; transform: none; pointer-events: auto; }
  .zx-nav .zx-pillnav a { padding: 12px 14px; font-size: 1rem; }
  .zx-nav .zx-pillnav__ind { display: none; }
  .zx-burger { display: block; }
  .zx-nav__end .zx-btn { display: none; }
}
@media (max-width: 640px) {
  .zx-grid--3, .zx-grid--2 { grid-template-columns: 1fr; }
  .zx-panel { grid-template-columns: 1fr 1fr; }
  .zx-tile--wide-m { grid-column: span 2; }
  .zx-tile { min-height: 0; padding: 14px; }
  .zx-foot__grid { grid-template-columns: 1fr 1fr; }
  .zx-lang span { display: none; }
}

/* ───────────── 6. Movimiento reducido ───────────── */
@media (prefers-reduced-motion: reduce) {
  .zx-page *, .zx-page *::before, .zx-page *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-zx-reveal] { opacity: 1; transform: none; filter: none; }
  .zx-mask > span, .zx-bars__bar, .zx-meter > i { transform: none; }
  .zx-dialog, .zx-dialog__box { animation: none; }
  html:has(> body.zx-page) { scroll-behavior: auto; }
}

/* ═══════════════ 7. Capa «Arcade suave» (v4, 2026-10-23, orden de Alex: «subelo») ═══════════════
   Antes era docs/maquetas/2026-10-23-retro/zx-theme-arcade.css, cargada aparte en la maqueta. Va al final de este
   fichero para aplicarse sola a todo lo que lleva body.zx-page sin tocar ninguna página. Vuelta atrás: quitar esta
   sección (o restaurar la v3). Los tokens van en body.zx-page y por eso ganan a los de :root de arriba. */
/* Fuente pixel: «ZX Pixel» es la nuestra cuando se aloje en /fonts/ (pendiente de OK para descargarla).
   Mientras no exista, los detalles usan una monoespaciada del sistema y el H1 sigue con la fuente normal. */
body.zx-page {
  --zx-font-pixel: "ZX Pixel", "Silkscreen", ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --zx-font-pixel-title: "ZX Pixel", "Silkscreen", var(--zx-font);

  /* tokens (en body y no en :root: también ganan a las páginas que traen los suyos en línea) */
  --zx-bg: #12101c;
  --zx-bg-2: #171424;
  --zx-surface: #1b1829;
  --zx-surface-2: #25213a;
  --zx-line: rgba(255, 255, 255, .10);
  --zx-line-2: rgba(255, 255, 255, .17);
  --zx-text: #f3f1fb;
  --zx-muted: #bdb8d4;
  --zx-muted-2: #948fae;
  --zx-brand: #8b5cf6;
  --zx-brand-2: #c084fc;
  --zx-brand-deep: #5b21b6;
  --zx-brand-glow: rgba(139, 92, 246, .38);
  --zx-grad: linear-gradient(135deg, var(--zx-brand), var(--zx-brand-2));
  /* relleno con texto blanco encima: más oscuro para AA (blanco sobre #7c3aed 5,70:1 y sobre #9333ea 5,38:1;
     sobre el degradado de siempre bajaba a 4,23 y 2,64) */
  --zx-grad-fill: linear-gradient(135deg, #7c3aed, #9333ea);
  /* alias antiguos (se resuelven en :root, hay que repetirlos aquí) */
  --bg: var(--zx-bg); --bg-2: var(--zx-bg-2); --surface: var(--zx-surface); --surface-2: var(--zx-surface-2);
  --border: var(--zx-line); --text: var(--zx-text); --muted: var(--zx-muted); --muted-2: var(--zx-muted-2);
  --brand: var(--zx-brand); --brand-2: var(--zx-brand-2); --grad: var(--zx-grad);
  background: radial-gradient(1000px 520px at 50% -10%, rgba(139, 92, 246, .13), transparent 62%), var(--zx-bg);
}

/* Scanlines: líneas horizontales fijas, casi invisibles, encima de todo y sin capturar el ratón. Sin animación. */
body.zx-page::after {
  content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}

/* Fuente pixel solo en detalles */
body.zx-page :where(.zx-chip, .eyebrow, .badge, .zx-tag, .plan-tag, .zx-plan__tag, .zx-tile__label, .zx-kpi__label, .zx-sidebar__group) {
  font-family: var(--zx-font-pixel); letter-spacing: .06em;
}
body.zx-page .hero h1, body.zx-page .zx-hero h1 { font-family: var(--zx-font-pixel-title); }
/* en el H1 del hero, la palabra clave pequeña sigue con la fuente normal (es texto, no adorno) */
body.zx-page .hero h1 .h1-kw { font-family: var(--zx-font); }

/* Resplandor CRT muy leve en titulares */
body.zx-page :where(h1, h2) { text-shadow: 0 0 16px rgba(192, 132, 252, .22); }
body.zx-page :where(.zx-grad-text, .grad-text, .grad, .line2) { text-shadow: none; filter: drop-shadow(0 0 10px rgba(192, 132, 252, .28)); }

/* Rellenos con texto blanco: degradado oscuro (AA) */
body.zx-page :where(.zx-btn--primary, .btn-primary, .zx-tile--accent, .zx-kpi--accent, .plan-tag, .zx-plan__tag) { background: var(--zx-grad-fill); }

/* Botones con guiño arcade: esquina menos redonda y sombra sólida que «se pulsa» */
body.zx-page .zx-btn, body.zx-page .btn { border-radius: 12px; transition: transform .12s ease, box-shadow .12s ease, border-color var(--zx-dur-fast), background var(--zx-dur-fast); }
body.zx-page .zx-btn--primary, body.zx-page .btn-primary { box-shadow: 0 4px 0 var(--zx-brand-deep), 0 10px 24px -10px var(--zx-brand-glow); }
body.zx-page .zx-btn--primary:hover, body.zx-page .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--zx-brand-deep), 0 14px 30px -10px var(--zx-brand-glow); }
body.zx-page .zx-btn--primary:active, body.zx-page .btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--zx-brand-deep), 0 4px 12px -6px var(--zx-brand-glow); }
body.zx-page .zx-btn:not(.zx-btn--primary) { box-shadow: 0 3px 0 rgba(255, 255, 255, .08); }
body.zx-page .zx-btn:not(.zx-btn--primary):hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(255, 255, 255, .12); }
body.zx-page .zx-btn:not(.zx-btn--primary):active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }

/* Etiquetas tipo marcador: un poco de aire y esquinas casi rectas */
body.zx-page :where(.zx-chip, .eyebrow, .badge) { border-radius: 8px; }
body.zx-page :where(.plan-tag, .zx-plan__tag) { border-radius: 6px; }

/* Tienda: la barra de filtros fija pone negro a mano; aquí, el tono del fondo */
body.zx-page .t-bar::before { background: linear-gradient(to bottom, rgba(18, 16, 28, .9) 70%, rgba(18, 16, 28, 0)); }

/* Cabecera al bajar: del mismo tono que el fondo */
body.zx-page .zx-nav.is-scrolled { background: rgba(18, 16, 28, .82); }

/* Movimiento reducido: los botones no se desplazan al pasar ni al pulsar */
@media (prefers-reduced-motion: reduce) {
  body.zx-page .zx-btn, body.zx-page .btn { transform: none !important; }
}
