/* FitGame — sitio estático. Sin fuentes ni librerías externas. */

:root {
  --black: #070707;
  --ink: #0d0d0e;
  --carbon: #151517;
  --carbon-2: #1d1d20;
  --line: #2a2a2e;
  --muted: #9a9aa2;
  --soft: #c9c9cf;
  --white: #f6f6f4;
  --orange: #ff6a13;
  --orange-hot: #ff8a3d;
  --orange-deep: #e05200;
  --warn-bg: #2a1a0c;
  --warn-line: #7a3d10;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --gutter: 20px;
  --max: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--orange-hot); text-underline-offset: 3px; }
a:hover { color: var(--white); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--black);
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--black); }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ───────────── Header ───────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-solid,
.nav-open .site-header {
  background: rgba(7, 7, 7, .88);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  /* Wordmark: "FIT" + <b>GAME</b> como un solo bloque de texto, sin hueco entre las dos partes. */
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: .08em; /* evita que la cursiva recorte la última letra */
}
.brand:hover { color: var(--white); }
.brand b { color: var(--orange); font-weight: 900; letter-spacing: inherit; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
  position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  padding: 28px var(--gutter) 40px;
  background: var(--black);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.nav-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}
.nav-open { overflow: hidden; }

.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.nav-list a {
  display: block;
  padding: 14px 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--orange); }
.nav-cta { margin-top: 28px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    height: auto;
    padding: 0;
    background: transparent;
    visibility: visible;
    opacity: 1;
    transform: none;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav-list { flex-direction: row; gap: 26px; }
  .nav-list a {
    padding: 6px 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    border: 0;
    color: var(--soft);
  }
  .nav-cta { margin-top: 0; }
}

/* ───────────── Buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 10px 30px -10px rgba(255, 106, 19, .7);
}
.btn-primary:hover { background: var(--orange-hot); color: var(--black); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(246, 246, 244, .28);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ───────────── Type ───────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
}

.display {
  margin: 0;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .92;
}

.h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .95;
}
.h2 em { font-style: italic; color: var(--orange); }

.lead {
  max-width: 620px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
}

/* ───────────── Hero ───────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* luz naranja de fondo */
  content: "";
  position: absolute;
  z-index: -2;
  width: 900px; height: 900px;
  right: -380px; top: -260px;
  background: radial-gradient(closest-side, rgba(255, 106, 19, .28), rgba(255, 106, 19, 0) 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-slash {
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -120px;
  width: 70%;
  height: 260px;
  background: linear-gradient(90deg, transparent, rgba(255,106,19,.14));
  transform: skewY(-12deg);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(48px, 13.5vw, 128px);
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--orange); }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}
@supports not (-webkit-text-stroke: 2px #fff) {
  .hero-title .outline { color: var(--white); }
}

