/* ==========================================================================
   InvoPrism — sistema de diseño "Prisma"
   Un haz entra, se refracta en un espectro ordenado, sale estructurado.
   Identidad: precisión, conexión, trazabilidad. Registro técnico y sobrio.
   Sin dependencias externas. Fuentes del sistema. Acento único: índigo.
   El espectro (índigo→cian→violeta) es la firma de refracción y solo
   aparece como tal: línea de firma, logo, estados del proceso.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Superficies */
  --bg:            #f4f5f8;
  --surface:       #ffffff;
  --surface-2:     #eef1f6;
  --surface-3:     #e7ebf1;
  --ink:           #0c1220;   /* azul noche casi negro, para bloques oscuros */
  --ink-2:         #121a2c;
  --ink-line:      #27314a;

  /* Texto */
  --text:          #121a28;
  --text-soft:     #515b6b;
  --text-faint:    #7d879a;
  --on-ink:        #eef1f7;
  --on-ink-soft:   #a3afc4;
  --on-ink-faint:  #6f7c96;

  /* Acento único: índigo */
  --ac:            #4b3ff0;
  --ac-strong:     #3a2fd6;
  --ac-press:      #2e24b8;
  --ac-tint:       #ecebfe;
  --ac-tint-2:     #dedcfd;

  /* Espectro de refracción (solo firma / estados) */
  --spec-indigo:   #4b3ff0;
  --spec-cyan:     #159bc4;
  --spec-violet:   #7c5cf0;
  --spectrum: linear-gradient(90deg, var(--spec-indigo) 0%, var(--spec-cyan) 52%, var(--spec-violet) 100%);

  /* Estados (semánticos, con texto además del color) */
  --ok:        #1a7a52;  --ok-bg:   #e2f1ea;  --ok-bd:  #bfe0cf;
  --info:      #126b86;  --info-bg: #def0f4;  --info-bd:#b7e0e8;
  --idx:       #3a2fd6;  --idx-bg:  #e7e6fd;  --idx-bd: #cecbfb;
  --vio:       #6a4bd6;  --vio-bg:  #ece6fb;  --vio-bd: #d9cef6;
  --warn:      #8a5a12;  --warn-bg: #f6ecd6;  --warn-bd:#ecd9ad;
  --err:       #a6303f;  --err-bg:  #f6dee1;  --err-bd: #ebc3c8;

  /* Líneas */
  --bd:        #e3e6ed;
  --bd-soft:   #edeff4;
  --bd-strong: #cfd4de;

  /* Tipografía del sistema */
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Escala tipográfica */
  --fs--1: clamp(0.80rem, 0.78rem + 0.08vw, 0.86rem);
  --fs-0:  clamp(1rem, 0.97rem + 0.14vw, 1.075rem);
  --fs-1:  clamp(1.15rem, 1.08rem + 0.32vw, 1.3rem);
  --fs-2:  clamp(1.4rem, 1.24rem + 0.7vw, 1.75rem);
  --fs-3:  clamp(1.8rem, 1.5rem + 1.3vw, 2.5rem);
  --fs-4:  clamp(2.3rem, 1.85rem + 2.1vw, 3.6rem);

  /* Espacio */
  --s1: .4rem; --s2: .75rem; --s3: 1.15rem; --s4: 1.75rem; --s5: 2.75rem; --s6: 4.5rem; --s7: 7rem;

  --r:   12px;
  --r-sm: 8px;
  --r-lg: 20px;
  --maxw: 1200px;
  --maxw-narrow: 720px;

  --sh-sm: 0 1px 2px rgba(12,18,32,.05), 0 1px 1px rgba(12,18,32,.03);
  --sh:    0 6px 22px -8px rgba(12,18,32,.14), 0 2px 6px -2px rgba(12,18,32,.06);
  --sh-lg: 0 28px 60px -22px rgba(12,18,32,.28), 0 8px 20px -10px rgba(12,18,32,.12);

  --focus: 0 0 0 3px rgba(75,63,240,.38);
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: var(--fs-0);
  line-height: 1.62; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { margin: 0 0 var(--s2); line-height: 1.12; font-weight: 680; letter-spacing: -.022em; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-4); letter-spacing: -.035em; }
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-1); letter-spacing: -.018em; }
p { margin: 0 0 var(--s3); }
a { color: var(--ac-strong); text-decoration-thickness: 1px; text-underline-offset: 2.5px; }
a:hover { color: var(--ac); }
ul, ol { margin: 0 0 var(--s3); padding-left: 1.3rem; }
li { margin-bottom: .4rem; }
li::marker { color: var(--text-faint); }
strong { font-weight: 660; color: var(--text); }
code, kbd, samp { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--ac-tint-2); color: var(--ac-press); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.25rem); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(3rem, 7vw, 6rem); position: relative; }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.section--2 { background: var(--surface-2); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink h1,.section--ink h2,.section--ink h3 { color: #fff; }
.section--ink a { color: #c3c0fb; }
.section--ink .lead { color: var(--on-ink-soft); }
.section--ink .eyebrow { color: #a7a2f6; }
.section + .section { border-top: 1px solid var(--bd); }
.section--ink + .section, .section + .section--ink { border-top: none; }

/* Firma de refracción: línea espectro */
.spectrum-line { height: 2px; width: 100%; background: var(--spectrum); border: 0; margin: 0; }
.spectrum-top { position: relative; }
.spectrum-top::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--spectrum); opacity: .9; }

/* Cabecera de sección */
.eyebrow {
  font-family: var(--mono); font-size: var(--fs--1); font-weight: 500;
  letter-spacing: .02em; color: var(--text-faint); margin: 0 0 var(--s2);
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--spectrum); border-radius: 2px; }
.lead { font-size: var(--fs-1); color: var(--text-soft); line-height: 1.5; text-wrap: pretty; }
.section-head { max-width: 64ch; margin-bottom: var(--s5); }
.section-head .lead { margin-top: var(--s2); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Skip link */
.skip-link { position: absolute; left: 50%; top: 10px; transform: translate(-50%,-150%); z-index: 200;
  background: var(--ac); color: #fff; padding: .6rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; transition: transform .16s var(--ease); }
.skip-link:focus { transform: translate(-50%,0); color: #fff; }

/* ---------- Botones ---------- */
.btn { --_bg: var(--ac); --_fg:#fff; --_bd: var(--ac);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: var(--fs-0); line-height: 1.1; white-space: nowrap;
  padding: .72rem 1.3rem; border-radius: var(--r-sm); border: 1px solid var(--_bd);
  background: var(--_bg); color: var(--_fg); text-decoration: none; cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .08s var(--ease), box-shadow .16s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -10px rgba(75,63,240,.7); }
.btn--primary:hover { --_bg: var(--ac-strong); --_bd: var(--ac-strong); color: #fff; }
.btn--ghost { --_bg: transparent; --_fg: var(--text); --_bd: var(--bd-strong); }
.btn--ghost:hover { --_bd: var(--text-soft); color: var(--text); background: var(--surface); }
.btn--on-ink { --_bg:#fff; --_fg: var(--ink); --_bd:#fff; }
.btn--on-ink:hover { --_bg:#dcdbfb; --_fg: var(--ink); }
.btn--ghost-ink { --_bg: transparent; --_fg:#fff; --_bd: rgba(255,255,255,.34); }
.btn--ghost-ink:hover { --_bd:#fff; color:#fff; background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.arrow { transition: transform .16s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(244,245,248,.82);
  backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--bd); }
.nav { display: flex; align-items: center; gap: var(--s3); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.16rem; letter-spacing: -.03em; }
.brand:hover { color: var(--text); }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__name b { font-weight: 700; }
.brand__name b i { font-style: normal; color: var(--ac); }
.nav__spacer { flex: 1 1 auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; }
.nav__list a, .nav__trigger { display: inline-flex; align-items: center; gap: .35rem;
  font: inherit; font-weight: 500; font-size: .95rem; color: var(--text-soft);
  text-decoration: none; padding: .5rem .7rem; border-radius: var(--r-sm); background: none; border: none; cursor: pointer; }
.nav__list a:hover, .nav__trigger:hover { color: var(--text); background: rgba(18,26,40,.055); }
.nav__list a[aria-current="page"] { color: var(--ac-strong); }
.has-dropdown { position: relative; }
.nav__trigger .caret { font-size: .62em; transition: transform .16s var(--ease); color: var(--text-faint); }
.nav__trigger[aria-expanded="true"] .caret { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 256px;
  background: var(--surface); border: 1px solid var(--bd); border-radius: var(--r); box-shadow: var(--sh-lg);
  padding: .4rem; list-style: none; margin: 0; display: none; }
.has-dropdown[data-open="true"] .dropdown { display: block; }
.dropdown a { display: block; padding: .6rem .7rem; border-radius: var(--r-sm); color: var(--text); font-weight: 550; }
.dropdown a small { display: block; color: var(--text-faint); font-weight: 450; font-size: .82rem; margin-top: 1px; }
.dropdown a:hover { background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: .55rem; }
.nav__actions .link-plain { color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .65rem; border-radius: var(--r-sm); }
.nav__actions .link-plain:hover { color: var(--text); background: rgba(18,26,40,.055); }
.nav__toggle { display: none; }

@media (max-width: 1120px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--bd-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; margin-left: auto; }
  .nav__toggle .bars, .nav__toggle .bars::before, .nav__toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: transform .2s var(--ease), opacity .2s; }
  .nav__toggle .bars::before, .nav__toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav__toggle .bars::before { top: -6px; } .nav__toggle .bars::after { top: 6px; }
  .nav[data-mobile-open="true"] .nav__toggle .bars { background: transparent; }
  .nav[data-mobile-open="true"] .nav__toggle .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav[data-mobile-open="true"] .nav__toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__spacer { display: none; }
  .nav__panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
    border-bottom: 1px solid var(--bd); box-shadow: var(--sh); padding: var(--s3) clamp(1.1rem,4vw,2.25rem) var(--s4); max-height: calc(100dvh - 68px); overflow-y: auto; }
  .nav[data-mobile-open="true"] .nav__panel { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--bd-soft); }
  .nav__list a, .nav__trigger { width: 100%; justify-content: space-between; padding: .9rem .25rem; font-size: 1.05rem; }
  .dropdown { position: static; display: none; box-shadow: none; border: none; background: var(--surface-2); border-radius: var(--r-sm); margin: 0 0 .5rem; padding: .25rem; }
  .has-dropdown[data-open="true"] .dropdown { display: block; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: .6rem; margin-top: var(--s3); }
  .nav__actions .btn, .nav__actions .link-plain { width: 100%; text-align: center; justify-content: center; }
  .nav__actions .link-plain { border: 1px solid var(--bd-strong); }
}
@media (min-width: 1121px) { .nav__panel { display: contents; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(130% 120% at 85% -10%, rgba(124,92,240,.10), transparent 45%),
  radial-gradient(120% 100% at 8% 0%, rgba(75,63,240,.09), transparent 42%),
  linear-gradient(180deg, var(--bg), var(--surface-2));
  border-bottom: 1px solid var(--bd); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--spectrum); opacity: .55; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(1.75rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.hero h1 { margin-bottom: var(--s3); font-size: clamp(2.2rem, 1.7rem + 2.5vw, 3.7rem); }
.hero h1 .ac { color: var(--ac); }
.hero__sub { font-size: var(--fs-1); color: var(--text-soft); max-width: 46ch; margin-bottom: var(--s4); }
.hero .btn-row { margin-bottom: var(--s3); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: var(--s3); font-size: var(--fs--1); color: var(--text-faint); font-family: var(--mono); }
.hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--ac); }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }

/* ---------- Prisma visual (hero) ---------- */
.prism { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(.5rem,2vw,1.25rem); }
.prism__beam { height: 2px; background: linear-gradient(90deg, transparent, var(--text) 70%); border-radius: 2px; align-self: center; }
.prism__core { display: grid; place-items: center; }
.prism__core svg { width: clamp(54px, 10vw, 84px); height: auto; filter: drop-shadow(0 8px 16px rgba(75,63,240,.25)); }
.prism__out { display: grid; gap: .55rem; }
.prism__ray { height: 2px; border-radius: 2px; }
.prism__ray--i { background: linear-gradient(90deg, var(--spec-indigo), transparent); }
.prism__ray--c { background: linear-gradient(90deg, var(--spec-cyan), transparent); }
.prism__ray--v { background: linear-gradient(90deg, var(--spec-violet), transparent); }
@media (max-width:880px){ .prism { max-width: 340px; margin: 0 auto 1.5rem; } }

/* ---------- Panel / simulación de producto ---------- */
.exchange { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s3); align-items: stretch; }
.exchange__link { align-self: center; display: grid; place-items: center; color: var(--ac); }
.exchange__link svg { width: 26px; height: 26px; }
.panel { background: var(--surface); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.panel__head { background: var(--surface-2); border-bottom: 1px solid var(--bd); padding: .6rem var(--s3);
  font-weight: 620; font-size: .88rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.panel__head .src { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.panel__body { padding: var(--s3); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .32rem var(--s3); margin: 0; font-size: .9rem; }
.kv dt { color: var(--text-faint); }
.kv dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.kv dd.mono { font-family: var(--mono); font-size: .84rem; }
@media (max-width: 720px) { .exchange { grid-template-columns: 1fr; } .exchange__link { transform: rotate(90deg); } }

/* ---------- Estados (espectro aplicado al proceso) ---------- */
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status--recibida { color: var(--info); background: var(--info-bg); border-color: var(--info-bd); }
.status--validada { color: var(--vio); background: var(--vio-bg); border-color: var(--vio-bd); }
.status--registrada { color: var(--idx); background: var(--idx-bg); border-color: var(--idx-bd); }
.status--completada { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-bd); }
.status--error { color: var(--err); background: var(--err-bg); border-color: var(--err-bd); }
.status-track { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.status-track .sep { color: var(--bd-strong); }

/* ---------- Tarjeta ---------- */
.card { background: var(--surface); border: 1px solid var(--bd); border-radius: var(--r); padding: var(--s4); box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card h3 { margin-bottom: var(--s2); }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--bd-strong); }
.card__k { font-family: var(--mono); font-size: var(--fs--1); color: var(--ac); font-weight: 500; margin-bottom: .55rem; letter-spacing: .02em; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: var(--s4); }
@media (max-width: 880px){ .grid-2,.grid-3 { grid-template-columns: 1fr; } }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.25rem); align-items: start; }
.cols--text-wide { grid-template-columns: 1.08fr .92fr; }
@media (max-width: 880px){ .cols, .cols--text-wide { grid-template-columns: 1fr; } }

/* ---------- Situaciones ---------- */
.situations { display: grid; gap: var(--s3); }
.situation { display: grid; grid-template-columns: 150px 1fr; gap: var(--s4); background: var(--surface);
  border: 1px solid var(--bd); border-radius: var(--r); padding: var(--s4); position: relative; overflow: hidden; }
.situation::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--spectrum); }
.situation__tag { font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; padding-top: .2rem; }
.situation h3 { font-size: var(--fs-1); margin-bottom: .45rem; }
.situation p { margin-bottom: .55rem; }
.situation p:last-child { margin-bottom: 0; }
.situation__q { color: var(--text-soft); font-size: .96rem; }
.situation__q b { color: var(--ac-strong); font-weight: 620; }
@media (max-width: 640px){ .situation { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---------- Flujo ---------- */
.flow { display: grid; gap: var(--s2); counter-reset: step; }
.flow__step { display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); background: var(--surface);
  border: 1px solid var(--bd); border-radius: var(--r); padding: var(--s3) var(--s4); align-items: start; transition: border-color .2s var(--ease); }
.flow__step:hover { border-color: var(--bd-strong); }
.flow__num { counter-increment: step; width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--ac-tint); color: var(--ac-strong); font-weight: 700; font-family: var(--mono); font-size: .95rem; }
.flow__num::before { content: counter(step,decimal-leading-zero); }
.flow__body h3 { font-size: var(--fs-1); margin-bottom: .25rem; }
.flow__body p { margin: 0; color: var(--text-soft); }

