/* PlyQ · plyq.online. Grafito y lima, Inter: los mismos tokens que la app
   (docs/references/PlyQ_Identidad_Visual_Tokens.json). Estructura inspirada en discord.com: titulares grandes,
   paneles redondeados que alternan imagen y texto, una franja en movimiento y un pie por columnas. */
@font-face {
  font-family: "Inter";
  src: url("/fuentes/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #101315;
  --bg-deep: #0b0d0f;
  --surface: #1B2025;
  --surface-2: #232a30;
  --border: #2A3238;
  --accent: #C8FA72;
  --accent-pressed: #B5E563;
  --text: #F4F6F8;
  --secondary: #A2ABB4;
  --error: #FF8A8A;
  --warning: #F2C66D;
  --on-accent: #101315;
  --radius-panel: 40px;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-pressed); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; }

/* ── Encabezado ─────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { color: var(--text); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.brand::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 2px; transform: translateY(5px); }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--secondary); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.top .button { margin-left: auto; min-height: 42px; font-size: 15px; padding: 8px 18px; white-space: nowrap; }
@media (max-width: 900px) { .nav { display: none; } }

/* ── Botones ────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 0; text-align: center; line-height: 1.2;
  background: var(--accent); color: var(--on-accent);
  font: 700 17px "Inter", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { background: var(--accent-pressed); color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(200, 250, 114, 0.55); }
.button.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.button.ghost:hover { background: var(--surface-2); color: var(--text); box-shadow: none; }
.button:disabled { opacity: 0.6; cursor: default; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Titulares ──────────────────────────────────────────────────────────── */
.display {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95;
  font-size: clamp(40px, 7vw, 84px); margin: 0;
}
.display em { font-style: normal; color: var(--accent); }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.lead { color: var(--secondary); font-size: clamp(17px, 2vw, 20px); max-width: 38ch; margin: 22px 0 0; }
.tag { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 22px; color: var(--secondary); font-size: 14px; }
.tag span { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }

/* ── Portada ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 64px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto 0; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(200, 250, 114, 0.16), transparent 70%),
    radial-gradient(500px 340px at 10% 10%, rgba(120, 140, 255, 0.10), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45)); animation: flota 7s ease-in-out infinite; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero figure img, .float { animation: none !important; } }
@media (max-width: 900px) { .hero { padding-top: 36px; } .hero .wrap { grid-template-columns: 1fr; } .hero figure { order: -1; max-width: 560px; margin: 0 auto; } }

/* ── Franja en movimiento ───────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-deep); padding: 22px 0; margin: 48px 0; }
.marquee div { display: flex; gap: 40px; width: max-content; animation: corre 28s linear infinite; }
.marquee span { font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 5vw, 64px); letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.marquee span::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
@keyframes corre { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee div { animation: none; } }

/* ── Paneles ────────────────────────────────────────────────────────────── */
.panels { display: grid; gap: 28px; padding: 24px 0; }
.panel {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 55%);
  border: 1px solid var(--border); border-radius: var(--radius-panel);
  padding: 44px; overflow: hidden; position: relative;
}
.panel:nth-child(even) .media { order: -1; }
.panel h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; font-size: clamp(30px, 4vw, 48px); margin: 0 0 16px; }
.panel p { color: var(--secondary); margin: 0 0 12px; max-width: 46ch; }
.panel ul { color: var(--secondary); padding-left: 20px; margin: 12px 0 0; }
.panel li { margin: 6px 0; }
.media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.media .phone { width: min(260px, 60%); border-radius: 34px; border: 6px solid #2e353b; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.media .float { position: absolute; width: 46%; right: -2%; bottom: -4%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5)); animation: flota 8s ease-in-out infinite; }
.panel:nth-child(even) .media .float { right: auto; left: -2%; }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 28px; }
  .panel:nth-child(even) .media { order: 0; }
  .media { min-height: 0; }
}

/* ── Bloques ────────────────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; font-size: clamp(30px, 4.5vw, 54px); margin: 0 0 14px; }
.section-head p { color: var(--secondary); margin: 0; }
.band { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.facts div { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px; }
.facts strong { display: block; font-size: 18px; margin-bottom: 4px; }
.facts span { color: var(--secondary); font-size: 15px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }

/* Preguntas frecuentes */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: var(--accent); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--secondary); margin: 0 0 18px; }

