/* ============================================================
   RADIO MEGA — estilos
   ============================================================ */
/* Fuentes alojadas en tu servidor (sin Google Fonts → no se envía la IP a Google).
   Archivos: assets/fonts/unbounded.woff2 y assets/fonts/manrope.woff2 */
@font-face { font-family: "Unbounded"; src: url("../assets/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("../assets/fonts/pacifico.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #080a14;
  --bg-2: #0d1020;
  --surface: #121630;
  --surface-2: #1a1f40;
  --line: rgba(160, 180, 255, .12);
  --text: #eef2ff;
  --muted: #8d96bf;
  /* colores de marca (rosa neón del logo) */
  --accent: #ff4fb8;
  --pink: #ff1f9a;
  --violet: #a24dff;
  --cyan: #2de2ff;
  --live: #ff3d6e;
  --grad: linear-gradient(110deg, #ff5cc0, var(--pink) 50%, var(--violet));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(255, 31, 154, .35), 0 10px 40px -10px rgba(255, 31, 154, .6);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Pacifico", "Segoe Script", "Brush Script MT", cursive;
  --header-h: 68px;
  --dock-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .5em; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .6em; margin-bottom: 14px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 61, 110, .7); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 61, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0); } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 700 .95rem/1 var(--font); padding: .9em 1.3em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; color: var(--text);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-lg { font-size: 1.02rem; padding: 1.05em 1.6em; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 31, 154, .5), 0 14px 50px -10px rgba(255, 31, 154, .8); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn svg { width: 1.2em; height: 1.2em; }
.icon-btn { background: none; border: 0; color: var(--text); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); }
.icon-btn svg { width: 22px; height: 22px; }

/* play / pause toggles */
.ico-pause, .ico-mute { display: none; }
.is-playing .ico-play, .is-loading .ico-play { display: none; }
.is-playing .ico-pause { display: block; }
.is-muted .ico-vol { display: none; }
.is-muted .ico-mute { display: block; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(8, 10, 20, .72); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand-logo { border-radius: 50%; background: #000; box-shadow: 0 0 18px -4px rgba(255, 31, 154, .7); }
.brand-name { font: 500 1.05rem var(--font-display); letter-spacing: .02em; }
.brand-name b { font-weight: 900; margin-left: 3px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--muted); font-weight: 600; padding: 8px 14px; border-radius: 999px; text-decoration: none; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--text); background: rgba(255, 255, 255, .06); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; padding: 7px 12px; border-radius: 999px; background: rgba(255, 61, 110, .12); color: #ff8fab; border: 1px solid rgba(255, 61, 110, .3); }
.live-chip.is-off { filter: grayscale(1); opacity: .6; }
.live-chip.is-off .dot { animation: none; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 100px); isolation: isolate; }
.hero-bg { position: absolute; inset: -20%; z-index: -1; background-size: cover; background-position: center; filter: blur(80px) saturate(160%); opacity: .35; transition: background-image 1s ease; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(255, 31, 154, .26), transparent 60%),
    radial-gradient(50% 50% at 90% 30%, rgba(162, 77, 255, .22), transparent 60%),
    radial-gradient(60% 60% at 60% 110%, rgba(255, 79, 184, .18), transparent 60%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 60%, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 900; letter-spacing: -.03em; }
