/* ==========================================================================
   NEXUS — Tech dark system for Descarga Masiva SAT
   Deep ink + acid neon + electric blue + magenta glow.
   Bricolage Grotesque (display) + Geist (body) + JetBrains Mono (code).
   Movimiento: aurora drift, cursor spotlight, scroll reveals, terminal viva.
   ========================================================================== */

:root {
  /* Background layers */
  --bg-0: #050510;
  --bg-1: #0a0a18;
  --bg-2: #10101f;
  --bg-3: #15152a;
  --bg-card: #0d0d1c;
  --bg-elev: #14142b;

  /* Lines & strokes */
  --line:        rgba(120,130,170,.10);
  --line-strong: rgba(120,130,170,.22);
  --line-glow:   rgba(122,255,158,.35);

  /* Text */
  --fg:        #eeeefa;
  --fg-2:      #c5c5dc;
  --fg-dim:    #7a7a96;
  --fg-mute:   #4a4a66;

  /* Accents */
  --acid:        #7aff9e;        /* primary terminal green */
  --acid-2:      #4dff7a;        /* deeper */
  --acid-glow:   rgba(122,255,158,.55);
  --electric:    #6d7dff;        /* electric blue */
  --electric-2:  #4d5fff;
  --magenta:     #ff3d8c;        /* hot accent, sparingly */
  --ochre:       #ffb84d;
  --cyan:        #4dd9ff;

  /* Compat con tests viejos */
  --color-primary: var(--acid);
  --color-primary-dark: var(--acid-2);
  --color-bg: var(--bg-0);
  --color-text: var(--fg);

  /* Fuentes */
  --f-display: "Bricolage Grotesque", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --f-text:    "Geist", "Söhne", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Geometría */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Sombras + glows */
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.8);
  --glow-acid:   0 0 0 1px rgba(122,255,158,.4), 0 0 40px -8px rgba(122,255,158,.55), 0 0 80px -20px rgba(122,255,158,.4);
  --glow-blue:   0 0 0 1px rgba(109,125,255,.4), 0 0 40px -8px rgba(109,125,255,.5);

  /* Container */
  --col: 1260px;
  --gutter: 28px;
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { background: var(--bg-0); color: var(--fg); }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
  overflow-x: hidden;
  position: relative;
}

/* Aurora global de fondo */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(800px 600px at 12% 8%,   rgba(122,255,158,.10) 0, transparent 55%),
    radial-gradient(900px 700px at 88% 18%,  rgba(109,125,255,.12) 0, transparent 55%),
    radial-gradient(700px 600px at 50% 100%, rgba(255,61,140,.06)  0, transparent 60%);
  z-index: -2;
  animation: aurora 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  0%   { transform: translate(0,0) rotate(0deg);   filter: hue-rotate(0deg); }
  50%  { transform: translate(-2%,1%) rotate(2deg); filter: hue-rotate(8deg); }
  100% { transform: translate(2%,-1%) rotate(-2deg); filter: hue-rotate(-6deg); }
}