/* ── Lista de espera ────────────────────────────────────────────────────── */
.waitlist .band { background: linear-gradient(160deg, #1d2a14, var(--surface) 60%); border: 1px solid #3a4a26; border-radius: var(--radius-panel); padding: 44px; }
@media (max-width: 900px) { .waitlist .band { padding: 26px 20px; border-radius: 28px; } }
.waitlist h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; font-size: clamp(30px, 4vw, 48px); margin: 0 0 12px; }
.waitlist .band > div > p { color: var(--secondary); margin: 0 0 20px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 22px; padding: 22px; display: grid; gap: 14px; }
label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
input[type="email"], select {
  width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; padding: 0 14px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--secondary); font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.card .button { width: 100%; border-radius: 14px; }
.message { margin: 0; font-size: 14px; }
.message.ok { color: var(--accent); }
.message.error { color: var(--error); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.small { color: var(--secondary); font-size: 13px; margin: 0; }
.note { color: var(--secondary); font-size: 13px; margin-top: 14px; }

/* ── Documentos ─────────────────────────────────────────────────────────── */
.document { max-width: 780px; padding-top: 48px; padding-bottom: 56px; }
.document h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 6px; }
.document h2 { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 36px 0 10px; }
.document ul { padding-left: 22px; margin: 8px 0; }
.document li { margin: 6px 0; }
.meta { color: var(--secondary); font-size: 14px; margin: 0 0 24px; }
.pending { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--warning); border-radius: 12px; padding: 12px 16px; color: var(--secondary); }
.pending strong { color: var(--warning); }
.crumbs { font-size: 14px; color: var(--secondary); }
.crumbs a { color: var(--secondary); }

/* ── Pie ────────────────────────────────────────────────────────────────── */
.foot { margin-top: 56px; background: var(--bg-deep); border-top: 1px solid var(--border); padding: 56px 0 40px; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.foot .about p { color: var(--secondary); font-size: 15px; max-width: 34ch; }
.foot .about img { width: 120px; margin-top: 8px; }
.foot h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 6px 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--secondary); text-decoration: none; font-size: 15px; }
.foot ul a:hover { color: var(--text); }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 22px; color: var(--secondary); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 900px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }
.band .facts { grid-template-columns: 1fr; }

/* ── Juegos ─────────────────────────────────────────────────────────────── */
.game { padding-top: 32px; padding-bottom: 24px; }
.display.compact { font-size: clamp(34px, 5.2vw, 64px); }
.game-hero { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; margin: 18px 0 36px; }
.game-hero .cover { width: 100%; border-radius: 32px; border: 1px solid var(--border); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
@media (max-width: 900px) { .game-hero { grid-template-columns: 1fr; } .game-hero .cover { max-width: 220px; } }
.game-facts { margin-bottom: 12px; }
.game-facts span { display: block; }
.game-facts .source { margin-top: 8px; font-size: 13px; }
.section-tight { padding: 28px 0; }
.section-tight > h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; }
.section-tight > p, .section-tight li { color: var(--secondary); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.game-card { display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 10px 10px 14px; transition: transform 0.15s ease, border-color 0.15s ease; }
.game-card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
.game-card img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 6px; }
.game-card strong { font-size: 15px; line-height: 1.25; }
.game-card span { color: var(--secondary); font-size: 12.5px; }
@media (max-width: 600px) { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .game-card { border-radius: 18px; padding: 8px 8px 12px; } .game-card strong { font-size: 14px; } }

/* ── Guías ──────────────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; counter-reset: none; }
.steps li { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px 22px; }
.steps strong { font-size: 19px; }
.steps p { color: var(--secondary); margin: 4px 0 0; }
.step-number { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 900; display: grid; place-items: center; font-size: 18px; }
.shots-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shots-row figure { margin: 0; }
.shots-row img { border-radius: 26px; border: 5px solid #2e353b; }
.shots-row figcaption { color: var(--secondary); font-size: 14px; text-align: center; margin-top: 8px; }
@media (max-width: 900px) { .shots-row { grid-template-columns: repeat(2, 1fr); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { color: var(--secondary); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th a { color: var(--text); }
td { color: var(--secondary); }
.game .facts { margin: 8px 0 12px; }
