/* ===================================================================
   GRAN HERMANO ONLINE - GH VIP 9
   Sistema de diseno "CAMARA 24H": negro, verde acido y tipografia tecnica.
   Compartido por todas las paginas (index, ghvip, telecinco, legal, errores).
   =================================================================== */

@charset "UTF-8";

:root {
    --ink: #0b0b0c;
    --ink-2: #131315;
    --ink-3: #1b1b1e;
    --line: #2a2a2f;
    --line-2: #3a3a41;
    --paper: #f2f2ed;
    --muted: #9c9ca3;
    --acid: #c8ff2e;
    --acid-d: #a3d900;
    --rec: #ff3131;
    --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --tick-h: 26px;
    --bar-h: 64px;
    --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--paper);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(700px 420px at 6% -8%, rgba(200, 255, 46, 0.10), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 56px 56px;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, select, input { font-family: inherit; }
::selection { background: var(--acid); color: #0b0b0c; }

* { scrollbar-width: thin; scrollbar-color: #3a3a41 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3a3a41; border-radius: 10px; }

.wrap { width: min(1320px, 100% - 40px); margin-inline: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 2px solid var(--acid);
    outline-offset: 3px;
}

/* ---------- TICKER ---------- */
.ticker {
    height: var(--tick-h);
    background: var(--acid);
    color: #0b0b0c;
    overflow: hidden;
    white-space: nowrap;
    font: 700 12px/var(--tick-h) var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ticker-track { display: inline-block; padding-left: 100%; animation: tick 44s linear infinite; }
.ticker-track span { margin-right: 44px; }
.ticker-track span::before { content: "\2726"; margin-right: 44px; }

@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- BARRA SUPERIOR ---------- */
.bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--bar-h);
    background: rgba(11, 11, 12, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s;
}

.bar-inner {
    height: 100%;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }

.logo-mark {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: var(--acid);
    color: #0b0b0c;
    border-radius: 11px;
    transition: transform 0.3s;
}
.logo-mark svg { width: 26px; height: 26px; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

.logo-word { display: block; font: 700 23px/1 var(--sans); letter-spacing: -0.03em; text-transform: uppercase; }
.logo-word b { color: var(--acid); font-weight: 700; }
.logo-sub { display: block; margin-top: 5px; font: 500 9.5px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav a {
    font: 600 12px/1 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    padding: 11px 14px;
    border-radius: 9px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--paper); background: var(--ink-3); }
.nav a[aria-current="page"] { color: #0b0b0c; background: var(--acid); }

.rec {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    font: 700 11px/1 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff6b6b;
    border: 1px solid rgba(255, 49, 49, 0.55);
    background: rgba(255, 49, 49, 0.08);
    padding: 8px 12px;
    border-radius: 999px;
}
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: rec 1.2s steps(2, jump-none) infinite; }
@keyframes rec { 0% { opacity: 1; } 100% { opacity: 0.15; } }

/* aviso en tiempo real (entre logo y menu) */
.notice-slot { flex: 1; display: none; max-width: 620px; min-width: 0; }
.notice-box {
    height: 40px; display: flex; align-items: center; overflow: hidden;
    border: 1px solid var(--acid); border-radius: 10px;
    background: rgba(200, 255, 46, 0.08);
    padding: 0 14px;
    animation: noticePulse 2s ease-in-out infinite;
}
@keyframes noticePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0); } 50% { box-shadow: 0 0 18px 0 rgba(200, 255, 46, 0.35); } }
.notice-view { width: 100%; overflow: hidden; white-space: nowrap; font: 600 13px/1.4 var(--mono); color: var(--paper); }
.notice-text { display: inline-block; }
.marquee-container { display: inline-block; white-space: nowrap; animation: marquee 35s linear infinite; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ---------- BOTONES ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font: 700 15px/1 var(--sans);
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 17px 26px;
    border-radius: 14px;
    border: 2px solid var(--acid);
    background: var(--acid);
    color: #0b0b0c;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--paper); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); box-shadow: 5px 5px 0 var(--acid); }

.kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font: 600 12px/1 var(--mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--acid);
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--acid); }

