/*
 * Blitzia Ball — páginas interiores (noticias, prensa, soporte, textos legales, 404).
 * Se carga después de site.css, que pone la base, la cabecera, el pie y los botones.
 */

:root {
  --panel: rgba(6, 30, 52, 0.72);
  --panel-edge: rgba(94, 225, 255, 0.16);
  --panel-edge-strong: rgba(94, 225, 255, 0.34);
  --danger: #ff8a7a;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

body { background: radial-gradient(1100px 600px at 80% 18%, rgba(26, 166, 214, 0.08), transparent 70%), var(--deep); }

/* ───────────── Cabecera de página ───────────── */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 92px)) 0 clamp(40px, 5vw, 64px);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(1.05) brightness(0.55); transform: scale(1.04); }
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 10, 22, 0.88) 0%, rgba(2, 10, 22, 0.55) 55%, rgba(2, 10, 22, 0.35) 100%),
    linear-gradient(180deg, rgba(2, 9, 18, 0.55) 0%, transparent 35%, rgba(3, 13, 26, 0.7) 80%, var(--deep) 100%);
}
.page-hero-inner { position: relative; animation: rise-in 0.9s var(--ease-out) both; }
.page-title {
  margin-top: 14px; max-width: 900px;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1; letter-spacing: 0.005em; text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 35%, #a9eeff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}
.page-lead { margin-top: 16px; max-width: 700px; font-size: 1.12rem; color: #d3e4ee; text-wrap: pretty; }
.page-hero .eyebrow { gap: 12px; }
.page-hero .eyebrow .tag { letter-spacing: 0.14em; }
.page-hero .eyebrow time { color: var(--ink-soft); letter-spacing: 0.12em; }
.page-hero-article .eyebrow::before { display: none; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  background: rgba(3, 14, 28, 0.6); border: 1px solid var(--panel-edge);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chip strong { color: var(--ink); }

mark.todo { padding: 0 4px; border-radius: 4px; background: rgba(255, 201, 77, 0.22); color: var(--gold); outline: 1px dashed rgba(255, 201, 77, 0.6); }

/* ───────────── Documento (textos legales y soporte) ───────────── */

.layout {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: 8px var(--gutter) clamp(64px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
}
@media (min-width: 1020px) { .layout.with-toc { grid-template-columns: 280px minmax(0, 1fr); align-items: start; } }

.toc { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius); padding: 6px 8px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3); }
.toc summary {
  list-style: none; cursor: pointer; padding: 12px 12px; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.1rem; color: var(--cyan); letter-spacing: 0; }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: 0; padding: 0 6px 10px 6px; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--cyan-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.toc a:hover { background: rgba(79, 224, 255, 0.08); color: #fff; }
@media (min-width: 1020px) { .toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; } }

.doc {
  background: linear-gradient(180deg, rgba(10, 38, 64, 0.62), rgba(4, 18, 34, 0.82));
  border: 1px solid var(--panel-edge); border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); padding: clamp(22px, 4vw, 52px);
  line-height: 1.7;
}
.doc a { text-decoration: underline; text-decoration-color: rgba(79, 224, 255, 0.4); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc > section + section { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(94, 225, 255, 0.1); }
.doc h2 {
  margin: 0 0 16px; display: flex; gap: 14px; align-items: baseline;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.1; letter-spacing: 0.01em; color: #fff;
}
.doc h2 .num { flex: none; font-size: 0.72em; color: var(--gold); font-variant-numeric: tabular-nums; }
.doc h3 { margin: 24px 0 8px; font-size: 1.08rem; font-weight: 800; color: var(--cyan); letter-spacing: 0.01em; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc ul { list-style: disc; } .doc ol { list-style: decimal; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--cyan-deep); }
.doc strong { color: #fff; }
.doc code, .doc kbd { font-family: var(--mono); font-size: 0.9em; padding: 2px 7px; border-radius: 6px; background: rgba(79, 224, 255, 0.1); border: 1px solid var(--panel-edge); color: #c9f5ff; }

.callout { position: relative; margin: 18px 0; padding: 16px 18px 16px 22px; border-radius: var(--radius-sm); background: rgba(79, 224, 255, 0.07); border: 1px solid var(--panel-edge-strong); }
.callout::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--cyan-deep)); }
.callout.gold { background: rgba(255, 201, 77, 0.08); border-color: rgba(255, 201, 77, 0.34); }
.callout.gold::before { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout .title { display: block; font-weight: 800; color: #fff; margin-bottom: 4px; }

.table-wrap { overflow-x: auto; margin: 10px 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--panel-edge); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid rgba(94, 225, 255, 0.1); }
.doc th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); background: rgba(3, 16, 29, 0.55); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { color: #fff; font-weight: 600; }

.steps { list-style: none !important; padding: 0 !important; margin: 16px 0 20px; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; margin: 0; padding: 14px 16px 14px 62px; border-radius: var(--radius-sm); background: rgba(3, 16, 29, 0.55); border: 1px solid var(--panel-edge); }
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); color: #3b2300;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.18);
}
.path, .code-path { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 800; letter-spacing: 0.04em; }
.path span, .code-path span { padding: 3px 10px; border-radius: 6px; font-size: 0.84rem; background: rgba(79, 224, 255, 0.12); border: 1px solid var(--panel-edge-strong); color: #d8f8ff; }
.path i, .code-path i { font-style: normal; color: var(--gold); }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); color: var(--ink); text-decoration: none !important;
  background: linear-gradient(180deg, rgba(10, 44, 70, 0.85), rgba(4, 22, 38, 0.85)); border: 1px solid var(--panel-edge);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