/* ---------- Diagrama de conexión ---------- */
.diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: var(--s2);
  background: var(--surface); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: var(--s4); }
.diagram__node { background: var(--surface-2); border: 1px solid var(--bd); border-radius: var(--r); padding: var(--s3); display: flex; flex-direction: column; gap: .3rem; }
.diagram__node--hub { background: var(--ink); color: #fff; border-color: var(--ink); }
.diagram__node--hub .diagram__title { color: #fff; }
.diagram__node--hub .diagram__line { color: var(--on-ink-soft); }
.diagram__title { font-weight: 640; font-size: .96rem; }
.diagram__line { font-size: var(--fs--1); color: var(--text-soft); }
.diagram__arrow { align-self: center; color: var(--ac); display: grid; place-items: center; }
.diagram__arrow svg { width: 22px; height: 22px; }
@media (max-width: 880px){ .diagram { grid-template-columns: 1fr; } .diagram__arrow { transform: rotate(90deg); justify-self: center; } }

/* ---------- Propuesta de valor ---------- */
.value { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 0; border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.value__item { padding: var(--s4); border-right: 1px solid var(--bd-soft); border-bottom: 1px solid var(--bd-soft); }
.value__item h3 { font-size: var(--fs-0); margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.value__item h3::before { content: ""; width: 9px; height: 9px; border-radius: 3px; flex: none; }
.value__item:nth-child(1) h3::before { background: var(--spec-indigo); }
.value__item:nth-child(2) h3::before { background: var(--spec-cyan); }
.value__item:nth-child(3) h3::before { background: var(--spec-violet); }
.value__item:nth-child(4) h3::before { background: var(--ac); }
.value__item:nth-child(5) h3::before { background: var(--ok); }
.value__item p { margin: 0; font-size: .93rem; color: var(--text-soft); }

/* Lista de características */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s2); align-items: start; }
.feature-list .dot { width: 10px; height: 10px; border-radius: 3px; margin-top: .5rem; flex: none; }
.dot--i { background: var(--spec-indigo); } .dot--c { background: var(--spec-cyan); } .dot--v { background: var(--spec-violet); }
.feature-list h3 { font-size: var(--fs-0); margin-bottom: .1rem; }
.feature-list p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--bd); border-radius: var(--r); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data caption { text-align: left; padding: var(--s3) var(--s3) 0; color: var(--text-faint); font-size: .84rem; }
table.data th, table.data td { text-align: left; padding: .75rem var(--s3); border-bottom: 1px solid var(--bd-soft); vertical-align: top; }
table.data thead th { background: var(--surface-2); font-weight: 620; font-size: .83rem; letter-spacing: .01em; color: var(--text-soft); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }
.section--ink table.data { background: transparent; }
.section--ink .table-wrap { background: var(--ink-2); border-color: var(--ink-line); }
.section--ink table.data thead th { background: var(--ink-line); color: var(--on-ink-soft); }
.section--ink table.data th, .section--ink table.data td { border-color: var(--ink-line); color: var(--on-ink); }
.section--ink table.data tbody tr:hover { background: rgba(255,255,255,.03); }
.section--ink table.data code { color: #c3c0fb; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: .65rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .65rem; align-items: start; position: relative; }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: var(--ok-bg); border: 1px solid var(--ok-bd); }
.checklist li::after { content: "✓"; position: absolute; left: 5px; top: 1px; color: var(--ok); font-weight: 700; font-size: .78rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; transition: border-color .2s var(--ease); }
.faq details[open] { border-color: var(--bd-strong); }
.faq summary { cursor: pointer; padding: var(--s3) var(--s4); font-weight: 620; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; flex: none; border-right: 2px solid var(--ac); border-bottom: 2px solid var(--ac); transform: rotate(45deg); transition: transform .2s var(--ease); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq summary:hover { background: var(--surface-2); }
.faq__body { padding: 0 var(--s4) var(--s4); color: var(--text-soft); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { padding-block: var(--s3) 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; font-size: .84rem; color: var(--text-faint); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--bd-strong); }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ac-strong); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- Page head ---------- */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--bd);
  background: radial-gradient(120% 120% at 90% -20%, rgba(124,92,240,.08), transparent 45%), linear-gradient(180deg, var(--bg), var(--surface-2)); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--spectrum); opacity: .5; }