/* ---------- HOME: HERO ---------- */
.hero { padding: clamp(36px, 6vw, 88px) 0 clamp(28px, 4vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 64px); align-items: center; }

.hero h1 {
    font: 700 clamp(2.7rem, 7.4vw, 6.6rem)/0.93 var(--sans);
    letter-spacing: -0.045em;
    text-transform: uppercase;
    margin: 22px 0 24px;
}
.hero h1 em { font-style: normal; color: var(--acid); }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--paper); }

.lead { font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--muted); max-width: 62ch; }
.lead strong { color: var(--paper); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 38px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero-meta span::before { content: "\25A0"; color: var(--acid); margin-right: 8px; font-size: 9px; vertical-align: 2px; }

/* ---------- SECCIONES ---------- */
.section { padding: clamp(40px, 6vw, 84px) 0; }
.sec-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px; margin-bottom: 32px;
}
.sec-head h2 { font: 700 clamp(1.8rem, 4.2vw, 3.4rem)/1 var(--sans); letter-spacing: -0.04em; text-transform: uppercase; }
.sec-head h2 em { font-style: normal; color: var(--acid); }
.sec-head .idx { font: 500 12px/1 var(--mono); letter-spacing: 0.2em; color: var(--muted); flex-shrink: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); gap: 1px; }
.stat { background: var(--ink); padding: 28px 24px; }
.stat b { display: block; font: 700 clamp(2.2rem, 4.6vw, 4rem)/1 var(--sans); letter-spacing: -0.05em; color: var(--acid); }
.stat span { display: block; margin-top: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feature { background: var(--ink); padding: 28px 24px 30px; transition: background 0.2s; }
.feature:hover { background: var(--ink-2); }
.feature .n { font: 700 12px/1 var(--mono); letter-spacing: 0.16em; color: var(--acid); }
.feature h3 { font: 700 1.25rem/1.15 var(--sans); letter-spacing: -0.02em; margin: 40px 0 10px; }
.feature p { color: var(--muted); font-size: 0.93rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: var(--ink-2); }
.step .big { font: 700 clamp(3rem, 6vw, 5rem)/1 var(--sans); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--acid); }
.step h3 { font: 700 1.3rem/1.15 var(--sans); letter-spacing: -0.02em; margin: 18px 0 8px; text-transform: uppercase; }
.step p { color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 24px 0;
    font: 600 clamp(1.02rem, 1.7vw, 1.3rem)/1.3 var(--sans);
    letter-spacing: -0.01em;
    transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 30px/1 var(--mono); color: var(--acid); transition: transform 0.25s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--acid); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 78ch; }
.faq details p strong { color: var(--paper); font-weight: 600; }

.notice-fans {
    border: 1px dashed var(--line-2); border-radius: var(--r); padding: 28px clamp(20px, 3vw, 36px);
    background: var(--ink-2);
}
.notice-fans h2, .notice-fans h3 { font: 700 1.3rem/1.2 var(--sans); letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 12px; }
.notice-fans h2 span, .notice-fans h3 span { color: var(--acid); }
.notice-fans p { color: var(--muted); max-width: 90ch; }
.notice-fans p strong { color: var(--paper); font-weight: 600; }

/* ---------- INICIO: ficha, columnas, compatibilidad ---------- */
.poster { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); padding: clamp(26px, 3.4vw, 44px); isolation: isolate; }
.poster::before { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(200, 255, 46, 0.22), transparent 68%); }
.poster-big { font: 700 clamp(5.5rem, 13vw, 10.5rem)/0.82 var(--sans); letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 2px var(--acid); }
.poster-text { margin: 22px 0 20px; color: var(--muted); font-size: 1.05rem; max-width: 36ch; }
.poster-text strong { color: var(--paper); font-weight: 600; }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.col { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); padding: 26px; }
.col h3 { font: 700 1.2rem/1.2 var(--sans); letter-spacing: -0.02em; margin-bottom: 10px; }
.col p { color: var(--muted); }
.col p strong { color: var(--paper); font-weight: 600; }
.col a { color: var(--acid); }

.compat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.compat-box { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); padding: 24px; }
.compat-box h3 { font: 600 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--acid); margin-bottom: 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 600 13px/1 var(--mono); letter-spacing: 0.04em; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink-3); }
.tags li::before { content: "\2713"; color: var(--acid); margin-right: 8px; }
.note { margin-top: 20px; color: var(--muted); font-size: 0.93rem; max-width: 80ch; }

