/* www.harmoniosa.com — misma paleta y tipografía que el juego. */
@font-face { font-family: 'Cinzel'; font-weight: 600; font-display: swap; src: url('fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url('fonts/cinzel-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #080513;
  --bg-2: #0f0a22;
  --panel: rgba(24, 14, 46, 0.72);
  --line: rgba(255, 224, 138, 0.22);
  --ink: #f1ecff;
  --muted: #b7aedb;
  --gold: #ffd27a;
  --gold-2: #c2903f;
  --violet: #b37cff;
  --gold-grad: linear-gradient(180deg, #f6dc98, #c99642);
  --radius: 18px;
  --wrap: min(1120px, calc(100% - 32px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(120, 60, 220, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 40%, rgba(40, 90, 220, 0.14), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(170, 70, 200, 0.14), transparent 70%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: 'Cinzel', serif; font-weight: 700; line-height: 1.15; margin: 0; color: #fff3cf; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.wrap { width: var(--wrap); margin: 0 auto; }
.eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: var(--bg-2); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Imágenes por idioma */
html[lang='en'] .l-es, html:not([lang='en']) .l-en { display: none !important; }

/* ------------------------------------------------------------ cabecera */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 5, 19, 0.72); border-bottom: 1px solid rgba(255, 224, 138, 0.1); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff3cf; font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button { all: unset; cursor: pointer; font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.langs button[aria-pressed='true'] { background: var(--gold-grad); color: #2a1606; }
@media (max-width: 760px) { .nav { display: none; } .langs { margin-left: auto; } }

/* --------------------------------------------------------------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 800; font-size: 1rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--panel); transition: transform 0.15s, filter 0.15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn.gold { background: var(--gold-grad); color: #2a1606; border-color: #fff0c2; box-shadow: 0 6px 26px rgba(255, 190, 80, 0.25); }
.btn small { font-weight: 700; opacity: 0.75; }
.btn.soon { opacity: 0.6; pointer-events: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------------------------------------------- héroe */
.hero { position: relative; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; }
.hero-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 14%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-copy { position: relative; margin-top: 8px; display: grid; gap: 18px; justify-items: center; text-align: center; padding-bottom: 24px; }
.hero-copy h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); max-width: 22ch; }
.hero-copy .lead { margin: 0 auto; }
.hero-copy .ctas { justify-content: center; }
.hero-note { font-size: 0.85rem; color: var(--muted); }
.wide-only { display: none; }
@media (min-width: 900px) { .wide-only { display: block; } .narrow-only { display: none; } .hero-copy { margin-top: 20px; } }

/* -------------------------------------------------------------- cifras */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 40px auto 0; }
.stat { text-align: center; padding: 18px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat b { display: block; font-family: 'Cinzel', serif; font-size: 2rem; color: var(--gold); line-height: 1.1; }
.stat span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:last-child { grid-column: span 2; } }

/* ------------------------------------------------------------- secciones */
section { padding: 88px 0 0; }
.head { display: grid; gap: 12px; margin-bottom: 36px; }
.head.center { justify-items: center; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 10px; align-content: start; }
.card .num { font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.4rem; }
.card p { color: var(--muted); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Capturas: carrusel con desplazamiento */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 70%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 18px; scrollbar-width: thin; scrollbar-color: var(--gold-2) transparent; }
.gallery img { width: 100%; height: auto; aspect-ratio: 540 / 1169; border-radius: 22px; scroll-snap-align: center; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); background: var(--bg-2); }

/* Historia */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.story .text { display: grid; gap: 16px; }
.story .text p { color: var(--muted); }
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cast figure { margin: 0; text-align: center; }
.cast img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 30%, #2a1a52, var(--bg-2)); }
.cast figcaption { margin-top: 8px; font-family: 'Cinzel', serif; color: #fff3cf; }
.cast small { display: block; font-family: 'Nunito', sans-serif; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
.world { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.world img { width: 100%; height: 100%; object-fit: cover; }
.world::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(8, 5, 19, 0.92)); }
.world div { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.world b { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--wc); display: block; }
.world span { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 860px) { .worlds { grid-template-columns: repeat(2, 1fr); } .world:last-child { grid-column: span 2; aspect-ratio: 16 / 9; } }

/* Modos */
.modes .card h3 { color: var(--gold); }
.modes ul { margin: 0; padding-left: 18px; color: var(--muted); }

/* Demo y descarga */
.panel-cta { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(ellipse at 85% 20%, rgba(255, 140, 50, 0.22), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(140, 80, 255, 0.25), transparent 60%), var(--panel);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.panel-cta .text { display: grid; gap: 14px; }
.panel-cta .text p { color: var(--muted); }
.panel-cta img { justify-self: center; width: min(300px, 80%); filter: drop-shadow(0 0 30px rgba(255, 190, 120, 0.4)); }
@media (max-width: 760px) { .panel-cta { grid-template-columns: 1fr; } .panel-cta img { order: -1; width: 160px; } }
.download { text-align: center; display: grid; justify-items: center; gap: 18px; padding-bottom: 20px; }
.download img.icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 40px rgba(160, 110, 255, 0.35); }

/* ------------------------------------------------------------ pie */
footer { margin-top: 96px; border-top: 1px solid rgba(255, 224, 138, 0.1); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ------------------------------------------- páginas de texto (soporte, privacidad) */
.doc { width: min(780px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 0; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 10px 0 14px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 10px; }
.doc p, .doc li { color: #d8d0ff; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--muted); font-size: 0.9rem; }
.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 16px; display: grid; gap: 8px; }
.contact { margin-top: 36px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: grid; gap: 10px; }