.page-head .wrap { padding-block: clamp(1.75rem,4vw,3rem) clamp(2rem,4vw,3.25rem); }
.page-head h1 { max-width: 22ch; }
.page-head .lead { max-width: 62ch; margin-top: var(--s2); }

/* Respuesta directa (AIEO) */
.answer-box { background: var(--surface); border: 1px solid var(--bd); border-left: 3px solid var(--ac); border-radius: var(--r); padding: var(--s4); margin-bottom: var(--s4); box-shadow: var(--sh-sm); }
.answer-box p:last-child { margin-bottom: 0; }
.answer-box .answer-q { font-family: var(--mono); font-size: var(--fs--1); color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; display: block; }

.note { background: var(--surface-2); border: 1px solid var(--bd); border-radius: var(--r); padding: var(--s3) var(--s4); font-size: .95rem; color: var(--text-soft); }
.note p:last-child { margin-bottom: 0; }

/* ---------- Artículo ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: .45rem var(--s3); font-size: .85rem; color: var(--text-faint); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--bd); font-family: var(--mono); }
.article__meta .cat { color: var(--ac-strong); font-weight: 600; }
.article > h1 { font-size: var(--fs-3); margin-bottom: var(--s3); max-width: 20ch; }
.article h2 { margin-top: var(--s5); font-size: var(--fs-2); }
.article h3 { margin-top: var(--s4); }
.article p, .article ul, .article ol { font-size: 1.06rem; }
.article figure { margin: var(--s4) 0; }
.article figcaption { font-size: .85rem; color: var(--text-faint); margin-top: .6rem; text-align: center; }
.toc { background: var(--surface-2); border: 1px solid var(--bd); border-radius: var(--r); padding: var(--s3) var(--s4); margin-bottom: var(--s4); }
.toc strong { display: block; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: .55rem; font-weight: 500; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .96rem; columns: 2; column-gap: 2rem; }
.toc a { text-decoration: none; } .toc a:hover { text-decoration: underline; }
@media (max-width: 560px){ .toc ol { columns: 1; } }
.related { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--bd); }
.related ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.related a { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; }
.related a::before { content: "→"; color: var(--ac); }
.related a:hover { text-decoration: underline; }
.sources { font-size: .92rem; color: var(--text-soft); margin-top: var(--s4); }
.sources ol { padding-left: 1.2rem; }

/* Recursos / noticias */
.resource-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s5); }
.chip { font-family: var(--mono); font-size: .8rem; font-weight: 500; padding: .32rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--bd); color: var(--text-soft); }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: var(--s3); }
.resource-item { background: var(--surface); border: 1px solid var(--bd); border-radius: var(--r); padding: var(--s4); display: flex; flex-direction: column; gap: .5rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.resource-item:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--bd-strong); }
.resource-item .cat { font-family: var(--mono); font-size: .76rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--ac-strong); }
.resource-item h3 { font-size: var(--fs-0); margin: 0; letter-spacing: -.012em; }
.resource-item h3 a { text-decoration: none; color: var(--text); }
.resource-item h3 a:hover { color: var(--ac-strong); }
.resource-item p { margin: 0; font-size: .93rem; color: var(--text-soft); }
.resource-item .soon { font-family: var(--mono); font-size: .76rem; color: var(--text-faint); margin-top: auto; }
.resource-item--feat { grid-column: span 2; background: var(--ink); border-color: var(--ink); }
.resource-item--feat .cat { color: #a7a2f6; }
.resource-item--feat h3 a { color: #fff; } .resource-item--feat h3 a:hover { color: #dcdbfb; }
.resource-item--feat p { color: var(--on-ink-soft); }
@media (max-width: 720px){ .resource-item--feat { grid-column: auto; } }

/* ---------- Formulario ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1/-1; }
.field label { font-weight: 600; font-size: .91rem; }
.field .req { color: var(--err); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .68rem .8rem; border: 1px solid var(--bd-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); width: 100%; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ac); box-shadow: var(--focus); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field--check input { width: auto; margin-top: .3rem; }
.field--check label { font-weight: 450; font-size: .92rem; color: var(--text-soft); }
.form-note { font-size: .93rem; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--bd); border-radius: var(--r); padding: var(--s3) var(--s4); }
.form-feedback { display: none; margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--ok-bg); border: 1px solid var(--ok-bd); color: #145c43; font-weight: 500; }
.form-feedback.is-visible { display: block; }
@media (max-width: 620px){ .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(2.25rem,5vw,3.5rem); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--spectrum); }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,240,.28), transparent 65%); pointer-events: none; }
.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; position: relative; }
.cta-band p { color: var(--on-ink-soft); max-width: 56ch; margin-inline: auto var(--s4); position: relative; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-soft); padding-block: var(--s6) var(--s4); margin-top: var(--s7); position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--spectrum); opacity: .8; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s4); margin-bottom: var(--s5); }
.site-footer .brand { color: #fff; margin-bottom: var(--s2); }
.site-footer .brand__name b i { color: #a7a2f6; }
.footer-about { font-size: .92rem; max-width: 34ch; color: var(--on-ink-soft); }
.footer-col h4 { color: #fff; font-family: var(--mono); font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-col a { color: var(--on-ink-soft); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--ink-line); padding-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; font-size: .84rem; color: var(--on-ink-faint); }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer-bottom a { color: var(--on-ink-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--on-ink-soft); }
@media (max-width: 880px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); }
.muted { color: var(--text-faint); }
.small { font-size: var(--fs--1); }
.divider { height: 1px; background: var(--bd); border: none; margin-block: var(--s5); }

/* ---------- Scroll reveal (sutil, motivado: jerarquía de entrada) ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

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

/* ---------- Compatibilidad de marcado existente ---------- */
.brand__name b { font-weight: 700; color: var(--ac); }
.site-footer .brand__name b { color: #a7a2f6; }
.exchange__arrow { align-self: center; justify-self: center; color: var(--ac); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.diagram__arrow { align-self: center; justify-self: center; color: var(--ac); font-size: 1.4rem; font-weight: 700; line-height: 1; }
@media (max-width: 720px){ .exchange__arrow { transform: rotate(90deg); } }
@media (max-width: 880px){ .diagram__arrow { transform: rotate(90deg); } }
.tag-example { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.hero__visual .panel { box-shadow: var(--sh-lg); }
.hero__note { margin-top: var(--s3); font-size: var(--fs--1); color: var(--text-faint); max-width: 48ch; }
.value__bar { display: none; }

/* ---------- Ajustes de disciplina (overrides) ---------- */
.nav__list a, .nav__trigger { white-space: nowrap; }
@media (min-width: 1121px){
  .nav { gap: var(--s2); }
  .nav__list { gap: 0; }
  .nav__list a, .nav__trigger { padding: .5rem .5rem; font-size: .9rem; }
  .nav__actions .link-plain { padding: .45rem .5rem; font-size: .9rem; white-space: nowrap; }
  .nav__actions { gap: .4rem; }
}
.hero__grid { align-items: start; padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(2.25rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.15rem); max-width: 16ch; }
.hero__visual { position: sticky; top: 92px; }
@media (max-width: 880px){ .hero__visual { position: static; } }

/* ---------- Gráficos explicativos (SVG) ---------- */
.gfx { margin: 0; }
.gfx svg { width: 100%; height: auto; display: block; }
.gfx--hero { max-width: 620px; margin-inline: auto; }
.gfx-card { background: var(--surface); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: clamp(1.1rem,3vw,2rem); box-shadow: var(--sh-sm); }
.gfx-card .gfx + figcaption, .gfx-card figcaption { margin-top: .75rem; }
.gfx-cap { text-align: center; color: var(--text-faint); font-size: var(--fs--1); margin-top: .85rem; }
.rail-svg { max-width: 920px; margin-inline: auto; }
.statusrail-svg { max-width: 640px; margin-inline: auto; }

/* flujo de luz por los rayos del prisma: comunica que los datos circulan */
@media (prefers-reduced-motion: no-preference) {
  .prism-svg .ray { stroke-dasharray: 5 13; animation: flow 2.6s linear infinite; }
  .prism-svg .ray-in { stroke-dasharray: 5 13; animation: flow 2.6s linear infinite; }
  .prism-svg .ray2 { animation-duration: 2.9s; }
  .prism-svg .ray3 { animation-duration: 3.2s; }
}
@keyframes flow { to { stroke-dashoffset: -220; } }
.prism-svg .chip rect { transition: transform .2s var(--ease); }

/* Diagramas anchos: legibles en móvil con scroll dentro de la tarjeta */
@media (max-width: 760px){
  .gfx-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .layer-svg { min-width: 620px; }
  .rail-svg { min-width: 680px; }
  .gfx--hero { max-width: 460px; }
}

/* =========================================================================
   CAPA EDITORIAL — menos cajas, más aire y líneas finas.
   Jerarquía por espacio y tipografía, no por recuadros.
   ========================================================================= */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.lead { line-height: 1.55; }

/* Situaciones: sin caja. Etiqueta mono + separador fino. */
.situations { gap: 0; }
.situation { background: transparent; border: none; border-radius: 0; box-shadow: none;
  padding: clamp(1.5rem,3vw,2.25rem) 0; border-top: 1px solid var(--bd); grid-template-columns: 160px 1fr; gap: var(--s4); }
.situation:first-child { border-top: none; padding-top: 0; }
.situation::before { display: none; }
.situation__tag { color: var(--ac-strong); }
.situation h3 { font-size: var(--fs-2); letter-spacing: -.02em; }
.situation__q { color: var(--text-soft); }
@media (max-width: 640px){ .situation { grid-template-columns: 1fr; gap: var(--s2); } }

/* Flujo: sin cajas. Raíl vertical con número. */
.flow { gap: 0; }
.flow__step { background: transparent; border: none; border-radius: 0; padding: var(--s4) 0 var(--s4) var(--s2);
  grid-template-columns: 48px 1fr; position: relative; }
.flow__step::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 1px; background: var(--bd); }
.flow__step:first-child::before { top: 24px; }
.flow__step:last-child::before { bottom: auto; height: 24px; }
.flow__num { width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--bd-strong); color: var(--ac-strong); z-index: 1; }
.flow__step:hover .flow__num { border-color: var(--ac); }

/* Valor: sin caja, columnas abiertas con regla superior. */
.value { border: none; border-radius: 0; background: transparent; gap: var(--s4) var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); }
.value__item { border: none; border-top: 2px solid var(--ink); padding: var(--s3) 0 0; }
.value__item h3 { font-size: var(--fs-1); }

/* Tarjetas: regla superior editorial, sin recuadro. */
.card { background: transparent; border: none; border-radius: 0; box-shadow: none;
  border-top: 1.5px solid var(--ink); padding: var(--s3) 0 0; }
a.card:hover { transform: none; box-shadow: none; border-top-color: var(--ac); }
a.card:hover h3 { color: var(--ac-strong); }

/* Diagramas: sin tarjeta, que respire. */
.gfx-card { background: transparent; border: none; box-shadow: none; padding: 0; }
.gfx-cap { max-width: 60ch; margin-inline: auto; }

/* Respuesta directa: regla a la izquierda, sin caja. */
.answer-box { background: transparent; border: none; border-left: 2px solid var(--ac);
  border-radius: 0; box-shadow: none; padding: .15rem 0 .15rem var(--s4); }
.answer-box .answer-q { color: var(--ac-strong); }

/* Tablas: editorial, sin marco exterior. */
.table-wrap { border: none; border-radius: 0; background: transparent; }
table.data thead th { background: transparent; border-bottom: 1.5px solid var(--ink); color: var(--text); font-family: var(--mono); font-weight: 500; text-transform: none; }
table.data tbody tr:hover { background: transparent; }
table.data th, table.data td { padding-left: 0; }
table.data td:last-child, table.data th:last-child { padding-right: 0; }
.section--ink .table-wrap { background: transparent; border: none; }
.section--ink table.data thead th { background: transparent; border-color: var(--ink-line); color: var(--on-ink-soft); }

/* FAQ: acordeón en líneas, sin recuadro. */
.faq { gap: 0; }
.faq details { background: transparent; border: none; border-radius: 0; border-bottom: 1px solid var(--bd); }
.faq details:first-child { border-top: 1px solid var(--bd); }
.faq summary { padding: var(--s3) 0; }
.faq summary:hover { background: transparent; color: var(--ac-strong); }
.faq__body { padding: 0 0 var(--s4); }

/* Recursos / noticias: tarjetas con regla superior, sin recuadro. */
.resource-item { background: transparent; border: none; border-radius: 0; box-shadow: none;
  border-top: 1.5px solid var(--ink); padding: var(--s3) 0 var(--s4); }
.resource-item:hover { transform: none; box-shadow: none; border-top-color: var(--ac); }
.resource-item--feat { background: transparent; border-top: 2px solid var(--ac); }
.resource-item--feat .cat { color: var(--ac-strong); }
.resource-item--feat h3 a { color: var(--text); } .resource-item--feat h3 a:hover { color: var(--ac-strong); }
.resource-item--feat p { color: var(--text-soft); }
.resource-grid { gap: 0 var(--s5); }
@media (min-width: 721px){ .resource-grid { column-gap: var(--s6); } }

/* Formulario: tarjeta lateral sin recuadro pesado. */
.contact-aside .card { border-top: 1.5px solid var(--ink); }

/* Hero: un punto menos de carga visual. */
.hero__meta span::before { background: var(--text-faint); }

/* Notas y gfx: más aire alrededor de los gráficos */
.gfx--hero { max-width: 520px; }

/* =========================================================================
   ACABADO "SOFT STRUCTURALISM" — sombras suaves difusas, no bordes;
   tipografía grande, mucho aire. (high-end-visual-design)
   ========================================================================= */
:root {
  --sh-soft: 0 30px 70px -36px rgba(18,26,40,.22), 0 10px 30px -18px rgba(18,26,40,.10);
  --sh-float: 0 40px 90px -40px rgba(18,26,40,.28), 0 12px 32px -18px rgba(18,26,40,.12);
}

/* Tipografía más generosa y "cara" */
h1 { letter-spacing: -.04em; }
h2 { letter-spacing: -.03em; }
.hero h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); letter-spacing: -.045em; line-height: 1.04; }
.section-head h2 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--text-soft); }