.hero-copy .lead { margin-top: 26px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-actions .btn { flex: 1 1 200px; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* Contador ilustrativo (no es una captura de la app) */
.hero-visual {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto;
  aspect-ratio: 1;
}
.ring-svg { width: 100%; height: 100%; overflow: visible; }
.ring-track { stroke: var(--carbon-2); }
.ring-progress {
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: .28;
  filter: drop-shadow(0 0 18px rgba(255,106,19,.55));
}
.ring-ticks { stroke: #3a3a3f; }
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.ring-count {
  font-size: clamp(84px, 24vw, 150px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.05em;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.ring-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.ring-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(21, 21, 23, .9);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ring-chip strong { color: var(--orange); font-weight: 900; }
.ring-chip.chip-a { left: -2%; top: 10%; }
.ring-chip.chip-b { right: -2%; bottom: 12%; }
.ring-caption {
  position: absolute;
  left: 0; right: 0; bottom: -30px;
  margin: 0;
  text-align: center;
  color: #6c6c74;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero-title { font-size: clamp(72px, 8.4vw, 128px); }
}

/* ───────────── Marquee ───────────── */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--orange);
  color: var(--black);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  padding: 16px 0;
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span::after { content: "\2014"; margin: 0 22px; opacity: .45; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────── Sections ───────────── */

.section {
  position: relative;
  padding: 96px 0;
}
.section-alt { background: var(--ink); }
.section-head { margin-bottom: 52px; }
.section-head .lead { margin-top: 6px; }

@media (min-width: 900px) {
  .section { padding: 140px 0; }
  .section-head { margin-bottom: 72px; }
}

/* Steps */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px 30px;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease);
}
.step:hover { border-color: #3d3d43; transform: translateY(-3px); }
.step-num {
  display: block;
  margin-bottom: 26px;
  color: var(--orange);
  font-weight: 900;
  font-style: italic;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -.04em;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.step p { margin: 0; color: var(--muted); font-size: 16px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Split feature */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split.reverse > :first-child { order: 2; }
}

.feature-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list svg { width: 22px; height: 22px; margin-top: 3px; color: var(--orange); }
.feature-list strong { color: var(--white); font-weight: 800; }

/* Versus card (ilustrativo) */
.versus {
  position: relative;
  padding: 26px;
  background: linear-gradient(160deg, var(--carbon-2), var(--carbon) 60%);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.versus::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 360px; height: 360px;
  background: radial-gradient(closest-side, rgba(255,106,19,.22), transparent);
  pointer-events: none;
}
.versus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.versus-row:last-of-type { border-bottom: 0; }
.versus-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  color: var(--black);
  background: var(--soft);
}
.avatar.is-you { background: var(--orange); }
.versus-name { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.versus-sub { display: block; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.versus-score {
  font-weight: 900;
  font-style: italic;
  font-size: 40px;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.versus-score.is-target { color: var(--orange); }
.versus-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,106,19,.12);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.versus-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.illus-note {
  margin: 12px 0 0;
  color: #6c6c74;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Games grid */
.games {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}
.game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.game-name { font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.game-mode { color: var(--muted); font-size: 14px; text-align: right; }
@media (min-width: 640px) { .games { grid-template-columns: 1fr 1fr; } }

/* Media placeholder (video oficial pendiente) */
.media-slot {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(100%, 340px);
  margin: 0 auto;
  border-radius: 34px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    var(--carbon);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  overflow: hidden;
}
.media-slot svg { width: 46px; height: 46px; color: var(--orange); }
.media-slot-title {
  margin: 0;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.media-slot-text { margin: 0; color: var(--muted); font-size: 14px; }
.media-slot-tag {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px dashed #4a4a50;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.media-slot video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Stat cards */
.stats {
  display: grid;
  gap: 12px;
}
.stat {
  padding: 28px 24px;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-value {
  display: block;
  color: var(--orange);
  font-weight: 900;
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.04em;
}
.stat-title {
  display: block;
  margin: 14px 0 6px;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
}
.stat p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* Notifications stack (ilustrativo, usa el copy real del backend) */
.notif-stack { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; }
.notif {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(29, 29, 32, .92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.8);
}
.notif:nth-child(2) { margin-left: 18px; opacity: .92; }
.notif:nth-child(3) { margin-left: 36px; opacity: .8; }
.notif-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--orange);
  display: grid;
  place-items: center;
}
.notif-icon svg { width: 22px; height: 22px; color: var(--black); }
.notif-app { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.notif-text { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.notif-time { align-self: start; color: var(--muted); font-size: 12px; }

/* Premium */
.premium {
  position: relative;
  padding: 44px 26px;
  border-radius: 28px;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255,106,19,.25), transparent 60%),
    linear-gradient(180deg, var(--carbon-2), var(--carbon));
  border: 1px solid #3a2a20;
  overflow: hidden;
}
.premium-grid { display: grid; gap: 40px; }
.premium .feature-list li { border-color: rgba(255,255,255,.08); }
.premium-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 960px) {
  .premium { padding: 72px 64px; }
  .premium-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}

/* Get / CTA */
.get {
  text-align: center;
}
.get .h2 { font-size: clamp(44px, 10vw, 104px); }
.get .lead { margin: 18px auto 0; }
.availability {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 14px 22px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--carbon);
  text-align: left;
}
.availability svg { width: 34px; height: 34px; flex: none; }
.availability strong { display: block; font-size: 16px; }
.availability span { display: block; color: var(--muted); font-size: 14px; }
.pulse {
  width: 10px; height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,106,19,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(255,106,19,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,19,0); }
}

/* ───────────── Footer ───────────── */

.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--black);
  color: var(--muted);
  font-size: 15px;
}
.footer-top {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-tag { margin: 12px 0 0; max-width: 340px; }
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.footer-links a { color: var(--soft); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
}
.footer-bottom p { margin: 0; }
@media (min-width: 800px) {
  .footer-top { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { grid-template-columns: repeat(4, auto); gap: 12px 36px; }
}

/* ───────────── Document pages ───────────── */

.doc-hero {
  padding: calc(var(--header-h) + 64px) 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255,106,19,.16), transparent 70%),
    var(--black);
}
.doc-hero h1 {
  margin: 0;
  font-size: clamp(42px, 9vw, 84px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .95;
}
.doc-hero .lead { margin-top: 18px; }
.doc-meta { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.doc-layout {
  display: grid;
  gap: 40px;
  padding: 48px 0 96px;
}
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; }
}

.toc {
  align-self: start;
  font-size: 14px;
}
.toc-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--line);
  color: var(--soft);
  text-decoration: none;
}
.toc a:hover { color: var(--orange); border-left-color: var(--orange); }
@media (min-width: 1000px) {
  .toc { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 999px) {
  .toc {
    padding: 18px 20px;
    background: var(--carbon);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }
}

.prose { max-width: 760px; min-width: 0; }
.prose h2 {
  margin: 56px 0 14px;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.15;
  text-transform: uppercase;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 30px 0 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}
.prose p, .prose li { color: var(--soft); }
.prose strong { color: var(--white); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--orange); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--carbon-2);
  color: var(--white);
  font-size: .9em;
}

.table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.table-wrap th, .table-wrap td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th {
  background: var(--carbon);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.table-wrap td { color: var(--soft); }

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--carbon);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
}
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