/* ---------- PAGINAS EN DIRECTO ---------- */
/* Player y chat ocupan todo el alto bajo la barra, pegados y sin cabeceras. */
.live {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);       /* player 55% / chat 45% (igual que Jakuzzi) */
    grid-template-rows: minmax(0, 1fr);
    height: calc(100vh - var(--bar-h) - var(--tick-h));
    height: calc(100dvh - var(--bar-h) - var(--tick-h));
    min-height: 480px;
    background: #000;
}

.tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #000; }
.tile[hidden] { display: none !important; }
.tile.sig { grid-column: 1; grid-row: 1; border-right: 1px solid var(--line); }
.tile.chat { grid-column: 2; grid-row: 1; background: var(--ink-2); }
.tile-in { position: absolute; inset: 0; }
.tile iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: frameIn 0.5s ease both; }
@keyframes frameIn { from { opacity: 0; } to { opacity: 1; } }

/* ----- HUD: selector de señal (cristal + indicador deslizante) ----- */
.hud {
    position: absolute; top: 14px; left: 14px; z-index: 6;
    display: flex; align-items: center; gap: 8px;
    height: 46px; padding: 5px 5px 5px 16px;
    border-radius: 999px;
    background: rgba(12, 12, 14, 0.58);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0.85;
    transition: opacity 0.25s, box-shadow 0.25s;
}
.hud:hover, .hud:focus-within { opacity: 1; }
.hud-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); animation: rec 1.2s steps(2, jump-none) infinite; }
.hud-track { --i: 0; --seg-w: 84px; --seg-h: 36px; position: relative; display: flex; gap: 2px; }
.hud-thumb {
    position: absolute; top: 0; left: 0; width: var(--seg-w); height: var(--seg-h); border-radius: 999px;
    background: var(--acid); box-shadow: 0 0 18px rgba(200, 255, 46, 0.5);
    transform: translateX(calc(var(--i) * (var(--seg-w) + 2px)));
    transition: transform 0.45s cubic-bezier(0.5, -0.3, 0.2, 1.4);
}
.hud button {
    position: relative; z-index: 1; padding: 0;
    display: grid; place-items: center;
    border: 0; border-radius: 999px; background: none; color: #d6d6dc; cursor: pointer;
    font: 700 14px/1 var(--sans); white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.hud-track button { width: var(--seg-w); height: var(--seg-h); }
.hud-track button[aria-checked="true"] { color: #0b0b0c; }
.hud-track button:not([aria-checked="true"]):hover { color: var(--acid); }
.hud button:focus-visible { outline: 2px solid var(--acid); outline-offset: 1px; }

/* ---------- PIE ---------- */
.foot { border-top: 1px solid var(--line); margin-top: clamp(30px, 5vw, 70px); overflow: hidden; background: var(--ink-2); }
.foot-big {
    font: 700 clamp(4rem, 17vw, 15rem)/0.9 var(--sans);
    letter-spacing: -0.06em; text-transform: uppercase; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px var(--line-2);
    padding-top: 28px; user-select: none;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 30px 0 22px; border-top: 1px solid var(--line); margin-top: 18px; }
.foot h4 { font: 600 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--acid); margin-bottom: 14px; }
.foot p { color: var(--muted); font-size: 0.9rem; }
.foot p strong { color: var(--paper); font-weight: 600; }
.foot ul { list-style: none; }
.foot li { margin: 7px 0; }
.foot li a { color: var(--paper); text-decoration: none; font-size: 0.95rem; }
.foot li a:hover { color: var(--acid); }
.foot-legal { border-top: 1px solid var(--line); padding: 18px 0 26px; color: #6d6d75; font: 500 12px/1.6 var(--mono); }
.foot-legal a { color: var(--acid); }

/* ---------- COOKIES ---------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; display: none;
    max-width: 760px; margin-inline: auto;
    background: rgba(19, 19, 21, 0.96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--acid); border-radius: 16px;
    padding: 16px 18px;
}
.cookie-banner.show { display: block; animation: rise 0.4s ease; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cookie-text { color: var(--muted); font-size: 0.9rem; }
.cookie-text strong { color: var(--paper); }
.cookie-btn { font: 700 13px/1 var(--sans); padding: 13px 22px; border-radius: 11px; border: 2px solid var(--acid); background: var(--acid); color: #0b0b0c; cursor: pointer; white-space: nowrap; }

/* ---------- AVISO LEGAL ---------- */
.legal-container { width: min(900px, 100% - 40px); margin: 0 auto; padding: clamp(32px, 5vw, 64px) 0 20px; }
.legal-header { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal-header h1 { font: 700 clamp(2.2rem, 6vw, 4.4rem)/1 var(--sans); letter-spacing: -0.05em; text-transform: uppercase; }
.update-date { margin-top: 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--acid); }
.legal-section { margin-bottom: 14px; padding: 26px clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); }
.legal-section h2 { font: 700 1.3rem/1.2 var(--sans); letter-spacing: -0.02em; color: var(--paper); margin-bottom: 12px; }
.legal-section h3 { font: 700 1rem/1.2 var(--mono); letter-spacing: 0.04em; color: var(--acid); margin: 20px 0 8px; }
.legal-section p, .legal-section li { color: var(--muted); }
.legal-section p { margin-bottom: 12px; }
.legal-section strong { color: var(--paper); font-weight: 600; }
.legal-section ul { padding-left: 22px; margin: 8px 0 14px; list-style: none; }
.legal-section li { margin: 6px 0; }
.highlight-box { margin: 18px 0 4px; padding: 16px 18px; border-left: 3px solid var(--acid); background: rgba(200, 255, 46, 0.06); border-radius: 0 12px 12px 0; }
.highlight-box p { margin: 0; }
.legal-reference { margin: 14px 0; padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: 12px; }
.legal-reference > strong { display: block; margin-bottom: 6px; color: var(--paper); }
.legal-reference p { margin: 0; font-size: 0.93rem; }

/* ---------- ERRORES ---------- */
.err { min-height: calc(100vh - var(--bar-h) - var(--tick-h)); display: grid; place-items: center; padding: 40px 0; text-align: center; }
.err-code { font: 700 clamp(6rem, 24vw, 17rem)/0.85 var(--sans); letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 2px var(--acid); }
.err h1 { font: 700 clamp(1.6rem, 4vw, 2.6rem)/1.1 var(--sans); letter-spacing: -0.03em; text-transform: uppercase; margin: 20px 0 12px; }
.err p { color: var(--muted); max-width: 54ch; margin: 0 auto 28px; }
.err p strong { color: var(--paper); }
.err .hero-cta { justify-content: center; margin-top: 0; }

/* ---------- EFECTOS: FIREWORKS + LIGHT SHOW ---------- */
.fireworks-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1500; overflow: hidden; }
.firework { position: absolute; width: 8px; height: 8px; border-radius: 50%; animation: explode 1.2s ease-out forwards; box-shadow: 0 0 10px currentColor, 0 0 20px currentColor; will-change: transform, opacity; }
@keyframes explode { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 50% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(0.3); opacity: 0; } }

