/* ==========================================================================
   base.css — sistema visual "studio oscuro editorial" (estructura medida en
   velorn.framer.website) con el acento lima de einova.media en lugar del rojo.
   CSS propio; sin archivos, textos ni imagenes de terceros.
   Fuentes: Inter + IBM Plex Mono (Google Fonts, licencia OFL).
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Fondo y superficies (Velorn) */
  --bg: #000000;
  --surface-1: #070707;
  --surface-2: #0d0d0d;
  --surface-3: #121111;
  --surface-4: #1b1b1b;
  --paper: #fefefe;
  --paper-2: #efefed;

  /* Texto (Velorn) */
  --ink: #fefefe;
  --ink-soft: rgba(255, 255, 255, .8);
  --ink-muted: rgba(255, 255, 255, .6);
  --ink-on-paper: #000000;
  --ink-on-paper-muted: #656562;
  --grey-1: #d8d8d5;
  --grey-2: #8f8f8d;
  --grey-3: #696969;

  /* Lineas (Velorn: #ffffff29) */
  --line: rgba(255, 255, 255, .16);
  --line-on-paper: rgba(0, 0, 0, .1);
  --line-on-accent: rgba(7, 7, 7, .22);

  /* Acento: lima de Einova (#C6FF33) sustituye al rojo de Velorn (#FC201F) */
  --accent: #c6ff33;
  --accent-rgb: 198, 255, 51;
  --accent-dim: #8fb925;            /* derivado: sustituye al rojo oscuro #B00806 */
  --on-accent: #0a0a0a;             /* texto sobre lima (Einova) 16.6:1 */
  --on-accent-muted: rgba(10, 10, 10, .72);
  --accent-glow: rgba(var(--accent-rgb), .22);
  --accent-wash: rgba(var(--accent-rgb), .06);
  --accent-border: rgba(var(--accent-rgb), .55);
  --accent-on-paper: #3d5200;       /* derivado: lima oscurecida para texto sobre papel, 8.6:1 */

  /* Tipografia */
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-display: 58px;   --lh-display: .98;   --ls-display: -.065em;
  --fs-title: 42px;     --lh-title: 1.08;    --ls-title: -.065em;
  --fs-statement: 47px; --lh-statement: 1;   --ls-statement: -.045em;
  --fs-h3: 38px;        --lh-h3: 1.02;       --ls-h3: -.045em;
  --fs-lead: 19px;      --lh-lead: 1.3;      --ls-lead: -.045em;
  --fs-body: 16px;      --lh-body: 1.5;      --ls-body: -.025em;
  --fs-price: 48px;
  --fs-mono: 12px;      --lh-mono: 18px;
  --fs-mono-s: 11px;

  /* Reticula y espaciado */
  --container: 1600px;
  --gutter: 12px;
  --section-y: 64px;
  --grid-gap: 12px;
  --nav-h: 84px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 40px; --s-8: 48px; --s-9: 64px; --s-10: 96px;

  /* Radios: el sistema es de esquinas vivas */
  --r-0: 0px;
  --r-panel: 8px;
  --r-pill: 100px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-page: cubic-bezier(.45, 0, 0, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --t-reveal: .85s;
  --t-hover: .5s;
  --t-color: .3s;
  --t-fill: .35s;
  --reveal-y: 24px;
}
@media (min-width: 810px) {
  :root {
    --fs-display: 100px; --fs-title: 72px; --lh-title: 1.05; --fs-statement: 68px;
    --fs-lead: 18px; --gutter: 24px; --section-y: 80px; --grid-gap: 16px;
  }
}
@media (min-width: 1200px) { :root { --section-y: 96px; } }
@media (min-width: 1440px) {
  :root { --fs-display: 132px; --fs-title: 96px; --fs-statement: 80px; --fs-lead: 23px; }
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-sans);
  letter-spacing: var(--ls-body);
  font-feature-settings: "cv03", "cv04", "cv09", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--on-accent); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; font-size: inherit; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-accent :focus-visible, .on-paper :focus-visible { outline-color: var(--on-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Grano animado sobre toda la pagina */
body::after {
  content: ""; position: fixed; inset: -32px; z-index: 2147483647; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' viewBox='0 0 192 192'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 496px 496px; opacity: .08;
  animation: grain .333s steps(1, end) infinite; will-change: transform;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  12.5% { transform: translate(-19px, 13px); }
  25% { transform: translate(11px, -23px); }
  37.5% { transform: translate(-27px, -9px); }
  50% { transform: translate(23px, 19px); }
  62.5% { transform: translate(-7px, 29px); }
  75% { transform: translate(29px, -17px); }
  87.5% { transform: translate(-13px, -27px); }
}

/* 3. TIPOGRAFIA ------------------------------------------------------------ */
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: 400; overflow-wrap: break-word; }
.t-title { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--ls-title); font-weight: 400; overflow-wrap: break-word; }
.t-statement { font-size: var(--fs-statement); line-height: var(--lh-statement); letter-spacing: var(--ls-statement); font-weight: 400; }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 400; }
.t-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); }
.t-mono { font: 400 var(--fs-mono)/var(--lh-mono) var(--font-mono); letter-spacing: 0; text-transform: uppercase; }
.t-mono-s { font: 400 var(--fs-mono-s)/1.15 var(--font-mono); letter-spacing: 0; text-transform: uppercase; }
.t-muted { color: var(--ink-muted); }
.t-accent { color: var(--accent); }
.t-center { text-align: center; }
.measure { max-width: 46ch; }
.measure-wide { max-width: 1000px; }