.pending {
  display: inline;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  color: #ffb27a;
  font-size: .92em;
  font-weight: 700;
}
.pending-block {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  color: #ffcfa8;
  font-size: 15px;
}
.pending-block strong { color: #ffb27a; }
.pending-block p { margin: 0; color: inherit; }
.pending-block p + p, .pending-block ul { margin-top: 8px; }
.pending-block li { color: inherit; }

.draft-banner {
  position: relative;
  z-index: 1;
  margin-top: var(--header-h);
  padding: 12px 0;
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-line);
  color: #ffcfa8;
  font-size: 14px;
}
.draft-banner + .doc-hero { padding-top: 56px; }
.draft-banner strong { color: #ffb27a; letter-spacing: .08em; text-transform: uppercase; }

/* FAQ */
.faq { display: grid; gap: 10px; margin: 18px 0 8px; }
.faq details {
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.faq details[open] { border-color: #3d3d43; }
.faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding: 0 20px 18px; }
.faq .faq-body > :first-child { margin-top: 0; }
.faq .faq-body > :last-child { margin-bottom: 0; }

.steps-inline { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-inline li {
  position: relative;
  padding: 2px 0 2px 44px;
  margin: 14px 0;
  counter-increment: s;
}
.steps-inline li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}

/* 404 */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 100px var(--gutter);
}
.not-found .display { font-size: clamp(96px, 30vw, 220px); color: var(--orange); }

/* ───────────── Reveal animation ───────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { 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;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* Utilidades (sin estilos inline, por la CSP) */
.lead-note { margin-top: 14px; font-size: 16px; color: var(--muted); }
.illus-note.is-center { text-align: center; }
.nf-title { margin-top: 12px; }
.nf-lead { margin: 0 auto 32px; }
