/* ===========================================================================
   REDIX GROWTH LAB — Design System
   Navy profundo + luz cálida (naranja/dorado) + motivos de circuito.
   Playfair Display (titulares) · Inter (UI) · JetBrains Mono (técnico)
   =========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* --- Superficies (navy en capas, nunca negro puro) --- */
  --navy-950: #050B14;
  --navy-900: #0A1628;   /* base del brief */
  --navy-870: #0D1B30;
  --navy-850: #101F37;
  --navy-800: #142643;
  --navy-750: #1A2F51;
  --navy-700: #21395F;
  --navy-600: #2C4875;

  /* --- Acento primario (naranja del brief) --- */
  --orange-600: #C9452B;
  --orange-500: #E8593C;
  --orange-400: #F27A5C;
  --orange-300: #F89C83;

  /* --- Acento secundario (dorado del brief) --- */
  --gold-600: #D18C12;
  --gold-500: #F2A623;
  --gold-400: #FFBE4F;

  /* --- Semánticos --- */
  --success-500: #35C98A;
  --success-a15: rgba(53,201,138,.15);
  --info-500: #4DA3FF;
  --warn-500: #FFB020;

  /* --- Texto --- */
  --text-strong: #FFFFFF;
  --text-body: #EDEDED;   /* brief */
  --text-muted: #A3B1C6;
  --text-faint: #74849E;   /* 4.78:1 sobre navy — cumple AA */

  /* --- Alphas de marca --- */
  --o-a08: rgba(232,89,60,.08);
  --o-a12: rgba(232,89,60,.12);
  --o-a20: rgba(232,89,60,.20);
  --o-a35: rgba(232,89,60,.35);
  --o-a55: rgba(232,89,60,.55);
  --g-a10: rgba(242,166,35,.10);
  --g-a20: rgba(242,166,35,.20);
  --g-a35: rgba(242,166,35,.35);

  /* --- Glass / bordes --- */
  --glass-fill: rgba(255,255,255,.035);
  --glass-fill-2: rgba(255,255,255,.055);
  --glass-border: rgba(255,255,255,.09);
  --hairline: rgba(255,255,255,.07);
  --edge-top: inset 0 1px 0 rgba(255,255,255,.06);

  /* --- Gradientes de marca --- */
  --grad-brand: linear-gradient(135deg, #E8593C 0%, #F2A623 100%);
  --grad-brand-rev: linear-gradient(135deg, #F2A623 0%, #E8593C 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(232,89,60,.16), rgba(242,166,35,.10));
  --grad-radial-warm: radial-gradient(900px circle at 50% 0%, rgba(232,89,60,.13), transparent 65%);
  --grad-surface: linear-gradient(180deg, var(--navy-870), var(--navy-900));

  /* --- Glows --- */
  --glow-sm: 0 0 18px rgba(232,89,60,.22);
  --glow-md: 0 8px 34px rgba(232,89,60,.30);
  --glow-lg: 0 14px 60px rgba(232,89,60,.36);
  --glow-gold: 0 8px 34px rgba(242,166,35,.28);

  /* --- Sombras --- */
  --shadow-sm: 0 2px 10px rgba(3,8,16,.4);
  --shadow-md: 0 12px 34px rgba(3,8,16,.5);
  --shadow-lg: 0 28px 70px rgba(3,8,16,.6);

  /* --- Radios --- */
  --r-xs: 8px;
  --r-sm: 11px;
  --r-md: 15px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* --- Tipografía --- */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* --- Easing --- */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  /* --- Layout --- */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 44px);
  --nav-h: 74px;
}

/* ------------------------------------------------------------- 2. RESET/BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'cv02' 1, 'cv03' 1, 'cv04' 1;
}

/* El atributo hidden lo aplica la hoja del navegador con `display:none`, y
   cualquier regla de autor que fije `display` (flex, grid, block) lo pisa.
   Como el sistema usa [hidden] para menús, paneles de FAQ, pasos del quiz,
   tabs y diálogos, esta regla tiene que ganar siempre. */
[hidden] { display: none !important; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--o-a35); color: #fff; }

/* Barra de scroll */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 99px; border: 3px solid var(--navy-950); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-600); }

.rx-skip {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--orange-500); color: #fff; font-weight: 600;
}
.rx-skip:focus { left: 12px; }

.rx-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------ 3. FONDO / ATMÓSFERA */
/* Grano fino sobre todo el sitio — da textura de impresión premium */
.rx-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Aurora cálida de fondo: dos manchas que respiran lentamente */
.rx-aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.rx-aurora span {
  position: absolute; border-radius: 50%; filter: blur(130px);
}
.rx-aurora span:nth-child(1) {
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  top: -22vw; left: -14vw;
  background: radial-gradient(circle, rgba(232,89,60,.20), transparent 70%);
  animation: rx-drift-a 26s var(--ease-in-out) infinite;
}
.rx-aurora span:nth-child(2) {
  width: 52vw; height: 52vw; max-width: 700px; max-height: 700px;
  bottom: -20vw; right: -12vw;
  background: radial-gradient(circle, rgba(242,166,35,.14), transparent 70%);
  animation: rx-drift-b 32s var(--ease-in-out) infinite;
}

@keyframes rx-drift-a {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(7vw, 5vw) scale(1.14); }
}
@keyframes rx-drift-b {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-6vw,-5vw) scale(1.1); }
}

/* Rejilla de circuito — motivo "tecnología real" del brief */
.rx-circuit-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
}

/* Orbe de glow reutilizable */
.rx-orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(232,89,60,.32), transparent 68%);
  filter: blur(70px);
}
.rx-orb--gold { background: radial-gradient(circle, rgba(242,166,35,.28), transparent 68%); }

/* Canvas de nodos conectados (hero).
   width/height explícitos: un <canvas> es un elemento replaced y con
   inset:0 + width:auto el CSS lo resolvería a su tamaño intrínseco (300×150). */
.rx-nodes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .85;
}

/* ---------------------------------------------------------- 4. LAYOUT/UTILS */
.rx-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.rx-container--narrow { max-width: 880px; }
.rx-container--wide { max-width: 1340px; }

.rx-section { position: relative; padding: clamp(72px, 10vw, 140px) 0; z-index: 2; }
.rx-section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.rx-section--flush-top { padding-top: 0; }

.rx-relative { position: relative; z-index: 2; }
.rx-center { text-align: center; }
.rx-mx-auto { margin-left: auto; margin-right: auto; }

.rx-grid { display: grid; gap: 20px; }
.rx-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rx-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rx-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Dos columnas exactas. Ojo: `--2` usa auto-fit, así que en pantalla ancha
   cabe una tercera columna y un bloque de 4 tarjetas queda 3 arriba y 1
   huérfana abajo. `--pair` fuerza el 2×2 y colapsa a 1 columna en móvil. */
.rx-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Cuatro columnas exactas, para bloques de 8 tarjetas que deben quedar 4+4.
   Baja a 2 y luego a 1, nunca a 3, para que las filas siempre salgan llenas. */
.rx-grid--quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rx-stack { display: flex; flex-direction: column; }
.rx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rx-divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* -------------------------------------------------------------- 5. TIPOGRAFÍA */
/* Playfair sólo en titulares de alto impacto — la regla del brief */
.rx-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
.rx-h1  { font-size: clamp(42px, 6.4vw, 86px); }
.rx-h2  { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; }
.rx-h3  { font-size: clamp(24px, 3vw, 36px); line-height: 1.14; }