/* Grid de puntos fino sobre el fondo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(120,130,170,.13) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 90%);
  z-index: -1;
  pointer-events: none;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--acid);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--fg); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  margin: 0 0 .5em;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variation-settings: "wdth" 100, "opsz" 14;
}
h1 {
  font-size: clamp(2.8rem, 6.4vw + .5rem, 6.5rem);
  letter-spacing: -0.045em;
  font-weight: 600;
}
h2 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3.4rem);
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
  color: var(--fg-2);
  max-width: 64ch;
}
strong { color: var(--fg); font-weight: 600; }

ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; color: var(--fg-2); }

code, .mono {
  font-family: var(--f-mono);
  font-feature-settings: "tnum", "zero", "ss01";
  font-size: .9em;
}
code {
  background: rgba(122,255,158,.08);
  border: 1px solid rgba(122,255,158,.18);
  color: var(--acid);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  font-size: .85em;
}

::selection { background: var(--acid); color: var(--bg-0); }

/* Scrollbar oscura */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap, .container {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.wrap.narrow, .container.narrow { max-width: 760px; }
.wrap.wide { max-width: 1380px; }

.section { padding: 120px 0; position: relative; }
.section.tight { padding: 72px 0; }
.center-text { text-align: center; }
.muted { color: var(--fg-dim); }
.small { font-size: .88rem; }

.lead {
  font-size: clamp(1.05rem, .5vw + 1rem, 1.3rem);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 0 1em;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Eyebrow uniforme */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--acid);
  font-weight: 500;
  font-feature-settings: "tnum";
  padding: 8px 14px 7px;
  background: rgba(122,255,158,.06);
  border: 1px solid rgba(122,255,158,.22);
  border-radius: var(--r-pill);
}
.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid-glow);
  animation: blink 1.6s ease-in-out infinite;
}
.tag.blue { color: var(--electric); background: rgba(109,125,255,.06); border-color: rgba(109,125,255,.22); }
.tag.blue::before { background: var(--electric); box-shadow: 0 0 12px rgba(109,125,255,.55); }
.tag.magenta { color: var(--magenta); background: rgba(255,61,140,.06); border-color: rgba(255,61,140,.22); }
.tag.magenta::before { background: var(--magenta); box-shadow: 0 0 12px rgba(255,61,140,.55); }
.tag.ochre { color: var(--ochre); background: rgba(255,184,77,.06); border-color: rgba(255,184,77,.22); }
.tag.ochre::before { background: var(--ochre); box-shadow: 0 0 12px rgba(255,184,77,.55); }

@keyframes blink {
  0%, 70%, 100% { opacity: 1; }
  85%           { opacity: .35; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(5,5,16,.65);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
}
.brand:hover { color: var(--fg); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, var(--acid) 0, var(--acid-2) 35%, transparent 70%),
    linear-gradient(135deg, var(--bg-elev), var(--bg-3));
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .82rem;
  color: var(--bg-0);
  letter-spacing: -.02em;
  box-shadow: 0 0 0 1px rgba(122,255,158,.45), 0 0 20px -4px var(--acid-glow);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 6px;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.1));
  pointer-events: none;
}
.brand-name {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand-sub {
  display: block;
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: var(--f-text);
  font-size: .88rem;
  color: var(--fg-2);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  letter-spacing: -0.005em;
}
.nav-link:hover { color: var(--fg); }
.nav-link::before {
  content: ">_ ";
  font-family: var(--f-mono);
  color: var(--acid);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
  display: inline-block;
}
.nav-link:hover::before { opacity: 1; transform: translateX(0); }

.nav-cta {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--acid);
  color: var(--bg-0);
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 0 0 1px var(--acid), 0 0 24px -4px var(--acid-glow);
}
.nav-cta:hover {
  color: var(--bg-0);
  background: #fff;
  box-shadow: 0 0 0 1px #fff, 0 0 40px -4px rgba(255,255,255,.7);
}

@media (max-width: 880px) {
  .nav { gap: 18px; }
  .nav-link.hide-sm { display: none; }
  .brand-sub { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-text);
  font-weight: 500;
  font-size: .94rem;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg, .btn.big {
  padding: 16px 28px;
  font-size: 1rem;
}
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn-block { width: 100%; }

.btn-primary, .btn.primary {
  background: var(--acid);
  color: var(--bg-0);
  border-color: var(--acid);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--acid), 0 12px 28px -8px var(--acid-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover, .btn.primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg-0);
  box-shadow: 0 0 0 1px #fff, 0 16px 32px -6px rgba(255,255,255,.55), 0 0 50px -10px var(--acid-glow);
}
.btn-primary:disabled, .btn.primary:disabled {
  background: var(--bg-3); color: var(--fg-dim); border-color: var(--bg-3); box-shadow: none; cursor: not-allowed;
}