/* Aún más aire */
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.wrap { max-width: 1160px; }

/* Los diagramas FLOTAN con sombra suave difusa, sin borde ni rejilla */
.gfx-card {
  background: var(--surface); border: none; border-radius: 24px;
  box-shadow: var(--sh-soft); padding: clamp(1.5rem, 4vw, 2.75rem);
}
.gfx-cap { margin-top: var(--s4); color: var(--text-faint); }

/* Botón: icono anidado en círculo (button-in-button) */
.btn .arrow {
  display: inline-grid; place-items: center; width: 1.55em; height: 1.55em;
  border-radius: 50%; background: rgba(255,255,255,.2); font-size: .82em; line-height: 1;
  transition: transform .4s cubic-bezier(.32,.72,0,1), background .2s;
}
.btn--primary:hover .arrow { transform: translate(2px,-1px); background: rgba(255,255,255,.28); }
.btn--on-ink .arrow { background: rgba(18,26,40,.1); }
.btn--on-ink:hover .arrow { transform: translate(2px,-1px); }
.link-arrow:hover { color: var(--ac); }

/* Botón primario: pill y presión física */
.btn { border-radius: 999px; padding: .8rem .5rem .8rem 1.4rem; }
.btn:not(:has(.arrow)) { padding: .8rem 1.5rem; }
.btn:active { transform: scale(.985); }
.btn--primary { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 34px -16px rgba(75,63,240,.6); }