/* logo grande y lema neón */
.hero-logo {
  width: clamp(120px, 12vw, 160px); height: auto; aspect-ratio: 1; border-radius: 50%;
  margin-bottom: 20px; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 79, 184, .35), 0 0 40px rgba(255, 31, 154, .55), 0 0 90px rgba(255, 31, 154, .3);
  animation: logoGlow 4s ease-in-out infinite;
}
@keyframes logoGlow {
  50% { box-shadow: 0 0 0 1px rgba(255, 79, 184, .5), 0 0 60px rgba(255, 31, 154, .75), 0 0 120px rgba(255, 31, 154, .4); }
}
.hero-tagline {
  margin-top: 18px; font-family: var(--font-script); font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.3; color: #fff4fb;
  text-shadow: 0 0 4px #ff8fd0, 0 0 12px #ff1f9a, 0 0 28px rgba(255, 31, 154, .8), 0 0 60px rgba(255, 31, 154, .45);
  transform: rotate(-2deg); transform-origin: left center;
}
.hero-sub { margin-top: 22px; max-width: 34em; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #c3cae8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 40px 0 0; }
.stats dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stats dd { margin: 4px 0 0; font: 700 1.6rem var(--font-display); font-variant-numeric: tabular-nums; }

/* tarjeta sonando ahora */
.now-card {
  background: linear-gradient(180deg, rgba(26, 31, 64, .85), rgba(18, 22, 48, .85));
  border: 1px solid var(--line); border-radius: 26px; padding: 22px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.cover-wrap { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.cover { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform 8s ease; }
.cover.is-loading { opacity: 0; }
.is-playing .cover-wrap .cover { transform: scale(1.04); }
.eq { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 4px; align-items: flex-end; height: 28px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.eq i { width: 4px; height: 30%; background: var(--accent); border-radius: 2px; animation: eq 1s ease-in-out infinite; animation-play-state: paused; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; } .eq i:nth-child(5) { animation-delay: -.45s; }
.is-playing .eq { opacity: 1; }
.is-playing .eq i { animation-play-state: running; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.now-meta { margin-top: 18px; }
.now-title { font-size: 1.35rem; margin-top: 6px; overflow-wrap: anywhere; }
.now-artist { color: var(--muted); margin-top: 4px; font-weight: 600; }
.history { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.history ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.history li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.history li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2, .community h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; }
.lead { margin-top: 14px; color: #c3cae8; font-size: 1.08rem; }

/* programación — estilo minimalista */
.air { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; margin-bottom: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.air > div { padding: 28px 0; min-width: 0; }
.air-next { padding-left: 40px !important; border-left: 1px solid var(--line); }
.air-now { padding-right: 40px !important; }
.air-label { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.air-now .air-label { color: var(--accent); }
.air h3 { font: 800 clamp(1.8rem, 4vw, 2.8rem)/1.05 var(--font-display); letter-spacing: -.02em; margin: 12px 0 8px; overflow-wrap: anywhere; }
.air-next h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: #d5d9f0; }
.air-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.row-bar { display: block; height: 2px; background: rgba(255, 255, 255, .08); margin-top: 18px; border-radius: 2px; overflow: hidden; }
.row-bar i { display: block; height: 100%; background: var(--grad); }

.sched-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.view-toggle { flex: none; margin-bottom: 10px; }
.day-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { flex: none; position: relative; background: none; border: 0; color: var(--muted); font: 600 .92rem var(--font); text-transform: capitalize; padding: 12px 14px 14px; cursor: pointer; transition: color .2s; }
.day-tab b { font-weight: 700; margin-left: 2px; }
.day-tab:hover { color: var(--text); }
.day-tab[aria-selected="true"] { color: var(--text); }
.day-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--grad); border-radius: 2px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.row { position: relative; display: grid; grid-template-columns: 84px 1fr auto; align-items: baseline; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row time { font: 600 1rem var(--font); font-variant-numeric: tabular-nums; color: var(--muted); }
.row-name { font: 700 1.1rem var(--font-display); letter-spacing: .01em; overflow-wrap: anywhere; }
.row-meta { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .row-bar { grid-column: 2 / -1; margin-top: 10px; }
.row.is-live time, .row.is-live .row-meta { color: var(--accent); }
.row.is-live .row-name { color: #fff; }
.row.is-live::before { content: ""; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--grad); }
.row.is-auto .row-name { font: 400 1rem var(--font); color: var(--muted); font-style: italic; }
.row.is-past { opacity: .38; }
.empty { padding: 28px; text-align: center; color: var(--muted); list-style: none; }

.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 8px; }
.wk-col { padding: 0 12px; border-left: 1px solid var(--line); }
.wk-col:first-child { border-left: 0; padding-left: 0; }
.wk-col header { padding: 16px 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wk-col header b { color: var(--text); margin-left: 2px; }
.wk-col.is-today header { color: var(--accent); }
.wk-col ol { list-style: none; margin: 0; padding: 0 0 16px; display: grid; gap: 14px; }
.wk-item { display: grid; gap: 2px; font-size: .85rem; }
.wk-item time { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.wk-item span { font-weight: 700; overflow-wrap: anywhere; }
.wk-item.is-auto span { font-weight: 400; color: var(--muted); font-style: italic; }
.wk-item.is-live time, .wk-item.is-live span { color: var(--accent); }
.wk-item.is-past { opacity: .38; }

.now-dj { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 31, 154, .14); border: 1px solid rgba(255, 79, 184, .35); color: #ffd1ea; }
.now-dj[hidden] { display: none; }

.calendar-embed .seg { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 14px; }
.seg-btn { border: 0; background: none; color: var(--muted); font: 700 .88rem var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.seg-btn.is-active { background: rgba(255, 255, 255, .1); color: var(--text); }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #141416; box-shadow: var(--shadow); }
/* Google Calendar no tiene modo oscuro: lo invertimos para que encaje con la web */
.frame iframe { display: block; width: 100%; height: 640px; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(1.4); }

/* reloj */
.clocks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.clock-card { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.clock { font: 700 clamp(2.4rem, 5.5vw, 3.8rem)/1.1 var(--font-display); font-variant-numeric: tabular-nums; margin: 10px 0 6px; letter-spacing: -.02em; }
.clock-diff { display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 0 10px; color: var(--accent); font-weight: 700; }
.clock-diff svg { width: 30px; height: 30px; }
.tz-form { margin-top: 26px; max-width: 760px; }
.tz-form label { font-weight: 700; display: block; margin-bottom: 8px; }
.tz-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tz-row input { flex: 1 1 260px; min-width: 0; font: 500 1rem var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 14px 18px; border-radius: 999px; }
.tz-row input::placeholder { color: #6a7299; }
.tz-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 79, 184, .25); }
.hint { margin-top: 10px; color: var(--muted); font-size: .9rem; min-height: 1.4em; }

/* comunidad */
.community { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.community .btn { margin-top: 28px; }
.socials { list-style: none; display: flex; gap: 10px; padding: 0; margin: 28px 0 0; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: background .2s, transform .2s; }
.socials a:hover { background: var(--surface-2); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.socials-sm { margin: 0; gap: 8px; }
.socials-sm a { width: 38px; height: 38px; }
.socials-sm svg { width: 17px; height: 17px; }
.discord-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #36393e; box-shadow: var(--shadow); }
.discord-frame iframe { display: block; width: 100%; height: 620px; border: 0; }

/* footer */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: .9rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a { color: var(--muted); }
.legal-links a:hover { color: var(--text); }

/* ---------- Dock (reproductor fijo) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 13, 28, .86); backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--line);
}
.dock::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--grad); opacity: 0; transition: opacity .3s; }
.dock.is-playing::before { opacity: 1; }
.dock-inner { width: min(1180px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 14px; height: calc(var(--dock-h) - 20px); }
.dock-cover { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.dock-meta { flex: 1; min-width: 0; }
.dock-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-artist { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-round { position: relative; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--glow); flex: none; transition: transform .15s; }
.play-round:active { transform: scale(.94); }
.play-round svg { width: 24px; height: 24px; }
.play-round .ico-play { margin-left: 3px; }
.spinner { display: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .spinner { display: block; }
.is-loading .ico-pause { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.dock-vol { display: flex; align-items: center; gap: 4px; }
.dock-vol input { width: 110px; accent-color: var(--accent); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 18px); transform: translate(-50%, 20px); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s ease; z-index: 70; max-width: calc(100% - 32px); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Contenido bloqueado hasta consentimiento ---------- */
.frame, .discord-frame { position: relative; }
.gate { min-height: 360px; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 32px 24px; background: radial-gradient(60% 60% at 50% 0%, rgba(255, 31, 154, .14), transparent 70%), var(--surface); }
.gate[hidden] { display: none; }
.gate-title { font: 700 1.25rem var(--font-display); }
.gate .muted { max-width: 30em; }
.gate .btn { margin-top: 8px; }
.gate-link { font-size: .88rem; }
.discord-frame:has(.gate:not([hidden])) { background: var(--surface); }

/* ---------- Banner y panel de cookies ---------- */
.cc-banner {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: calc(var(--dock-h) + 16px);
  max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 20px 28px;
  padding: 20px 24px; border-radius: var(--radius); background: rgba(20, 18, 40, .97);
  border: 1px solid rgba(255, 79, 184, .35); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
.cc-text { flex: 1; font-size: .92rem; color: #c9cfee; }
.cc-title { font: 700 1.05rem var(--font-display); color: var(--text); margin-bottom: 6px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-actions .btn { padding: .8em 1.2em; font-size: .9rem; min-width: 112px; }
.cc-actions .cc-accept, .cc-actions [data-cc="reject"] { background: var(--surface-2); border-color: rgba(255, 255, 255, .22); }
.cc-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(4, 4, 10, .7); backdrop-filter: blur(6px); }
.cc-panel { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cc-panel h2 { font-size: 1.4rem; margin-bottom: 8px; }
.cc-cat { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.cc-cat:first-of-type { margin-top: 16px; }
.cc-cat h3 { font: 700 1rem var(--font); margin-bottom: 4px; }
.cc-cat p { font-size: .9rem; color: var(--muted); }
.cc-always { flex: none; font-size: .78rem; font-weight: 700; color: var(--accent); }
.cc-panel .cc-actions { margin-top: 18px; justify-content: flex-end; }
.switch { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span:first-of-type { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: background .2s; }
.switch span:first-of-type::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--grad); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Páginas legales ---------- */
.legal-page { padding-bottom: 0; }
.legal-page .cc-banner { bottom: 16px; }
.legal { padding: clamp(40px, 7vw, 80px) 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; color: #fff; }
.legal h3 { font: 700 1.05rem var(--font); margin: 22px 0 8px; }
.legal p, .legal li { color: #c9cfee; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0; display: grid; gap: 6px; }
.legal .card { padding: 20px 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.legal dt { color: var(--muted); font-weight: 600; }
.legal dd { margin: 0; }
.todo { background: rgba(255, 200, 0, .15); color: #ffd666; padding: 0 6px; border-radius: 6px; font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9cfee; }
.legal th { background: var(--surface); color: var(--text); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .view-toggle { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .now-card { max-width: 520px; }
  .community { grid-template-columns: 1fr; }
  .clocks { grid-template-columns: 1fr; }
  .clock-diff { padding: 4px 0; grid-auto-flow: column; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(8, 10, 20, .97); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s; margin: 0;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav a { padding: 14px 12px; border-radius: 10px; }
  .header-actions { margin-left: auto; }
  .air { grid-template-columns: 1fr; }
  .air-now { padding-right: 0 !important; }
  .air-next { padding-left: 0 !important; border-left: 0; border-top: 1px solid var(--line); }
  .row { grid-template-columns: 58px 1fr; }
  .row-meta { grid-column: 2; }
  .row.is-live::before { left: -10px; }
  .frame iframe { height: 560px; }
  .discord-frame iframe { height: 520px; }
  .dock-vol, [data-share] { display: none; }
  .now-card { padding: 16px; }
}
@media (max-width: 760px) {
  .cc-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: calc(var(--dock-h) + 10px); padding: 18px; }
  .cc-actions .btn { flex: 1 1 0; min-width: 0; }
  .cc-cat { align-items: flex-start; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}
@media (max-width: 420px) {
  .live-chip span { display: none; }
  .live-chip { padding: 8px; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.legal dl > div { display: contents; }

/* ---------- Cartel de especiales (eventos.js) ---------- */
.ev-modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  background: rgba(4, 3, 10, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: evFade .3s ease;
}
.ev-modal.is-out { opacity: 0; transition: opacity .25s ease; }
@keyframes evFade { from { opacity: 0; } }
.ev-card {
  position: relative; width: min(500px, 100%); max-height: 100%; display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden; background: var(--bg-2);
  box-shadow: 0 0 0 1px rgba(255, 79, 184, .45), 0 0 60px rgba(255, 31, 154, .45), 0 40px 100px -20px rgba(0, 0, 0, .9);
  animation: evPop .45s cubic-bezier(.2, .9, .25, 1.15);
}
@keyframes evPop { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; background: linear-gradient(90deg, rgba(255, 31, 154, .28), rgba(162, 77, 255, .18)); border-bottom: 1px solid rgba(255, 79, 184, .3); }
.ev-title { display: flex; align-items: center; gap: 10px; font: 800 1.05rem var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: 0 0 12px rgba(255, 31, 154, .8); }
.ev-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .45) !important; color: #fff !important; font: 400 28px/1 var(--font) !important; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s;
}
.ev-close:hover { background: rgba(255, 31, 154, .8) !important; }
.ev-close:active { transform: scale(.9); }
.ev-viewport { overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ev-track { display: flex; transition: transform .9s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.ev-slide { flex: 0 0 100%; margin: 0; min-width: 0; }
.ev-frame { width: 100%; aspect-ratio: 1; max-height: calc(100dvh - 250px); background: #000; display: grid; place-items: center; overflow: hidden; }
.ev-img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.ev-slide figcaption { padding: 12px 16px 0; text-align: center; color: #d6dbf5; font-size: .95rem; }
.ev-when b { color: #fff; }
.ev-when small { color: var(--muted); font-size: .82rem; }
.ev-live { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-weight: 800; color: #ffd1ea; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }
.ev-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0 0; }
.ev-modal .ev-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .3) !important; cursor: pointer; transition: width .3s, background .3s; }
.ev-modal .ev-dots button.is-on { width: 22px; background: var(--grad) !important; }
.ev-info { padding: 14px 16px 16px; }
.ev-btn { width: 100%; }
body.ev-open { overflow: hidden; }

/* ---------- Textos que se desplazan (marquee.js) ---------- */
.mq { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: clip !important; }
.mq-in { display: inline-block; padding-right: 2px; }
.mq.is-marquee { text-align: left; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
.mq.is-marquee .mq-in { padding: 0 12px; animation: mqSlide var(--mq-dur, 8s) ease-in-out infinite alternate; }
@keyframes mqSlide { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(calc(-1 * var(--mq-dist))); } }
.history li, .hist li { min-width: 0; }
.history li .mq, .hist li .mq { flex: 1 1 auto; }
@media (prefers-reduced-motion: reduce) { .mq.is-marquee .mq-in { animation: none; } .mq { text-overflow: ellipsis !important; } }

/* El carrusel de eventos se desliza siempre, aunque el ordenador tenga las animaciones reducidas */
@media (prefers-reduced-motion: reduce) {
  .ev-modal .ev-track { transition: transform .9s cubic-bezier(.65, 0, .35, 1) !important; }
  .ev-modal .ev-track[style*="none"] { transition: none !important; }
}

/* ---------- Especial en directo: barra de progreso bajo la carátula ---------- */
.sp-live { margin-top: 14px; padding: 12px 14px 10px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 31, 154, .2), rgba(162, 77, 255, .1)); border: 1px solid rgba(255, 79, 184, .45); box-shadow: 0 10px 30px -14px rgba(255, 31, 154, .7); text-align: left; }
.sp-live[hidden] { display: none; }
.sp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd1ea; }
.sp-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; letter-spacing: .1em; }
.sp-left { color: #fff; letter-spacing: 0; text-transform: none; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.sp-bar { position: relative; height: 7px; border-radius: 7px; background: rgba(255, 255, 255, .12); margin: 12px 0 8px; }
.sp-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad); border-radius: inherit; box-shadow: 0 0 14px rgba(255, 31, 154, .9); transition: width 5s linear; }
.sp-fill::after { content: ""; position: absolute; right: 0; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #ff4fb8; }
.sp-times { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.player .sp-live { width: min(78vw, 340px, 42dvh); }
.is-especial .cover-wrap, .is-especial .art { box-shadow: 0 0 0 2px rgba(255, 79, 184, .7), 0 0 40px rgba(255, 31, 154, .55); }