.btn-ghost, .btn-outline, .btn.ghost {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.02);
  color: var(--fg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover, .btn-outline:hover, .btn.ghost:hover {
  border-color: var(--acid);
  background: rgba(122,255,158,.08);
  color: var(--fg);
  box-shadow: 0 0 30px -8px var(--acid-glow);
}

.btn-ink {
  background: var(--fg);
  color: var(--bg-0);
  border-color: var(--fg);
  font-weight: 600;
}
.btn-ink:hover { background: var(--acid); border-color: var(--acid); color: var(--bg-0); }

/* arrow detalle */
.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,255,158,.18) 0%, transparent 60%);
  pointer-events: none;
  top: -100px;
  left: 50%;
  transform: translate(-50%, 0);
  filter: blur(40px);
  z-index: 0;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.hero-inner { position: relative; z-index: 1; }

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--fg-dim);
  letter-spacing: .12em;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(15,15,30,.6);
  margin-bottom: 32px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-meta .ok {
  color: var(--acid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta .ok::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid-glow);
  animation: blink 1.4s ease-in-out infinite;
}

.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 7.4vw + .4rem, 7rem);
  line-height: .98;
  letter-spacing: -0.05em;
  font-weight: 600;
  font-variation-settings: "wdth" 95, "opsz" 14;
  margin: 0 0 28px;
  color: var(--fg);
  max-width: 14ch;
}
.hero-headline .grad {
  background: linear-gradient(120deg, var(--acid) 0%, var(--cyan) 30%, var(--electric) 65%, var(--magenta) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite alternate;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.hero-headline .strike {
  position: relative;
  color: var(--fg-dim);
  font-weight: 500;
}
.hero-headline .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 4px;
  background: var(--magenta);
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 0 0 18px rgba(255,61,140,.7);
}

.hero-sub {
  font-size: clamp(1.05rem, .5vw + 1rem, 1.3rem);
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 0 36px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 38px 0 0;
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--fg-dim);
  letter-spacing: .04em;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.hero-trust li::before {
  content: "✓";
  color: var(--acid);
  font-weight: 600;
}

/* Reveal escalonado */
.hero-meta, .hero-headline, .hero-sub, .hero-actions, .hero-trust, .app-window {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-meta     { animation-delay: .05s; }
.hero-headline { animation-delay: .15s; }
.hero-sub      { animation-delay: .35s; }
.hero-actions  { animation-delay: .5s; }
.hero-trust    { animation-delay: .65s; }
.app-window    { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   APP WINDOW (mockup honesto de la app de escritorio)
   ========================================================================== */
.app-stage {
  margin-top: 90px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 980px) {
  .app-stage {
    grid-template-columns: 1.55fr 1fr;
    gap: 32px;
    align-items: start;
  }
}

.app-window {
  background: linear-gradient(180deg, #161628, #0f0f20);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 80px -30px rgba(109,125,255,.4);
  position: relative;
}
.app-window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(122,255,158,.45), transparent 40%, transparent 60%, rgba(109,125,255,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .7;
}

/* Title bar al estilo Windows */
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #0a0a18;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-text);
}
.app-titlebar .app-title {
  flex: 1;
  font-size: .8rem;
  color: var(--fg-2);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.app-titlebar .app-icon {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: .62rem;
  font-weight: 700;
  color: var(--bg-0);
  flex-shrink: 0;
}
.app-controls {
  display: flex;
  gap: 0;
}
.app-control {
  width: 30px; height: 22px;
  display: grid; place-items: center;
  color: var(--fg-dim);
  font-family: var(--f-text);
  font-size: .82rem;
  border-radius: 4px;
  background: transparent;
}
.app-control.close { color: var(--fg-2); }

/* Body: sidebar + content */
.app-body {
  display: grid;
  grid-template-columns: 175px 1fr;
  min-height: 440px;
}
@media (max-width: 560px) {
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
}

.app-sidebar {
  background: #0a0a18;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-sidebar .sb-brand {
  padding: 6px 10px 4px;
  font-family: var(--f-display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.app-sidebar .sb-ver {
  padding: 0 10px 18px;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .15em;
  color: var(--fg-dim);
}
.app-sidebar .sb-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-family: var(--f-text);
  font-size: .84rem;
  color: var(--fg-2);
  cursor: default;
  transition: background .15s ease;
}
.app-sidebar .sb-btn svg { width: 15px; height: 15px; opacity: .8; }
.app-sidebar .sb-btn.active {
  background: rgba(122,255,158,.12);
  color: var(--acid);
  border: 1px solid rgba(122,255,158,.25);
}
.app-sidebar .sb-btn.active svg { opacity: 1; }
.app-sidebar .sb-spacer { flex: 1; }
.app-sidebar .sb-exit {
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--f-text);
  font-size: .78rem;
  color: var(--fg-dim);
  background: rgba(255,255,255,.04);
  text-align: center;
}

/* Banner licencia */
.app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(122,255,158,.06);
  border-bottom: 1px solid rgba(122,255,158,.18);
  font-family: var(--f-text);
  font-size: .76rem;
  color: var(--fg-2);
}
.app-banner .pill {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(122,255,158,.18);
  color: var(--acid);
  text-transform: uppercase;
}

/* Toolbar */
.app-content { padding: 18px 20px 20px; }
.app-h1 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--fg);
}
.app-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  font-family: var(--f-text);
  font-size: .76rem;
  background: var(--acid);
  color: var(--bg-0);
  font-weight: 600;
  border: 1px solid var(--acid);
  box-shadow: 0 0 14px -4px var(--acid-glow);
}
.tb-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
  font-family: var(--f-text);
  font-size: .76rem;
  color: var(--fg-2);
}
.tb-select .lbl { color: var(--fg-dim); font-size: .68rem; }
.tb-select::after {
  content: "▾";
  margin-left: 4px;
  color: var(--fg-dim);
}

