/* DBO Vanilla: sistema de diseño de la landing.
   Paleta "Ki Nocturno" + Chakra Petch (títulos) / Inter (texto). Ver docs/DESIGN-BRIEF.md. */

/* ---------- Fuentes (self-hosted, subset latino: incluye ñ, tildes, ¿ ¡) ---------- */
@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/chakra-petch-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0d14;
  --bg-2: #0f121c;
  --surface: #141826;
  --surface-2: #1a1f30;
  --line: rgba(242, 244, 248, 0.08);
  --line-strong: rgba(242, 244, 248, 0.16);
  --text: #f2f4f8;
  --muted: #9aa3b5;
  --accent: #ff7a1a;
  --accent-hi: #ff9a4d;
  --accent-ink: #0b0d14;
  --cyan: #2ec5ff;
  --ok: #3ddc97;
  --danger: #ff5d6c;

  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1160px;
  --gutter: 16px;
  --header-h: 64px;
  --section-y: clamp(64px, 10vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-hi); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 13, 20, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo-word { font: 700 1.15rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.logo-word span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 767px) { .nav a:not(.btn) { display: none; } }

/* ---------- Botones ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .92rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); box-shadow: 0 8px 28px rgba(255, 122, 26, .35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 93, 108, .4); }
.btn-danger:hover { background: rgba(255, 93, 108, .1); color: var(--danger); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }

/* Botones de proveedores según sus guías de marca oficiales.
   Google (tema oscuro): fondo #131314, borde #8E918F, texto #E3E3E3, logo "G" sin modificar.
   Discord: Blurple #5865F2, texto y logo blancos. */
.btn-google { background: #131314; border-color: #8e918f; color: #e3e3e3; font-family: "Roboto", var(--font-body); font-weight: 500; }
.btn-google:hover { background: #1f1f20; color: #e3e3e3; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; color: #fff; box-shadow: 0 6px 24px rgba(88, 101, 242, .35); }

.auth-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.auth-buttons .btn { min-width: 248px; }
@media (max-width: 559px) { .auth-buttons { flex-direction: column; } .auth-buttons .btn { width: 100%; min-width: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  /* Aura: luz naranja detrás del título y destello cian */
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 140%;
  background:
    radial-gradient(42% 46% at 72% 38%, rgba(255, 122, 26, .30), transparent 70%),
    radial-gradient(30% 34% at 88% 18%, rgba(46, 197, 255, .18), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(46, 197, 255, .10), transparent 70%);
}
.hero-bg::after {
  /* Grano sutil para evitar el aspecto "plano" de los gradientes */
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: .5;
}
.hero-ring {
  position: absolute; right: -8%; top: 50%; width: min(64vw, 720px); aspect-ratio: 1; transform: translateY(-50%);
  opacity: .9;
}
.hero-ring .spin { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
.hero-ring .spin-rev { transform-origin: 50% 50%; animation: spin 90s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 899px) { .hero-ring { right: -40%; top: 18%; width: 120vw; opacity: .35; } }

.hero-content { max-width: 680px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px;
  font: 600 .78rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-hi); background: rgba(255, 122, 26, .08); border: 1px solid rgba(255, 122, 26, .35); border-radius: 999px;
}
@media (max-width: 479px) { .badge { font-size: .66rem; letter-spacing: .08em; } }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 122, 26, .6); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .55); } 70% { box-shadow: 0 0 0 10px rgba(255, 122, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); } }
.hero h1 { margin: 22px 0 18px; font-size: clamp(2.6rem, 7.2vw, 5.2rem); text-transform: uppercase; letter-spacing: -.005em; }
.hero h1 .line { display: block; }
.hero h1 .glow { color: var(--accent); text-shadow: 0 0 32px rgba(255, 122, 26, .35); }
.lead { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--muted); font-size: .9rem; list-style: none; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }
.counter { margin-top: 28px; display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(20, 24, 38, .6); color: var(--muted); font-size: .95rem; }
.counter strong { font: 700 1.15rem/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; margin-right: 4px; }

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { font: 600 .8rem/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); text-transform: uppercase; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* Pilares */
.pillars { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillar {
  position: relative; padding: 28px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(20, 24, 38, .4));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pillar:hover { border-color: rgba(255, 122, 26, .35); transform: translateY(-2px); }
.pillar::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .7; }
.pillar .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: rgba(255, 122, 26, .1); border: 1px solid rgba(255, 122, 26, .25); margin-bottom: 20px; }
.pillar .icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 10px; }
.pillar p { color: var(--muted); }