/* Titulares de bloque en Inter — para no abusar del serif */
.rx-title {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.25;
}
.rx-title--lg { font-size: clamp(20px, 2.2vw, 26px); }
.rx-title--md { font-size: 18.5px; }
.rx-title--sm { font-size: 16px; }

.rx-lead {
  font-size: clamp(16.5px, 1.4vw, 19.5px);
  line-height: 1.65;
  color: var(--text-muted);
}
.rx-body { font-size: 15px; line-height: 1.62; color: var(--text-muted); }
.rx-small { font-size: 13.5px; line-height: 1.55; color: var(--text-faint); }

.rx-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-faint);
}

/* Palabra-ancla en degradado cálido */
.rx-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.rx-grad-flow {
  background: linear-gradient(100deg, #E8593C, #F2A623, #F89C83, #E8593C);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: rx-flow 7s linear infinite;
}
@keyframes rx-flow { to { background-position: 300% 0; } }

/* Titular con subrayado dibujado a mano */
.rx-underline { position: relative; display: inline-block; }
.rx-underline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.08em; height: .09em;
  background: var(--grad-brand); border-radius: 99px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.is-revealed .rx-underline::after, .rx-underline.is-on::after { transform: scaleX(1); }

/* Kicker (etiqueta de sección) */
.rx-kicker {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-400);
}
.rx-kicker::before {
  content: ''; width: 26px; height: 1px; background: var(--grad-brand); flex: none;
}

/* Wordmark */
.rx-wordmark {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.03em; color: var(--text-strong);
  display: inline-flex; align-items: baseline; gap: 1px; line-height: 1;
}
.rx-wordmark em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.rx-wordmark small {
  font-family: var(--font-mono); font-size: .34em; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-faint); margin-left: .5em; align-self: center;
}

/* Isotipo: hexágono con nodo — "sistema instalado" */
.rx-mark { width: 34px; height: 34px; flex: none; }

/* ------------------------------------------------------------- 6. BOTONES */
.rx-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.005em;
  border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out),
              background-color .22s var(--ease-out), border-color .22s var(--ease-out),
              color .22s var(--ease-out);
  overflow: hidden;
}
.rx-btn svg { flex: none; }
.rx-btn:active { transform: translateY(1px) scale(.99); }

.rx-btn--sm { padding: 9px 17px; font-size: 13.5px; }
.rx-btn--md { padding: 12px 22px; font-size: 14.5px; }
.rx-btn--lg { padding: 15px 30px; font-size: 16px; }
.rx-btn--block { width: 100%; }

/* Primario: naranja con brillo que barre al hover */
.rx-btn--primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--glow-md), var(--edge-top);
}
.rx-btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.32) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.rx-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow-lg), var(--edge-top); }
.rx-btn--primary:hover::after { transform: translateX(120%); }

/* Dorado: para CTAs secundarios premium (aplicación, partner) */
.rx-btn--gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950); box-shadow: var(--glow-gold), var(--edge-top);
}
.rx-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 52px rgba(242,166,35,.4); }

/* Secundario: vidrio */
.rx-btn--secondary {
  background: var(--glass-fill-2); color: var(--text-strong);
  border-color: var(--glass-border); backdrop-filter: blur(10px);
}
.rx-btn--secondary:hover {
  background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
}

/* Contorno naranja */
.rx-btn--outline {
  background: var(--o-a08); color: var(--orange-400); border-color: var(--o-a35);
}
.rx-btn--outline:hover {
  background: var(--o-a20); border-color: var(--o-a55); color: var(--orange-300);
  transform: translateY(-2px);
}

.rx-btn--ghost { background: transparent; color: var(--text-muted); }
.rx-btn--ghost:hover { color: var(--text-strong); background: var(--glass-fill); }

/* Halo que respira detrás del CTA principal */
.rx-btn-halo { position: relative; display: inline-flex; }
.rx-btn-halo::before {
  content: ''; position: absolute; inset: -8px; border-radius: var(--r-pill);
  background: var(--grad-brand); filter: blur(22px); opacity: .55; z-index: 0;
  animation: rx-breathe 3.8s var(--ease-in-out) infinite;
}
.rx-btn-halo > * { position: relative; z-index: 1; }
@keyframes rx-breathe {
  0%, 100% { opacity: .42; transform: scale(.97); }
  50%      { opacity: .72; transform: scale(1.04); }
}

/* ---------------------------------------------------------------- 7. CARDS */
.rx-card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  box-shadow: var(--edge-top);
  transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out),
              border-color .32s var(--ease-out), background-color .32s var(--ease-out);
}
.rx-card--glass { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rx-card--solid { background: var(--grad-surface); }
.rx-card--pad { padding: clamp(24px, 3vw, 34px); }
.rx-card--pad-sm { padding: 24px; }

.rx-card--hover:hover {
  transform: translateY(-5px);
  border-color: var(--o-a35);
  box-shadow: var(--shadow-md), 0 0 44px rgba(232,89,60,.14), var(--edge-top);
}

/* Card destacada: borde en degradado */
.rx-card--feature {
  background: linear-gradient(180deg, rgba(232,89,60,.09), rgba(242,166,35,.03)), var(--grad-surface);
  border-color: var(--o-a35);
  box-shadow: var(--shadow-md), 0 0 60px rgba(232,89,60,.16), var(--edge-top);
}
.rx-card--feature::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .55;
}

/* Cinta de "recomendado" */
.rx-ribbon {
  position: absolute; top: 16px; right: -34px;
  transform: rotate(38deg);
  padding: 6px 42px;
  background: var(--grad-brand); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  box-shadow: var(--glow-sm);
}

/* Icono de card */
.rx-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: var(--r-md); flex: none;
  color: var(--orange-400); background: var(--o-a12); border: 1px solid var(--o-a20);
  transition: transform .3s var(--ease-spring), background-color .3s var(--ease-out);
}
.rx-icon--gold { color: var(--gold-400); background: var(--g-a10); border-color: var(--g-a20); }
.rx-icon--lg { width: 62px; height: 62px; border-radius: var(--r-lg); }
.rx-icon--sm { width: 38px; height: 38px; border-radius: var(--r-sm); }
.rx-card--hover:hover .rx-icon { transform: scale(1.08) rotate(-4deg); background: var(--o-a20); }

/* Icono con anillos concéntricos — "nodo del sistema" */
.rx-icon-rings { position: relative; display: inline-flex; }
.rx-icon-rings::before, .rx-icon-rings::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  border-radius: 50%; border: 1px solid var(--hairline); pointer-events: none;
}
.rx-icon-rings::before { width: 190%; height: 190%; }
.rx-icon-rings::after  { width: 290%; height: 290%; border-color: rgba(255,255,255,.04); }

/* Icono centrado que ocupa su propia línea: como .rx-icon es inline-flex,
   `margin:0 auto` no lo centra y el texto siguiente se le pega al lado. */
.rx-icon--center { display: flex; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------- 8. BADGES / CHIPS / TAGS */
.rx-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--glass-fill); border: 1px solid var(--glass-border);
  color: var(--text-muted);
}
.rx-badge--brand { background: var(--o-a12); border-color: var(--o-a35); color: var(--orange-400); }
.rx-badge--gold { background: var(--g-a10); border-color: var(--g-a35); color: var(--gold-400); }
.rx-badge--success { background: var(--success-a15); border-color: rgba(53,201,138,.3); color: var(--success-500); }
.rx-badge__dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 8px currentColor; animation: rx-pulse 2s var(--ease-in-out) infinite;
}
@keyframes rx-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.rx-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 500;
  background: var(--glass-fill); border: 1px solid var(--hairline); color: var(--text-muted);
}