/* Tabla / treeview */
.app-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
}
.app-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr .9fr 1.2fr .7fr;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--f-text);
  font-size: .8rem;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line);
}
.app-row:last-child { border-bottom: 0; }
.app-row.head {
  background: rgba(255,255,255,.03);
  color: var(--fg-dim);
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.app-row .folio {
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--fg);
  letter-spacing: .02em;
  font-feature-settings: "tnum";
}
.app-row .qty {
  font-family: var(--f-mono);
  font-feature-settings: "tnum";
  color: var(--fg);
  text-align: right;
}
.pill-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  font-weight: 500;
}
.pill-st::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-st.ok   { color: var(--acid);     background: rgba(122,255,158,.12); }
.pill-st.run  { color: var(--cyan);     background: rgba(77,217,255,.12); }
.pill-st.wait { color: var(--ochre);    background: rgba(255,184,77,.12); }

/* Reveal incremental de filas */
.app-row.data {
  opacity: 0;
  transform: translateY(6px);
  animation: rowin .55s ease forwards;
}
.app-row.data.r1 { animation-delay: 1.0s; }
.app-row.data.r2 { animation-delay: 1.4s; }
.app-row.data.r3 { animation-delay: 1.8s; }
.app-row.data.r4 { animation-delay: 2.2s; }
@keyframes rowin { to { opacity: 1; transform: translateY(0); } }

/* Status bar inferior */
.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  background: #0a0a18;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--fg-dim);
}
.app-status .right { display: flex; gap: 18px; align-items: center; }
.app-status .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acid);
}
.app-status .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid-glow);
  animation: blink 1.4s ease-in-out infinite;
}

@media (max-width: 640px) {
  .app-row { grid-template-columns: 1fr 1fr 1fr; padding: 10px 12px; }
  .app-row .col-periodo, .app-row .col-folio { display: none; }
}

/* Solo mockup (sin sidecards) */
.app-stage--solo {
  grid-template-columns: 1fr !important;
  max-width: 820px;
}

/* Inline status text (sin pills) */
.st-ok   { color: var(--acid); }
.st-run  { color: var(--cyan); }
.st-wait { color: var(--ochre); }

/* Simplified app table (4 cols) */
.app-stage--solo .app-row {
  grid-template-columns: 1.4fr 1fr 1.2fr .7fr;
}

/* Side panels del hero */
.hero-sidecards {
  display: grid;
  gap: 16px;
}
.sidecard {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-1));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.sidecard:hover {
  transform: translateY(-2px);
  border-color: var(--acid);
  box-shadow: 0 0 40px -12px var(--acid-glow);
}
.sidecard-num {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--acid);
  margin-bottom: 8px;
}
.sidecard h4 {
  font-family: var(--f-display);
  font-size: 1.08rem;
  margin: 0 0 8px;
  color: var(--fg);
  letter-spacing: -0.015em;
}
.sidecard p { color: var(--fg-2); font-size: .9rem; margin: 0; }