/* Modos de juego */
.modes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mode { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.mode-tag { font: 600 .78rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mode h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 10px; }
.mode p:last-child { color: var(--muted); }
.mode-hardcore { border-color: rgba(255, 93, 108, .35); background: linear-gradient(180deg, rgba(255, 93, 108, .07), var(--surface) 55%); }
.mode-hardcore .mode-tag { color: var(--danger); }

/* Galería (placeholders con marco tipo UI de juego) */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .gallery .shot:first-child { grid-row: span 2; } }
.shot {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(255, 122, 26, .16), transparent 70%),
    radial-gradient(60% 80% at 80% 90%, rgba(46, 197, 255, .14), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center;
}
@media (min-width: 900px) { .gallery .shot:first-child { aspect-ratio: auto; min-height: 100%; } }
.shot::before {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) top left / 18px 2px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) top left / 2px 18px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) top right / 18px 2px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) top right / 2px 18px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom left / 18px 2px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom left / 2px 18px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom right / 18px 2px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom right / 2px 18px no-repeat;
}
.shot-label { position: relative; color: var(--muted); font-size: .92rem; padding: 0 24px; }
.shot-label strong { display: block; font: 600 .78rem/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.play { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(11, 13, 20, .5); }
.play svg { width: 22px; height: 22px; color: var(--text); margin-left: 3px; }

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: phase; }
.phase { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.phase-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.phase-num { font: 700 .82rem/1 var(--font-display); letter-spacing: .14em; color: var(--muted); }
.phase-num::before { counter-increment: phase; content: "FASE 0" counter(phase); }
.status { font: 600 .72rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.phase h3 { font-size: 1.25rem; margin-bottom: 10px; }
.phase ul { margin: 0; padding-left: 18px; color: var(--muted); }
.phase li + li { margin-top: 6px; }
.phase.is-current { border-color: rgba(255, 122, 26, .5); background: linear-gradient(180deg, rgba(255, 122, 26, .08), var(--surface) 60%); box-shadow: 0 0 0 1px rgba(255, 122, 26, .15), 0 18px 48px -24px rgba(255, 122, 26, .45); }
.phase.is-current .status { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.phase.is-current .phase-num { color: var(--accent-hi); }
.note { margin-top: 20px; color: var(--muted); font-size: .9rem; }

/* Devlog */
.posts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.post-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.tag { font: 600 .7rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); padding: 5px 8px; border-radius: 6px; background: rgba(46, 197, 255, .08); border: 1px solid rgba(46, 197, 255, .25); }
.post h3 { font-size: 1.15rem; }
.post h3 a { color: var(--text); text-decoration: none; }
.post h3 a:hover { color: var(--accent-hi); }
.post p { color: var(--muted); }

/* Requisitos */
.specs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.spec { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.spec h3 { font-size: 1.1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .04em; }
.spec dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.spec dt { color: var(--muted); font-size: .92rem; }
.spec dd { margin: 0; font-weight: 500; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 600 1.08rem/1.4 var(--font-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 70ch; }

/* CTA final */
.cta-final { text-align: center; overflow: hidden; isolation: isolate; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 100%, rgba(255, 122, 26, .22), transparent 70%); }
.cta-final h2 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
.cta-final p { color: var(--muted); margin: 14px auto 32px; max-width: 520px; font-size: 1.08rem; }
.cta-final .auth-buttons { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin-top: 24px; font-size: .82rem; max-width: 80ch; }

/* ---------- Páginas internas (Mi cuenta, legales) ---------- */
.page { padding: clamp(32px, 6vw, 64px) 0 var(--section-y); }
.page-narrow { max-width: 820px; }
.panel { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.panel h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 14px; }
.panel > p { color: var(--muted); }
.profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 16px; flex: none; display: grid; place-items: center; font: 700 1.6rem/1 var(--font-display); color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), #ffb36b); }
.profile h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.profile p { color: var(--muted); margin-top: 4px; }
.status-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .88rem; }
.chip-ok { color: var(--ok); background: rgba(61, 220, 151, .08); border: 1px solid rgba(61, 220, 151, .3); }
.chip svg { width: 16px; height: 16px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem/1 var(--font-display); border: 1px solid var(--line-strong); color: var(--text); }
.steps li.done .n { background: var(--ok); border-color: var(--ok); color: var(--accent-ink); }
.steps li.done { color: var(--text); }
.ids { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.ids li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.ids li > svg { width: 22px; height: 22px; flex: none; }
.ids .who { display: flex; flex-direction: column; min-width: 0; }
.ids .who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ids .linked { margin-left: auto; color: var(--ok); font-size: .82rem; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.alert { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; border: 1px solid; }
.alert-ok { color: var(--ok); border-color: rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .07); }
.alert-warn { color: #ffc36b; border-color: rgba(255, 195, 107, .4); background: rgba(255, 195, 107, .07); }
.alert-err { color: var(--danger); border-color: rgba(255, 93, 108, .4); background: rgba(255, 93, 108, .07); }
.muted { color: var(--muted); }
.skeleton { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

dialog { max-width: 440px; width: calc(100% - 32px); padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(5, 6, 10, .7); backdrop-filter: blur(4px); }
dialog h2 { font-size: 1.25rem; margin-bottom: 10px; }
dialog p { color: var(--muted); margin-bottom: 14px; }
.field { display: grid; gap: 8px; margin: 16px 0; }
.field label { font-size: .9rem; color: var(--muted); }
.field input { min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; }

/* Texto legal */
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