/* 4. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
@media (min-width: 810px) { .section-head { margin-bottom: 60px; } }
.stack { display: grid; gap: var(--s-5); }
.stack-s { display: grid; gap: var(--s-3); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; }
.split { display: grid; gap: var(--s-7); }
@media (min-width: 810px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-9); align-items: end; } }
.grid { display: grid; gap: var(--grid-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 810px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Seccion invertida: el fondo pasa a acento */
.on-accent { background: var(--accent); color: var(--on-accent); --line: var(--line-on-accent); --ink-muted: var(--on-accent-muted); }
.on-paper { background: var(--paper); color: var(--ink-on-paper); --line: var(--line-on-paper); --ink-muted: var(--ink-on-paper-muted); }
.on-accent .t-accent, .on-accent .label-glyph { color: var(--on-accent); }
.on-paper .t-accent, .on-paper .label-glyph { color: var(--accent-on-paper); }

/* 5. COMPONENTES ----------------------------------------------------------- */

/* 5.1 Etiqueta de seccion: "01 / THE STUDIO" + glifo en acento */
.label { display: inline-flex; gap: var(--s-3); align-items: center; font: 400 var(--fs-mono)/var(--lh-mono) var(--font-mono); text-transform: uppercase; letter-spacing: 0; }
.label-glyph { color: var(--accent); }
.label-glyph::before { content: ""; display: inline-block; width: 7px; height: 7px; background: currentColor; margin-right: 6px; }

/* 5.2 Navegacion fija */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: 20px 20px 20px var(--gutter); transition: background-color .4s, backdrop-filter .4s; }
.nav.is-scrolled { background: rgba(0, 0, 0, .68); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: -.045em; }
.brand-mark { width: 18px; height: 18px; background: var(--ink); clip-path: polygon(0 0, 62% 0, 62% 38%, 100% 38%, 100% 100%, 38% 100%, 38% 62%, 0 62%); }
.brand sup { color: var(--accent); font: 400 9px/1 var(--font-mono); margin-left: 2px; }
.nav-links { display: none; gap: var(--s-6); }
@media (min-width: 810px) { .nav-links { display: flex; } }
.nav-link { font: 400 var(--fs-mono)/32px var(--font-mono); text-transform: uppercase; height: 32px; overflow: hidden; display: block; }
.nav-link > span { display: block; text-shadow: 0 32px currentColor; transition: transform .6s var(--ease), color var(--t-color); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:is(:hover, :focus-visible) > span { transform: translateY(-32px); color: var(--accent); }
}
.nav-actions { display: flex; align-items: center; gap: var(--s-3); }