@keyframes partyBar {
    0%   { background: rgba(255, 0, 0, 0.28);     border-bottom-color: #ff0000; box-shadow: 0 2px 30px rgba(255, 0, 0, 0.6); }
    14%  { background: rgba(255, 119, 0, 0.28);   border-bottom-color: #ff7700; box-shadow: 0 2px 30px rgba(255, 119, 0, 0.6); }
    28%  { background: rgba(255, 255, 0, 0.28);   border-bottom-color: #ffff00; box-shadow: 0 2px 30px rgba(255, 255, 0, 0.6); }
    42%  { background: rgba(0, 255, 0, 0.28);     border-bottom-color: #00ff00; box-shadow: 0 2px 30px rgba(0, 255, 0, 0.6); }
    57%  { background: rgba(0, 255, 255, 0.28);   border-bottom-color: #00ffff; box-shadow: 0 2px 30px rgba(0, 255, 255, 0.6); }
    71%  { background: rgba(0, 136, 255, 0.28);   border-bottom-color: #0088ff; box-shadow: 0 2px 30px rgba(0, 136, 255, 0.6); }
    85%  { background: rgba(255, 0, 255, 0.28);   border-bottom-color: #ff00ff; box-shadow: 0 2px 30px rgba(255, 0, 255, 0.6); }
    100% { background: rgba(255, 0, 0, 0.28);     border-bottom-color: #ff0000; box-shadow: 0 2px 30px rgba(255, 0, 0, 0.6); }
}
@keyframes partyEdge {
    0%, 100% { color: #ff0000; border-color: #ff0000; box-shadow: 0 0 22px rgba(255, 0, 0, 0.8);     text-shadow: 0 0 12px #ff0000; }
    20% { color: #ffff00; border-color: #ffff00; box-shadow: 0 0 22px rgba(255, 255, 0, 0.8); text-shadow: 0 0 12px #ffff00; }
    40% { color: #00ff00; border-color: #00ff00; box-shadow: 0 0 22px rgba(0, 255, 0, 0.8);     text-shadow: 0 0 12px #00ff00; }
    60% { color: #00ffff; border-color: #00ffff; box-shadow: 0 0 22px rgba(0, 255, 255, 0.8); text-shadow: 0 0 12px #00ffff; }
    80% { color: #ff00ff; border-color: #ff00ff; box-shadow: 0 0 22px rgba(255, 0, 255, 0.8); text-shadow: 0 0 12px #ff00ff; }
}
@keyframes partyMark {
    0%, 100% { background: #ff0000; transform: scale(1) rotate(0); box-shadow: 0 0 28px #ff0000; }
    25% { background: #ffff00; transform: scale(1.14) rotate(5deg); box-shadow: 0 0 28px #ffff00; }
    50% { background: #00ff00; transform: scale(1.08) rotate(-5deg); box-shadow: 0 0 28px #00ff00; }
    75% { background: #00ffff; transform: scale(1.14) rotate(5deg); box-shadow: 0 0 28px #00ffff; }
}
@keyframes partyWord { 0%, 100% { color: #ff0000; } 20% { color: #ffff00; } 40% { color: #00ff00; } 60% { color: #00ffff; } 80% { color: #ff00ff; } }

.bar.light-show-active { animation: partyBar 1.5s linear infinite !important; }
.bar.light-show-active .logo-mark { animation: partyMark 1.5s ease-in-out infinite !important; }
.bar.light-show-active .logo-word, .bar.light-show-active .logo-word b { animation: partyWord 1.5s linear infinite !important; }
.bar.light-show-active .nav a { animation: partyEdge 2s linear infinite !important; border: 1px solid transparent; }
.bar.light-show-active .rec { animation: partyEdge 1.5s linear infinite !important; }
.hud.light-show-active { animation: partyEdge 1.5s linear infinite !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .notice-slot { display: none !important; }
    .hero-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .cols3, .compat { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --bar-h: 104px; }
    .bar-inner { flex-wrap: wrap; align-content: center; row-gap: 8px; padding: 0 14px; }
    .logo-mark { width: 36px; height: 36px; }
    .logo-word { font-size: 20px; }
    .rec { order: 2; margin-left: auto; }
    .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .nav a { padding: 9px 12px; font-size: 11px; }
}

/* Player y chat apilados (mismas medidas que Jakuzzi: player 56.25vw entre 210 y 390 px, chat 560 px) */
@media (max-width: 768px) {
    .live { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 0; }
    .tile.sig { height: 56.25vw; min-height: 210px; max-height: 390px; border-right: 0; border-bottom: 1px solid var(--line); }
    .tile.chat { grid-column: 1; grid-row: 2; height: 560px; }
    .hud { top: 9px; left: 9px; height: 40px; padding: 4px 4px 4px 12px; gap: 6px; }
    .hud-track { --seg-w: 74px; --seg-h: 32px; }
    .hud button { font-size: 13px; }
}

@media (max-width: 640px) {
    .wrap { width: min(1320px, 100% - 28px); }
    .features, .steps { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .sec-head { flex-direction: column; align-items: flex-start; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-btn { width: 100%; }
    .logo-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track, .rec i, .notice-box, .hud-dot { animation: none; }
    .hud-thumb { transition: none; }
}