/* Situaciones: titular grande, separador sutil (hairline muy tenue) */
.situation { border-top-color: var(--bd-soft); }
.situation h3 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }

/* Hero: dejar respirar el gráfico, sin recuadro */
.gfx--hero { max-width: 560px; }
.hero__visual { position: static; }

/* Quitar sombras duras heredadas en paneles sueltos */
.panel { box-shadow: var(--sh-soft); border: none; border-radius: 16px; }
.panel__head { background: var(--surface-2); }

/* Transiciones con curva física por defecto */
a, .card, .resource-item, .btn, .faq summary, .flow__num { transition-timing-function: cubic-bezier(.32,.72,0,1); }

/* Reveal más "caro": leve blur al entrar */
[data-reveal] { transform: translateY(18px); filter: blur(4px); transition: opacity .8s cubic-bezier(.32,.72,0,1), transform .8s cubic-bezier(.32,.72,0,1), filter .8s; }
[data-reveal].is-in { filter: blur(0); }
@media (prefers-reduced-motion: reduce){ [data-reveal]{ filter:none; transform:none; } }

/* Hero: titular en 4 líneas, algo más contenido */
.hero h1 { font-size: clamp(2.1rem, 1.55rem + 2.5vw, 3.45rem); max-width: 15ch; }
.hero__grid { padding-block: clamp(1.5rem,3vw,2.5rem) clamp(2.5rem,5vw,4rem); }

