/* RogueGods · web 2026 */
:root {
  --bg: #07060c;
  --bg-2: #0e0b17;
  --bg-3: #161124;
  --line: rgba(243, 194, 91, .22);
  --ink: #f5efe4;
  --muted: #b8ae9f;
  --gold: #f3c25b;
  --gold-2: #c98a2b;
  --gold-3: #fff0c4;
  --lava: #ff5b1f;
  --sky: #5fb8ff;
  --radius: 14px;
  --wrap: 1200px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-3); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #1a1205; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .ico { width: 22px; height: 22px; flex: none; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-gold {
  color: #1d1304;
  background: linear-gradient(180deg, #ffe59d 0%, var(--gold) 45%, var(--gold-2) 100%);
  box-shadow: 0 0 0 1px rgba(255, 233, 170, .55) inset, 0 10px 30px -8px rgba(243, 160, 40, .65);
}
.btn-gold:hover { color: #1d1304; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 240, 200, .8) inset, 0 16px 40px -8px rgba(255, 170, 40, .85); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset; backdrop-filter: blur(6px); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.btn-link { background: none; color: var(--ink); padding: 16px 8px; }
.btn-link:hover { color: var(--gold); }
.teaser-link { padding: 12px 0 0; font-size: 15px; }

/* Cabecera */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled { background: rgba(7, 6, 12, .82); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 26px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: .04em; position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.main-nav a:hover { color: var(--gold-3); }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #120d06; }
.lang-mobile { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

/* Portada */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; animation: drift 24s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 6, 12, .55) 0%, rgba(7, 6, 12, 0) 16%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 6, 12, .92) 17%, rgba(7, 6, 12, .55) 27%, rgba(7, 6, 12, 0) 36%);
}
.hero-content { padding: 0 0 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px 56px; align-items: end; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hero h1 { font-size: clamp(28px, 3vw, 44px); font-weight: 900; max-width: 19ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); background: linear-gradient(180deg, #fff 30%, var(--gold-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 12px; max-width: 52ch; font-size: clamp(15px, 1.25vw, 18px); color: #e8e0d2; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.launch { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.launch-date { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; color: var(--gold-3); }
.countdown { display: flex; gap: 8px; }
.countdown div { min-width: 64px; padding: 8px 6px 6px; text-align: center; border-radius: 10px; background: rgba(10, 8, 18, .6); box-shadow: 0 0 0 1px var(--line) inset; backdrop-filter: blur(6px); }
.countdown b { display: block; font-family: var(--display); font-size: 24px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.launch.is-out .countdown { display: none; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 22px; }
.hero-actions .hero-ctas { justify-content: flex-end; margin-top: 18px; }
.price-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Premios */
.awards { background: var(--bg); padding: 10px 0 30px; }
.awards-row { display: flex; justify-content: center; gap: clamp(20px, 6vw, 90px); flex-wrap: wrap; }
.laurel { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--gold); }
.laurel svg { width: 22px; height: 56px; flex: none; opacity: .9; }
.laurel-r { transform: scaleX(-1); }
.laurel figcaption { text-align: center; line-height: 1.25; }
.laurel small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.laurel strong { display: block; font-family: var(--display); font-size: 16px; color: var(--gold-3); }
.laurel span { font-size: 13px; color: var(--muted); }

/* Secciones */
.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.kicker::before, .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section h2 { font-size: clamp(30px, 4.2vw, 52px); }
.lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.section-head .lead { margin-inline: auto; max-width: 62ch; }

/* Greca griega entre bloques */
.section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13h6V3h12v8h-6V7' fill='none' stroke='%23f3c25b' stroke-width='1.6'/%3E%3Cpath d='M14 13h14' stroke='%23f3c25b' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x center / 28px 14px;
}
#game::before { display: none; }

/* Cada carta se vuelve real */
.transforms { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1060px; }
.transform { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; align-items: center; gap: 16px 28px; padding: 26px 26px 22px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.t-card { width: 100%; max-width: 220px; justify-self: center; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .7)); transform: rotate(-4deg); transition: transform .4s ease; }
.transform:hover .t-card { transform: rotate(0deg) translateY(-4px); }
.t-object { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(243, 194, 91, .18), 0 0 40px -10px rgba(255, 160, 60, .35) inset; }
.t-object img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.transform:hover .t-object img { transform: scale(1.06); }
.t-arrow { position: absolute; left: 50%; top: calc(26px + 36%); width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: linear-gradient(180deg, #ffe59d, var(--gold) 50%, var(--gold-2)); box-shadow: 0 0 18px rgba(243, 194, 91, .6); z-index: 2; }
.t-arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-top: 3px solid #1d1304; border-right: 3px solid #1d1304; transform: translateX(-2px) rotate(45deg); }
.transform p { grid-column: 1 / -1; font-size: 16px; color: var(--muted); text-align: center; }
.transform p b { color: var(--ink); font-family: var(--display); font-size: 17px; }
.t-note { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .06em; margin-top: 16px; }
.play-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(34px, 5vw, 56px); }
.play-strip figure { margin: 0; }
.play-strip button { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--bg-3); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -30px #000; }
.play-strip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.play-strip button:hover img { transform: scale(1.04); }
.play-strip figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
/* Realidad mixta */
.mr { background: radial-gradient(1200px 600px at 20% 50%, rgba(95, 184, 255, .12), transparent 60%), var(--bg-2); }
.mr-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.mr-shots { display: grid; gap: 14px; }
.mr-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(95, 184, 255, .35), 0 30px 80px -30px rgba(95, 184, 255, .45); }
.mr-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mr-shot + .mr-shot img { aspect-ratio: 16 / 7; }
.tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 6, 12, .75); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #cfe8ff; backdrop-filter: blur(6px); }
.mr-text .kicker { color: var(--sky); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.ticks li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(95, 184, 255, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%235fb8ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 0 1px rgba(95, 184, 255, .4) inset; }

/* Cifras */
.stats { padding: 46px 0; background: linear-gradient(90deg, rgba(201, 138, 43, .08), rgba(243, 194, 91, .16), rgba(201, 138, 43, .08)); border-block: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5vw, 64px); line-height: 1; background: linear-gradient(180deg, #fff6d8, var(--gold) 60%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat sup { font-size: .45em; vertical-align: super; }
.stat span { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Héroes */
.heroes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hero-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--bg-3); display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .35s ease, box-shadow .35s ease; }
.hero-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--accent), 0 30px 70px -30px var(--accent); }
.hero-portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s ease; }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-3) 0%, transparent 35%); }
.hero-card:hover .hero-portrait img { transform: scale(1.05); }
.hero-card-body { position: relative; z-index: 1; padding: 6px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hero-role { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.hero-card h3 { font-size: 30px; }
.hero-card-body > p:not(.hero-role) { color: #d8cfc1; font-size: 15px; }
.hero-weapon { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.hero-weapon img { width: 56px; height: 56px; border-radius: 10px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.secret-art { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(243, 194, 91, .25), transparent 50%), repeating-linear-gradient(135deg, #0d0a15 0 12px, #120e1c 12px 24px); }
.secret-art::after { display: none; }
.secret-art span { font-family: var(--display); font-size: 150px; font-weight: 900; color: rgba(243, 194, 91, .75); text-shadow: 0 0 50px rgba(243, 194, 91, .6); animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; text-shadow: 0 0 20px rgba(243, 194, 91, .3); } }

/* Cartas en abanico */
.cards-section { overflow: hidden; background: radial-gradient(900px 500px at 50% 60%, rgba(255, 91, 31, .14), transparent 70%), var(--bg); }
.fan { position: relative; height: clamp(300px, 27vw, 400px); margin: 0 auto; max-width: 1400px; }
.card { position: absolute; left: 50%; bottom: 0; width: clamp(150px, 15vw, 210px); padding: 0; border: 0; background: none; cursor: zoom-in; transform-origin: 50% 130%; transform: translateX(-50%) rotate(var(--rot, 0deg)) translateY(calc(var(--lift, 0px) + var(--hover, 0px))); transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s ease; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .7)); }
.card img { width: 100%; border-radius: 10px; }
.card:hover, .card:focus-visible { --hover: -64px; z-index: 30 !important; filter: drop-shadow(0 26px 40px rgba(255, 140, 40, .45)); }
.fan-hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }
.library-cta { text-align: center; margin-top: 18px; }
.library-cta .btn { padding: 13px 26px; font-size: 16px; }

/* Mundo */
.world { overflow: hidden; }
.world-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 6, 12, .55) 30%, rgba(7, 6, 12, .75) 70%, var(--bg) 100%), url("../img/world/olympus-rift.webp") center 30% / cover no-repeat; }
.world { isolation: isolate; }
.story { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.story .lead { color: #e2d9cb; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.act { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px -30px #000; }
.act button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--bg-3); }
.act img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.act:hover img { transform: scale(1.06); }
.act figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(7, 6, 12, .95), transparent); pointer-events: none; }
.act small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.act span { font-family: var(--display); font-size: 19px; font-weight: 700; }
.secret-line { text-align: center; margin-top: 40px; font-family: var(--display); font-size: clamp(18px, 2vw, 24px); color: var(--gold-3); }