.rx-pill-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--glass-fill); border: 1px solid var(--glass-border);
  box-shadow: var(--edge-top);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
  color: var(--text-body);
}
.rx-pill-eyebrow i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500);
  box-shadow: 0 0 10px var(--orange-500); flex: none;
  animation: rx-pulse 2.2s var(--ease-in-out) infinite;
}

/* -------------------------------------------------------------- 9. LISTAS */
.rx-check { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rx-check li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; line-height: 1.5; color: var(--text-body); }
.rx-check li::before {
  content: ''; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--o-a20) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F27A5C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.rx-check--gold li::before {
  background: var(--g-a20) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFBE4F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.rx-check--cross li::before {
  background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374849E' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.rx-check--cross li { color: var(--text-faint); }

/* --------------------------------------------------------------- 10. NAV */
.rx-nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(10,22,40,var(--nav-a, .55));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,var(--nav-b, 0));
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.rx-nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.rx-nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }

.rx-nav-link {
  position: relative; padding: 9px 13px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.rx-nav-link:hover, .rx-nav-link.is-active { color: var(--text-strong); background: var(--glass-fill); }
.rx-nav-link.is-active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
}

/* Dropdown de Servicios */
.rx-drop { position: relative; }
.rx-drop__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: var(--r-sm); border: 0; background: transparent;
  font-size: 14.5px; font-weight: 500; color: var(--text-muted); cursor: pointer;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.rx-drop__btn:hover, .rx-drop.is-open .rx-drop__btn { color: var(--text-strong); background: var(--glass-fill); }
.rx-drop__btn svg { transition: transform .25s var(--ease-out); }
.rx-drop.is-open .rx-drop__btn svg { transform: rotate(180deg); }

.rx-drop__menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 90;
  min-width: 330px; padding: 9px;
  border-radius: var(--r-md); border: 1px solid var(--glass-border);
  background: rgba(13,27,48,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility .22s;
}
.rx-drop.is-open .rx-drop__menu { opacity: 1; visibility: visible; transform: translateY(0); }

.rx-drop__item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 12px 13px; border-radius: var(--r-sm);
  transition: background-color .2s var(--ease-out);
}
.rx-drop__item:hover { background: var(--glass-fill-2); }
.rx-drop__item strong {
  display: block; font-size: 14.5px; font-weight: 600; color: var(--text-strong);
  letter-spacing: -0.01em;
}
.rx-drop__item span { display: block; font-size: 12.5px; color: var(--text-faint); margin-top: 3px; line-height: 1.45; }
.rx-drop__item .rx-icon { width: 36px; height: 36px; border-radius: var(--r-xs); }

.rx-nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rx-nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  color: var(--text-muted); background: var(--glass-fill); border: 1px solid var(--glass-border);
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.rx-nav-icon:hover { color: var(--success-500); background: var(--success-a15); transform: translateY(-2px); }

.rx-burger {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-sm); cursor: pointer;
  color: var(--text-strong); background: var(--glass-fill); border: 1px solid var(--glass-border);
}

.rx-mobile-menu {
  border-top: 1px solid var(--hairline);
  background: rgba(10,22,40,.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 14px var(--gutter) 22px;
  display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.rx-mobile-menu a {
  padding: 13px 6px; font-size: 16px; color: var(--text-body);
  border-bottom: 1px solid var(--hairline);
}
.rx-mobile-menu a.is-sub { padding-left: 22px; font-size: 14.5px; color: var(--text-muted); }
.rx-mobile-menu__label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); padding: 16px 6px 6px;
}

/* -------------------------------------------------------------- 11. HERO */
.rx-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 10vw, 132px); overflow: hidden; }
.rx-hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: clamp(34px, 5vw, 64px); align-items: center;
}
.rx-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

/* Prueba social bajo el hero */
.rx-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 36px; }
.rx-trust__item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-muted); }
.rx-trust__item svg { color: var(--success-500); flex: none; }

/* ------------------------------------------------------------ 12. MÉTRICAS */
.rx-stat { padding: 26px; }
.rx-stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1;
  letter-spacing: -0.03em; font-feature-settings: 'tnum' 1;
}
.rx-stat__label { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--text-muted); }

/* OJO al combinar .rx-stat__num con .rx-grad: el degradado se recorta contra
   la caja del elemento (background-clip:text), así que lo que se desborde no
   se ve cortado — se vuelve INVISIBLE. Una cifra larga como "+$1.000M" pierde
   el último glifo sin dejar rastro. Para esas, usar --largo: baja el cuerpo lo
   justo para que quepa incluso en la columna más estrecha de rx-grid--4
   (230px de tarjeta = 178px útiles). */
.rx-stat__num--largo { font-size: clamp(36px, 3.4vw, 42px); }

/* ------------------------------------------------------------- 13. MARQUEE */
.rx-marquee {
  position: relative; z-index: 2;
  overflow: hidden; padding: 17px 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: rgba(255,255,255,.014);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rx-marquee__track { display: flex; width: max-content; animation: rx-scroll 42s linear infinite; }
.rx-marquee__track span {
  display: inline-flex; align-items: center; gap: 20px; padding-right: 20px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint); white-space: nowrap;
}
.rx-marquee__track b { color: var(--orange-500); font-weight: 400; }
@keyframes rx-scroll { to { transform: translateX(-50%); } }