.sidecard.stat {
  background: linear-gradient(135deg, rgba(122,255,158,.08), rgba(109,125,255,.05));
  border-color: rgba(122,255,158,.25);
}
.sidecard .big-num {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  margin: 6px 0 2px;
  font-variation-settings: "wdth" 90, "opsz" 14;
  background: linear-gradient(120deg, var(--acid), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sidecard .label {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

/* ==========================================================================
   STATS strip (números grandes)
   ========================================================================== */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(109,125,255,.06), transparent 60%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}
@media (min-width: 780px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  position: relative;
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--line);
}
@media (max-width: 779px) {
  .stat-item + .stat-item::before { display: none; }
}
.stat-item .v {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw + .5rem, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  font-variation-settings: "wdth" 90;
  background: linear-gradient(120deg, var(--acid), var(--cyan) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-item .l {
  display: block;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ==========================================================================
   Section heading
   ========================================================================== */
.section-head {
  max-width: 720px;
  margin: 0 0 64px;
}
.section-head h2 {
  margin: 22px 0 16px;
}
.section-head h2 .grad {
  background: linear-gradient(110deg, var(--acid), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   FEATURES grid (clean cards)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 720px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}
.feature-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-1));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--acid);
  box-shadow: 0 0 40px -16px var(--acid-glow);
}
.feature-num {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--acid);
  margin-bottom: 14px;
}
.feature-card h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--fg);
}
.feature-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: .94rem;
}

/* ==========================================================================
   BENTO grid de features (legacy)
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.bento-card {
  grid-column: span 6;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-1));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--acid);
  box-shadow: 0 0 50px -16px var(--acid-glow);
}
.bento-card .glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.bento-card:hover .glow { opacity: .35; }

@media (min-width: 820px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-card.w3 { grid-column: span 3; }
  .bento-card.w4 { grid-column: span 4; }
  .bento-card.w2 { grid-column: span 2; }
}

.bento-num {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--acid);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bento-num .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid-glow);
}
.bento-card.alt .bento-num { color: var(--electric); }
.bento-card.alt .bento-num .dot { background: var(--electric); box-shadow: 0 0 10px rgba(109,125,255,.55); }
.bento-card.mag .bento-num { color: var(--magenta); }
.bento-card.mag .bento-num .dot { background: var(--magenta); box-shadow: 0 0 10px rgba(255,61,140,.55); }

.bento-card h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--fg);
}
.bento-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: .95rem;
  max-width: 50ch;
}

.bento-art {
  margin-top: auto;
  padding-top: 22px;
}
/* Mini visualizaciones tipográficas dentro de cards */
.viz-code {
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--fg-dim);
  line-height: 1.8;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  background: rgba(0,0,0,.3);
}
.viz-code .k { color: var(--magenta); }
.viz-code .v { color: var(--acid); }
.viz-code .c { color: var(--fg-mute); }
.viz-code .b { color: var(--cyan); }

.viz-bar {
  display: grid;
  gap: 8px;
}
.viz-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--fg-dim);
}
.viz-bar-row .track {
  height: 6px;
  background: rgba(255,255,255,.05);
  border-radius: 3px;
  overflow: hidden;
}
.viz-bar-row .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--acid), var(--cyan));
  border-radius: 3px;
  box-shadow: 0 0 12px var(--acid-glow);
  animation: barfill 2.5s ease-out forwards;
  width: 0;
}
.viz-bar-row .fill.b { background: linear-gradient(90deg, var(--electric), var(--cyan)); box-shadow: 0 0 12px rgba(109,125,255,.55); }
.viz-bar-row .fill.m { background: linear-gradient(90deg, var(--magenta), var(--ochre)); box-shadow: 0 0 12px rgba(255,61,140,.45); }
.viz-bar-row .fill.f100 { --w: 100%; }
.viz-bar-row .fill.f78  { --w: 78%; }
.viz-bar-row .fill.f64  { --w: 64%; }
.viz-bar-row .fill.f42  { --w: 42%; }
@keyframes barfill { to { width: var(--w, 100%); } }
.viz-bar-row .val {
  text-align: right;
  color: var(--acid);
  font-feature-settings: "tnum";
}

