/* =========================================================================
   dataSource — hoja de estilo principal
   Diseño: alta tecnología / soberanía del dato. Base oscura + naranja sol.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Superficies */
  --bg:            #06080B;
  --bg-2:          #0A0E13;
  --surface:       #0E141B;
  --surface-2:     #131B24;
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .16);

  /* Texto */
  --text:          #E9EEF5;
  --text-2:        #A7B4C4;
  --muted:         #6F7E90;

  /* Marca — ámbar #F6A22E. Punto medio en HSL entre el naranja de la primera
     maqueta (#FF7A18, 25°) y el dorado del sol del anagrama del logotipo
     (#EFC244, 44°): conserva la calidez del naranja y gana la legibilidad
     del dorado en los textos de acento pequeños. */
  --sun:           #F6A22E;
  --sun-2:         #FFC670;
  --ember:         #D87116;
  --sun-rgb:       246, 162, 46;   /* mismo acento en componentes, para rgba() */
  --on-accent:     #1A0E00;        /* texto sobre el acento */
  --sun-soft:      rgba(var(--sun-rgb), .14);
  --sun-line:      rgba(var(--sun-rgb), .34);

  /* Colores del canvas del héroe: fondo → medio → frente */
  --fx-far:        73, 89, 121;
  --fx-mid:        246, 162, 46;
  --fx-near:       255, 228, 188;

  /* Apoyo frío para contraste tecnológico */
  --ice:           #7FD4FF;
  --ice-soft:      rgba(127, 212, 255, .12);

  /* Piezas del degradado del titular y de las cifras */
  --grad-1:        var(--sun);
  --grad-2:        var(--sun-2);
  --grad-3:        #FFE0B8;
  --metric-1:      #FFF;
  --metric-2:      var(--sun-2);

  /* Superficies en rgb, para velos y superposiciones con alfa */
  --bg-rgb:        6, 8, 11;
  --surface-rgb:   14, 20, 27;

  /* Lavados sutiles sobre las superficies */
  --wash:          rgba(255, 255, 255, .02);
  --wash-2:        rgba(255, 255, 255, .03);
  --grid-line:     rgba(255, 255, 255, .028);

  /* Estados del formulario */
  --placeholder:   #56616F;
  --ok:            #5FD08A;
  --ok-text:       #8FE3B0;
  --ok-rgb:        95, 208, 138;
  --err:           #FF8A6B;
  --err-text:      #FFB09A;
  --err-rgb:       255, 138, 107;

  /* El ámbar como color de TEXTO. En oscuro es el mismo ámbar de marca; en
     claro baja de tono, porque #F6A22E sobre blanco se queda en 2,1:1. */
  --sun-text:      var(--sun);

  /* Geometría */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Tipografía */
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;

  /* Sombras */
  --shadow:    0 20px 60px -25px rgba(0, 0, 0, .9);
  --shadow-sun: 0 18px 50px -20px rgba(var(--sun-rgb), .45);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 1 bis. Tema claro ----------
   Mismo diseño, superficies invertidas. Solo se redefinen tokens: ninguna
   regla de las secciones siguientes sabe que existe el tema claro.

   El selector lleva doble especificidad (:root[...]) a propósito, para ganar
   a :root aunque este bloque se mueva de sitio.

   Lo que NO es un simple negativo del oscuro:
     · --sun-text  el ámbar de marca sobre blanco da 2,1:1; se oscurece.
     · --grad-*    el degradado del titular acaba en crema, invisible sobre
                   blanco; en claro va de ámbar tostado a ámbar medio, y todo
                   el recorrido se mantiene por encima de 3:1 (texto grande).
     · --fx-*      el polvo del héroe se invierte en profundidad: en oscuro lo
                   cercano es lo más claro; sobre blanco, lo más oscuro.
     · --shadow    una sombra del 90 % de negro sobre blanco es una mancha.
   ------------------------------------------------------------------------ */