/* 5.3 Botones */
/* Pildora (boton de menu de Velorn) */
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 17px; border: 1px solid var(--ink); border-radius: var(--r-pill); font: 400 var(--fs-mono)/var(--lh-mono) var(--font-mono); text-transform: uppercase; color: var(--ink); background: transparent; transition: background-color .4s, color .4s, border-color .4s; white-space: nowrap; }
.btn-pill.is-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .btn-pill:is(:hover, :focus-visible) { background: #000; color: var(--accent); border-color: var(--accent); }
}
.burger { width: 16px; height: 7px; border-block: 1px solid currentColor; }

/* Primario: bloque solido de esquinas vivas (superficie de boton de plan) */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s-6); min-height: 68px; min-width: min(100%, 260px); padding: 8px 24px; background: var(--accent); color: var(--on-accent); font: 500 var(--fs-mono)/var(--lh-mono) var(--font-mono); text-transform: uppercase; border-radius: var(--r-0); box-shadow: 0 0 40px var(--accent-glow); overflow: hidden; isolation: isolate; transition: color var(--t-fill), box-shadow var(--t-fill); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: translateY(101%); transition: transform var(--t-hover) var(--ease); }
.btn-paper { background: var(--paper); color: var(--ink-on-paper); box-shadow: none; }
.btn-paper::before { background: var(--accent); }
.btn-ink { background: #000; color: var(--ink); box-shadow: none; }
.btn-ink::before { background: var(--paper); }
.btn-block { display: flex; width: 100%; }
.btn-s { min-height: 52px; }
@media (hover: hover) and (pointer: fine) {
  .btn:is(:hover, :focus-visible)::before { transform: none; }
  .btn-ink:is(:hover, :focus-visible) { color: var(--ink-on-paper); }
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: .35; pointer-events: none; box-shadow: none; }

/* Secundario: enlace con subrayado (accion principal de Velorn) */
.btn-line { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s-6); min-height: 44px; min-width: min(100%, 240px); padding: 12px 0; font: 400 var(--fs-mono)/var(--lh-mono) var(--font-mono); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.btn-line::before { content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-hover) var(--ease); }
.btn-line .roll, .btn-line { transition: color var(--t-color); }
@media (hover: hover) and (pointer: fine) {
  .btn-line:is(:hover, :focus-visible)::before { transform: scaleX(1); }
  .btn-line:is(:hover, :focus-visible) { color: var(--accent); }
}
.on-accent .btn-line::before, .on-paper .btn-line::before { background: currentColor; }
.on-accent .btn-line:is(:hover, :focus-visible), .on-paper .btn-line:is(:hover, :focus-visible) { color: inherit; }