/* Chips estilo UI (filtros visuales) */
.chip-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0,0,0,.3);
}
.chip {
  font-family: var(--f-text);
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  color: var(--fg-2);
}
.chip.on {
  background: rgba(122,255,158,.12);
  border-color: rgba(122,255,158,.4);
  color: var(--acid);
}

/* Status grid (panel de estado de la app) */
.status-grid {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0,0,0,.3);
}
.st-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-text);
  font-size: .82rem;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
}
.st-row:last-child { border-bottom: 0; }
.st-row .lbl { color: var(--fg-dim); }
.st-row .val {
  font-family: var(--f-mono);
  font-size: .75rem;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.st-row .val.on { color: var(--acid); }
.st-row .val.on::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid-glow);
}

.viz-fiel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0,0,0,.3);
}
.viz-fiel .key {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  display: grid; place-items: center;
  color: var(--bg-0);
  font-weight: 700;
  font-family: var(--f-mono);
  font-size: 1rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 20px var(--acid-glow);
}
.viz-fiel .meta { font-family: var(--f-mono); font-size: .76rem; color: var(--fg-dim); line-height: 1.6; }
.viz-fiel .meta strong { color: var(--fg); display: block; font-weight: 600; }

.viz-pulse {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
}
.viz-pulse span {
  width: 6px;
  background: var(--acid);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--acid-glow);
  animation: pulseBar 1.6s ease-in-out infinite;
}
.viz-pulse span:nth-child(2)  { animation-delay: .1s; background: var(--cyan); box-shadow: 0 0 8px rgba(77,217,255,.6); }
.viz-pulse span:nth-child(3)  { animation-delay: .2s; background: var(--electric); box-shadow: 0 0 8px rgba(109,125,255,.6); }
.viz-pulse span:nth-child(4)  { animation-delay: .3s; background: var(--magenta); box-shadow: 0 0 8px rgba(255,61,140,.5); }
.viz-pulse span:nth-child(5)  { animation-delay: .4s; background: var(--ochre); box-shadow: 0 0 8px rgba(255,184,77,.5); }
.viz-pulse span:nth-child(6)  { animation-delay: .5s; }
.viz-pulse span:nth-child(7)  { animation-delay: .6s; background: var(--cyan); }
.viz-pulse span:nth-child(8)  { animation-delay: .7s; background: var(--electric); }
.viz-pulse span:nth-child(9)  { animation-delay: .8s; }
.viz-pulse span:nth-child(10) { animation-delay: .9s; }
.viz-pulse span:nth-child(11) { animation-delay: 1.0s; background: var(--cyan); }
.viz-pulse span:nth-child(12) { animation-delay: 1.1s; }
.viz-pulse span:nth-child(13) { animation-delay: 1.2s; background: var(--electric); }
.viz-pulse span:nth-child(14) { animation-delay: 1.3s; }
@keyframes pulseBar {
  0%, 100% { height: 22%; }
  50%      { height: 100%; }
}

.viz-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.viz-cal i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255,255,255,.04);
  display: block;
}
.viz-cal i.f1 { background: rgba(122,255,158,.25); }
.viz-cal i.f2 { background: rgba(122,255,158,.5);  }
.viz-cal i.f3 { background: rgba(122,255,158,.8); box-shadow: 0 0 8px var(--acid-glow); }

/* ==========================================================================
   METHOD — flow diagrama
   ========================================================================== */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
@media (min-width: 880px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .flow::before {
    content: "";
    position: absolute;
    top: 52px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--acid) 20%, var(--cyan) 50%, var(--electric) 80%, transparent);
    opacity: .55;
    animation: line 4s ease-in-out infinite alternate;
  }
}
@keyframes line {
  0%   { opacity: .35; }
  100% { opacity: .8; }
}