:root[data-tema="claro"] {
  color-scheme: light;

  /* Superficies */
  --bg:            #F7F5F1;
  --bg-2:          #EFEBE4;
  --surface:       #FFFFFF;
  --surface-2:     #FAF8F5;
  --line:          rgba(13, 21, 31, .13);
  --line-strong:   rgba(13, 21, 31, .26);

  /* Texto */
  --text:          #0D151F;
  --text-2:        #465565;
  --muted:         #5C6774;

  /* Marca */
  --sun-text:      #9A5E04;
  --sun-soft:      rgba(var(--sun-rgb), .16);
  --sun-line:      rgba(var(--sun-rgb), .55);

  --grad-1:        #8A5303;
  --grad-2:        #B06E08;
  --grad-3:        #C98510;
  --metric-1:      #7A4903;
  --metric-2:      #C07A0E;

  /* Superficies en rgb */
  --bg-rgb:        247, 245, 241;
  --surface-rgb:   250, 248, 245;

  /* Lavados: sobre blanco tiñen de gris, no de luz */
  --wash:          rgba(13, 21, 31, .025);
  --wash-2:        rgba(13, 21, 31, .04);
  --grid-line:     rgba(13, 21, 31, .05);

  /* Estados del formulario */
  --placeholder:   #8A94A1;
  --ok:            #1C7F45;
  --ok-text:       #146638;
  --ok-rgb:        28, 127, 69;
  --err:           #C0392B;
  --err-text:      #96271B;
  --err-rgb:       192, 57, 43;

  /* Canvas del héroe, con la profundidad invertida */
  --fx-far:        176, 190, 210;
  --fx-mid:        224, 150, 40;
  --fx-near:       138, 83, 3;

  /* Apoyo frío */
  --ice:           #0E6E9C;
  --ice-soft:      rgba(14, 110, 156, .10);

  /* Sombras */
  --shadow:        0 18px 44px -24px rgba(13, 21, 31, .28);
  --shadow-sun:    0 14px 34px -16px rgba(var(--sun-rgb), .42);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: var(--sun); color: var(--on-accent); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--sun);
  color: var(--on-accent);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* ---------- 3. Utilidades de layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 132px);
}

.section--tight { padding-block: clamp(56px, 8vw, 92px); }

.section--alt {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(var(--sun-rgb), .06), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------- 4. Tipografía ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun-text);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sun));
}
.section__head--center .kicker::before { display: none; }

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.15rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: 1.16rem; letter-spacing: -.015em; }

.lead {
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  margin-top: 20px;
  max-width: 62ch;
}
.section__head--center .lead { margin-inline: auto; }

.grad {
  background: linear-gradient(96deg, var(--grad-1) 0%, var(--grad-2) 45%, var(--grad-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
  font-size: .82em;
  letter-spacing: .02em;
}

/* ---------- 5. Logotipo ---------- */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-brand);
  font-weight: 800;
  font-style: italic;
  font-size: 1.42rem;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: nowrap;
}
.brand i { font-style: italic; }
.brand .b-data   { color: var(--text); }
.brand .b-source { color: var(--muted); transition: color .35s var(--ease); }
.brand:hover .b-source { color: var(--sun-text); }

.brand--lg { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.brand--footer .b-data { color: var(--text); }

/* En escritorio el logotipo respira más; en móvil se mantiene el tamaño base.
   El salto grande se reserva a ≥1280 px: por debajo, la barra se queda sin
   sitio para los seis enlaces más el selector de idioma y el botón. */
@media (min-width: 821px) {
  .brand { font-size: 1.78rem; }
  .nav__inner { height: 84px; }
  html { scroll-padding-top: 106px; }
  .footer .brand { font-size: 1.62rem; }
}

@media (min-width: 1280px) {
  .brand { font-size: 2.2rem; }
  .nav__inner { height: 94px; gap: 30px; }
  html { scroll-padding-top: 116px; }
}

/* ---------- 6. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--sun) 0%, var(--ember) 100%);
  color: var(--on-accent);
  box-shadow: var(--shadow-sun);
}
.btn--primary:hover { box-shadow: 0 22px 60px -18px rgba(var(--sun-rgb), .65); }

.btn--ghost {
  background: var(--wash-2);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--sun-line); background: var(--sun-soft); }

.btn--sm { padding: 10px 19px; font-size: .88rem; }

.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 7. Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(var(--bg-rgb), .78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  white-space: nowrap;
  padding: 8px 13px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 1.5px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.lang a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.lang a:hover { color: var(--text); }
.lang a.is-active { background: var(--sun); color: var(--on-accent); }

/* Conmutador de tema claro / oscuro.
   Un solo botón con los dos iconos dentro; el CSS enseña el que toca según
   data-tema, así no hay que tocar el DOM al cambiar y no parpadea. */
.tema {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--wash-2);
  color: var(--text-2);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.tema:hover { color: var(--sun-text); border-color: var(--sun-line); background: var(--sun-soft); }
.tema svg { width: 17px; height: 17px; display: block; grid-area: 1 / 1; }
.tema .i-luna { display: none; }
:root[data-tema="claro"] .tema .i-sol  { display: none; }
:root[data-tema="claro"] .tema .i-luna { display: block; }


.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: background .2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 64px;
  overflow: hidden;
  isolation: isolate;
}

#sphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
#sphere.is-ready { opacity: 1; }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Vela la mitad izquierda para que el titular se lea sobre la esfera. Usa
     --bg-rgb, así que en el tema claro aclara en vez de oscurecer. */
  background:
    radial-gradient(58% 62% at 78% 48%, transparent 0%, rgba(var(--bg-rgb), .35) 55%, rgba(var(--bg-rgb), .82) 100%),
    linear-gradient(90deg, var(--bg) 8%, rgba(var(--bg-rgb), .72) 40%, transparent 72%),
    linear-gradient(180deg, rgba(var(--bg-rgb), .85) 0%, transparent 26%, transparent 62%, var(--bg) 100%);
}

.hero__inner { max-width: 730px; }

.hero h1 { margin-bottom: 4px; }
.hero h1 .line { display: block; }

.hero__lead {
  font-size: clamp(1.05rem, 1.8vw, 1.26rem);
  color: var(--text-2);
  max-width: 56ch;
  margin-top: 26px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--muted);
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero__meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 10px var(--sun);
  flex: none;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--sun), transparent);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(.2); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1);  transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1);  transform-origin: bottom; opacity: 0; }
}

/* ---------- 9. Marquesina de capacidades ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 44px;
}
.ticker__track span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sun-line);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 10. Rejilla de tarjetas ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  position: relative;
  padding: 30px 28px 32px;
  background: linear-gradient(170deg, var(--surface) 0%, rgba(var(--surface-rgb), .55) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--sun-line), transparent 42%);
  -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;
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: transparent; }
.card:hover::before { opacity: 1; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: .96rem; }

.card__num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .1em;
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--sun-soft);
  border: 1px solid var(--sun-line);
  color: var(--sun-text);
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card--wide { grid-column: span 2; }

/* ---------- 11. Bloque partido ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.split--rev .split__media { order: -1; }

.featlist { display: grid; gap: 22px; margin-top: 34px; }
.featlist li { display: flex; gap: 16px; }
.featlist .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--sun-soft);
  border: 1px solid var(--sun-line);
  color: var(--sun-text);
  margin-top: 2px;
}
.featlist .tick svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.featlist h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.featlist p { color: var(--text-2); font-size: .94rem; }

/* Panel tipo consola */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--bg-2));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 55% at 50% -10%, rgba(var(--sun-rgb), .16), transparent 70%);
  pointer-events: none;
}
.panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}
.panel__bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.panel__bar i:first-child { background: var(--ember); }
.panel__bar .t {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
}
.panel__body {
  padding: 22px 20px 26px;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.95;
  color: var(--text-2);
}
.panel__body .k { color: var(--sun-text); }
.panel__body .v { color: var(--text); }
.panel__body .c { color: var(--muted); }
.panel__body .ok { color: var(--ok); }

/* Diagrama de capas soberanas */
.stackviz { display: grid; gap: 10px; padding: 24px 20px 26px; }
.layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
  font-size: .9rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.layer:hover { border-color: var(--sun-line); background: var(--sun-soft); }
.layer .n {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--sun-text);
  width: 26px;
  flex: none;
}
.layer .d { color: var(--muted); font-size: .82rem; margin-left: auto; text-align: right; }

/* ---------- 12. Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.step {
  padding: 32px 26px 34px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .35s var(--ease);
}
.step:last-child { border-right: 0; }
.step:hover { background: var(--surface-2); }
.step__n {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--sun-text);
  letter-spacing: .12em;
  margin-bottom: 16px;
  display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: .92rem; }

/* ---------- 13. Métricas ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.metric {
  background: var(--bg-2);
  padding: 30px 26px;
  text-align: center;
}
.metric .v {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--metric-1) 0%, var(--metric-2) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric .l {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ---------- 14. Chips de tecnología ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--text-2);
  background: var(--wash);
  transition: border-color .25s, color .25s, background .25s;
}
.chip:hover { border-color: var(--sun-line); color: var(--text); background: var(--sun-soft); }

/* ---------- 14 bis. Preguntas frecuentes ----------
   Acordeón con <details>/<summary>: accesible, sin JavaScript, y el texto de
   las respuestas está en el DOM aunque esté plegado, que es lo que importa
   para los buscadores y para los sistemas de IA que rastrean la página. */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq details[open] { border-color: var(--sun-line); background: var(--surface-2); }
.faq details:hover { border-color: var(--line-strong); }

