/* JosiaPlayer · sitio público (portada, soporte y textos legales).
   Sin recursos de terceros: la fuente de la marca va en el propio sitio (licencia en fonts/OFL.txt)
   y el texto largo usa la fuente del sistema. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #0e1116;
  --surface: #171b22;
  --surface-hi: #20252e;
  --border: #2e343e;
  --text: #ffffff;
  --text-soft: #d9dde3;
  --muted: #9aa3af;
  --accent: #ff6b2c;
  --accent-text: #ff9466; /* naranja para texto sobre fondo oscuro (contraste 4.5:1) */
  --on-accent: #0e1116;
  --focus: #ff9466;
  --radius: 14px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f2;
    --surface: #ffffff;
    --surface-hi: #efede8;
    --border: #dedad2;
    --text: #0e1116;
    --text-soft: #2b313b;
    --muted: #5b6370;
    --accent: #e8561a;
    --accent-text: #b8400f;
    --on-accent: #0e1116; /* blanco sobre #E8561A no llega a 4.5:1 */
    --focus: #b8400f;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font: 400 17px/1.65 var(--font-body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap--text { max-width: 760px; }

/* ---------------------------------------------------------------- cabecera */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
@media (min-width: 720px) { .site-header { position: sticky; top: 0; z-index: 5; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 32px; width: auto; }
.logo-light { display: none; }
@media (prefers-color-scheme: light) { .logo-dark { display: none; } .logo-light { display: block; } }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--surface-hi); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-hi); }

/* ---------------------------------------------------------------- tipografía */
h1, h2, h3 { font-family: var(--font-display); color: var(--text); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 700; margin: 0 0 12px; }
h2 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 700; margin: 48px 0 12px; scroll-margin-top: 96px; }
h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; scroll-margin-top: 96px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--text); font-weight: 600; }
.lead { font-size: 19px; color: var(--text-soft); max-width: 62ch; }
.meta { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- páginas de texto */
.page { padding: 48px 0 72px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0 8px; }
.toc h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 260px; column-gap: 32px; }
.toc li { break-inside: avoid; margin-bottom: 4px; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }
.note { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 20px 0; }
.note p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--text); font-family: var(--font-display); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 10px; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--text); min-height: 44px; list-style-position: outside; margin-left: 18px; }
details > div { padding: 0 20px 6px; }

/* ---------------------------------------------------------------- portada */
.hero { padding: 72px 0 56px; }
.hero .symbol { width: 72px; height: auto; margin-bottom: 24px; }
.hero h1 { font-size: clamp(38px, 7.5vw, 64px); }
.hero h1 span { color: var(--accent-text); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.badges li { margin: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; text-decoration: none; font-family: var(--font-display); transition: transform 0.15s ease, background-color 0.2s ease; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-hi); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; font-size: 16px; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-hi); color: var(--accent-text); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }

/* ---------------------------------------------------------------- pie */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer nav a { color: var(--text-soft); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer nav a:hover { color: var(--accent-text); text-decoration: underline; }
.site-footer p { margin: 0 0 6px; }