/* ------------------------------------------------------- 14. TARJETA SISTEMA */
.rx-system {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 36px); overflow: hidden;
}
.rx-system__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rx-system__price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 18px;
}
.rx-system__price b {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4vw, 46px); line-height: 1; letter-spacing: -0.03em;
}
.rx-system__price span { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.rx-system__foot { margin-top: auto; padding-top: 26px; }
/* Número de índice gigante, decorativo */
.rx-system__idx {
  position: absolute; top: -18px; right: 8px;
  font-family: var(--font-display); font-weight: 900; font-size: 130px; line-height: 1;
  color: rgba(255,255,255,.022); pointer-events: none; user-select: none;
}

/* ------------------------------------------------------------ 15. TIMELINE */
/* Roadmap horizontal (Día 0 → Día 90, Semana 1 → 6) */
.rx-timeline { position: relative; display: grid; gap: 18px; }
.rx-timeline--rail::before {
  content: ''; position: absolute; left: 21px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, var(--orange-500), var(--gold-500), transparent);
  border-radius: 2px; opacity: .45;
}
.rx-tl {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  align-items: flex-start;
}
.rx-tl__dot {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  color: var(--orange-400);
  background: var(--navy-850); border: 1px solid var(--o-a35);
  box-shadow: 0 0 0 5px rgba(10,22,40,1);
  transition: transform .3s var(--ease-spring), background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.rx-tl:hover .rx-tl__dot { transform: scale(1.1); background: var(--grad-brand); color: #fff; border-color: transparent; }
.rx-tl__body { padding-bottom: 6px; }
.rx-tl__meta {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold-500); margin-bottom: 5px;
}

/* Tablero tipo kanban — refuerza "sistema, no servicio artesanal" */
.rx-kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.rx-kanban__col {
  border-radius: var(--r-md); border: 1px solid var(--hairline);
  background: rgba(255,255,255,.014); padding: 16px;
}
.rx-kanban__head {
  display: flex; align-items: center; gap: 9px; padding-bottom: 13px;
  border-bottom: 1px solid var(--hairline); margin-bottom: 13px;
}
.rx-kanban__head i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rx-kanban__head strong {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
}
.rx-kanban__head em {
  margin-left: auto; font-style: normal; font-family: var(--font-mono);
  font-size: 11px; color: var(--text-faint);
}
.rx-kanban__card {
  padding: 13px 14px; border-radius: var(--r-xs);
  background: var(--navy-850); border: 1px solid var(--hairline);
  margin-bottom: 9px;
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out);
}
.rx-kanban__card:last-child { margin-bottom: 0; }
.rx-kanban__card:hover { transform: translateX(4px); border-color: var(--o-a35); }
.rx-kanban__card strong { display: block; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.rx-kanban__card span { display: block; font-size: 12.5px; color: var(--text-faint); margin-top: 4px; line-height: 1.45; }

/* ----------------------------------------------------------- 16. COMPARADOR */
.rx-compare__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rx-compare {
  width: 100%; min-width: 780px; border-collapse: separate; border-spacing: 0;
  font-size: 14.5px;
}
.rx-compare th, .rx-compare td {
  padding: 18px 20px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
/* Nada de `position: sticky` aquí: el wrapper es contenedor de scroll, así que
   el offset `top` empujaba la cabecera 74px sobre la primera fila en vez de
   fijarla bajo el nav. */
.rx-compare thead th {
  background: var(--navy-870);
  border-bottom: 1px solid var(--glass-border);
}
.rx-compare thead th:first-child { border-top-left-radius: var(--r-md); }
.rx-compare thead th:last-child { border-top-right-radius: var(--r-md); }
.rx-compare tbody th {
  font-weight: 500; color: var(--text-faint); font-size: 13.5px; width: 190px;
  background: rgba(255,255,255,.012);
}
.rx-compare td { color: var(--text-body); }
.rx-compare__name {
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  color: var(--text-strong); letter-spacing: -0.01em; display: block; margin-bottom: 6px;
}
.rx-compare col.is-featured, .rx-compare .is-featured { background: var(--o-a08); }
.rx-compare tbody tr:hover td { background: rgba(255,255,255,.018); }

/* Versión mobile: tarjetas en scroll horizontal */
.rx-compare-cards { display: none; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.rx-compare-cards > * { flex: 0 0 84%; scroll-snap-align: center; }
.rx-compare-row { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.rx-compare-row:last-child { border-bottom: 0; }
.rx-compare-row dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.rx-compare-row dd { margin: 0; font-size: 14px; color: var(--text-body); line-height: 1.5; }

/* ----------------------------------------------------- 17. CHAT / DEMO IA */
.rx-chatbox {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--glass-border); background: var(--grad-surface);
  box-shadow: var(--shadow-lg), var(--edge-top);
}
.rx-chatbox__bar {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px;
  border-bottom: 1px solid var(--hairline); background: rgba(255,255,255,.022);
}
.rx-chatbox__body {
  position: relative; display: flex; flex-direction: column; gap: 11px;
  padding: 22px 18px; min-height: 300px;
  background:
    radial-gradient(600px circle at 80% 0%, rgba(232,89,60,.07), transparent 60%),
    var(--navy-870);
}
.rx-avatar {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: #fff;
  background: var(--grad-brand); box-shadow: var(--glow-sm);
}
.rx-avatar i {
  position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--success-500); border: 2.5px solid var(--navy-870);
}

.rx-msg { display: flex; flex-direction: column; max-width: 84%; animation: rx-msg-in .45s var(--ease-out) both; }
.rx-msg--in { align-self: flex-start; align-items: flex-start; }
.rx-msg--out { align-self: flex-end; align-items: flex-end; }
.rx-msg__bubble {
  padding: 11px 15px; font-size: 14.5px; line-height: 1.5;
  border-radius: 16px; word-break: break-word;
}
.rx-msg--in .rx-msg__bubble {
  background: var(--navy-750); color: var(--text-body); border-bottom-left-radius: 5px;
}
.rx-msg--out .rx-msg__bubble {
  background: var(--grad-brand); color: #fff; border-bottom-right-radius: 5px;
  box-shadow: var(--glow-sm);
}
.rx-msg__meta {
  display: flex; align-items: center; gap: 6px; margin-top: 5px; padding: 0 4px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint);
}
@keyframes rx-msg-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.rx-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.rx-typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint);
  animation: rx-bounce 1.3s var(--ease-in-out) infinite;
}
.rx-typing i:nth-child(2) { animation-delay: .16s; }
.rx-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes rx-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* Insignia flotante de latencia */
.rx-latency {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(5,11,20,.8); border: 1px solid var(--o-a35);
  box-shadow: var(--glow-sm);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--orange-400);
}

/* ----------------------------------------------------------- 18. TERMINAL */
.rx-term {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--glass-border); background: var(--navy-950);
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
}
.rx-term__bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 15px;
  border-bottom: 1px solid var(--hairline); background: rgba(255,255,255,.022);
}
.rx-term__bar i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rx-term__bar span {
  margin-left: 8px; font-size: 11px; letter-spacing: .08em; color: var(--text-faint);
}
.rx-term__body { padding: 18px 18px 20px; font-size: 13px; line-height: 1.95; }
.rx-term__line { display: block; white-space: pre-wrap; color: var(--text-muted); }
.rx-term__line b { color: var(--orange-400); font-weight: 500; }
.rx-term__line em { font-style: normal; color: var(--success-500); }
.rx-term__line i { font-style: normal; color: var(--gold-500); }
.rx-term__cursor {
  display: inline-block; width: 8px; height: 15px; vertical-align: -2px;
  background: var(--orange-500); animation: rx-blink 1.1s steps(2) infinite;
}
@keyframes rx-blink { 50% { opacity: 0; } }

/* -------------------------------------------------------------- 19. METERS */
.rx-meter + .rx-meter { margin-top: 20px; }
.rx-meter__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.rx-meter__label { font-size: 14px; color: var(--text-muted); }
.rx-meter__val {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--text-strong);
  font-feature-settings: 'tnum' 1;
}
.rx-meter__track { height: 7px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.rx-meter__fill {
  height: 100%; width: 0; border-radius: 99px; background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(232,89,60,.5);
  transition: width 1.3s var(--ease-out);
}
.rx-meter__fill--gold { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); box-shadow: 0 0 14px rgba(242,166,35,.5); }
.rx-meter__fill--success { background: linear-gradient(90deg, #1E9E68, var(--success-500)); box-shadow: 0 0 14px rgba(53,201,138,.5); }

/* --------------------------------------------------------- 20. DASHBOARD */
.rx-dash { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--glass-border); background: var(--grad-surface); box-shadow: var(--shadow-lg); }
.rx-dash__bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 15px 20px; border-bottom: 1px solid var(--hairline); background: rgba(255,255,255,.022);
}
.rx-dash__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rx-dash__kpi { padding: 20px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.rx-dash__kpi:last-child { border-right: 0; }
.rx-dash__kpi span {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint);
}
.rx-dash__kpi b {
  display: block; margin-top: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1;
  letter-spacing: -0.02em; color: var(--text-strong); font-feature-settings: 'tnum' 1;
}
.rx-dash__delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 600; }
.rx-dash__delta--up { color: var(--success-500); }
.rx-dash__delta--down { color: var(--orange-400); }
.rx-dash__chart { padding: 22px 20px; }