.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-left: auto;
  margin-top: 6px;
  border-right: 2px solid var(--sun);
  border-bottom: 2px solid var(--sun);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq .q-n {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--sun-text);
  margin-top: 5px;
  flex: none;
}

.faq .a {
  padding: 0 22px 24px 60px;
  color: var(--text-2);
  font-size: .96rem;
}
.faq .a p + p,
.faq .a ul + p { margin-top: 14px; }
.faq .a strong { color: var(--text); font-weight: 600; }
.faq .a ul { margin-top: 12px; display: grid; gap: 8px; }
.faq .a li { padding-left: 18px; position: relative; }
.faq .a li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sun-line);
}

@media (max-width: 560px) {
  .faq summary { padding: 16px 18px; font-size: .97rem; gap: 12px; }
  .faq .a { padding: 0 18px 20px 18px; }
}

/* ---------- 15. Contacto ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 68px);
  align-items: start;
}

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text);
  font-size: .96rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sun-line);
  background: var(--surface-2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field .err {
  font-size: .8rem;
  color: var(--err);
  min-height: 1em;
  display: none;
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--err); }
.field.is-invalid .err { display: block; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .84rem;
  color: var(--muted);
}
.consent input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--sun); flex: none; }
.consent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

.form__status {
  font-size: .88rem;
  padding: 12px 16px;
  border-radius: var(--r);
  display: none;
}
.form__status.is-ok  { display: block; background: rgba(var(--ok-rgb), .1); border: 1px solid rgba(var(--ok-rgb), .35); color: var(--ok-text); }
.form__status.is-err { display: block; background: rgba(var(--err-rgb), .1); border: 1px solid rgba(var(--err-rgb), .35); color: var(--err-text); }

.contact__info { display: grid; gap: 26px; }
.infoblock { display: grid; gap: 4px; }
.infoblock .t {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sun-text);
}
.infoblock a, .infoblock p { color: var(--text-2); }
.infoblock a:hover { color: var(--text); }

/* ---------- 16. CTA final ---------- */
.cta {
  position: relative;
  border: 1px solid var(--sun-line);
  border-radius: var(--r-lg);
  padding: clamp(38px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--sun-rgb), .1), rgba(var(--surface-rgb), .6));
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 50% 0%, rgba(var(--sun-rgb), .22), transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .lead { margin-inline: auto; }
.cta .hero__cta { justify-content: center; }

/* ---------- 17. Pie ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 56px 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer__about p { color: var(--muted); font-size: .9rem; margin-top: 16px; max-width: 34ch; }
.footer h4 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer li a:hover { color: var(--sun-text); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: .82rem;
  color: var(--muted);
}
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- 18. Animaciones de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* Rejilla técnica de fondo */
.gridbg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
          mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}

/* ---------- 19. Páginas legales ---------- */
.doc { padding-top: 130px; padding-bottom: 90px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.doc .updated { color: var(--muted); font-size: .86rem; margin-bottom: 44px; }
.doc h2 { font-size: 1.35rem; margin-top: 44px; margin-bottom: 14px; }
.doc p, .doc li { color: var(--text-2); font-size: .98rem; }
.doc p { margin-bottom: 14px; max-width: 74ch; }
.doc ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; max-width: 74ch; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--sun-text); text-decoration: underline; text-underline-offset: 3px; }
.doc .note {
  border: 1px dashed var(--sun-line);
  background: var(--sun-soft);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 34px;
  font-size: .9rem;
  color: var(--text-2);
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 980px) {
  .split, .contact__grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .card--wide { grid-column: auto; }
}

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px var(--gutter) 30px;
    background: rgba(var(--bg-rgb), .97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 12px 4px; font-size: 1.02rem; }
  .nav__link::after { display: none; }
  .nav__actions { margin-left: auto; }
  .hero { min-height: auto; padding-top: 128px; padding-bottom: 86px; }
  .hero__scroll { display: none; }
  #sphere { opacity: 0; }
  #sphere.is-ready { opacity: .55; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(var(--bg-rgb), .9) 0%, rgba(var(--bg-rgb), .55) 45%, var(--bg) 100%);
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .kicker { font-size: 11.5px; letter-spacing: .1em; }
  .kicker::before { width: 18px; }
  .row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .hero__cta .btn { width: 100%; }
  .metric { padding: 24px 18px; }
}

/* ---------- 21. Accesibilidad / movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

@media print {
  .nav, #sphere, .hero__scroll, .ticker { display: none !important; }
  body { background: #FFF; color: #000; }
}