/* Vídeo */
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px #000; }
.video-facade img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(.7); transition: filter .3s ease, transform .6s ease; }
.video-facade:hover img { filter: brightness(.85); transform: scale(1.02); }
.play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #ffe59d, var(--gold) 50%, var(--gold-2)); box-shadow: 0 0 0 10px rgba(243, 194, 91, .2), 0 20px 50px rgba(0, 0, 0, .6); transition: transform .25s ease; }
.video-facade:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.play svg { width: 38px; height: 38px; fill: #1d1304; margin-left: 5px; }
.video-label { position: absolute; left: 24px; bottom: 20px; font-family: var(--display); font-weight: 700; font-size: 18px; text-shadow: 0 2px 10px #000; }
.more { text-align: center; margin-top: 26px; font-weight: 600; }

/* Comunidad */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.com-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 34px; border-radius: 18px; color: var(--ink); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.com-card:hover { color: var(--ink); transform: translateY(-4px); }
.com-card svg { width: 44px; height: 44px; margin-bottom: 6px; }
.com-card h3 { font-size: 26px; }
.com-card p { color: #d9d1e6; }
.com-card .fine { font-size: 13px; color: var(--muted); }
.com-card .arrow { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--gold); }
.discord { background: linear-gradient(140deg, rgba(88, 101, 242, .35), rgba(88, 101, 242, .08)); box-shadow: 0 0 0 1px rgba(120, 132, 255, .4) inset; }
.discord svg { fill: #aab2ff; }
.discord:hover { box-shadow: 0 0 0 1px rgba(150, 160, 255, .8) inset, 0 30px 60px -30px rgba(88, 101, 242, .8); }
.beta { background: linear-gradient(140deg, rgba(243, 194, 91, .22), rgba(243, 194, 91, .05)); box-shadow: 0 0 0 1px var(--line) inset; }
.beta svg { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.beta:hover { box-shadow: 0 0 0 1px rgba(243, 194, 91, .7) inset, 0 30px 60px -30px rgba(243, 160, 40, .7); }
.socials { list-style: none; padding: 0; margin: 34px 0 0; display: flex; justify-content: center; gap: 12px; }
.socials a { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; transition: background .2s ease, transform .2s ease; }
.socials a:hover { background: var(--gold); transform: translateY(-3px); }
.socials svg { width: 22px; height: 22px; fill: var(--ink); }
.socials a:hover svg { fill: #1d1304; }

/* Llamada final */
.final-cta { position: relative; padding: clamp(90px, 12vw, 160px) 0; text-align: center; overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 6, 12, .5) 35%, rgba(7, 6, 12, .62) 70%, var(--bg) 100%), url("../img/world/themis.webp") center 35% / cover no-repeat; }
.final-cta h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 900; text-shadow: 0 4px 30px rgba(0, 0, 0, .9); }
.final-cta .lead { color: #efe7da; text-shadow: 0 2px 14px #000; }
.center { justify-content: center; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: #050409; }
.footer-row { display: flex; align-items: center; gap: 28px; }
.katarsi img { width: 86px; }
.footer-text { flex: 1; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.legal { font-size: 12px; opacity: .8; }

/* Ventanas */
.modal { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; color: var(--ink); }
.modal::backdrop { background: rgba(3, 2, 6, .88); backdrop-filter: blur(6px); }
.modal-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--gold); color: #1d1304; }
.video-modal { width: min(1100px, 94vw); }
.video-frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.zoom-modal img { max-height: 86vh; width: auto; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, .8); }

/* Aparición al bajar */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tableta */
@media (max-width: 1080px) {
  .main-nav { gap: 18px; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; padding-top: var(--header-h); background: #05040a; }
  .hero-art { position: relative; inset: auto; display: block; aspect-ratio: 2400 / 1398; overflow: hidden; }
  .hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 6, 12, .6) 16%, rgba(7, 6, 12, 0) 34%); }
  .hero-art img { animation: none; }
  .hero-shade { display: none; }
  .hero-content { grid-template-columns: 1fr; text-align: center; justify-items: center; margin-top: -24px; position: relative; padding-bottom: 40px; }
  .hero-actions { align-items: center; text-align: center; }
  .launch, .hero-actions .hero-ctas { justify-content: center; }
  .hero h1 { margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .heroes { grid-template-columns: repeat(2, 1fr); }
  .acts { grid-template-columns: repeat(2, 1fr); }
  .act img { aspect-ratio: 4 / 3; }
}

/* Móvil */
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(7, 6, 12, .97); backdrop-filter: blur(12px); padding: 8px 16px 18px;
    border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .main-nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .main-nav a::after { display: none; }
  .nav-open .main-nav { transform: none; }
  .nav-open .site-header { background: rgba(7, 6, 12, .97); }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-actions { gap: 10px; }
  .header-actions .lang { display: none; }
  .main-nav .lang-mobile { display: flex; align-self: flex-start; margin-top: 16px; }
  .main-nav .lang-mobile button { font-size: 14px; padding: 8px 16px; }
  .header-actions .btn { padding: 8px 14px; font-size: 13px; }
  .brand img { height: 17px; }
  .play-strip { grid-template-columns: 1fr; }
  .mr-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .community-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; text-align: center; }
}