/* Flecha que rueda en diagonal (dos copias, mascara de 24px) */
.arrow { position: relative; flex: none; width: 24px; height: 24px; overflow: hidden; }
.arrow::before, .arrow::after { content: ""; position: absolute; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--i-arrow) center / 12px no-repeat; mask: var(--i-arrow) center / 12px no-repeat; transition: transform var(--t-hover) var(--ease); }
.arrow::before { left: 0; top: 0; }
.arrow::after { left: -24px; top: 24px; }
.arrow-down { transform: rotate(135deg); }
:root { --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M3.5 2H10v6.5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
        --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.5 4.5 9.5 10.5 2.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E"); }
@media (hover: hover) and (pointer: fine) {
  :is(a, button):is(:hover, :focus-visible) > .arrow::before,
  :is(a, button):is(:hover, :focus-visible) > .arrow::after { transform: translate(24px, -24px); }
}

/* Letras que ruedan (motion.js divide [data-roll] en .roll-letter) */
.roll { display: inline-flex; white-space: pre; }
.roll-letter { display: inline-block; height: var(--lh-mono); overflow: hidden; vertical-align: top; }
.roll-track { display: block; transition: transform .38s var(--ease); transition-delay: calc(var(--i, 0) * var(--roll-step, 22ms)); }
.roll-track > span { display: block; height: var(--lh-mono); line-height: var(--lh-mono); }
@media (hover: hover) and (pointer: fine) {
  :is(a, button):is(:hover, :focus-visible) .roll-track { transform: translateY(-50%); }
}

/* 5.4 Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-8); padding: 160px var(--gutter) 32px; max-width: var(--container); margin-inline: auto; isolation: isolate; overflow-x: clip; }
.hero-body { display: grid; gap: var(--s-5); max-width: 1000px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-3); }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); }
.scroll-hint { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--ink-muted); }
.scroll-hint .arrow::before { animation: hint 2.4s var(--ease) infinite; }
@keyframes hint { 0%, 55% { transform: none; } 80% { transform: translate(24px, -24px); opacity: 0; } 81% { transform: translate(-24px, 24px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.hero-note { display: none; align-items: center; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); color: var(--ink-soft); }
@media (min-width: 810px) { .hero-note { display: inline-flex; } }

/* Fondo: brillo de acento que sangra desde la esquina + forma abstracta */
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow::before { content: ""; position: absolute; right: -20%; bottom: -35%; width: 90%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .5), rgba(var(--accent-rgb), .16) 45%, transparent 72%); filter: blur(20px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12) translate(-3%, -2%); opacity: .8; } }
.glow-center::before { right: 10%; bottom: -70%; width: 80%; opacity: .45; animation: none; }
.shape { position: absolute; right: 6%; top: 16%; width: min(46vw, 620px); aspect-ratio: 1; z-index: -1; pointer-events: none; opacity: .9; }
.shape i { position: absolute; inset: 14%; border-radius: 28%; background: linear-gradient(145deg, #2a2a2a, #050505 62%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset -18px -18px 40px rgba(var(--accent-rgb), .28), 0 30px 80px rgba(0, 0, 0, .8); }
.shape i:nth-child(1) { transform: translate(-16%, -12%) rotate(18deg) skew(-8deg); }
.shape i:nth-child(2) { transform: translate(14%, 12%) rotate(18deg) skew(-8deg); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35), inset 18px 18px 50px rgba(var(--accent-rgb), .22), 0 30px 80px rgba(0, 0, 0, .8); }
@media (max-width: 809px) { .shape { right: -18%; top: 10%; width: 78vw; opacity: .5; } }

/* 5.5 Tarjeta (tile) */
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7); min-height: 300px; padding: var(--s-5); background: var(--surface-3); color: var(--ink); overflow: hidden; isolation: isolate; }
@media (min-width: 810px) { .tile { min-height: 376px; padding: 28px; } }
.tile-dark { background: var(--surface-2); }
.tile-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.tile.on-accent { background: var(--accent); color: var(--on-accent); }
.tile.on-paper { background: var(--paper); color: var(--ink-on-paper); }
.tile-value { font-size: 72px; line-height: 1; letter-spacing: -.065em; }
.tile-top { display: flex; justify-content: space-between; gap: var(--s-4); }
/* velo + flecha al pasar el cursor (tarjeta enlazable) */
a.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-wash); opacity: 0; transition: opacity 420ms var(--ease); }
a.tile .tile-go { opacity: 0; transition: opacity 420ms var(--ease); }
@media (hover: hover) and (pointer: fine) { a.tile:is(:hover, :focus-visible)::after, a.tile:is(:hover, :focus-visible) .tile-go { opacity: 1; } }
/* Grafico de foco: cuadrados concentricos que giran */
.focus-art { position: relative; width: 96px; height: 96px; flex: none; }
.focus-art i { position: absolute; inset: calc(var(--n) * 11px); border: 1.5px solid currentColor; border-radius: 2px; animation: focus 6s ease-in-out infinite; animation-delay: calc(var(--n) * .18s); opacity: .25; }
@keyframes focus { 0% { transform: rotate(0); opacity: .25; } 33% { transform: rotate(90deg); opacity: 1; } 66% { transform: rotate(90deg); opacity: .5; } 100% { transform: rotate(0); opacity: .25; } }
.signal-art { display: flex; gap: 8px; align-items: center; height: 48px; }
.signal-art i { width: 8px; height: 100%; background: var(--accent); animation: signal 1.6s steps(2, end) infinite; animation-delay: calc(var(--n) * .12s); }
@keyframes signal { 50% { opacity: .2; } }

/* 5.6 Badge / etiqueta */
.badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); font: 400 var(--fs-mono-s)/1 var(--font-mono); text-transform: uppercase; white-space: nowrap; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); } }
.badge-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.badge-outline { border-color: var(--accent-border); color: var(--accent); }
.on-accent .badge, .on-paper .badge { border-color: currentColor; }
.on-accent .badge-dot::before, .on-paper .badge-dot::before { background: currentColor; animation: none; }