.flow-step {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-1));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  position: relative;
  z-index: 1;
}
.flow-step:hover {
  border-color: var(--acid);
  box-shadow: 0 0 40px -16px var(--acid-glow);
}
.flow-num {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-3));
  border: 1px solid var(--acid);
  color: var(--acid);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 22px;
  box-shadow: 0 0 0 1px rgba(122,255,158,.15), 0 0 20px -4px var(--acid-glow);
}
.flow-step:nth-child(2) .flow-num { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 0 1px rgba(77,217,255,.15), 0 0 20px -4px rgba(77,217,255,.55); }
.flow-step:nth-child(3) .flow-num { border-color: var(--electric); color: var(--electric); box-shadow: 0 0 0 1px rgba(109,125,255,.15), 0 0 20px -4px rgba(109,125,255,.55); }

.flow-step h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}
.flow-step p { margin: 0; font-size: .95rem; color: var(--fg-2); }
.flow-step .meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ==========================================================================
   COMPARATIVA
   ========================================================================== */
.versus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 56px;
}
@media (min-width: 880px) { .versus { grid-template-columns: 1fr 1fr; gap: 20px; } }

.vs-col {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-1));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 32px 30px;
}
.vs-col.win {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(122,255,158,.08), transparent 60%),
    linear-gradient(180deg, var(--bg-card), var(--bg-1));
  border-color: rgba(122,255,158,.35);
  box-shadow: 0 0 60px -20px var(--acid-glow);
}
.vs-col h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.vs-col .badge {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
}
.vs-col.win .badge { color: var(--acid); border-color: rgba(122,255,158,.4); }
.vs-list { list-style: none; padding: 0; margin: 0; }
.vs-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  color: var(--fg-2);
  font-size: .96rem;
}
.vs-list li:last-child { border-bottom: 0; }
.vs-list.bad li::before {
  content: "✕";
  position: absolute;
  left: 0; top: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,61,140,.12);
  color: var(--magenta);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: .76rem;
  font-weight: 600;
}
.vs-list.good li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(122,255,158,.15);
  color: var(--acid);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: .76rem;
  font-weight: 600;
  box-shadow: 0 0 8px var(--acid-glow);
}

/* ==========================================================================
   PRICING — holografía sutil
   ========================================================================== */
