/* Vibe City VI — tema oscuro neón (original, sin recursos de Rockstar) */
:root {
  --bg: #0E0A1F;
  --bg-soft: #150F2C;
  --surface: #1B1438;
  --surface-2: #241A4A;
  --text: #F5F2FF;
  --muted: #B3AACF;
  --line: #31275C;
  --brand: #FF4FA3;
  --brand-ink: #160B22;
  --brand-soft: #3A1840;
  --accent: #3DE1E6;
  --sun: #FF9A3D;
  --success: #3DDC97;
  --danger: #FF5A6E;
  --warning: #FFC24B;
  --focus: #3DE1E6;
  --grad: linear-gradient(100deg, #FF4FA3 0%, #FF9A3D 55%, #FFD36E 100%);
  --font-display: 'Anton', 'Inter', ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}
body { background: var(--bg); color: var(--text); }
a { color: var(--accent); }
.btn-primary { background: var(--grad); color: var(--brand-ink); border: 0; font-weight: 800; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.kicker { color: var(--accent); letter-spacing: .14em; }
.card, .g-modal { background: var(--surface); border-color: var(--line); color: var(--text); }
.input { background: var(--bg-soft); color: var(--text); border-color: var(--line); }
.site-header { background: rgb(14 10 31 / .82); border-bottom-color: var(--line); }
.site-footer { background: var(--bg-soft); border-top-color: var(--line); }
.section-soft { background: var(--bg-soft); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.disclaimer { opacity: .8; }
.narrow { max-width: 760px; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; text-align: center;
  background: radial-gradient(60% 70% at 50% 0%, rgb(255 79 163 / .28), transparent 70%),
              radial-gradient(50% 60% at 90% 40%, rgb(61 225 230 / .16), transparent 70%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero .display { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; letter-spacing: .01em; line-height: 1.02; max-width: 15ch; }
.hero .lead { max-width: 58ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature-icon { font-size: 28px; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.status-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.status-card small { display: block; color: var(--muted); font-size: 12px; }
.status-icon { font-size: 22px; }

/* ---------- cuenta atrás ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 520px; }
.countdown div { background: rgb(255 255 255 / .04); border: 1px solid var(--line); border-radius: 16px; padding: 12px 4px; text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 10vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown div:first-child b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- app (hub) ---------- */
.page-app { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.app-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgb(14 10 31 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-top .logo { color: var(--text); text-decoration: none; }
.top-count { margin-left: auto; font-weight: 800; font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.icon-btn { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.hub { max-width: 720px; margin: 0 auto; padding: 16px 16px 24px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.h-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 7vw, 40px); line-height: 1.05; margin: 6px 0 6px; letter-spacing: .01em; }
.sec-title { font-size: 18px; margin: 28px 0 12px; }
.hero-card { position: relative; overflow: hidden; border-radius: 24px; padding: 22px 18px; border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 0% 0%, rgb(255 79 163 / .35), transparent 60%), radial-gradient(80% 80% at 100% 100%, rgb(61 225 230 / .22), transparent 60%), var(--surface); }
.hero-card .countdown { margin: 14px 0 10px; max-width: none; }
.launch-line { font-weight: 700; margin: 6px 0 12px; }
.released { font-family: var(--font-display); font-size: 32px; text-transform: uppercase; }
.progress-wrap .bar { height: 8px; border-radius: 99px; background: rgb(255 255 255 / .08); overflow: hidden; }
.progress-wrap .bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .6s var(--ease); }
.progress-wrap small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

.status-list, .latest, .cards, .polls { display: grid; gap: 10px; }
.row-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.row-card .ic { font-size: 20px; line-height: 1.3; }
.row-card small { display: block; color: var(--muted); font-size: 12px; }
.row-card strong { display: block; }
.row-card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.src { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--accent); text-decoration: none; }
.src:hover { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.tag-ok { background: rgb(61 220 151 / .14); color: var(--success); }
.tag-warn { background: rgb(255 194 75 / .14); color: var(--warning); }
.tag-trailer { background: rgb(255 79 163 / .16); color: var(--brand); }
.tag-delay { background: rgb(255 90 110 / .14); color: var(--danger); }
.tag-news, .tag-date { background: rgb(61 225 230 / .14); color: var(--accent); }
.tag-launch { background: var(--grad); color: var(--brand-ink); }

.alert-card { margin-top: 24px; background: linear-gradient(160deg, rgb(255 79 163 / .18), transparent 60%), var(--surface); }
.alert-card h2 { margin: 0 0 6px; font-size: 20px; }
.alert-form { display: grid; gap: 10px; margin-top: 12px; }
.check { color: var(--muted); }

.poll { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.poll h3 { margin: 0 0 10px; font-size: 16px; }
.poll-opt { position: relative; display: flex; justify-content: space-between; width: 100%; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.poll-opt:hover:not(:disabled) { border-color: var(--accent); }
.poll-opt .fillbar { position: absolute; inset: 0 auto 0 0; width: 0; background: rgb(61 225 230 / .16); transition: width .6s var(--ease); }
.poll-opt.mine .fillbar { background: rgb(255 79 163 / .28); }
.poll-opt > span { position: relative; }
.poll-opt:disabled { cursor: default; }
.poll small { color: var(--muted); }

.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.door { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.door:hover { border-color: var(--brand); }
.door span { font-size: 20px; }
.door b { font-size: 14px; }

.trailers { display: grid; gap: 16px; margin-top: 16px; }
.trailer { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.trailer-media { position: relative; aspect-ratio: 16 / 9; background: #000; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; }
.trailer-media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.trailer-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-media .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: var(--brand-ink); font-size: 26px; box-shadow: 0 10px 30px rgb(0 0 0 / .4); }
.trailer-ph { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 20px; background: radial-gradient(80% 80% at 30% 20%, rgb(255 79 163 / .35), transparent 60%), var(--surface-2); }
.trailer-body { padding: 12px 14px 14px; }
.trailer-body h3 { margin: 0; font-size: 17px; }
.trailer-body p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.seg { display: flex; gap: 6px; overflow-x: auto; margin: 14px 0; padding-bottom: 2px; scrollbar-width: none; }
.seg button { flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.video { display: block; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.video:hover { border-color: var(--accent); }
.video .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video .dur { position: absolute; right: 6px; bottom: 6px; background: rgb(0 0 0 / .8); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.video .rank { position: absolute; left: 6px; top: 6px; background: var(--grad); color: var(--brand-ink); font-weight: 900; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.video .meta { padding: 10px 12px 12px; }
.video h3 { font-size: 15px; line-height: 1.3; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video small { color: var(--muted); font-size: 13px; }
.skeleton { height: 240px; border-radius: 16px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }

.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 16px; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--accent); }
.timeline li.past::before { background: var(--accent); }
.timeline li.next::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px rgb(255 79 163 / .2); }
.timeline .when { font-size: 13px; font-weight: 800; color: var(--accent); }
.timeline h3 { margin: 2px 0; font-size: 16px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 14px; color: var(--muted); }

.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.quiz .q-step { color: var(--muted); font-size: 13px; font-weight: 700; }
.quiz .q-bar { height: 6px; border-radius: 99px; background: var(--bg-soft); margin: 8px 0 16px; overflow: hidden; }
.quiz .q-bar span { display: block; height: 100%; background: var(--grad); }
.quiz h2 { font-size: 21px; margin: 0 0 14px; }
.q-opt { display: block; width: 100%; margin-bottom: 10px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg-soft); color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.q-opt:hover:not(:disabled) { border-color: var(--accent); }
.q-opt.ok { border-color: var(--success); background: rgb(61 220 151 / .12); }
.q-opt.ko { border-color: var(--danger); background: rgb(255 90 110 / .12); }
.q-score { font-family: var(--font-display); font-size: 72px; line-height: 1; text-align: center; margin: 10px 0; }
.q-actions { display: grid; gap: 10px; }

.bottom-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgb(14 10 31 / .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 10.5px; font-weight: 700; color: var(--muted); text-decoration: none; text-align: center; line-height: 1.1; }
.bottom-nav a span { font-size: 20px; filter: grayscale(.6); }
.bottom-nav a[aria-current="page"] { color: var(--text); }
.bottom-nav a[aria-current="page"] span { filter: none; }
@media (min-width: 760px) {
  .bottom-nav { left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); width: 640px; border: 1px solid var(--line); border-radius: 20px; }
  .doors { grid-template-columns: repeat(4, 1fr); }
}
.page-app .g-consent { bottom: calc(80px + env(safe-area-inset-bottom)); }
/* Títulos pequeños en Inter; Anton solo para los grandes */
h2, h3, .sec-title { font-family: var(--font-sans); letter-spacing: -0.01em; text-transform: none; }
.quiz h2.center { font-size: 22px; }
.trailer-media { background: radial-gradient(80% 80% at 30% 20%, rgb(255 79 163 / .35), transparent 60%), #120c26; }

/* =====================================================================
   TRANSICIONES Y ANIMACIONES
   ===================================================================== */
/* Cambio de pestaña con View Transitions (Chrome/Edge/Safari recientes) */
.app-top { view-transition-name: top; }
.bottom-nav { view-transition-name: nav; }
.hub { view-transition-name: main; }
::view-transition-old(main), ::view-transition-new(main) { animation-duration: .32s; animation-timing-function: var(--ease); }
html[data-dir="fwd"]::view-transition-old(main) { animation-name: outLeft; }
html[data-dir="fwd"]::view-transition-new(main) { animation-name: inRight; }
html[data-dir="back"]::view-transition-old(main) { animation-name: outRight; }
html[data-dir="back"]::view-transition-new(main) { animation-name: inLeft; }
@keyframes outLeft { to { opacity: 0; transform: translateX(-36px); } }
@keyframes outRight { to { opacity: 0; transform: translateX(36px); } }
@keyframes inRight { from { opacity: 0; transform: translateX(36px); } }
@keyframes inLeft { from { opacity: 0; transform: translateX(-36px); } }
/* Navegadores sin View Transitions */
.tab.enter { animation: inRight .3s var(--ease); }
html[data-dir="back"] .tab.enter { animation-name: inLeft; }

/* Entrada escalonada */
.stagger > * { animation: riseIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
/* Aparecer al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Números de la cuenta atrás que "voltean" */
.countdown b.flip { animation: flip .38s var(--ease); }
@keyframes flip { 0% { transform: translateY(-35%) rotateX(70deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.countdown div { perspective: 400px; }

/* Brillo animado en la tarjeta principal */
.hero-card::after { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgb(255 255 255 / .07) 80%, transparent 90%); animation: spin 9s linear infinite; pointer-events: none; }
.hero-card > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Pulsación de botones y tarjetas */
.btn, .tool, .door, .poll-opt, .q-opt, .region, .check-row, .topic, .skin, .store, .chip-btn, .bottom-nav a { transition: transform .15s var(--ease), border-color .2s, background .2s, opacity .2s; }
.btn:active, .tool:active, .door:active, .poll-opt:active:not(:disabled), .q-opt:active:not(:disabled), .region:active, .check-row:active, .topic:active, .skin:active, .store:active { transform: scale(.96); }
.pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.05); } }
.q-opt.ko { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.quiz.q-in { animation: inRight .3s var(--ease); }
.quiz.q-out { opacity: 0; transform: translateX(-24px); transition: .2s var(--ease); }
.quiz .q-bar span { transition: width .5s var(--ease); }
.fade-out { opacity: 0; transform: scale(.97); transition: .25s var(--ease); }
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.video-grid.loading .skeleton:nth-child(2) { animation-delay: .1s; }

/* Píldora deslizante del menú inferior */
.bottom-nav { position: fixed; }
.nav-pill { position: absolute; top: 5px; left: 0; height: calc(100% - 10px - env(safe-area-inset-bottom)); border-radius: 14px; background: rgb(255 255 255 / .08); border: 1px solid var(--line); transition: transform .35s var(--ease), width .35s var(--ease); pointer-events: none; }
.bottom-nav a { position: relative; }
.bottom-nav a[aria-current="page"] span { animation: bounce .4s var(--ease); }
@keyframes bounce { 40% { transform: translateY(-4px) scale(1.12); } }

/* Campana con aviso */
.bell { position: relative; text-decoration: none; display: grid; place-items: center; }
.bell .dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } }

/* =====================================================================
   HERRAMIENTAS
   ===================================================================== */
.back { display: inline-block; margin-bottom: 6px; font-weight: 700; text-decoration: none; color: var(--accent); }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tool { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; }
.tool:hover { border-color: var(--accent); }
.tool-ic { font-size: 22px; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgb(255 255 255 / .06); }
.tool.big { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
.tool.big small { color: var(--muted); font-size: 13px; }
.tool.big::before { content: ''; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: var(--grad); opacity: .12; transition: transform .4s var(--ease); }
.tool.big:hover::before { transform: scale(1.4); }
.badge-new { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); }

.pro-card { margin-top: 18px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(140deg, rgb(255 79 163 / .2), rgb(255 154 61 / .12) 50%, transparent), var(--surface); }
.pro-head { display: flex; flex-direction: column; gap: 2px; }
.pro-head h2 { margin: 0; font-size: 22px; }
.pro-stars { letter-spacing: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 20px; }
.pro-list { margin: 10px 0 14px; padding-left: 20px; color: var(--muted); }
.pro-list li { margin: 4px 0; }

/* Zonas de Leonida */
.map-progress { margin: 14px 0; }
.map-progress .bar { height: 8px; border-radius: 99px; background: rgb(255 255 255 / .08); overflow: hidden; }
.map-progress .bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .6s var(--ease); }
.map-progress small { color: var(--muted); }
.regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.region-card { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.region-card.open { grid-column: 1 / -1; border-color: hsl(var(--h) 90% 65%); }
.region { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 120px; padding: 14px; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden;
  background: linear-gradient(160deg, hsl(var(--h) 80% 55% / .35), transparent 70%); }
.region strong { position: relative; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 24px; margin-top: auto; }
.region-tag { position: relative; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--h) 90% 75%); }
.region-art i { position: absolute; border-radius: 50%; background: hsl(var(--h) 85% 60% / .35); transition: transform .6s var(--ease); }
.region-art i:nth-child(1) { width: 90px; height: 90px; right: -20px; top: -20px; }
.region-art i:nth-child(2) { width: 50px; height: 50px; right: 40px; top: 40px; opacity: .6; }
.region-art i:nth-child(3) { width: 26px; height: 26px; right: 18px; top: 82px; opacity: .8; }
.region:hover .region-art i { transform: scale(1.15) translate(-4px, 4px); }
.region-check { position: absolute; top: 10px; left: auto; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; background: var(--success); color: #062; transform: scale(0); transition: transform .3s var(--ease); }
.region.seen .region-check { transform: scale(1); }
.region-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.region-body > div { overflow: hidden; padding: 0 14px; }
.region-card.open .region-body { grid-template-rows: 1fr; }
.region-card.open .region-body > div { padding-bottom: 14px; }
.region-body p { margin: 0; color: var(--muted); }

/* Guías */
.guides { display: grid; gap: 10px; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.guide summary { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: '›'; margin-left: auto; font-size: 24px; color: var(--accent); transition: transform .3s var(--ease); }
.guide[open] summary::after { transform: rotate(90deg); }
.guide[open] .guide-body { animation: riseIn .35s var(--ease); }
.g-ic { font-size: 22px; }
.guide-body { padding: 0 16px 14px; }
.guide-body ol { margin: 0 0 8px; padding-left: 22px; }
.guide-body li { margin: 8px 0; }
.guide.locked { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--text); font: inherit; text-align: left; cursor: pointer; border-style: dashed; width: 100%; }
.guide.locked small { margin-left: auto; color: var(--muted); }

/* Checklist */
.ring-wrap { position: relative; width: 160px; height: 160px; margin: 10px auto 0; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: rgb(255 255 255 / .08); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); stroke-dashoffset: 330; }
.ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-txt b { font-family: var(--font-display); font-weight: 400; font-size: 42px; }
.ring-txt small { color: var(--muted); }
.checks { display: grid; gap: 8px; margin-bottom: 14px; }
.check-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.check-row .box { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.check-row.done .box { background: var(--success); border-color: var(--success); color: #052; transform: rotate(-8deg); }
.check-row.done > span:last-child { color: var(--muted); text-decoration: line-through; }
.check-row.auto { cursor: default; }

/* Música */
.songs { display: grid; gap: 10px; margin: 14px 0; }
.song { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.song-info { display: flex; flex-direction: column; }
.song-info small { color: var(--accent); font-weight: 700; font-size: 12px; }
.song-info strong { font-size: 18px; }
.song-links { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; background: var(--bg-soft); }
.chip-btn:hover { border-color: var(--accent); }
.eq { display: flex; align-items: flex-end; gap: 3px; width: 34px; height: 34px; }
.eq i { flex: 1; border-radius: 2px; background: var(--grad); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.8s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.note-card { margin-top: 10px; }

/* Precios */
.editions { display: grid; gap: 10px; margin-top: 14px; }
.price-card { position: relative; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.price-card.hot { border-color: var(--brand); background: linear-gradient(150deg, rgb(255 79 163 / .18), transparent 60%), var(--surface); }
.price-card small { color: var(--muted); font-weight: 700; }
.price-card p { margin: 6px 0 0; color: var(--muted); }
.big-price { font-family: var(--font-display); font-size: 44px; line-height: 1.1; }
.ribbon { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--grad); color: var(--brand-ink); }
.stores { display: grid; gap: 8px; }
.store { display: flex; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.store:hover { border-color: var(--accent); }

/* Alertas */
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { padding: 10px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.topic.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Tarjeta de fan */
.card-form { display: grid; gap: 10px; margin: 14px 0; }
.card-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.fan-canvas { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgb(0 0 0 / .45); margin-bottom: 14px; animation: riseIn .5s var(--ease); }
.themes { display: flex; gap: 8px; flex-wrap: wrap; }
.skin { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 99px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.skin .sw { width: 26px; height: 26px; border-radius: 50%; }
.skin small { color: var(--warning); font-weight: 800; font-size: 11px; }
.skin.on { border-color: var(--accent); }
.themes.big .skin { flex: 1 1 calc(50% - 8px); border-radius: 16px; padding: 12px; }
.themes.big .skin .sw { width: 40px; height: 40px; border-radius: 12px; }

/* Temas de color (Pro) */
html[data-skin="atardecer"] { --brand: #FF6B4A; --accent: #FFB34D; --grad: linear-gradient(100deg, #FF6B4A, #FFB34D 55%, #FFE08A); --bg: #160A0E; --bg-soft: #1F0F15; --surface: #2A141C; --surface-2: #361A24; --line: #4A2632; --muted: #D1AFB6; }
html[data-skin="noche"] { --brand: #8A7BFF; --accent: #7AF0FF; --grad: linear-gradient(100deg, #8A7BFF, #5B8CFF 55%, #7AF0FF); --bg: #05060F; --bg-soft: #0B0D1E; --surface: #12152C; --surface-2: #1A1E3D; --line: #262B55; --muted: #A9B0D6; }
html[data-skin="cayos"] { --brand: #2EE6B6; --accent: #C6FF7A; --grad: linear-gradient(100deg, #2EE6B6, #3DE1E6 55%, #C6FF7A); --bg: #04110F; --bg-soft: #071A17; --surface: #0C2420; --surface-2: #12302B; --line: #1C433C; --muted: #A6CFC6; --brand-ink: #03201A; }
html[data-skin] body { transition: background .4s; }

@media (min-width: 760px) {
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .tool-grid.big { grid-template-columns: repeat(3, 1fr); }
  .regions { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   QUIZ CON PAQUETES, PISTAS Y RANKING
   ===================================================================== */
.packs { display: grid; gap: 10px; margin: 14px 0; }
.pack { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .15s var(--ease), border-color .2s; }
.pack:hover { border-color: var(--accent); }
.pack:active { transform: scale(.97); }
.pack-ic { font-size: 26px; width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgb(255 255 255 / .06); }
.pack-txt { display: flex; flex-direction: column; }
.pack-txt small { color: var(--muted); }
.pack-go { margin-left: auto; font-size: 18px; color: var(--accent); }
.pack.locked { border-style: dashed; }
.pack.locked .pack-go { color: var(--warning); }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hint-btn { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hint-btn:disabled { opacity: .45; }
.q-opt.gone { opacity: .25; text-decoration: line-through; transform: scale(.97); }
.rank-save { display: grid; gap: 8px; margin: 14px 0; }
.rank-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.rank-list li { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); }
.rank-list li.me { outline: 2px solid var(--brand); }
.rank-list li small { color: var(--muted); }
.rank-list li.muted { display: block; }
.medal { font-weight: 800; text-align: center; }

/* =====================================================================
   ANUNCIOS (solo en la app Android; simulados en la web con ?ads=test)
   ===================================================================== */
html.has-banner .page-app { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
.ad-banner-sim { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(66px + env(safe-area-inset-bottom)); width: 320px; max-width: calc(100% - 16px); height: 50px; display: grid; place-items: center; border-radius: 6px; background: repeating-linear-gradient(45deg, #2b2b33, #2b2b33 10px, #24242b 10px, #24242b 20px); color: #cfcfd6; font-size: 12px; font-weight: 700; border: 1px dashed #55556a; animation: riseIn .3s var(--ease); }
.ad-sim { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center; background: #111118; color: #fff; animation: fadeIn .2s; }
.ad-sim small { color: #aaa; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ad-sim p { font-size: 20px; margin: 10px 0; }
.ad-sim b { font-size: 48px; font-family: var(--font-display); font-weight: 400; }
.ad-sim > button { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; color: #fff; }
@keyframes fadeIn { from { opacity: 0; } }
.reward-box { text-align: center; display: grid; gap: 10px; }
.reward-box h2 { margin: 0; }
.reward-ic { font-size: 54px; animation: pop 1.2s var(--ease) infinite; }

/* Tarjeta para activar notificaciones */
.push-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; animation: riseIn .4s var(--ease); }
.push-card p { margin: 2px 0 0; }
.push-card .btn { margin-left: auto; flex: none; }
.push-ic { font-size: 28px; animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 95% { transform: rotate(6deg); } }

/* =====================================================================
   INICIO: «Todo lo de Pro, ya disponible» + tarjetas 3D
   ===================================================================== */
.pro-now { position: relative; margin-top: 26px; padding: 18px 14px 14px; border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(120% 60% at 0% 0%, rgb(255 79 163 / .22), transparent 60%), radial-gradient(100% 60% at 100% 100%, rgb(61 225 230 / .16), transparent 60%), var(--bg-soft); }
.pro-now h2 { margin: 8px 0 4px; font-size: 20px; }
.pro-now .tool-grid { margin-top: 12px; }
.pro-now-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--grad); color: var(--brand-ink); animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow { 50% { box-shadow: 0 0 0 6px rgb(255 79 163 / .15); } }
.tilt { transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .25s var(--ease), border-color .2s; will-change: transform; }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .12), transparent 60%); }
.tilt:hover::after { opacity: 1; }
.tool.big .tool-ic { transition: transform .35s var(--ease); }
.tool.big:hover .tool-ic { transform: scale(1.12) rotate(-6deg); }

/* =====================================================================
   PORTADA INTERACTIVA (landing)
   ===================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }
.lp .reveal { transition-delay: calc(var(--i, 0) * 60ms); }

.lp-hero { position: relative; overflow: hidden; min-height: min(92vh, 860px); display: grid; align-items: center; padding: 80px 0 120px; text-align: center; }
.lp-sky { position: absolute; inset: 0; background: linear-gradient(#0E0A1F 0%, #1E0F3A 45%, #3A1340 70%, #0E0A1F 100%); }
.lp-stars { position: absolute; inset: 0 0 40% 0; background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff8, transparent), radial-gradient(1.5px 1.5px at 30% 60%, #fff6, transparent), radial-gradient(1px 1px at 55% 25%, #fff9, transparent), radial-gradient(1.5px 1.5px at 78% 40%, #fff7, transparent), radial-gradient(1px 1px at 88% 15%, #fffa, transparent), radial-gradient(1px 1px at 65% 70%, #fff5, transparent); animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .4; } }
.lp-sun { position: absolute; left: 50%; top: 44%; width: min(80vw, 520px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; overflow: hidden;
  background: linear-gradient(#FFD36E 0%, #FF9A3D 40%, #FF4FA3 75%, #B23BD0 100%); box-shadow: 0 0 120px 30px rgb(255 79 163 / .3); opacity: .5; }
.lp-sun i { position: absolute; left: 0; right: 0; background: #1E0F3A; animation: sunStripe 3.2s linear infinite; }
.lp-sun i:nth-child(1) { top: 52%; height: 3%; } .lp-sun i:nth-child(2) { top: 61%; height: 4%; animation-delay: -.6s; }
.lp-sun i:nth-child(3) { top: 70%; height: 5%; animation-delay: -1.2s; } .lp-sun i:nth-child(4) { top: 80%; height: 6%; animation-delay: -1.8s; }
.lp-sun i:nth-child(5) { top: 91%; height: 7%; animation-delay: -2.4s; }
@keyframes sunStripe { 0% { transform: translateY(0); } 100% { transform: translateY(-160%); } }
.lp-floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 45%; transform: perspective(300px) rotateX(62deg); transform-origin: 50% 0;
  background-image: linear-gradient(rgb(61 225 230 / .55) 2px, transparent 2px), linear-gradient(90deg, rgb(61 225 230 / .45) 2px, transparent 2px); background-size: 60px 60px; animation: floorMove 1.6s linear infinite;
  mask-image: linear-gradient(transparent, #000 30%); -webkit-mask-image: linear-gradient(transparent, #000 30%); }
@keyframes floorMove { to { background-position: 0 60px; } }
.lp-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lp-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1; max-width: 14ch; text-shadow: 0 6px 40px rgb(0 0 0 / .5); }
.lp-hero .lead { max-width: 56ch; color: #E6DFF7; text-shadow: 0 2px 20px rgb(0 0 0 / .6); }
.lp-hero .countdown div { background: rgb(14 10 31 / .55); backdrop-filter: blur(6px); }
.lp-in { opacity: 0; transform: translateY(24px); animation: lpIn .7s var(--ease) forwards; animation-delay: calc(var(--d) * 120ms + 100ms); }
@keyframes lpIn { to { opacity: 1; transform: none; } }
.lp-scroll { position: absolute; z-index: 1; left: 50%; bottom: 24px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text); text-decoration: none; animation: bob 1.6s ease-in-out infinite; background: rgb(14 10 31 / .5); }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .55), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-soft); }
.ticker-track { display: flex; gap: 40px; width: max-content; padding: 14px 0; animation: tick 40s linear infinite; white-space: nowrap; font-weight: 700; color: var(--muted); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

.lp-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.lp-tool { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden; }
.lp-tool:hover { border-color: var(--accent); }
.lp-tool-ic { font-size: 30px; transition: transform .35s var(--ease); }
.lp-tool:hover .lp-tool-ic { transform: scale(1.15) rotate(-8deg); }
.lp-tool small { color: var(--muted); }
.lp-tool-go { position: absolute; right: 16px; top: 16px; color: var(--accent); font-weight: 800; transition: transform .25s var(--ease); }
.lp-tool:hover .lp-tool-go { transform: translateX(4px); }
.lp-tool.reveal { transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .2s; }
.lp-tool.reveal.in { transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }

.lp-quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.lp-quiz h3 { font-size: 20px; margin: 6px 0 14px; }
.lp-quiz.q-in { animation: inRight .3s var(--ease); }
.lp-quiz.q-out { opacity: 0; transform: translateX(-24px); transition: .2s var(--ease); }
.lp-quiz-end { text-align: center; display: grid; gap: 10px; justify-items: center; }

.lp-split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .lp-split { grid-template-columns: 1.1fr .9fr; } }
.lp-alias { margin: 14px 0 10px; max-width: 360px; }
.lp-card { position: relative; aspect-ratio: 4 / 5; max-width: 360px; width: 100%; justify-self: center; border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  background: radial-gradient(90% 60% at 100% 0%, rgb(255 79 163 / .5), transparent 60%), linear-gradient(160deg, #2A0F3D, #0E0A1F); border: 1px solid var(--line); box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.lp-card.reveal.in { transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }
.lp-card-stars { font-size: 26px; letter-spacing: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-card > small { font-weight: 800; letter-spacing: .1em; }
.lp-card > b { font-family: var(--font-display); font-weight: 400; font-size: 54px; line-height: 1; word-break: break-word; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-card.bump > b { animation: pop .35s var(--ease); }
.lp-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.lp-card-grid div { background: rgb(255 255 255 / .07); border-radius: 16px; padding: 12px; }
.lp-card-grid small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.lp-card-grid strong { font-family: var(--font-display); font-weight: 400; font-size: 30px; }
.lp-card-foot { font-size: 12px; color: var(--muted); }

.lp-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.lp-trailer { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; min-height: 220px; border-radius: 22px; border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden;
  background: radial-gradient(100% 70% at 0% 0%, rgb(255 79 163 / .3), transparent 60%), var(--surface); }
.lp-trailer:hover { border-color: var(--brand); }
.lp-trailer-n { font-family: var(--font-display); font-size: 64px; line-height: 1; opacity: .25; }
.lp-trailer small { color: var(--accent); font-weight: 700; }
.lp-trailer b { font-size: 20px; }
.lp-trailer p { margin: 0; color: var(--muted); font-size: 14px; }
.lp-play { margin-top: auto; font-weight: 800; color: var(--brand); }
.lp-bell { font-size: 64px; animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
.lp-list { padding-left: 20px; color: var(--muted); }
.lp-list li { margin: 8px 0; }
.lp-price { max-width: 340px; width: 100%; justify-self: center; padding: 24px; border-radius: 24px; border: 1px solid var(--brand); text-align: center; background: linear-gradient(150deg, rgb(255 79 163 / .2), transparent 60%), var(--surface); }
.lp-price.reveal.in { transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }
.lp-price small { font-weight: 800; color: var(--accent); }
.lp .faq details.reveal { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .lp-in { opacity: 1; transform: none; } }
.lp-title .grad { background: linear-gradient(100deg, #FF7AB8, #FFB35C 55%, #FFE08A); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgb(0 0 0 / .6)); }

/* =====================================================================
   BARRA INFERIOR CON 9 PESTAÑAS (se desliza con el dedo)
   ===================================================================== */
.bottom-nav { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.bottom-nav::-webkit-scrollbar { display: none; }
.bottom-nav a { flex: 0 0 auto; min-width: 66px; padding: 4px 8px; scroll-snap-align: center; }
@media (min-width: 760px) { .bottom-nav { width: min(760px, calc(100% - 32px)); justify-content: space-between; } .bottom-nav a { flex: 1 0 auto; } }
.bottom-nav { mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }

/* =====================================================================
   MISIONES
   ===================================================================== */
.mis-progress { margin: 14px 0; }
.mis-progress .bar { height: 10px; border-radius: 99px; background: rgb(255 255 255 / .08); overflow: hidden; }
.mis-progress .bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .7s var(--ease); }
.mis-progress small { color: var(--muted); }
.mis-tools { display: grid; gap: 4px; margin: 10px 0; }
.missions { display: grid; gap: 10px; }
.mission { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.mission.open { border-color: var(--accent); }
.mission.done { border-color: rgb(61 220 151 / .5); }
.mission-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mission-n { font-family: var(--font-display); font-size: 30px; line-height: 1; opacity: .35; width: 40px; flex: none; }
.mission-title { display: flex; flex-direction: column; min-width: 0; }
.mission-thumb { width: 96px; aspect-ratio: 16 / 9; flex: none; border-radius: 10px; overflow: hidden; background: var(--line); }
.mission-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.mission:hover .mission-thumb img { transform: scale(1.06); }
@media (max-width: 380px) { .mission-n { width: 30px; font-size: 24px; } .mission-thumb { width: 78px; } }
.mission-title small { color: var(--muted); }
.mission-check { margin-left: auto; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.mission.done .mission-check { background: var(--success); border-color: var(--success); color: #052; transform: scale(1.1); }
.mission-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.mission.open .mission-body { grid-template-rows: 1fr; }
.mission-body > * { overflow: hidden; }
.mission-inner { padding: 0 14px 16px; display: grid; gap: 8px; }
.mission-inner h4 { margin: 10px 0 0; font-size: 15px; }
.mission-inner ol, .mission-inner ul { margin: 0; padding-left: 22px; }
.mission-inner li { margin: 6px 0; }
.mission-inner .trailer-media { border-radius: 14px; overflow: hidden; }
.tips-list.blurred { filter: blur(6px); user-select: none; pointer-events: none; }
.tips-list { transition: filter .4s; }
.skulls { display: flex; gap: 6px; }
.skulls button { font-size: 24px; background: none; border: 0; cursor: pointer; filter: grayscale(1) opacity(.4); transition: filter .2s, transform .2s var(--ease); }
.skulls button.on { filter: none; transform: scale(1.1); }
.mis-soon-card { padding: 20px; border-radius: 22px; border: 1px dashed var(--accent); text-align: center; display: grid; gap: 8px;
  background: radial-gradient(100% 70% at 50% 0%, rgb(61 225 230 / .14), transparent 70%), var(--surface); animation: riseIn .5s var(--ease); }
.mis-soon-card h2 { margin: 0; font-size: 21px; }

/* =====================================================================
   TRUCOS
   ===================================================================== */
.cheats { display: grid; gap: 10px; }
.cheat { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.cheat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cheat p { margin: 0; }
.cheat-code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); font-family: var(--font-mono); font-size: 14px; overflow-x: auto; white-space: nowrap; }

/* =====================================================================
   QUIZ: PODIO DEL RANKING
   ===================================================================== */
.podium-wrap { margin-top: 18px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 18px 0 10px; flex-wrap: wrap; }
.podium .step { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 31%; max-width: 160px; animation: riseIn .5s var(--ease) both; }
.podium .step b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .step small { color: var(--muted); font-size: 12px; }
.podium .medal { font-size: 30px; }
.podium .block { width: 100%; margin-top: 6px; border-radius: 14px 14px 4px 4px; display: grid; place-items: center; font-family: var(--font-display); font-size: 30px; background: var(--grad); color: var(--brand-ink); }
.podium .s1 .block { height: 110px; } .podium .s2 .block { height: 80px; opacity: .85; } .podium .s3 .block { height: 60px; opacity: .7; }
.podium .s1 { animation-delay: .15s; } .podium .s3 { animation-delay: .3s; }
.podium > p { width: 100%; }
.mission-inner h4, .mis-soon-card h2 { font-family: var(--font-sans); letter-spacing: -0.01em; text-transform: none; }

/* =====================================================================
   PUBLICIDAD WEB, GUÍA PÚBLICA, KIT STREAMERS, INSTALAR
   ===================================================================== */
.web-ad { margin: 22px 0; min-height: 0; }
.web-ad[data-filled] { min-height: 100px; }
.ad-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.install-btn { flex: none; }
.store.aff { border-color: var(--warning); }
.guide-page { padding-top: 24px; padding-bottom: 40px; }
.guide-page h2 { margin-top: 28px; }
.guide-page ol, .guide-page ul { padding-left: 22px; }
.guide-page li { margin: 8px 0; }
.crumbs { margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; }
.guide-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 18px 0; }
.guide-hub-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.guide-hub-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.guide-hub-card span { font-size: 28px; }
.guide-hub-card small { color: var(--muted); }
.guide-index { display: grid; gap: 6px; }
.guide-index a { color: var(--text); text-decoration: none; }
.guide-index a:hover b { color: var(--accent); }
.guide-prevnext { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.guide-prevnext a { color: var(--accent); text-decoration: none; font-weight: 700; }
.guide-soon { padding: 18px; border-radius: 18px; border: 1px dashed var(--accent); background: var(--surface); margin: 16px 0; }
.guide-facts li { margin: 10px 0; }
.guide-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.guide-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.table-wrap { overflow-x: auto; }
.cheat-table { width: 100%; border-collapse: collapse; }
.cheat-table th, .cheat-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.kit-preview { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin: 12px 0;
  background: repeating-conic-gradient(#1b1438 0% 25%, #241a4a 0% 50%) 50% / 24px 24px; }
.kit-preview iframe { width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; transform: scale(var(--k, .36)); }
.kit-preview.small-prev { aspect-ratio: auto; height: 200px; background: var(--bg-soft); }
.kit-preview.small-prev iframe { width: 100%; height: 100%; transform: none; }
.kit-copy { display: flex; gap: 8px; align-items: stretch; margin: 10px 0; }
.kit-copy .input { flex: 1; font-family: var(--font-mono); font-size: 13px; }
.lp-link-card { text-decoration: none; color: var(--text); display: block; }
.lp-link-card .big-price { font-size: 34px; }
.guide-page h1.display-md { text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }

/* =====================================================================
   TABLÓN DE NOTICIAS
   ===================================================================== */
.news-list { display: grid; gap: 12px; margin: 12px 0 18px; }
.news-card { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; transition: border-color .2s, transform .2s var(--ease); }
.news-card:hover { border-color: var(--accent); }
.news-card.pinned { border-color: var(--brand); background: linear-gradient(150deg, rgb(255 79 163 / .14), transparent 55%), var(--surface); }
.news-card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.news-card p { margin: 0; color: var(--muted); }
.news-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-top small { margin-left: auto; }
.news-cat { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: rgb(61 225 230 / .12); color: var(--accent); }
.news-pin { font-size: 12px; font-weight: 800; color: var(--brand); }
.news-card .badge-new { position: static; }
.news-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reacts { display: flex; gap: 4px; margin-right: auto; }
.reacts button { display: inline-flex; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; transition: transform .15s var(--ease), border-color .2s; }
.reacts button small { font-size: 11px; color: var(--muted); }
.reacts button.on { border-color: var(--brand); background: rgb(255 79 163 / .15); }
.push-mini { display: flex; align-items: center; gap: 12px; }
.push-mini > span { font-size: 26px; }
.push-mini p { margin: 2px 0 0; }
.push-mini .btn { margin-left: auto; flex: none; }
.see-all { float: right; font-weight: 700; color: var(--accent); text-decoration: none; font-size: 13px; }
.news-mini { text-decoration: none; color: var(--text); }
.nav-dot { position: absolute; top: 4px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: ping 1.6s infinite; }
/* páginas públicas de noticias */
.news-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-row h2 { margin: 8px 0 4px; font-size: 21px; }
.news-row h2 a { color: var(--text); text-decoration: none; }
.news-row h2 a:hover { color: var(--accent); }
.news-row .news-cat { display: inline-block; }
/* Cabecera de la app: que nada se parta en dos líneas en móviles estrechos */
.app-top .logo-name, .top-count { white-space: nowrap; }
@media (max-width: 440px) { .app-top:has(.install-btn:not([hidden])) .logo-name { display: none; } .app-top .install-btn { padding-inline: 10px; } }

/* =====================================================================
   RUMORES, COMPARATIVAS, BUSCADOR, SAGA
   ===================================================================== */
.rumors { display: grid; gap: 12px; margin-top: 12px; }
.rumor { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; border-left: 5px solid var(--line); }
.rumor h3 { margin: 0; font-size: 17px; }
.rumor p { margin: 0; color: var(--muted); }
.rumor.st-confirmado { border-left-color: var(--success); }
.rumor.st-probable { border-left-color: #6ee7a8; }
.rumor.st-sin-confirmar { border-left-color: var(--warning); }
.rumor.st-dudoso { border-left-color: #ff9a3d; }
.rumor.st-desmentido { border-left-color: var(--danger); }
.rumor-status { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.rumor-vote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-btn.on { border-color: var(--brand); background: rgb(255 79 163 / .15); }
.belief { height: 8px; border-radius: 99px; background: rgb(255 90 110 / .35); overflow: hidden; }
.belief span { display: block; height: 100%; background: var(--success); transition: width .6s var(--ease); }
.cmp { display: grid; gap: 10px; margin-top: 12px; }
.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: 10px; font-family: var(--font-display); font-size: 24px; text-transform: uppercase; }
.cmp-head span { font-size: 16px; color: var(--muted); }
.cmp-row { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cmp-row > small { display: block; text-align: center; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin-bottom: 6px; }
.cmp-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmp-vals > div { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.cmp-a { color: var(--text); }
.cmp-b { color: var(--muted); text-align: right; align-items: flex-end; }
.compare-table th { white-space: nowrap; }
.search-box { display: grid; gap: 10px; min-width: min(560px, 86vw); }
.search-results { display: grid; gap: 6px; max-height: 60vh; overflow-y: auto; }
.search-hit { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); color: var(--text); text-decoration: none; border: 1px solid transparent; }
.search-hit:hover { border-color: var(--accent); }
.search-hit small { color: var(--accent); font-weight: 700; }
.saga-list li { margin: 10px 0; }

/* =====================================================================
   IMÁGENES EN NOTICIAS Y «LOS MEJORES VÍDEOS»
   ===================================================================== */
.news-img { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--surface-2); aspect-ratio: 16 / 9; }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
a.news-img:hover img { transform: scale(1.05); }
.news-play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--brand-ink); font-size: 18px; box-shadow: 0 6px 20px rgb(0 0 0 / .4); }
.news-art { background: radial-gradient(60% 80% at 80% 20%, hsl(var(--h) 90% 60% / .55), transparent 70%), linear-gradient(160deg, hsl(var(--h) 60% 22%), #0E0A1F); }
.news-art i { position: absolute; right: -10%; bottom: -35%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(#FFD36E, #FF9A3D 45%, #FF4FA3); opacity: .55;
  -webkit-mask: repeating-linear-gradient(#000 0 10px, transparent 10px 15px); mask: repeating-linear-gradient(#000 0 10px, transparent 10px 15px); }
.news-art b { position: absolute; left: 14px; top: 10px; font-size: 34px; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .4)); }
.news-img.thumb { width: 64px; aspect-ratio: 1; flex: none; border-radius: 12px; }
.news-img.thumb b { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 26px; }
.news-img.thumb .news-play { display: none; }
.news-mini { align-items: center; }
.news-img.big { margin: 14px 0; border-radius: 18px; }
.news-row.has-img { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
@media (max-width: 560px) { .news-row.has-img { grid-template-columns: 1fr; } }
.vid-list { display: grid; gap: 12px; margin: 12px 0; }
.vid-card { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); align-items: start; }
.vid-card:hover { border-color: var(--accent); }
.vid-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.vid-thumb:hover img { transform: scale(1.06); }
.vid-thumb .news-play { width: 38px; height: 38px; font-size: 14px; }
.vid-thumb .rank { position: absolute; left: 6px; top: 6px; background: var(--grad); color: var(--brand-ink); font-weight: 900; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.vid-card h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.3; }
.vid-card h3 a { color: var(--text); text-decoration: none; }
.vid-card p { margin: 0 0 4px; }
.vid-link { display: inline-block; margin-top: 2px; font-size: 12px; font-family: var(--font-mono); color: var(--accent); word-break: break-all; }

/* ---------- Guía: panel de inicio, misiones por capítulos, trofeos y tráilers compactos ---------- */
.guide-hub { padding: 18px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 0% 0%, rgb(255 79 163 / .28), transparent 60%), radial-gradient(80% 80% at 100% 100%, rgb(61 225 230 / .18), transparent 60%), var(--surface); }
.guide-hub .h-title { margin: 4px 0 14px; }
.hub-main { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: rgb(0 0 0 / .25); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), border-color .25s; }
.hub-main:hover { transform: translateY(-2px); border-color: var(--accent); }
.hub-thumb { position: relative; width: 132px; aspect-ratio: 16 / 9; flex: none; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.hub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-thumb img:not([src]) { visibility: hidden; }
.hub-thumb .play, .mission-thumb .play, .trailer-mini-img .play { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: var(--brand-ink); font-size: 12px; box-shadow: 0 4px 14px rgb(0 0 0 / .45); }
.mission-thumb { position: relative; }
.hub-main-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hub-main-txt b { font-size: 18px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.hub-card { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), border-color .25s; }
.hub-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.hub-card span { font-size: 26px; }
.hub-card small { color: var(--muted); font-size: 12px; }
.hub-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.hub-bar em { display: block; height: 100%; width: 0; background: var(--grad); transition: width .6s var(--ease); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chip { flex: none; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg, #0E0A1F); border-color: var(--text); }
.mis-chapter { margin: 18px 4px 8px; font-size: 15px; letter-spacing: .02em; color: var(--accent); }
.cheat-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.cheat-steps span { padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.trophies { display: grid; gap: 8px; margin-top: 8px; }
.trophy { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.trophy.got { opacity: .6; }
.trophy.got .mission-check { background: var(--accent); border-color: var(--accent); color: var(--brand-ink); }
.trophy-ic { font-size: 28px; line-height: 1; }
.trophy-body { flex: 1; min-width: 0; }
.trophy-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.trophy-body p { margin: 4px 0 0; }
.trophy-tip { font-size: 14px; color: var(--muted); }
.trophy .mission-check { cursor: pointer; }
.grade-platino { border-color: rgb(61 225 230 / .6); }
.grade-oro { border-color: rgb(255 194 75 / .55); }
.trailer-rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.trailer-mini { flex: none; width: 150px; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.trailer-mini-img { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.trailer-mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trailer-mini b { font-size: 13px; line-height: 1.2; }
.trailer-mini small { font-size: 11px; }
.trailer-player { margin-bottom: 10px; }
@media (max-width: 380px) { .hub-thumb { width: 104px; } .hub-grid { gap: 6px; } .hub-card { padding: 10px; } }

/* landing: lo más buscado y tráilers compactos */
.lp-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lp-guide-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.lp-guide-card.big { grid-column: 1 / -1; background: radial-gradient(90% 90% at 0% 0%, rgb(255 79 163 / .3), transparent 60%), radial-gradient(70% 90% at 100% 100%, rgb(61 225 230 / .2), transparent 60%), var(--surface); }
.lp-guide-card:hover { border-color: var(--accent); }
.lp-guide-ic { font-size: 34px; }
.lp-guide-card b { font-size: 22px; }
.lp-guide-card p { margin: 0; color: var(--muted); }
.lp-mis-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.lp-rail.mini { grid-auto-columns: 150px; gap: 10px; }
.lp-trailer-mini { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
.lp-trailer-mini b { font-size: 13px; line-height: 1.2; }
.lp-trailer-mini small { font-size: 11px; color: var(--muted); }
@media (max-width: 520px) { .lp-mis-thumbs { grid-template-columns: repeat(2, 1fr); } }

/* barra fija para llevar a la gente a la guía interactiva */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: 10px 10px 10px 16px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: rgb(27 20 56 / .94); border: 1px solid rgb(255 79 163 / .55); box-shadow: 0 14px 40px rgb(0 0 0 / .5); backdrop-filter: blur(10px); animation: cta-in .6s var(--ease) 1.2s both; }
.sticky-cta-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.sticky-cta-txt small { color: var(--muted); font-size: 12px; }
.sticky-cta-btn { flex: none; padding: 10px 16px; border-radius: 12px; background: var(--grad); color: var(--brand-ink); font-weight: 800; }
@keyframes cta-in { from { transform: translateY(140%); opacity: 0; } to { transform: none; opacity: 1; } }
body:has(.sticky-cta) .site-footer { padding-bottom: 96px; }
.hero-main-cta { font-size: 1.1em; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { animation: none; } }
body:has(.g-consent) .sticky-cta { display: none; }

/* preguntas frecuentes y guías relacionadas */
.lp-faq { display: grid; gap: 8px; }
.lp-faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; }
.lp-faq-item summary { cursor: pointer; padding: 12px 0; font-weight: 800; }
.lp-faq-item p { margin: 0 0 14px; color: var(--muted); }
.related { margin: 28px 0; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.related h2 { margin-top: 0; font-size: 20px; }
.related ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; }

/* ---------- Mapa interactivo ---------- */
.page-map .site-footer { padding-bottom: 24px; }
.map-page { display: grid; grid-template-columns: 380px 1fr; height: calc(100dvh - 64px); min-height: 520px; }
.map-panel { position: relative; background: var(--surface); border-right: 1px solid var(--line); overflow: hidden; z-index: 5; }
.map-panel-inner { height: 100%; overflow-y: auto; padding: 20px 18px 28px; display: flex; flex-direction: column; gap: 10px; }
.map-panel-inner > * { flex-shrink: 0; }
.map-panel-handle { display: none; }
.map-title { font-family: var(--font-display); text-transform: uppercase; font-size: 34px; line-height: 1; margin: 2px 0; }
.map-h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 2px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.map-links button { background: none; border: 0; color: var(--brand, #FF4FA3); font: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 800; cursor: pointer; padding: 0; }
.map-search { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; }
.map-search .input { border: 0; background: none; padding-left: 0; }
.map-results { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.map-result, .map-guide-item { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.map-result span, .map-guide-item span { grid-row: span 2; font-size: 20px; text-align: center; }
.map-result small, .map-guide-item small { font-size: 12px; }
.map-result:hover, .map-guide-item:hover { border-color: var(--accent); }
.map-guide, .map-mine { display: grid; gap: 6px; }
.map-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.map-cats { display: grid; gap: 4px; }
.map-cat { display: grid; grid-template-columns: 30px 1fr auto 22px; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.map-cat-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 30%, transparent); border: 2px solid var(--c); font-size: 14px; }
.map-cat small { color: var(--muted); }
.map-cat-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); }
.map-cat[aria-pressed="true"] .map-cat-check { background: var(--c); border-color: var(--c); }
.map-cat[aria-pressed="false"] { opacity: .5; }
.map-credit { margin-top: 10px; }
.map-wrap { position: relative; }
.map, .map.leaflet-container { position: absolute; inset: 0; background: #2C66A5; isolation: isolate; }
.map::before { content: ''; position: absolute; inset: 0; background: inherit; filter: saturate(1.08); z-index: 0; }
.map-night .map::before { filter: brightness(.55) contrast(1.15) saturate(.9) hue-rotate(15deg); }
.vc-tiles { filter: saturate(1.08); }
.map-night .vc-tiles { filter: brightness(.55) contrast(1.15) saturate(.9) hue-rotate(15deg); }
.map-coords { position: absolute; left: 12px; bottom: 12px; z-index: 500; padding: 4px 10px; border-radius: 99px; background: rgb(14 10 31 / .8); color: var(--muted); font: 12px/1.6 ui-monospace, monospace; pointer-events: none; }
.map-coords:empty { display: none; }
.map-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 600; padding: 8px 14px; border-radius: 99px; background: var(--grad); color: var(--brand-ink); font-weight: 800; font-size: 14px; }
.map-hint button { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.map-adding .map { cursor: crosshair; }
.vc-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; background: color-mix(in srgb, var(--c) 35%, #170F33); border: 2px solid var(--c); box-shadow: 0 4px 14px rgb(0 0 0 / .45); transition: transform .2s; }
.vc-pin:hover span { transform: scale(1.15); }
.vc-pin-guide span { width: 40px; height: 40px; margin: -3px; font-size: 20px; background: #2a1450; box-shadow: 0 0 0 4px rgb(255 79 163 / .35), 0 0 22px rgb(255 79 163 / .8); animation: vc-pulse 2s infinite; }
@keyframes vc-pulse { 50% { box-shadow: 0 0 0 9px rgb(255 79 163 / .12), 0 0 26px rgb(255 79 163 / .9); } }
.vc-cluster.big span { width: 50px; height: 50px; margin: -3px; font-size: 15px; }
.vc-cluster span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: var(--brand-ink); font-weight: 900; font-size: 14px; box-shadow: 0 0 0 5px rgb(255 79 163 / .28), 0 6px 18px rgb(0 0 0 / .45); }
.leaflet-container { font: inherit; }
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 14px 40px rgb(0 0 0 / .5); }
.map .leaflet-popup-content { margin: 12px 14px; }
.map .leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.vc-pop { display: grid; gap: 3px; min-width: 190px; }
.vc-pop b { font-size: 16px; }
.vc-pop span, .vc-pop em { font-size: 13px; color: var(--muted); }
.vc-pop p { margin: 4px 0; font-size: 13px; }
.vc-pop a { color: var(--accent); font-weight: 800; }
.map .leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--line); }
.map .leaflet-bar a:hover { background: var(--surface-2); }
.map .leaflet-control-attribution { background: rgb(14 10 31 / .75) !important; color: var(--muted); }
.map .leaflet-control-attribution a { color: var(--accent); }
.map-seo { padding-top: 28px; }
@media (max-width: 860px) {
  .map-page { grid-template-columns: 1fr; height: calc(100dvh - 60px); position: relative; }
  .map-wrap { position: absolute; inset: 0; }
  .map-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 72%; border-right: 0; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; transition: transform .3s var(--ease); box-shadow: 0 -14px 40px rgb(0 0 0 / .5); }
  .map-panel.closed { transform: translateY(calc(100% - 52px)); }
  .map-panel-handle { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 8px 0 10px; background: none; border: 0; color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
  .map-panel-handle span { width: 44px; height: 5px; border-radius: 5px; background: var(--line); }
  .map-panel-inner { height: calc(100% - 52px); padding-top: 4px; }
  .map-coords { display: none; }
}

/* rótulos de zonas y barrios, y selector de vista */
.vc-label { pointer-events: none; }
.vc-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--font-display); text-transform: uppercase; color: #fff; letter-spacing: .04em; line-height: 1;
  text-shadow: 0 0 2px #170F33, 0 0 6px #170F33, 0 2px 0 #170F33, 0 0 14px rgb(23 15 51 / .8); }
.vc-label.zone span { font-size: 20px; }
.vc-label.barrio span { font-size: 13px; color: #FFE7F3; font-family: inherit; font-weight: 800; letter-spacing: .08em; }
.map[data-z="far"] .vc-label.barrio { display: none; }
.map[data-z="far"] .vc-label.zone span { font-size: 14px; }
.map[data-z="near"] .vc-label.zone span { font-size: 26px; opacity: .85; }
.vc-views { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 16px; background: rgb(27 20 56 / .92); border: 1px solid var(--line); box-shadow: 0 10px 30px rgb(0 0 0 / .4); }
.vc-views button { padding: 8px 14px; border-radius: 11px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; text-align: left; }
.vc-views button[aria-pressed="true"] { background: var(--grad); color: var(--brand-ink); }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.map[data-z="far"] .vc-label.zone.minor { display: none; }
.map[data-z="far"] .vc-label.zone:not(.minor) span { font-size: 16px; }

/* enlace a TikTok en la barra de arriba */
.nav-tiktok { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; color: var(--text); background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s, color .2s; }
.nav-tiktok:hover { transform: translateY(-1px); border-color: #FF4FA3; color: #fff; box-shadow: -2px -1px 0 #25F4EE inset, 2px 1px 0 #FE2C55 inset; }
.nav-tiktok:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.logo-name { white-space: nowrap; }
@media (max-width: 440px) {
  .app-top .top-count { display: none; }
  .site-header .nav { gap: 8px; }
  .site-header .nav-link { padding-inline: 4px; }
  .nav-tiktok { width: 34px; height: 34px; }
}
@media (max-width: 370px) { .site-header .logo-name { display: none; } }