/* 5.7 Lista con check */
.checklist { display: grid; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); align-items: start; padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.3; letter-spacing: -.045em; }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; background: var(--accent); -webkit-mask: var(--i-check) center / 12px no-repeat; mask: var(--i-check) center / 12px no-repeat; }
.on-accent .checklist li::before, .on-paper .checklist li::before { background: currentColor; }
.checklist li.is-off { color: var(--ink-muted); }
.checklist li.is-off::before { -webkit-mask: none; mask: none; height: 1px; width: 10px; margin: 11px 5px 0; background: currentColor; }

/* Especificacion: etiqueta mono + valor (detalle de plan) */
.spec { display: grid; gap: 8px; padding: 10px 0; }
.spec dt { font: 400 var(--fs-mono-s)/1.15 var(--font-mono); text-transform: uppercase; color: var(--ink-muted); }
.spec dd { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.045em; }

/* 5.8 Filas grandes (servicios) */
.rows { border-top: 1px solid var(--line); }
.rows-item { display: flex; align-items: baseline; justify-content: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: color var(--t-color), padding-left var(--t-hover) var(--ease); }
.rows-item small { font: 400 var(--fs-mono-s)/1 var(--font-mono); color: var(--ink-muted); width: 28px; }
@media (hover: hover) and (pointer: fine) { .rows-item:hover { color: var(--accent); } .on-accent .rows-item:hover { color: inherit; opacity: .6; } }

/* 5.9 FAQ acordeon */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--s-5); padding: 24px 0; text-align: left; font-size: clamp(20px, 2.4vw, 38px); line-height: 1.1; letter-spacing: -.045em; transition: color var(--t-color); }
.faq-q small { font: 400 var(--fs-mono-s)/1 var(--font-mono); color: var(--ink-muted); margin-right: var(--s-4); letter-spacing: 0; }
.faq-q > span:first-child { display: flex; align-items: baseline; }
.plus { position: relative; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: background-color var(--t-fill), border-color var(--t-fill), color var(--t-fill), transform .4s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin: -.5px 0 0 -6px; background: currentColor; transition: transform .4s cubic-bezier(.34, 1.36, .64, 1); }
.plus::after { transform: rotate(90deg); }
.faq-item.is-open .plus { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(180deg); }
.faq-item.is-open .plus::after { transform: rotate(0); }
@media (hover: hover) and (pointer: fine) { .faq-q:hover { color: var(--accent); } }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { max-width: 62ch; padding: 0 0 28px; color: var(--ink-muted); font-size: 18px; line-height: 1.4; letter-spacing: -.035em; opacity: 0; transform: translateY(12px); transition: opacity .45s .1s, transform .45s .1s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; }

