@font-face { font-family: "Lilita One"; src: url("../fonts/lilita.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #0d1636;
  --bg2: #142152;
  --panel: #1a2a63;
  --ink: #0b0b12;
  --text: #f4f6ff;
  --muted: #b3bde6;
  --blue: #2f8cff;
  --yellow: #ffd23f;
  --red: #ff4b3e;
  --green: #34c759;
  --purple: #6d2bb8;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% -10%, #23358a 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); }
h1, h2, h3, .display { font-family: "Lilita One", "Nunito", system-ui, sans-serif; font-weight: 400; letter-spacing: 0.01em; line-height: 1.1; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* cabecera */
.top { position: sticky; top: 0; z-index: 10; background: rgba(13, 22, 54, 0.88); backdrop-filter: blur(10px); border-bottom: 2px solid rgba(255, 255, 255, 0.06); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.top .brand img { height: 38px; width: auto; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 800; font-size: 0.95rem; padding: 6px 10px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 560px) { .top nav a.hide-sm { display: none; } }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Lilita One", system-ui, sans-serif; font-size: 1.15rem; letter-spacing: 0.02em;
  padding: 12px 22px; border-radius: 14px; border: 3px solid var(--ink); text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--yellow); box-shadow: 0 5px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.btn.small { font-size: 1rem; padding: 8px 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row.center { justify-content: center; }

/* portada */
.hero { padding: 42px 0 18px; text-align: center; }
.hero .logo { width: min(560px, 90%); margin: 0 auto 18px; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.35)); }
.hero .tag { font-size: clamp(1.1rem, 3.6vw, 1.45rem); font-weight: 800; margin-bottom: 22px; }
.hero .tag b { color: var(--yellow); }
.cast { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 26px auto 0; max-width: 820px; }
.cast img { height: clamp(110px, 22vw, 210px); width: auto; margin: 0 -1.5vw; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); transition: transform 0.2s; }
.cast img:hover { transform: translateY(-8px) rotate(-2deg); }

/* secciones y tarjetas */
section { padding: 36px 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: linear-gradient(160deg, var(--panel), var(--bg2)); border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden;
}
.card h3 { margin-bottom: 6px; }
.card .pill { display: inline-block; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); margin-bottom: 10px; }
.card .pill.soon { background: var(--purple); color: #fff; }
.card.play { border-color: rgba(255, 210, 63, 0.45); }
.card .art { height: 150px; display: flex; align-items: flex-end; justify-content: center; margin: -6px -6px 12px; }
.card .art img { max-height: 150px; width: auto; }
.card.cadena { background: linear-gradient(180deg, rgba(10, 14, 40, 0.15), rgba(10, 14, 40, 0.95)), url("../img/cadena_bg.webp") center/cover; min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; }
.card.cadena .art img { max-height: 120px; }
.sections .card { text-align: center; }
.sections .card img { height: 84px; width: auto; margin: 0 auto 10px; object-fit: contain; }

/* redes */
.social a { text-decoration: none; }
.notice { background: rgba(255, 210, 63, 0.1); border: 2px dashed rgba(255, 210, 63, 0.5); border-radius: 14px; padding: 12px 16px; font-weight: 700; }

/* pie */
footer { padding: 30px 0 40px; border-top: 2px solid rgba(255, 255, 255, 0.06); margin-top: 30px; font-size: 0.92rem; color: var(--muted); }
footer a { color: var(--muted); }

/* juegos (test y reto) */
.game { max-width: 560px; margin: 0 auto; padding: 28px 16px 10px; }
.panel { background: linear-gradient(160deg, var(--panel), var(--bg2)); border: 3px solid rgba(255, 255, 255, 0.1); border-radius: 22px; padding: 22px; }
.q { font-size: 1.3rem; font-weight: 900; margin-bottom: 14px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; font: inherit; font-weight: 800; color: var(--text); background: rgba(255, 255, 255, 0.07); border: 2px solid rgba(255, 255, 255, 0.15); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.opt:hover { border-color: var(--yellow); background: rgba(255, 210, 63, 0.12); }
.progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-bottom: 18px; }
.progress > i { display: block; height: 100%; background: var(--yellow); width: 0; transition: width 0.25s; }
.result img { height: 220px; width: auto; margin: 0 auto 8px; }
.big { font-family: "Lilita One", system-ui, sans-serif; font-size: clamp(2.4rem, 10vw, 3.6rem); color: var(--yellow); line-height: 1; }
input.answer { width: 100%; font: inherit; font-size: 2rem; font-weight: 900; text-align: center; padding: 12px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; color: var(--ink); margin: 6px 0 12px; }
.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.preview { width: 100%; max-width: 300px; margin: 14px auto; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.15); }
.legal h2 { font-size: 1.5rem; margin-top: 1.4em; }
.legal { max-width: 760px; }
.hero-usu { width: 200px; height: auto; margin: 0 auto 6px; }