.price-stage {
  margin-top: 64px;
  display: grid;
  place-items: center;
}
.price-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-1));
  border-radius: var(--r-xl);
  padding: 36px 36px 34px;
  text-align: center;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  isolation: isolate;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--r-xl);
  background:
    conic-gradient(from 0deg, var(--acid), var(--cyan), var(--electric), var(--magenta), var(--ochre), var(--acid));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin 10s linear infinite;
  z-index: -1;
}
.price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(122,255,158,.15), transparent 50%);
  pointer-events: none;
  z-index: -1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.price-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(122,255,158,.1);
  border: 1px solid rgba(122,255,158,.3);
  color: var(--acid);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.price-title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--fg);
}
.price-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 10px;
}
.price-amount .c {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--fg-2);
}
.price-amount .n {
  font-family: var(--f-display);
  font-size: clamp(4.5rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variation-settings: "wdth" 85, "opsz" 14;
  background: linear-gradient(120deg, var(--acid), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-amount .u {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.price-sub {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 26px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  text-align: left;
}
.price-list li {
  padding: 11px 0 11px 30px;
  position: relative;
  font-size: .94rem;
  color: var(--fg-2);
  border-top: 1px solid var(--line);
}
.price-list li:first-child { border-top: 0; }
.price-list li::before {
  content: "→";
  position: absolute;
  left: 0; top: 11px;
  color: var(--acid);
  font-family: var(--f-mono);
  font-weight: 600;
}
.price-foot {
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.faq-row {
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.faq-row[open] {
  background: linear-gradient(180deg, rgba(122,255,158,.04), transparent);
}
.faq-row summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 80px 1fr 28px;
  align-items: baseline;
  gap: 18px;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, .5vw + 1rem, 1.4rem);
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row .num {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--acid);
}
.faq-row .sign {
  font-family: var(--f-mono);
  color: var(--fg-dim);
  text-align: center;
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform .25s ease, color .2s ease;
  line-height: 1;
}
.faq-row[open] .sign { transform: rotate(45deg); color: var(--acid); }
.faq-row .body {
  padding: 0 28px 28px 98px;
  color: var(--fg-2);
  max-width: 70ch;
}
.faq-row .body p { color: var(--fg-2); }
.faq-row .body p:last-child { margin-bottom: 0; }
@media (max-width: 620px) {
  .faq-row summary { grid-template-columns: 56px 1fr 22px; gap: 12px; }
  .faq-row .body { padding-left: 68px; }
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.coda {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
}
.coda::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 100%, rgba(122,255,158,.18), transparent 60%),
    radial-gradient(700px 400px at 20% 0%, rgba(109,125,255,.16), transparent 60%),
    radial-gradient(600px 400px at 85% 0%, rgba(255,61,140,.1), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}
.coda-inner { position: relative; }
.coda h2 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5vw + 1rem, 5.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0 auto 28px;
  max-width: 14ch;
  font-weight: 600;
}
.coda h2 .grad {
  background: linear-gradient(120deg, var(--acid) 0%, var(--cyan) 50%, var(--electric) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.coda p {
  color: var(--fg-2);
  max-width: 50ch;
  margin: 0 auto 36px;
  font-size: 1.15rem;
}
.coda .hero-actions { justify-content: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.colophon {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  color: var(--fg-2);
}
.col-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .col-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .col-grid { grid-template-columns: 1fr; gap: 28px; } }
.col-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
  text-decoration: none;
}
.col-tag { color: var(--fg-dim); max-width: 36ch; font-size: .92rem; }
.col-col h5 {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 16px;
  font-weight: 500;
}
.col-col ul { list-style: none; padding: 0; margin: 0; }
.col-col li { margin-bottom: 10px; }
.col-col a {
  color: var(--fg-2);
  font-size: .92rem;
  text-decoration: none;
  transition: color .15s ease;
}
.col-col a:hover { color: var(--acid); }

.col-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.col-bottom .flag {
  display: inline-block;
  width: 20px; height: 13px;
  border-radius: 1px;
  background: linear-gradient(to right, #006847 33.3%, #eeeefa 33.3% 66.6%, #ce1126 66.6%);
  vertical-align: middle;
  margin-right: 6px;
}

/* ==========================================================================
   FORMS / inputs
   ========================================================================== */
input, textarea {
  font-family: var(--f-text);
  font-size: 1rem;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--fg);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(122,255,158,.18);
}

.alerta {
  background: rgba(255,184,77,.08);
  border: 1px solid rgba(255,184,77,.3);
  border-left: 3px solid var(--ochre);
  padding: 18px 22px;
  border-radius: var(--r-md);
  color: var(--fg-2);
  font-size: .96rem;
}
.alerta strong { color: var(--fg); }
.alerta a { color: var(--ochre); text-decoration: underline; }

/* steps numerados (páginas internas) */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.steps li {
  counter-increment: step;
  padding: 18px 18px 18px 64px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--fg-2);
  margin-bottom: 12px;
  transition: border-color .2s ease;
}
.steps li:hover { border-color: var(--acid); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px; top: 18px;
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--acid);
  font-weight: 600;
  letter-spacing: .04em;
}
.steps li strong { color: var(--fg); }

.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(122,255,158,.15);
  color: var(--acid);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: .76rem;
  font-weight: 600;
}

/* compat con precio-box viejo */
.precio-box {
  text-align: center;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  margin: 32px 0;
}
.precio {
  font-family: var(--f-display);
  font-size: 3.6rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  background: linear-gradient(120deg, var(--acid), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.precio .moneda {
  font-family: var(--f-mono);
  font-size: .9rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-left: 8px;
  background: none;
  -webkit-text-fill-color: var(--fg-dim);
}

/* faq-item legacy */
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item h3 { color: var(--fg); margin: 0 0 10px; font-size: 1.2rem; }

/* Marquee de logos / tech */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 28s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: .8rem;
  color: var(--fg-dim);
  letter-spacing: .12em;
  white-space: nowrap;
}
.marquee-item .dot { color: var(--acid); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Scroll-driven reveals (gracias degradación si no se soporta)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: reveal-in linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 30%;
}
@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}
@supports not (animation-timeline: view()) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-meta, .hero-headline, .hero-sub, .hero-actions, .hero-trust, .app-window,
  .app-row.data, .reveal { opacity: 1; transform: none; }
}