/* 5.10 Precio */
.switch { display: inline-flex; align-items: center; gap: var(--s-3); text-align: left; font-size: 14px; letter-spacing: 0; }
.switch-track { flex: none; width: 46px; height: 26px; padding: 3px; border-radius: 30px; background: rgba(128, 128, 128, .3); transition: background .3s; }
.switch-thumb { display: block; width: 20px; height: 20px; border-radius: 20px; background: var(--paper); transition: transform .4s var(--ease), background .3s; }
.switch small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-muted); transition: color .3s; }
.switch[aria-checked="true"] .switch-track { background: var(--accent); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(20px); background: var(--on-accent); }
.switch[aria-checked="true"] small { color: var(--accent); }
.plans { display: grid; gap: var(--grid-gap); align-items: start; }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } .plan { margin-top: 40px; } .plan.is-featured { margin-top: 0; } }
.plan { display: flex; flex-direction: column; gap: var(--s-5); padding: 32px 24px 24px; background: var(--bg); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.plan.is-featured { background: var(--accent); color: var(--on-accent); border-top-color: transparent; --line: var(--line-on-accent); --ink-muted: var(--on-accent-muted); padding-bottom: 40px; }
.plan-name { font-size: var(--fs-h3); line-height: 1.02; letter-spacing: -.045em; }
.price { font-size: var(--fs-price); line-height: 1.1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.price-unit { font: 400 var(--fs-mono-s)/1.15 var(--font-mono); text-transform: uppercase; margin-top: 8px; height: 22px; display: flex; gap: var(--s-3); align-items: center; }
.price-was { text-decoration: line-through; opacity: .6; }
.plan .spec { border-top: 1px solid var(--line); }
.plan-cta { margin-top: auto; padding-top: var(--s-4); }
.price-block { display: grid; gap: var(--s-6); padding: var(--s-6) var(--s-5); border: 1px solid var(--line); background: var(--surface-1); max-width: 560px; }
.price-block .price { font-size: clamp(64px, 9vw, 120px); line-height: .98; letter-spacing: -.065em; }

/* 5.11 Marquesina de palabras gigantes */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); font-size: clamp(80px, 18vw, 280px); line-height: 1; letter-spacing: -.065em; }
.marquee-s { font-size: var(--fs-title); }
.marquee-track { display: flex; width: max-content; transform: translateX(-25%); animation: marquee 32s linear infinite; animation-play-state: paused; will-change: transform; }
.marquee.is-visible .marquee-track { animation-play-state: running; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span { white-space: nowrap; }
.marquee-group i { width: .13em; height: .13em; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin: 0 .24em; }
.on-accent .marquee-group i { background: currentColor; }
@keyframes marquee { from { transform: translateX(-25%); } to { transform: translateX(-75%); } }

/* 5.12 Bloque visual (sustituye a fotografias): gradiente + zoom de asentado */
.media { position: relative; overflow: hidden; background: var(--surface-4); aspect-ratio: 4 / 3; }
.media-fill { position: absolute; inset: -8% 0; background:
    radial-gradient(60% 80% at 78% 30%, rgba(var(--accent-rgb), .85), transparent 60%),
    radial-gradient(70% 70% at 20% 90%, rgba(var(--accent-rgb), .28), transparent 65%),
    linear-gradient(160deg, #1b1b1b, #000 70%); will-change: transform; }
.media-par { position: absolute; inset: -10% 0; will-change: transform; }
.media-par .media-fill { inset: 0; }
.media-caption { position: absolute; left: var(--s-5); right: var(--s-5); bottom: var(--s-5); z-index: 1; font-size: var(--fs-h3); line-height: 1.02; letter-spacing: -.045em; }
.media-tag { position: absolute; left: var(--s-5); top: var(--s-5); z-index: 1; }

/* 5.13 Footer */
.footer { padding: 48px var(--gutter) 0; max-width: var(--container); margin-inline: auto; display: grid; gap: 36px; border-top: 1px solid var(--line); overflow: hidden; }
.wordmark { font-size: clamp(72px, 24.5vw, 400px); line-height: .82; letter-spacing: -.065em; white-space: nowrap; overflow: hidden; padding-bottom: .08em; }
.wordmark sup { font-size: .16em; color: var(--accent); vertical-align: top; letter-spacing: 0; margin-left: .1em; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer-links .btn-line { min-width: 160px; }
.footer-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding: 28px 0; border-top: 1px solid var(--line); color: var(--ink-muted); }

/* 5.14 Quiz (microaplicacion tipo Typeform) */
.quiz { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter); position: relative; isolation: isolate; }
.quiz-embed { min-height: 720px; border: 1px solid var(--line); background: var(--surface-1); overflow: hidden; }
.quiz-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-5); height: var(--nav-h); }
.progress { position: relative; height: 2px; background: var(--line); overflow: hidden; }
.progress-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform var(--t-reveal) var(--ease); box-shadow: 0 0 12px var(--accent-glow); }
.progress-count { font: 400 var(--fs-mono)/var(--lh-mono) var(--font-mono); font-variant-numeric: tabular-nums; }
.quiz-stage { display: grid; align-items: center; padding: var(--s-8) 0; }
.q-card { grid-area: 1 / 1; display: grid; gap: var(--s-6); width: 100%; max-width: 920px; }
.q-card[hidden] { display: none; }
.q-title { font-size: clamp(34px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -.055em; font-weight: 400; }
.q-help { color: var(--ink-muted); font-size: 18px; letter-spacing: -.035em; line-height: 1.35; }
.q-options { display: grid; gap: 10px; max-width: 640px; }
.q-option { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: var(--s-4); width: 100%; min-height: 60px; padding: 14px 18px; text-align: left; border: 1px solid var(--line); font-size: 18px; line-height: 1.25; letter-spacing: -.035em; overflow: hidden; isolation: isolate; transition: color var(--t-fill), border-color var(--t-fill); }
.q-option::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-hover) var(--ease); }
.q-key { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid currentColor; font: 400 var(--fs-mono-s)/1 var(--font-mono); opacity: .7; }
.q-option::after { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-check) center / 13px no-repeat; mask: var(--i-check) center / 13px no-repeat; opacity: 0; transition: opacity var(--t-color); }
@media (hover: hover) and (pointer: fine) { .q-option:hover { border-color: var(--accent); color: var(--accent); } }
.q-option[aria-pressed="true"], .q-option[aria-checked="true"] { color: var(--on-accent); border-color: var(--accent); }
.q-option[aria-pressed="true"]::before, .q-option[aria-checked="true"]::before { transform: none; }
.q-option[aria-pressed="true"]::after, .q-option[aria-checked="true"]::after { opacity: 1; }
.field { display: grid; gap: 8px; max-width: 640px; }
.field label { font: 400 var(--fs-mono-s)/1.15 var(--font-mono); text-transform: uppercase; color: var(--ink-muted); }
.input { width: 100%; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); font: 400 22px/1.2 var(--font-sans); letter-spacing: -.035em; transition: border-color var(--t-color); }
.input::placeholder { color: var(--ink-muted); }
.input:focus { outline: none; border-bottom-color: var(--accent); }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--line); }
.quiz-nav .t-mono-s { color: var(--ink-muted); }
@media (max-width: 809px) { .quiz-nav .hint { display: none; } .quiz-embed { min-height: 640px; } }
.quiz-embed.quiz { padding: 0 var(--s-5); }
/* transicion entre preguntas (receta de cambio de pagina, reducida) */
.q-card.is-leaving { animation: q-out .35s var(--ease-page) both; }
.q-card.is-entering { animation: q-in .8s var(--ease-page) both; }
.q-card.is-leaving.is-back { animation-name: q-out-back; }
.q-card.is-entering.is-back { animation-name: q-in-back; }
@keyframes q-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes q-in { from { opacity: 0; transform: translateY(64px); } }
@keyframes q-out-back { to { opacity: 0; transform: translateY(24px); } }
@keyframes q-in-back { from { opacity: 0; transform: translateY(-64px); } }