/* Gráfico de barras CSS puro */
.rx-bars { display: flex; align-items: flex-end; gap: clamp(5px, 1.4vw, 12px); height: 150px; }
.rx-bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; justify-content: flex-end; }
.rx-bars__bar {
  width: 100%; max-width: 42px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--orange-500), rgba(232,89,60,.28));
  height: 0; transition: height 1s var(--ease-out);
  position: relative;
}
.rx-bars__col:last-child .rx-bars__bar {
  background: linear-gradient(180deg, var(--gold-400), rgba(242,166,35,.3));
  box-shadow: 0 0 24px rgba(242,166,35,.35);
}
.rx-bars__lbl { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

/* Curva de incentivos (Growth Partner) */
.rx-curve { width: 100%; height: auto; }
.rx-curve .rx-curve__line { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.is-revealed .rx-curve .rx-curve__line { animation: rx-draw 2s var(--ease-out) forwards; }
@keyframes rx-draw { to { stroke-dashoffset: 0; } }

/* ------------------------------------------------- 21. FORMULARIOS / INPUTS */
.rx-field { display: flex; flex-direction: column; gap: 7px; }
.rx-field__label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.rx-field__hint { font-size: 12px; color: var(--text-faint); line-height: 1.5; }

.rx-input, .rx-select {
  display: flex; align-items: center; gap: 9px;
  border-radius: var(--r-sm); border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.03);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out);
}
.rx-input { padding: 0 15px; }
.rx-input:focus-within, .rx-select:focus-within {
  border-color: var(--o-a55); background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 3px var(--o-a12);
}
.rx-input input, .rx-input textarea {
  flex: 1; width: 100%; padding: 13px 0; border: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--text-strong); outline: none; resize: vertical;
}
.rx-input textarea { padding: 13px 0; min-height: 96px; line-height: 1.55; }
.rx-input input::placeholder, .rx-input textarea::placeholder { color: var(--text-faint); }
.rx-input__affix { font-family: var(--font-mono); font-size: 14px; color: var(--text-faint); flex: none; }

.rx-select { position: relative; }
.rx-select select {
  flex: 1; width: 100%; padding: 13px 42px 13px 15px;
  border: 0; background: transparent; font: inherit; font-size: 15px;
  color: var(--text-strong); outline: none; cursor: pointer; appearance: none;
}
.rx-select select option { background: var(--navy-850); color: var(--text-body); }
.rx-select::after {
  content: ''; position: absolute; right: 15px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3B1C6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Grupo de opciones tipo botón (quiz de calificación) */
.rx-opts { display: grid; gap: 10px; }
.rx-opt {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 17px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.025);
  font-size: 14.5px; color: var(--text-body); text-align: left; width: 100%;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.rx-opt:hover { border-color: var(--o-a35); background: var(--o-a08); transform: translateX(3px); }
.rx-opt.is-sel { border-color: var(--orange-500); background: var(--o-a12); color: var(--text-strong); }
.rx-opt__key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-xs); flex: none;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-faint); background: rgba(255,255,255,.05); border: 1px solid var(--hairline);
  transition: all .2s var(--ease-out);
}
.rx-opt.is-sel .rx-opt__key { color: #fff; background: var(--grad-brand); border-color: transparent; }

/* Barra de progreso del quiz */
.rx-progress { height: 4px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.rx-progress__fill { height: 100%; width: 0; background: var(--grad-brand); border-radius: 99px; transition: width .45s var(--ease-out); }

/* Aviso legal Ley 1581 */
.rx-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; line-height: 1.5; color: var(--text-faint);
}
.rx-consent input {
  flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--orange-500); cursor: pointer;
}
.rx-consent a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.rx-consent a:hover { color: var(--orange-400); }

/* ------------------------------------------------------------ 22. DIÁLOGO */
.rx-dialog {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,11,20,.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: rx-fade .25s var(--ease-out);
}
.rx-dialog[hidden] { display: none; }
.rx-dialog__panel {
  position: relative; width: 100%; max-width: 520px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  border-radius: var(--r-lg); border: 1px solid var(--glass-border);
  background: var(--navy-850); box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 38px);
  animation: rx-pop .35s var(--ease-spring);
}
.rx-dialog__close {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  color: var(--text-muted); background: var(--glass-fill); border: 1px solid var(--glass-border);
  transition: all .2s var(--ease-out);
}
.rx-dialog__close:hover { color: var(--text-strong); background: var(--glass-fill-2); transform: rotate(90deg); }
@keyframes rx-fade { from { opacity: 0; } }
@keyframes rx-pop { from { opacity: 0; transform: translateY(18px) scale(.96); } }

/* ---------------------------------------------------------------- 23. FAQ */
.rx-faq { display: flex; flex-direction: column; gap: 11px; }
.rx-faq__item {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--glass-border); background: var(--glass-fill);
  box-shadow: var(--edge-top);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.rx-faq__item[data-open="true"] { border-color: var(--o-a35); background: var(--o-a08); }
.rx-faq__btn {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 19px 22px; border: 0; background: transparent; cursor: pointer;
  font-size: 16px; font-weight: 500; color: var(--text-strong); text-align: left;
}
.rx-faq__btn > span { flex: 1; }
.rx-faq__chev {
  display: inline-flex; flex: none; color: var(--orange-400);
  transition: transform .3s var(--ease-out);
}
.rx-faq__item[data-open="true"] .rx-faq__chev { transform: rotate(180deg); }
.rx-faq__panel { padding: 0 22px 21px; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.rx-faq__panel[hidden] { display: none; }

/* ----------------------------------------------------------- 24. TESTIMONIO */
.rx-quote { position: relative; padding: clamp(28px, 3.4vw, 38px); }
.rx-quote::before {
  content: '"'; position: absolute; top: 8px; right: 24px;
  font-family: var(--font-display); font-weight: 900; font-size: 110px; line-height: 1;
  color: rgba(232,89,60,.1); pointer-events: none;
}
.rx-quote__text {
  position: relative; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55;
  color: var(--text-strong); letter-spacing: -0.01em;
}
.rx-quote__by { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.rx-quote__av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  font-weight: 700; font-size: 15px; color: #fff; background: var(--grad-brand);
}
.rx-quote__name { font-size: 14.5px; font-weight: 600; color: var(--text-strong); }
.rx-quote__role { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--text-faint); margin-top: 2px; }

/* Métrica destacada dentro de un caso */
.rx-case-metric { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.rx-case-metric > div { min-width: 100px; }
.rx-case-metric b {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px;
  line-height: 1; letter-spacing: -0.02em;
}
.rx-case-metric span { display: block; margin-top: 7px; font-size: 12.5px; color: var(--text-faint); line-height: 1.4; }

/* ----------------------------------------------------------- 25. CTA FINAL */
.rx-cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--o-a35);
  background:
    radial-gradient(900px circle at 50% 120%, rgba(232,89,60,.24), transparent 62%),
    var(--grad-surface);
  box-shadow: var(--shadow-lg), 0 0 90px rgba(232,89,60,.1);
  padding: clamp(44px, 6vw, 84px) clamp(24px, 5vw, 60px);
  text-align: center;
}
.rx-cta__glow {
  position: absolute; left: 50%; bottom: -260px; transform: translateX(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,89,60,.35), transparent 68%);
  filter: blur(60px); pointer-events: none;
}