/* Menú centrado: logo izquierda · enlaces centro (flexibles) · acciones derecha.
   Flex en vez de grid simétrico: con este volumen de enlaces, el reparto 1fr/1fr
   ahogaba la columna de acciones y partía "Hablar de una integración" en varias
   líneas. Con flex, el centro ocupa el espacio sobrante y se centra, y las
   acciones toman su ancho natural en una sola línea. */
@media (min-width: 1121px){
  .nav { display: flex; align-items: center; column-gap: var(--s2); }
  .nav__panel { display: contents; }
  .nav__spacer { display: none; }
  .brand { flex: 0 0 auto; }
  .nav__list { flex: 1 1 auto; justify-content: center; }
  .nav__actions { flex: 0 0 auto; margin-left: auto; }
}

/* Titulares: que ocupen el ancho disponible (sin recortes "equilibrados") */
h1, h2, h3, h4 { text-wrap: pretty; }
.page-head h1, .article > h1, .situation h3, .section-head h2 { max-width: none; }
.page-head .lead, .section-head .lead { max-width: 66ch; }

/* Cabeceras de sección: el titular ocupa el ancho; el párrafo mantiene medida de lectura */
.section-head { max-width: none; }
.section-head .lead { max-width: 70ch; }
.cta-band h2 { max-width: 32ch; }