a.card:hover { transform: translateY(-4px); border-color: var(--panel-edge-strong); color: var(--ink); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(79, 224, 255, 0.12); border: 1px solid var(--panel-edge-strong); color: var(--cyan); }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 6px 0 0; font-size: 1.08rem; color: #fff; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.card .go { margin-top: auto; padding-top: 8px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* Formularios: sugerencias (se envía a la API del juego) y borrar cuenta (compone un email). */
.form { display: grid; gap: 14px; margin: 14px 0 6px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; color: #fff; }
.form .hint { font-weight: 400; color: var(--ink-faint); font-size: 0.85rem; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); padding: 11px 13px; border-radius: 12px; background: rgba(2, 11, 22, 0.75); border: 1px solid var(--panel-edge-strong); transition: border-color 0.2s, box-shadow 0.2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(79, 224, 255, 0.18); }
.form textarea { min-height: 96px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink-soft); }
.form .check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--gold); flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn-ghost { color: var(--cyan); background: rgba(3, 13, 26, 0.35); border: 1px solid var(--panel-edge-strong); }
.btn-ghost:hover { color: #fff; background: rgba(79, 224, 255, 0.1); border-color: var(--cyan); }
.doc .btn { text-decoration: none; }
.btn:disabled { cursor: progress; filter: saturate(0.4) brightness(0.85); }

.form.feedback { gap: 18px; margin-top: 18px; }
.choices { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choices legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 0.92rem; color: #fff; }
.choice { display: inline-flex !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  color: var(--ink-soft); background: rgba(2, 11, 22, 0.6); border: 1px solid var(--panel-edge-strong);
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.choice span svg { width: 19px; height: 19px; flex: none; }
.choice:hover span { color: #fff; border-color: rgba(94, 225, 255, 0.5); }
.choice input:checked + span { color: #06202f; background: linear-gradient(180deg, #8ff0ff, var(--cyan) 55%, var(--cyan-deep)); border-color: transparent; box-shadow: 0 6px 18px rgba(79, 224, 255, 0.25); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.form.feedback textarea { min-height: 160px; line-height: 1.55; }
.form .counter { justify-self: end; font-weight: 600; font-size: 0.82rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.form .counter.warn { color: var(--gold); }
.form .counter.over { color: var(--danger); }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { margin: 0; font-size: 0.85rem; color: var(--ink-faint); }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.form-status.error { color: var(--danger); }
.form-done { margin-top: 18px; padding: 30px 24px; border-radius: var(--radius); text-align: center; background: linear-gradient(180deg, rgba(70, 224, 122, 0.1), rgba(4, 22, 38, 0.6)); border: 1px solid rgba(70, 224, 122, 0.35); outline: none; }
.form-done h3 { margin: 12px 0 6px; font-size: 1.4rem; color: #fff; }
.form-done p { margin: 0 0 12px; color: var(--ink-soft); }
.form-done .done-ref strong { font-family: var(--mono); letter-spacing: 0.08em; color: var(--gold); }
.done-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #05321a; background: radial-gradient(circle at 35% 30%, #9bf5b8, #46e07a 60%, #23a653); box-shadow: 0 0 0 6px rgba(70, 224, 122, 0.15), 0 10px 30px rgba(70, 224, 122, 0.3); }
.done-mark svg { width: 34px; height: 34px; }
@media (prefers-reduced-motion: no-preference) { .form-done:not([hidden]) .done-mark { animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ───────────── Noticias ───────────── */

.section-news-list { padding-top: 12px; }
.section-news-list::before { display: none; }
.news-all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-all .news-feature { grid-column: 1 / -1; }
.news-all .news-feature .news-link { display: grid; grid-template-columns: 1.25fr 1fr; }
.news-all .news-feature .news-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.news-all .news-feature .news-body { align-content: center; padding: clamp(24px, 3vw, 44px); }
.news-all .news-feature .news-body h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }

.article-wrap { padding-bottom: clamp(64px, 8vw, 110px); }
.article { max-width: 860px; margin: 0 auto; }
.article-media { margin-bottom: -40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--panel-edge-strong); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); position: relative; z-index: 1; }
.article-media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 30%; }
.article-body { padding-top: 76px; font-size: 1.06rem; }
.article-body h2 { display: block; font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 26px; }
.article-back { margin-top: 26px; }
.link-back::after { content: none; }
.link-back::before { content: "←"; color: var(--cyan); }
.news-more { max-width: 1100px; margin: clamp(56px, 7vw, 90px) auto 0; }
.sec-title-sm { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 24px; }
.news-two { grid-template-columns: 1fr 1fr; }

/* ───────────── Kit de prensa ───────────── */

.press { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.press-main { display: grid; gap: clamp(20px, 3vw, 32px); }
.press-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.panel-plain { border-radius: var(--radius); background: linear-gradient(180deg, rgba(10, 38, 64, 0.62), rgba(4, 18, 34, 0.82)); border: 1px solid var(--panel-edge); padding: clamp(22px, 3vw, 36px); }
.panel-plain > h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.1; margin-bottom: 14px; }
.panel-plain > p { color: var(--ink-soft); }
.panel-plain > p + p { margin-top: 12px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: 0.95rem; }
.facts dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.dl {
  display: grid; gap: 0; overflow: hidden; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: rgba(2, 11, 22, 0.6); border: 1px solid var(--panel-edge); transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.dl:hover { transform: translateY(-4px); border-color: var(--cyan); color: #fff; }
.dl img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dl-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dl-tall img { aspect-ratio: 3 / 4; object-position: 50% 20%; }
.dl-contain img { object-fit: contain; }
.dl span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 0.86rem; font-weight: 700; }
.dl span::after { content: "↓"; color: var(--cyan); font-weight: 800; }
.dl small { color: var(--ink-faint); font-weight: 600; }
.press-cta { text-align: center; }
.press-cta .btn { width: 100%; }
.press-cta p { margin-top: 10px; font-size: 0.85rem; color: var(--ink-faint); }
.contact-line { display: grid; gap: 4px; }
.contact-line a { font-weight: 800; font-size: 1.05rem; }

/* ───────────── 404 ───────────── */

.lost { text-align: center; padding: 10px 0 clamp(80px, 10vw, 130px); }
.lost-code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 11rem); line-height: 0.9; background: linear-gradient(180deg, rgba(169, 238, 255, 0.9), rgba(26, 166, 214, 0.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost .btn-row { justify-content: center; margin-top: 26px; }
.lost p { color: var(--ink-soft); max-width: 560px; margin: 16px auto 0; text-wrap: balance; }

/* ───────────── Móvil ───────────── */

@media (max-width: 1060px) {
  .press { grid-template-columns: 1fr; }
  .press-side { position: static; }
  .news-all { grid-template-columns: 1fr 1fr; }
  .news-all .news-feature .news-link { grid-template-columns: 1fr; }
  .news-all .news-feature .news-media img { min-height: 0; height: auto; width: 100%; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .page-hero { padding-top: calc(var(--header-h) + 40px); }
  .page-lead { font-size: 1rem; }
  .layout { gap: 18px; }
  .doc { border-radius: 16px; }
  .steps li { padding-left: 58px; }
  .news-all, .news-two { grid-template-columns: 1fr; }
  .article-media { margin-bottom: -24px; }
  .article-body { padding-top: 48px; font-size: 1rem; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 10px; }
  .dl-grid, .dl-grid-4 { grid-template-columns: 1fr 1fr; }
  .dl small { display: none; }
  .doc { padding: 22px 18px; }
  .panel-plain { padding: 22px 18px; }
}

/* ───────────── Impresión: textos legales en blanco y negro ───────────── */

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-footer, .page-hero-bg, .toc, .skip-link, .btn, .form { display: none !important; }
  .page-hero { padding: 0 0 12pt; }
  .page-title { color: #000; background: none; -webkit-text-fill-color: #000; filter: none; }
  .page-lead, .chip { color: #333; }
  .doc { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0; }
  .doc strong, .doc h2 { color: #000 !important; }
  .doc h3, .eyebrow, .doc th { color: #333 !important; }
  .card, .callout, .steps li { background: none !important; border-color: #bbb !important; }
  a { color: #000; }
}
.press-note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-faint); }
