/* Estilos compartidos de las páginas de CreaTuMundo (portada, XOMBIES, VIRAR). */
:root {
  --bg: #0b0a0c;
  --panel: #151216;
  --line: #2a2328;
  --text: #f4f1f2;
  --muted: #b6aab0;
  --red: #ff2a1f;
  --red-deep: #b3120c;
  --orange: #ff6a00;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: "Montserrat", sans-serif; font-weight: 900; letter-spacing: .5px; line-height: 1.05; margin: 0; }

/* ---------- barra superior ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(180deg, rgba(11,10,12,.85), rgba(11,10,12,0));
  transition: background .25s;
}
.top.solid { background: rgba(11,10,12,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 15px/1 "Montserrat"; letter-spacing: 2.5px; }
.brand i { width: 32px; height: 32px; flex: none; border-radius: 50%; background: url(/assets/brand/logo.png) center/cover; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.top-right { display: flex; align-items: center; gap: 10px; }
.back { text-decoration: none; font: 900 12px/1 "Montserrat"; letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 13px; border-radius: 999px;
  color: #fff; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.18); }
.back:hover { background: rgba(255,255,255,.12); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: rgba(0,0,0,.35); }
.lang button { all: unset; cursor: pointer; padding: 7px 12px; font: 700 12px/1 "Montserrat"; letter-spacing: 1px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }
/* En móviles estrechos, con el botón de volver no cabe el nombre: queda solo el logo. */
@media (max-width: 430px) { .top:has(.back) .brand { font-size: 0; gap: 0; } }

/* ---------- piezas comunes ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge { font: 900 12px/1 "Montserrat"; letter-spacing: 1.5px; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); }
.badge.hot { background: var(--red); border-color: var(--red); }
.badge.steam { background: #1b2838; border-color: #2a475e; color: #66c0f4; }
.ctas { display: grid; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 26px; border-radius: 16px; text-decoration: none;
  font: 900 clamp(16px, 4.6vw, 19px)/1.1 "Montserrat"; letter-spacing: .6px; text-transform: uppercase;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn svg { width: 26px; height: 26px; flex: none; }
.btn-main { width: min(460px, 100%); background: var(--red); color: #fff; box-shadow: 0 8px 0 var(--red-deep), 0 18px 40px rgba(255,42,31,.35); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 10px 0 var(--red-deep), 0 22px 50px rgba(255,42,31,.45); }
.btn-main:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--red-deep); }
.btn-steam { width: min(460px, 100%); background: linear-gradient(90deg, #06bfff, #2d73ff); color: #fff; box-shadow: 0 8px 0 #1a4bb0, 0 18px 40px rgba(45,115,255,.3); }
.btn-steam:hover { transform: translateY(-2px); box-shadow: 0 10px 0 #1a4bb0, 0 22px 50px rgba(45,115,255,.4); }
.btn-steam:active { transform: translateY(6px); box-shadow: 0 2px 0 #1a4bb0; }
.btn-ghost { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); min-height: 48px; font-size: 14px; }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.note { font-size: 14px; color: var(--muted); margin: 0; }
.note strong { color: #fff; }
.chip { display: inline-block; font: 900 11px/1 "Montserrat"; letter-spacing: 2px; padding: 7px 10px; border-radius: 999px; background: #2b3036; color: #fff; margin-bottom: 10px; }

section { padding: 72px 0; }
.kicker { font: 900 13px/1 "Montserrat"; letter-spacing: 3px; color: var(--red); text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(30px, 7vw, 52px); margin-bottom: 14px; }
h2 em { font-style: normal; color: var(--red); }
.lead { color: var(--muted); max-width: 640px; margin: 0 0 30px; }

.trailer { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.5); background: #000; aspect-ratio: 16 / 9; }
.trailer video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- mis otros juegos ---------- */
.more { padding: 64px 0 72px; border-top: 1px solid var(--line); }
.more-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.game-card { position: relative; display: grid; align-content: end; min-height: 220px; padding: 20px; border-radius: 20px; overflow: hidden; isolation: isolate;
  text-decoration: none; border: 1px solid var(--line); background: #000; }
.game-card img.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.game-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.85)); }
.game-card:hover img.bg { transform: scale(1.05); }
.game-card .glogo { width: min(240px, 70%); height: auto; margin-bottom: 8px; }
.game-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 900 12px/1 "Montserrat"; letter-spacing: 1.5px; }
.game-card .go { padding: 9px 12px; border-radius: 999px; background: #fff; color: #000; }
.all-games { display: inline-block; margin-top: 18px; color: var(--muted); font-weight: 700; }

/* ---------- pie, botón fijo, visor ---------- */
footer { padding: 40px 0 calc(110px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: #fff; }

.sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translateY(140%); transition: transform .3s cubic-bezier(.2,.9,.3,1.2); }
.sticky.show { transform: none; }
.sticky .btn { width: 100%; min-height: 56px; }
@media (min-width: 900px) { .sticky { display: none; } footer { padding-bottom: 40px; } }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.92); display: none; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 12px; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- botones con el botón "A" de un control (en lugar de flechas) ---------- */
.game-card .go, .back { display: inline-flex; align-items: center; gap: 8px; }
.game-card .go::before, .back::before { content: "A"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font: 900 11px/1 "Montserrat"; background: currentColor; color: inherit; }
.game-card .go::before { background: #000; color: #fff; }
.back::before { content: "B"; background: #fff; color: #000; }