@media (max-width: 760px) {
  .hero { padding-top: 0; }
  .hero-art { aspect-ratio: 900 / 1286; max-height: 86svh; }
  .hero-art::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 6, 12, .6) 14%, rgba(7, 6, 12, 0) 30%); }
  .hero-art img { object-position: 50% 30%; }
  .hero-content { margin-top: -40px; }
  .countdown div { min-width: 58px; }
  .hero-ctas .btn-lg { width: 100%; }
  .heroes { grid-template-columns: 1fr; }
  .fan { height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 30px; -webkit-overflow-scrolling: touch; }
  .card { position: static; flex: 0 0 62%; transform: none !important; scroll-snap-align: center; }
  .card:hover { --lift: 0px; }
  .acts { grid-template-columns: 1fr; }
  .transforms { grid-template-columns: 1fr; max-width: 460px; }
  .transform { gap: 14px 18px; padding: 18px; }
  .awards-row { flex-direction: column; align-items: center; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Biblioteca de cartas (cards.html) */
.library-page main { padding-top: var(--header-h); }
.lib-head { padding: clamp(48px, 7vw, 90px) 0 28px; text-align: center; background: radial-gradient(900px 400px at 50% 0%, rgba(243, 194, 91, .12), transparent 70%); }
.lib-head h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 900; }
.lib-head .lead { max-width: 64ch; margin-inline: auto; }
.lib-filters { position: sticky; top: var(--header-h); z-index: 20; background: rgba(7, 6, 12, .92); backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.lib-filters-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 0; }
.lib-search { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; max-width: 320px; padding: 0 14px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.lib-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.lib-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; outline: none; }
.lib-group { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-group button { border: 0; cursor: pointer; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; transition: background .2s ease, color .2s ease; }
.lib-group button:hover { color: var(--ink); background: rgba(255, 255, 255, .1); }
.lib-group button[aria-pressed="true"] { color: #1d1304; background: linear-gradient(180deg, #ffe59d, var(--gold) 55%, var(--gold-2)); box-shadow: none; }
.lib-body { padding: 26px 0 80px; }
.lib-count { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; }
.lib-card { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; transition: transform .25s ease, filter .25s ease; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .6)); }
.lib-card img { width: 100%; height: auto; aspect-ratio: 720 / 1008; }
.lib-card:hover, .lib-card:focus-visible { transform: translateY(-6px) scale(1.02); filter: drop-shadow(0 20px 30px rgba(255, 150, 50, .35)); }
.lib-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.lib-cta { border-top: 1px solid var(--line); }
.card-modal { width: min(1000px, 94vw); }
.cm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: center; background: var(--bg-2); border-radius: 18px; padding: 28px; box-shadow: 0 0 0 1px var(--line), 0 40px 100px rgba(0, 0, 0, .7); max-height: 90vh; overflow: auto; }
.cm-card { width: 100%; height: auto; max-height: 78vh; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); }
.cm-meta { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cm-meta[data-rarity="rare"] { color: var(--sky); }
.cm-meta[data-rarity="legendary"] { color: #ffb14a; }
.cm-info h2 { font-size: clamp(26px, 3vw, 36px); margin: 8px 0 12px; }
.cm-text { color: #e2d9cb; font-size: 17px; }
.cm-object { margin: 22px 0 0; }
.cm-object img { width: 100%; max-width: 260px; aspect-ratio: 1; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px rgba(243, 194, 91, .18), 0 0 40px -10px rgba(255, 160, 60, .35) inset; }
.cm-object figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.cm-nav { display: flex; gap: 10px; margin-top: 22px; }
.cm-nav .btn:disabled { opacity: .35; cursor: default; transform: none; }
@media (max-width: 860px) {
  .lib-filters { position: static; }
  .lib-filters-row { gap: 10px; }
  .lib-search { max-width: none; flex-basis: 100%; }
  .lib-group { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .lib-group button { flex: none; }
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
  .cm-body { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .cm-card { max-height: 56vh; }
  .cm-object img { max-width: 180px; }
}