/* ------------------------------------------------------------- 26. FOOTER */
.rx-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--hairline);
  padding: clamp(48px, 6vw, 72px) 0 34px; margin-top: 24px;
  background: rgba(5,11,20,.4);
}
.rx-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 36px; }
.rx-footer__col { display: flex; flex-direction: column; gap: 11px; }
.rx-footer__label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px;
}
.rx-foot-link {
  font-size: 14px; color: var(--text-muted);
  transition: color .2s var(--ease-out), transform .2s var(--ease-out);
  width: fit-content;
}
.rx-foot-link:hover { color: var(--orange-400); transform: translateX(3px); }
.rx-footer__legal {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 12.5px; color: var(--text-faint);
}
.rx-social { display: flex; gap: 9px; margin-top: 4px; }
.rx-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-xs);
  color: var(--text-muted); background: var(--glass-fill); border: 1px solid var(--glass-border);
  transition: all .2s var(--ease-out);
}
.rx-social a:hover { color: var(--orange-400); border-color: var(--o-a35); transform: translateY(-2px); }

/* ------------------------------------------------------- 27. WHATSAPP FLOAT */
.rx-wa {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  color: #fff; background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 8px 30px rgba(37,211,102,.4);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out);
}
.rx-wa::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.55);
  animation: rx-ping 2.4s var(--ease-out) infinite;
}
.rx-wa:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(37,211,102,.55); }
@keyframes rx-ping {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Barra CTA fija en mobile */
.rx-mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10,22,40,.94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--glass-border);
}

/* ------------------------------------------------------ 28. SCROLL REVEAL */
.rx-js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  will-change: opacity, transform;
}
.rx-js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ------------------------------------------------------------ 29. HELPERS */
.rx-mt-0 { margin-top: 0 !important; }
.rx-mt-1 { margin-top: 10px; }
.rx-mt-2 { margin-top: 18px; }
.rx-mt-3 { margin-top: 26px; }
.rx-mt-4 { margin-top: 38px; }
.rx-mt-5 { margin-top: 52px; }
.rx-mt-6 { margin-top: 70px; }
.rx-maxw-40 { max-width: 40ch; }
.rx-maxw-50 { max-width: 50ch; }
.rx-maxw-60 { max-width: 60ch; }
.rx-maxw-70 { max-width: 70ch; }
.rx-flex-1 { flex: 1; }
.rx-nowrap { white-space: nowrap; }

/* Nota / callout */
.rx-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 22px 26px; border-radius: var(--r-lg);
  border: 1px solid var(--hairline); background: rgba(255,255,255,.016);
}
.rx-note--brand { border-color: var(--o-a35); background: var(--o-a08); }

/* Separador de sección con nodo central */
.rx-sep { display: flex; align-items: center; gap: 16px; }
.rx-sep::before, .rx-sep::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.rx-sep i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 12px var(--orange-500); }

/* ======================================================================
   29B. COMPONENTES DE PROPUESTA
   Piezas de la Propuesta Maestra del Growth System: explorador de bloques,
   tabla de fases, value stack, garantías y opciones de pago.
   ====================================================================== */

/* --- Barra de escasez (3 cupos/mes) ------------------------------------ */
.rx-scarcity {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 18px; padding: 13px var(--gutter);
  background: linear-gradient(90deg, rgba(232,89,60,.14), rgba(242,166,35,.10), rgba(232,89,60,.14));
  border-top: 1px solid var(--o-a20); border-bottom: 1px solid var(--o-a20);
  font-size: 13.5px; color: var(--text-body); text-align: center;
}
.rx-scarcity strong { color: var(--text-strong); font-weight: 600; }
.rx-scarcity__dots { display: inline-flex; gap: 5px; }
.rx-scarcity__dots i {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--orange-500); box-shadow: 0 0 10px var(--orange-500);
}
.rx-scarcity__dots i.is-free { background: transparent; border: 1px solid var(--o-a55); box-shadow: none; }

/* --- Explorador de los 9 bloques (tabs verticales) --------------------- */
.rx-blocks { display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: start; }
.rx-blocks__nav { display: flex; flex-direction: column; gap: 6px; }
.rx-blocks__tab {
  display: flex; align-items: center; gap: 13px; width: 100%; cursor: pointer;
  padding: 13px 15px; border-radius: var(--r-sm); text-align: left;
  border: 1px solid transparent; background: transparent;
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out),
              color .2s var(--ease-out), transform .2s var(--ease-out);
}
.rx-blocks__tab:hover { background: var(--glass-fill); color: var(--text-body); transform: translateX(3px); }
.rx-blocks__tab.is-sel {
  background: var(--o-a12); border-color: var(--o-a35); color: var(--text-strong);
}
.rx-blocks__n {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: var(--r-xs);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-faint); background: rgba(255,255,255,.05); border: 1px solid var(--hairline);
  transition: all .2s var(--ease-out);
}
.rx-blocks__tab.is-sel .rx-blocks__n { color: #fff; background: var(--grad-brand); border-color: transparent; }
.rx-blocks__panel { padding: clamp(24px, 3vw, 34px); animation: rx-panel-in .4s var(--ease-out); }
.rx-blocks__panel[hidden] { display: none; }
@keyframes rx-panel-in { from { opacity: 0; transform: translateY(10px); } }

/* --- Tabla de fases de entrega (Día 0 → Día 14) ------------------------ */
.rx-phase {
  display: grid; grid-template-columns: 150px 132px 1fr; gap: 22px;
  padding: 22px 0; border-bottom: 1px solid var(--hairline);
}
.rx-phase:last-child { border-bottom: 0; }
.rx-phase__when {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .04em; color: var(--orange-400);
}
.rx-phase__who {
  font-size: 13px; color: var(--text-faint);
  display: flex; align-items: flex-start; gap: 7px;
}
.rx-phase__who::before {
  content: ''; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 8px var(--g-a35);
}
/* Fila de cabecera: FASE · RESPONSABLE · QUÉ SE ENTREGA */
.rx-phase--head { padding: 0 0 12px; border-bottom-color: var(--glass-border); }
.rx-phase--head > * {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint);
}

/* --- Value stack (los 7 bonos) -----------------------------------------
   Se consulta a sí mismo, no al viewport: esta lista vive tanto a ancho
   completo como dentro de una columna de la rejilla de 4, y lo que decide
   si cabe en una línea es el ancho de SU caja, no el de la pantalla. */
.rx-vs { display: flex; flex-direction: column; container-type: inline-size; }
/* Las filas envuelven: en una columna estrecha el importe cae a su propia
   línea en vez de estrujar la etiqueta hasta partirla en tres. */
.rx-vs__row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.08);
  font-size: 14.5px; color: var(--text-body);
}
.rx-vs__row > span { flex: 1 1 auto; min-width: 0; }
.rx-vs__row i {
  flex: 1 0 8px; height: 1px; align-self: center;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 2px, transparent 2px 6px);
}
.rx-vs__row b { margin-left: auto; }
.rx-vs__row b {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  color: var(--text-muted); font-feature-settings: 'tnum' 1; white-space: nowrap;
}
.rx-vs__row--core { color: var(--text-strong); font-weight: 600; }
.rx-vs__row--core b { color: var(--orange-400); }
.rx-vs__total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 8px; padding: 18px 0 0;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint);
}
.rx-vs__total b {
  font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-faint); text-decoration: line-through;
  text-decoration-color: var(--o-a55); text-decoration-thickness: 2px;
}
.rx-vs__final {
  margin-top: 22px; padding: 26px 18px; border-radius: var(--r-lg); text-align: center;
  border: 1px solid var(--o-a35);
  background: radial-gradient(600px circle at 50% 130%, rgba(232,89,60,.22), transparent 65%), var(--navy-850);
  box-shadow: 0 0 60px rgba(232,89,60,.14), var(--edge-top);
}
.rx-vs__final span {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400);
}
/* El tamaño lo manda el ancho de la tarjeta, no el del viewport: en la
   rejilla de 4 columnas la caja mide ~195px y a 68px el importe desbordaba. */