/* 6. MOTION: estados iniciales (solo con JS activo) ------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(var(--reveal-y)); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
.js [data-zoom] .media-fill { transform: scale(1.3); transition: transform 2.5s var(--ease); }
.js [data-zoom].is-in .media-fill { transform: none; }
.js [data-letters] { overflow: hidden; }
.js [data-letters] .ch { display: inline-block; white-space: pre; transform: translateY(110%); opacity: 0; }
.js [data-letters].is-in .ch { animation: ch-in .65s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes ch-in { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
/* Precarga: bloque de acento que barre y descubre la pagina */
.preloader { position: fixed; inset: 0; z-index: 2147483000; background: var(--bg); display: grid; place-items: center; animation: pre-out .6s .9s var(--ease-page) both; pointer-events: none; }
.preloader i { width: 150px; height: 56px; background: var(--accent); transform-origin: left; animation: pre-bar .9s var(--ease) both; }
@keyframes pre-bar { from { transform: scaleX(0); } }
@keyframes pre-out { to { transform: translateY(-100%); visibility: hidden; } }

/* 7. MOVIMIENTO REDUCIDO --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  body::after { animation: none; }
  .js [data-reveal], .js [data-letters] .ch, .js [data-zoom] .media-fill { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; transform: translateX(-25%); }
  .preloader { display: none; }
  .glow::before, .focus-art i, .signal-art i, .badge-dot::before, .scroll-hint .arrow::before { animation: none !important; }
  .roll-track, .nav-link > span { transform: none !important; }
}