/* Seis ideas: 3 + 3, textos más amplios y visibles */
.value--3 { grid-template-columns: repeat(3, 1fr); gap: clamp(2.25rem,4vw,3.5rem) clamp(2.5rem,5vw,5rem); }
.value--3 .value__item { border-top: 2px solid var(--ink); padding: var(--s4) 0 0; }
.value--3 .value__item h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem); margin-bottom: .65rem; }
.value--3 .value__item h3::before { width: 11px; height: 11px; }
.value--3 .value__item p { font-size: clamp(1.04rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.62; color: var(--text-soft); max-width: 42ch; margin: 0; }
.value__item:nth-child(6) h3::before { background: var(--spec-violet); }
@media (max-width: 900px){ .value--3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .value--3 { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de precios ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem,3vw,2rem); max-width: 880px; margin: clamp(2rem,4vw,3rem) auto 0; align-items: start; }
.plan { background: var(--surface); border: none; border-radius: 22px; box-shadow: var(--sh-soft); padding: clamp(1.6rem,3vw,2.4rem); display: flex; flex-direction: column; position: relative; }
.plan--featured { box-shadow: var(--sh-float); outline: 2px solid var(--ac); outline-offset: 0; }
.plan__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--ac); color: #fff; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .8rem; border-radius: 999px; }
.plan__name { font-family: var(--mono); font-size: .9rem; color: var(--text-faint); margin: 0 0 .6rem; letter-spacing: .02em; }
.plan__price { margin: 0; display: flex; align-items: baseline; gap: .25rem; }
.plan__amount { font-size: clamp(2.3rem, 1.8rem + 1.8vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.plan__unit { font-size: 1.05rem; color: var(--text-faint); font-weight: 500; }
.plan__period { margin: .5rem 0 .2rem; font-weight: 650; color: var(--ac-strong); }
.plan__for { color: var(--text-soft); font-size: .95rem; margin: 0 0 var(--s3); }
.plan__features { margin: 0 0 var(--s4); }
.plan__features li { font-size: .95rem; }
.plan__cta { margin-top: auto; width: 100%; }
@media (max-width: 760px){ .plans { grid-template-columns: 1fr; } }

/* ---------- Banner de consentimiento de cookies ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--bd); box-shadow: var(--sh-lg);
  padding: clamp(.85rem, 2vw, 1.15rem) 0; animation: cookieUp .32s var(--ease) both; }
@keyframes cookieUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce){ .cookie-banner { animation: none; } }
.cookie-banner__inner { max-width: 1160px; margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.25rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(.9rem, 2.5vw, 2rem); flex-wrap: wrap; }
.cookie-banner__text { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--text-soft); max-width: 72ch; }
.cookie-banner__text a { color: var(--ac-strong); }
.cookie-banner__actions { display: flex; gap: .6rem; flex: none; }
.cookie-banner__actions .btn { padding: .55rem 1.15rem; font-size: .92rem; }
@media (max-width: 560px){
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 auto; justify-content: center; }
}