.rx-vs__final b {
  display: block; margin-top: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 3.4vw, 52px);
  line-height: 1; letter-spacing: -0.035em;
}
.rx-vs__final em {
  display: block; margin-top: 12px; font-style: normal;
  font-size: 14.5px; color: var(--text-muted);
}

/* Columna estrecha: fuera el punteado, tipografía más apretada y cada
   concepto en una sola línea. Sin esto cada fila parte en dos y la tarjeta
   crece hasta doblar la altura de los bonos que tiene al lado. */
@container (max-width: 240px) {
  .rx-vs__row { font-size: 13px; gap: 4px 8px; padding: 11px 0; }
  .rx-vs__row i { display: none; }
  .rx-vs__row b { font-size: 13px; }
  .rx-vs__total { font-size: 11px; padding-top: 14px; }
  .rx-vs__total b { font-size: 22px; }
  .rx-vs__final { padding: 22px 14px; }
  .rx-vs__final em { font-size: 13px; }
}

/* --- Etiqueta de valor de un bono -------------------------------------- */
.rx-worth {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  color: var(--gold-400);
}
.rx-worth s { color: var(--text-faint); text-decoration-color: var(--o-a55); }

/* --- Opciones de pago --------------------------------------------------- */
.rx-pay__amount {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-top: 16px;
}
.rx-pay__amount b {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4vw, 44px);
  line-height: 1; letter-spacing: -0.03em; color: var(--text-strong);
}
.rx-pay__amount span { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.rx-pay__split { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.rx-pay__leg {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--hairline);
  font-size: 14px; color: var(--text-body);
}
.rx-pay__leg b { font-family: var(--font-mono); font-weight: 500; color: var(--orange-400); flex: none; }
.rx-pay__leg span { color: var(--text-faint); font-size: 12.5px; margin-left: auto; text-align: right; }

/* --- Antes / Ahora del caso de éxito ------------------------------------ */
.rx-ba { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.rx-ba__arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-400); align-self: center;
}
.rx-ba__col { padding: 24px; border-radius: var(--r-md); border: 1px solid var(--hairline); background: rgba(255,255,255,.016); }
.rx-ba__col--now { border-color: var(--o-a35); background: var(--o-a08); }
.rx-ba__lbl {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 12px;
}
.rx-ba__col--now .rx-ba__lbl { color: var(--orange-400); }

/* ======================================================================
   29C. PORTAFOLIO DE CASOS
   Índice filtrable de casos de éxito. Cada caso es un <details>: cerrado
   funciona como fila de índice (nº · nombre · sector · cifra), abierto
   despliega la ficha completa. Sin JS la lista sigue siendo navegable;
   el filtro es la única pieza que necesita script.
   ====================================================================== */

/* Antes/Después de dos columnas. Va aquí y no como estilo en línea para que
   el `grid-template-columns: 1fr` del bloque responsive siga ganando en móvil. */
.rx-ba--pair { grid-template-columns: 1fr auto 1fr; }

/* --- Filtro por sector --------------------------------------------------- */
.rx-filter { display: flex; flex-wrap: wrap; gap: 9px; }
.rx-filter__btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 15px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  background: var(--glass-fill); border: 1px solid var(--hairline);
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out),
              border-color .2s var(--ease-out);
}
.rx-filter__btn:hover { color: var(--text-strong); background: var(--glass-fill-2); }
.rx-filter__btn[aria-pressed="true"] {
  color: var(--orange-400); background: var(--o-a12); border-color: var(--o-a35);
}
.rx-filter__btn b { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; opacity: .7; }

/* --- Lista de casos ------------------------------------------------------ */
.rx-cases { display: flex; flex-direction: column; gap: 11px; }
.rx-cases [hidden] { display: none; }

.rx-case {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--hairline); background: rgba(255,255,255,.016);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.rx-case:hover { border-color: var(--o-a35); background: rgba(255,255,255,.028); }
.rx-case[open] { border-color: var(--o-a35); background: var(--o-a08); }

/* Color de sector. Cada caso declara el suyo con data-sector y todo lo que
   lleva acento (badge, borde de la miniatura) lo hereda de --sc. El naranja
   y el dorado de marca se reservan para las cifras, que son lo importante. */
.rx-case { --sc: var(--orange-400); }
.rx-case[data-sector="inmobiliario"] { --sc: #4DA3FF; }
.rx-case[data-sector="musica"]       { --sc: #9B8CFF; }
.rx-case[data-sector="tech"]         { --sc: #35C98A; }
.rx-case[data-sector="salud"]        { --sc: #FF7A9C; }
.rx-case[data-sector="retail"]       { --sc: #F2A623; }
.rx-case[data-sector="ecommerce"]    { --sc: #3ECFC0; }
.rx-case[data-sector="coaching"]     { --sc: #F27A5C; }

/* La fila cerrada. `list-style:none` + `::-webkit-details-marker` quita el
   triangulito nativo; la flecha propia vive en .rx-case__chev. */
.rx-case__row {
  display: grid;
  grid-template-columns: 46px 124px 1fr auto 26px;
  grid-template-areas: "num thumb name fig chev";
  gap: 18px; align-items: center;
  padding: 18px clamp(18px, 2.4vw, 26px);
  cursor: pointer; list-style: none;
}
.rx-case__num { grid-area: num; }
.rx-case__head { grid-area: name; min-width: 0; }
.rx-case__figure { grid-area: fig; }
.rx-case__chev { grid-area: chev; }

/* Miniatura del sitio del cliente. Las capturas vienen con relaciones de
   aspecto muy distintas (de 700×356 a 600×1069), así que se recortan todas
   al mismo marco anclando arriba, que es donde está el hero de cada sitio. */
.rx-case__thumb {
  grid-area: thumb;
  position: relative; overflow: hidden;
  width: 124px; height: 78px; border-radius: var(--r-sm);
  border: 1px solid var(--hairline); background: var(--navy-850);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s var(--ease-out), transform .3s var(--ease-spring);
}
.rx-case__thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}

/* Las capturas de sitio se anclan arriba porque ahí está el nav y el hero.
   Un retrato no: anclado arriba se le corta la barbilla, así que baja el
   encuadre hasta dejar la cara centrada. */
.rx-case__thumb--retrato img,
.rx-case__shot--retrato img { object-position: center 12%; }
.rx-case:hover .rx-case__thumb,
.rx-case[open] .rx-case__thumb { border-color: var(--sc); transform: scale(1.03); }

/* Marcador para los casos sin captura disponible. */
.rx-case__thumb--icon { background: color-mix(in srgb, var(--sc) 12%, var(--navy-850)); }
.rx-case__thumb--icon svg { color: var(--sc); opacity: .85; }

/* Etiqueta de sector, coloreada con --sc */
.rx-case__tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 9px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--sc);
  background: color-mix(in srgb, var(--sc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc) 38%, transparent);
}
.rx-case__row::-webkit-details-marker { display: none; }
.rx-case__row:focus-visible { outline: 2px solid var(--orange-500); outline-offset: -2px; }

.rx-case__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--orange-400);
  background: var(--navy-850); border: 1px solid var(--o-a35);
  transition: transform .3s var(--ease-spring), background-color .3s var(--ease-out),
              color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.rx-case:hover .rx-case__num,
.rx-case[open] .rx-case__num {
  transform: scale(1.06); background: var(--grad-brand); color: #fff; border-color: transparent;
}

.rx-case__name {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 21px);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--text-strong);
}
.rx-case__sector {
  display: block; margin-top: 5px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-faint);
}
.rx-case__figure { text-align: right; }
.rx-case__figure b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 27px); line-height: 1; letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--orange-400);
}
.rx-case__figure span {
  display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-faint); line-height: 1.35;
  max-width: 22ch; margin-left: auto;
}
.rx-case__chev {
  color: var(--text-faint); flex: none;
  transition: transform .3s var(--ease-out), color .2s var(--ease-out);
}
.rx-case[open] .rx-case__chev { transform: rotate(180deg); color: var(--orange-400); }

/* --- Ficha desplegada ---------------------------------------------------- */
.rx-case__panel {
  padding: 4px clamp(18px, 2.4vw, 26px) clamp(24px, 3vw, 30px);
  border-top: 1px solid var(--hairline); margin-top: 2px;
}
.rx-case[open] .rx-case__panel { animation: rx-case-in .4s var(--ease-out); }
@keyframes rx-case-in { from { opacity: 0; transform: translateY(-6px); } }

/* Ficha técnica: período, ubicación, cliente. */
.rx-case__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding: 18px 0; margin-bottom: 4px;
}
.rx-case__meta div { min-width: 120px; }
.rx-case__meta dt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold-500);
}
.rx-case__meta dd { margin: 5px 0 0; font-size: 13.5px; color: var(--text-body); }

/* Rejilla "qué se construyó" */
.rx-built { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; }
.rx-built__item {
  padding: 15px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--hairline); background: rgba(255,255,255,.02);
}
.rx-built__item b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.rx-built__item span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--text-faint); }

/* Cifras internas del caso */
.rx-case__kpis { display: flex; flex-wrap: wrap; gap: 14px; }
.rx-case__kpis > div {
  flex: 1 1 150px; padding: 16px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--hairline); background: rgba(255,255,255,.02);
}
.rx-case__kpis b {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 23px;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--gold-400);
}
.rx-case__kpis span { display: block; margin-top: 7px; font-size: 12px; color: var(--text-faint); line-height: 1.4; }

/* Etiqueta de subsección dentro de la ficha */
.rx-case__lbl {
  display: block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-faint);
}

/* Enlaces verificables del caso */
.rx-case__links { display: flex; flex-wrap: wrap; gap: 9px; }
.rx-case__links a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  background: var(--glass-fill); border: 1px solid var(--hairline);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.rx-case__links a:hover { color: var(--orange-400); border-color: var(--o-a35); }

/* Mapa de sectores */
.rx-sector {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--hairline); background: rgba(255,255,255,.016);
}
.rx-sector__n {
  font-family: var(--font-display); font-weight: 700; font-size: 27px; line-height: 1;
  color: var(--orange-400); flex: none; min-width: 28px;
}
.rx-sector b { display: block; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.rx-sector span { display: block; margin-top: 3px; font-size: 12px; color: var(--text-faint); }

/* Captura completa dentro de la ficha desplegada */
.rx-case__shot {
  margin-top: 22px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--hairline); background: var(--navy-850);
}
/* Las capturas son de página completa, así que se topan a 420px y muestran
   la cabecera del sitio. El marco con borde y pie ya comunica que es una
   captura recortada; no hace falta degradado. */
.rx-case__shot img {
  display: block; width: 100%; height: auto;
  max-height: 420px; object-fit: cover; object-position: top center;
}
.rx-case__shot figcaption {
  padding: 11px 15px; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); border-top: 1px solid var(--hairline);
}
/* Varias capturas del mismo caso */
.rx-case__gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
  margin-top: 22px;
}
.rx-case__gallery .rx-case__shot { margin-top: 0; }
.rx-case__gallery .rx-case__shot img { max-height: 220px; }

@media (max-width: 860px) {
  /* La miniatura pasa a banda completa y la cifra a su propia fila. */
  .rx-case__row {
    grid-template-columns: 40px 1fr 22px;
    grid-template-areas:
      "num  name  chev"
      "thumb thumb thumb"
      "fig  fig   fig";
    gap: 12px 14px; padding: 16px;
  }
  .rx-case__num { width: 40px; height: 40px; font-size: 12px; }
  .rx-case__thumb { width: 100%; height: 132px; }
  /* A ancho completo el marco queda muy apaisado (2,3:1) y una cara no cabe
     entera. El retrato necesita más alto para no perder la barbilla. */
  .rx-case__thumb--retrato { height: 200px; }
  .rx-case__figure { text-align: left; }
  .rx-case__figure span { margin-left: 0; max-width: none; }
  .rx-case__meta { gap: 12px 20px; }
}

/* -------------------------------------------------------- 30. RESPONSIVE */
@media (max-width: 1080px) {
  .rx-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .rx-blocks { grid-template-columns: 280px 1fr; }
  .rx-ba { grid-template-columns: 1fr; }
  .rx-ba__arrow { transform: rotate(90deg); }
  .rx-grid--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --nav-h: 66px; }
  .rx-hero__grid { grid-template-columns: 1fr; gap: 42px; }
  .rx-nav__links { display: none; }
  .rx-burger { display: inline-flex; }
  .rx-nav__actions .rx-btn--sm { display: none; }
  .rx-compare__wrap { display: none; }
  .rx-compare-cards { display: flex; }
  .rx-mobile-bar { display: block; }
  .rx-wa { bottom: 84px; right: 16px; width: 52px; height: 52px; }
  body { padding-bottom: 72px; }
  .rx-system__idx { font-size: 96px; }

  /* Los 9 bloques pasan a lista horizontal de fichas deslizables */
  .rx-blocks { grid-template-columns: 1fr; }
  .rx-blocks__nav {
    flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  }
  .rx-blocks__tab { flex: none; scroll-snap-align: start; padding: 10px 14px; font-size: 13.5px; }
  .rx-blocks__tab:hover { transform: none; }
  .rx-blocks__n { width: 26px; height: 26px; font-size: 11px; }
}

@media (max-width: 700px) {
  .rx-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .rx-footer__grid > :first-child { grid-column: 1 / -1; }
  .rx-dash__kpi { border-right: 0; }
  .rx-tl { grid-template-columns: 38px 1fr; gap: 15px; }
  .rx-tl__dot { width: 38px; height: 38px; font-size: 11.5px; }
  .rx-timeline--rail::before { left: 18px; }
  .rx-quote::before { font-size: 80px; right: 14px; }
  .rx-grid--pair, .rx-grid--quad { grid-template-columns: 1fr; }

  /* La tabla de fases se apila y su cabecera de columnas deja de tener sentido */
  .rx-phase { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .rx-phase--head { display: none; }
  .rx-phase__who { font-size: 12.5px; }
  .rx-vs__total { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 520px) {
  .rx-footer__grid { grid-template-columns: 1fr; }
  .rx-hero__cta { gap: 12px; }
  .rx-hero__cta .rx-btn-halo, .rx-hero__cta > .rx-btn { width: 100%; }
  .rx-hero__cta .rx-btn { width: 100%; }
  .rx-ribbon { right: -40px; padding: 5px 44px; font-size: 9.5px; }
}

/* --------------------------------------------------- 31. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rx-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .rx-nodes, .rx-aurora { display: none; }
}

/* ---------------------------------------------------------- 32. IMPRESIÓN */
@media print {
  .rx-nav, .rx-wa, .rx-mobile-bar, .rx-aurora, .rx-grain, .rx-nodes { display: none !important; }
  body { background: #fff; color: #000; }
}
