:root {
  --bg: #050609;
  --bg-soft: #0a0d12;
  --panel: rgba(10, 13, 18, .88);
  --panel-strong: #0c1017;
  --text: #f7f8fb;
  --muted: #aeb5c1;
  --line: rgba(255, 255, 255, .10);
  --orange: #ff6a00;
  --orange-hot: #ff3d00;
  --blue: #138cff;
  --cyan: #00d4e8;
  --green: #31d66b;
  --purple: #a74dff;
  --gold: #ffbd17;
  --red: #f12835;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --shell: min(1540px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 74, 0, .08), transparent 26%),
    radial-gradient(circle at 92% 16%, rgba(19, 140, 255, .09), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body::selection { background: rgba(255, 106, 0, .35); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img, svg { display: block; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: -80px; left: 18px; padding: 12px 18px; background: #fff; color: #000; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 88px;
  background: rgba(4, 5, 8, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px) saturate(1.4);
}
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.brand img { width: 250px; height: auto; }
.brand-divider { width: 1px; height: 38px; background: linear-gradient(transparent, rgba(255,255,255,.28), transparent); }
.brand-subtitle { color: #cfd3da; font-size: .91rem; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; color: #e4e7ed; font-size: .94rem; font-weight: 650; padding: 34px 0 30px; transition: color .2s; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 20px; height: 2px; border-radius: 2px; background: var(--orange); transition: left .2s, right .2s; }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a:hover::after, .site-nav a.active::after { left: 0; right: 0; }
.header-live { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 13px 17px; background: linear-gradient(135deg, var(--orange), var(--orange-hot)); box-shadow: 0 10px 32px rgba(255, 75, 0, .26); text-transform: uppercase; font-weight: 850; font-size: .78rem; letter-spacing: .04em; }
.broadcast-icon { width: 21px; height: 21px; position: relative; display: inline-block; }
.broadcast-icon::before { content: ""; position: absolute; inset: 7px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px transparent; }
.broadcast-icon::after { content: ""; position: absolute; inset: 2px; border: 2px solid currentColor; border-top-color: transparent; border-bottom-color: transparent; border-radius: 50%; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.04); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; isolation: isolate; min-height: 720px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); }
.hero-grid-bg { position: absolute; inset: 0; z-index: -5; background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -4; background: linear-gradient(90deg, rgba(0,0,0,.14), rgba(0,0,0,.55) 47%, rgba(0,0,0,.12)); }
.hero-glow { position: absolute; z-index: -3; width: 520px; height: 520px; border-radius: 50%; filter: blur(100px); opacity: .22; }
.hero-glow-orange { left: -240px; top: 100px; background: var(--orange-hot); }
.hero-glow-blue { right: -220px; top: 80px; background: var(--blue); }
.signal-lines { position: absolute; z-index: -2; width: 44%; height: 70%; bottom: -16%; opacity: .28; background: repeating-radial-gradient(ellipse at bottom, transparent 0 26px, currentColor 27px 29px, transparent 30px 46px); transform: perspective(600px) rotateX(58deg); filter: drop-shadow(0 0 14px currentColor); }
.signal-lines-left { color: var(--orange); left: -4%; }
.signal-lines-right { color: var(--blue); right: -4%; }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .78fr) minmax(650px, 1.22fr); align-items: center; gap: 52px; min-height: 720px; padding: 54px 0 70px; }
.hero-copy { max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #ff9b57; text-transform: uppercase; letter-spacing: .13em; font-size: .73rem; font-weight: 850; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(241,40,53,.12), 0 0 16px rgba(241,40,53,.8); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.82); } }
.hero h1 { margin: 20px 0 22px; max-width: 720px; font-size: clamp(3rem, 5.1vw, 5.8rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 strong { color: var(--orange); font-weight: 900; text-shadow: 0 0 30px rgba(255,106,0,.18); }
.hero-copy > p { max-width: 620px; margin: 0; color: #d1d5dc; font-size: clamp(1.05rem, 1.3vw, 1.28rem); }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 22px; border: 0; border-radius: 13px; cursor: pointer; font-weight: 850; font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; transition: transform .2s, filter .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-radio { color: #fff; background: linear-gradient(135deg, #ff7a00, #ff3f00); box-shadow: 0 14px 36px rgba(255,86,0,.30), inset 0 1px rgba(255,255,255,.28); }
.button-tv { color: #fff; background: linear-gradient(135deg, #168eff, #0068ff); box-shadow: 0 14px 36px rgba(0,112,255,.28), inset 0 1px rgba(255,255,255,.25); }
.button-primary { background: linear-gradient(135deg, var(--orange), var(--orange-hot)); box-shadow: 0 14px 36px rgba(255,86,0,.23); }
.button-ghost { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); }
.button-purple { background: linear-gradient(135deg, #a94dff, #6d2bff); box-shadow: 0 14px 36px rgba(132,54,255,.24); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; color: #aeb5c0; font-size: .83rem; }
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust b { color: #fff; font-size: .98rem; }

.live-center { border: 1px solid rgba(111,159,212,.32); border-radius: 25px; padding: 13px; background: linear-gradient(155deg, rgba(18,23,31,.96), rgba(5,8,13,.94)); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 50px rgba(11,111,255,.06), inset 0 1px rgba(255,255,255,.04); }
.live-center-heading { height: 34px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.live-center-heading span { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--orange)); }
.live-center-heading span:last-child { transform: rotate(180deg); }
.live-center-heading h2 { margin: 0; text-transform: uppercase; font-size: .98rem; letter-spacing: .03em; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 5px; }
.mode-tab { min-height: 51px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); cursor: pointer; text-transform: uppercase; font-weight: 900; font-size: 1rem; transition: background .2s, box-shadow .2s, color .2s; }
.mode-tab:first-child { border-radius: 12px 3px 3px 3px; }
.mode-tab:last-child { border-radius: 3px 12px 3px 3px; }
.mode-tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mode-tab-radio { color: #ff9251; border-color: rgba(255,106,0,.35); }
.mode-tab-radio.active { color: #fff; background: linear-gradient(180deg, rgba(255,89,0,.30), rgba(255,74,0,.12)); border-color: var(--orange); box-shadow: inset 0 0 24px rgba(255,98,0,.16), 0 0 20px rgba(255,98,0,.12); }
.mode-tab-tv { color: #5fb3ff; border-color: rgba(19,140,255,.35); }
.mode-tab-tv.active { color: #fff; background: linear-gradient(180deg, rgba(19,140,255,.27), rgba(0,92,210,.10)); border-color: var(--blue); box-shadow: inset 0 0 24px rgba(0,117,255,.16), 0 0 20px rgba(0,117,255,.10); }
.media-panel { min-height: 385px; margin-top: 7px; border-radius: 4px 4px 13px 13px; overflow: hidden; }
.radio-panel { border: 1px solid rgba(255,106,0,.34); background: #07090c; }
.radio-visual { position: relative; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px 72px; background: radial-gradient(circle at 50% 45%, rgba(255,94,0,.10), transparent 44%), linear-gradient(180deg, #06070a, #090b0f); }
.live-badge { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 7px; background: linear-gradient(135deg, #d70918, #f12a38); box-shadow: 0 6px 20px rgba(241,40,53,.25); text-transform: uppercase; font-weight: 850; font-size: .72rem; }
.live-badge span { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.radio-logo { width: min(310px, 66%); height: auto; }
.radio-visual p { margin: 4px 0 0; color: #e2e5ea; font-size: .95rem; text-align: center; }
.equalizer { position: absolute; left: 8%; right: 8%; bottom: 20px; height: 62px; display: flex; align-items: end; justify-content: center; gap: 4px; }
.equalizer i { width: 4px; height: calc(12px + (var(--h, 4) * 5px)); max-height: 58px; border-radius: 5px 5px 1px 1px; background: linear-gradient(to top, #ff3e00, #ff9a00); box-shadow: 0 0 9px rgba(255,102,0,.30); transform-origin: bottom; }
.equalizer i:nth-child(3n) { --h: 7; } .equalizer i:nth-child(4n) { --h: 5; } .equalizer i:nth-child(5n) { --h: 9; } .equalizer i:nth-child(7n) { --h: 3; } .equalizer i:nth-child(11n) { --h: 10; }
.equalizer.playing i { animation: equalize .65s ease-in-out infinite alternate; animation-delay: calc(var(--h, 2) * -70ms); }
/* [BACHI] modo "live": barras movidas por datos reales del audio (JS), sin
   la animacion enlatada de arriba -- ver ensureEqualizerGraph()/tickEqualizer() en app.js. */
.equalizer.live i { transition: transform .05s linear, opacity .05s linear; }
@keyframes equalize { from { transform: scaleY(.35); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
.radio-controls { min-height: 84px; display: grid; grid-template-columns: auto minmax(120px,1fr) auto; align-items: center; gap: 16px; padding: 11px 18px; border-top: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, #15171a, #0b0d10); }
.icon-button { width: 62px; height: 62px; display: grid; place-items: center; border: 2px solid var(--orange); border-radius: 50%; background: radial-gradient(circle, #25282c, #090a0d 68%); box-shadow: 0 0 24px rgba(255,106,0,.17), inset 0 1px rgba(255,255,255,.12); cursor: pointer; }
.icon-button svg, .small-icon-button svg { width: 28px; height: 28px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.pause-icon { display: none !important; }
.is-playing .play-icon { display: none !important; }
.is-playing .pause-icon { display: block !important; }
.now-playing { min-width: 0; }
.now-playing span { display: block; color: #8f98a5; text-transform: uppercase; font-size: .64rem; letter-spacing: .13em; font-weight: 800; }
.now-playing strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.now-playing strong[data-status="online"] { color: #8dffae; }
.now-playing strong[data-status="error"] { color: #ff8390; }
.now-playing strong[data-status="warning"] { color: #ffd77b; }
.volume-group { display: flex; align-items: center; gap: 10px; }
.small-icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.small-icon-button:hover { background: rgba(255,255,255,.08); }
.small-icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.small-icon-button.is-muted { color: #ff5966; }
input[type="range"] { width: 130px; height: 5px; accent-color: var(--orange); cursor: pointer; }
.tv-panel { border: 1px solid rgba(19,140,255,.42); background: #030609; }
.video-shell { position: relative; aspect-ratio: 16 / 9; min-height: 385px; background: #020305; overflow: hidden; }
.video-shell video { width: 100%; height: 100%; object-fit: cover; background: #020305; }
.tv-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(to bottom, rgba(1,4,8,.18), rgba(1,4,8,.28)); transition: opacity .25s, visibility .25s; }
.tv-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.tv-brand { display: flex; align-items: baseline; gap: 10px; text-transform: uppercase; transform: skew(-7deg); filter: drop-shadow(0 5px 12px rgba(0,0,0,.8)); }
.tv-brand small { font-size: clamp(1rem, 2vw, 1.45rem); font-weight: 900; }
.tv-brand strong { padding: 4px 12px; background: var(--red); font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1; }
.tv-brand b { font-size: clamp(1.3rem, 2.4vw, 2.1rem); }
.tv-start-button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 100px; padding: 11px 20px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); font-weight: 850; cursor: pointer; }
.tv-start-button svg { width: 20px; height: 20px; fill: currentColor; }
.tv-controls { position: absolute; left: 0; right: 0; bottom: 0; min-height: 52px; display: flex; align-items: center; gap: 4px; padding: 6px 10px; background: linear-gradient(transparent, rgba(0,0,0,.95)); }
.tv-live-label { display: flex; align-items: center; gap: 6px; margin-left: 3px; font-size: .7rem; text-transform: uppercase; font-weight: 850; white-space: nowrap; }
.tv-live-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.live-progress { flex: 1; min-width: 40px; height: 3px; background: rgba(255,255,255,.22); }
.live-progress span { display: block; width: 44%; height: 100%; background: var(--red); box-shadow: 0 0 8px rgba(241,40,53,.7); }
.tv-status { max-width: 120px; color: #cfd4dc; font-size: .67rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-status[data-status="error"] { color: #ff8690; }
.tv-status[data-status="warning"] { color: #ffd77b; }

.quick-links { position: relative; z-index: 2; margin-top: -38px; padding-bottom: 42px; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quick-card { position: relative; min-height: 242px; overflow: hidden; display: flex; flex-direction: column; padding: 24px 20px 18px; border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent); border-radius: 19px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, #0b0d12), #080a0e 62%); box-shadow: 0 16px 45px rgba(0,0,0,.30), inset 0 1px rgba(255,255,255,.035); transition: transform .25s, border-color .25s, box-shadow .25s; }
.quick-card::after { content: ""; position: absolute; right: -35px; bottom: -50px; width: 140px; height: 140px; border-radius: 50%; background: var(--accent); opacity: .08; filter: blur(15px); }
.quick-card:hover { transform: translateY(-7px); border-color: var(--accent); box-shadow: 0 22px 55px rgba(0,0,0,.42), 0 0 28px color-mix(in srgb, var(--accent) 13%, transparent); }
.quick-card svg { width: 42px; height: 42px; margin-bottom: 17px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.quick-card > span { color: #fff; font-weight: 800; text-transform: uppercase; font-size: .92rem; }
.quick-card > strong { margin-top: -1px; color: var(--accent); text-transform: uppercase; font-size: 1.18rem; }
.quick-card p { margin: 15px 0 20px; color: #bcc2cb; font-size: .84rem; line-height: 1.48; }
.quick-card > b { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 9px; padding: 9px 11px; color: var(--accent); text-transform: uppercase; font-size: .68rem; letter-spacing: .03em; }
.quick-card > b i { font-style: normal; font-size: 1.1rem; }
.quick-orange { --accent: var(--orange); } .quick-blue { --accent: var(--blue); } .quick-green { --accent: var(--green); } .quick-purple { --accent: var(--purple); } .quick-gold { --accent: var(--gold); } .quick-cyan { --accent: var(--cyan); }

.section { padding: 92px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(2rem, 3.5vw, 3.7rem); line-height: 1.05; letter-spacing: -.04em; }
.section-heading > p { max-width: 530px; margin: 0; color: var(--muted); font-size: 1rem; }
.section-link { color: #ff9b58; font-weight: 800; white-space: nowrap; }
.section-link span { margin-left: 6px; }
.programming-section { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); border-top: 1px solid rgba(255,255,255,.05); }
.schedule-switch { width: min(600px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 26px; padding: 6px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035); }
.schedule-switch button { min-height: 48px; border: 0; border-radius: 10px; background: transparent; color: #b9c0ca; cursor: pointer; font-weight: 800; }
.schedule-switch button.active:first-child { color: #fff; background: linear-gradient(135deg, rgba(255,106,0,.95), rgba(255,61,0,.95)); box-shadow: 0 10px 25px rgba(255,80,0,.18); }
.schedule-switch button.active:last-child { color: #fff; background: linear-gradient(135deg, rgba(19,140,255,.95), rgba(0,89,230,.95)); box-shadow: 0 10px 25px rgba(0,105,255,.18); }
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.schedule-card { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 18px; min-height: 128px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); transition: transform .2s, border-color .2s; }
.schedule-card:hover { transform: translateY(-3px); border-color: rgba(255,106,0,.36); }
.schedule-time { font-size: 1.45rem; font-weight: 900; color: #fff; }
.schedule-content span { color: #ff9d59; text-transform: uppercase; font-size: .65rem; font-weight: 850; letter-spacing: .1em; }
.schedule-content span i { color: #ff5361; font-style: normal; }
.schedule-content h3 { margin: 3px 0 4px; font-size: 1.15rem; }
.schedule-content p { margin: 0; color: var(--muted); font-size: .84rem; }
.schedule-arrow { color: #ff9954; font-size: 1.45rem; }

.news-section { border-top: 1px solid rgba(255,255,255,.05); }
.news-grid { display: grid; grid-template-columns: 1.3fr .85fr .85fr; gap: 18px; }
.news-card { min-height: 370px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel-strong); transition: transform .25s, border-color .25s; }
.news-card:hover { transform: translateY(-5px); border-color: rgba(255,106,0,.34); }
.news-art { min-height: 150px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,106,0,.22), transparent 42%), linear-gradient(135deg, #241006, #08090d 64%); }
.news-card:nth-child(2) .news-art { background: radial-gradient(circle, rgba(19,140,255,.20), transparent 42%), linear-gradient(135deg, #07182c, #08090d 64%); }
.news-card:nth-child(3) .news-art { background: radial-gradient(circle, rgba(167,77,255,.20), transparent 42%), linear-gradient(135deg, #1b0a2b, #08090d 64%); }
.news-art span { color: rgba(255,255,255,.22); font-size: 4rem; font-weight: 950; letter-spacing: -.08em; }
.news-card.featured .news-art { min-height: 190px; }
.news-body { padding: 24px; }
.news-category { color: #ff9b57; text-transform: uppercase; letter-spacing: .1em; font-size: .67rem; font-weight: 850; }
.news-body h3 { margin: 9px 0 12px; font-size: 1.32rem; line-height: 1.18; }
.news-card.featured .news-body h3 { font-size: 1.65rem; }
.news-body p { margin: 0; color: var(--muted); font-size: .9rem; }

.community-section { padding-top: 50px; }
.community-card { min-height: 430px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; overflow: hidden; border: 1px solid rgba(167,77,255,.35); border-radius: 30px; background: radial-gradient(circle at 15% 50%, rgba(167,77,255,.18), transparent 32%), radial-gradient(circle at 90% 20%, rgba(19,140,255,.12), transparent 30%), #0a0c12; box-shadow: var(--shadow); }
.community-visual { position: relative; min-height: 430px; overflow: hidden; }
.community-orb { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; transform: translate(-50%,-50%); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: radial-gradient(circle, #a74dff, #39116d 60%, transparent 62%); box-shadow: 0 0 70px rgba(167,77,255,.38); }
.community-orb::before, .community-orb::after { content: ""; position: absolute; border: 1px solid rgba(167,77,255,.36); border-radius: 50%; }
.community-orb::before { inset: -44px; } .community-orb::after { inset: -88px; }
.community-orb span { width: 72px; height: 58px; border-radius: 25px 25px 25px 7px; background: #fff; position: relative; }
.community-orb span::after { content: "•••"; position: absolute; inset: 2px 0 0; color: #7e34ce; text-align: center; font-size: 1.8rem; font-weight: 900; letter-spacing: 4px; }
.chat-bubble { position: absolute; z-index: 2; padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; background: rgba(15,18,28,.82); backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgba(0,0,0,.35); font-size: .83rem; }
.bubble-one { left: 10%; top: 24%; } .bubble-two { right: 7%; bottom: 23%; }
.community-copy { padding: 70px 70px 70px 30px; }
.community-copy h2 { margin: 10px 0 18px; font-size: clamp(2.3rem, 4vw, 4.5rem); line-height: .98; letter-spacing: -.05em; }
.community-copy p { max-width: 630px; color: var(--muted); font-size: 1.04rem; }
.community-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.text-action { color: #c9b3ff; font-weight: 750; }

.sponsors-section { border-top: 1px solid rgba(255,255,255,.05); }
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sponsor-placeholder { min-height: 132px; display: grid; place-items: center; padding: 20px; border: 1px dashed rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.025); color: #8e96a2; text-align: center; font-weight: 800; transition: border-color .2s, color .2s, background .2s; }
.sponsor-placeholder:hover { border-color: rgba(255,189,23,.45); color: #ffd66c; background: rgba(255,189,23,.035); }

.contact-section { padding-top: 20px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 270px; padding: 50px 56px; border: 1px solid rgba(255,106,0,.34); border-radius: 28px; background: radial-gradient(circle at 95% 0%, rgba(255,106,0,.18), transparent 35%), linear-gradient(135deg, #151009, #090b10 64%); box-shadow: var(--shadow); }
.contact-card h2 { margin: 9px 0 12px; font-size: clamp(2rem, 3.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.045em; }
.contact-card p { max-width: 730px; margin: 0; color: var(--muted); }
.contact-actions { display: flex; gap: 12px; flex: 0 0 auto; }

.site-footer { margin-top: 90px; border-top: 1px solid rgba(255,255,255,.08); background: #030406; }
.footer-top { min-height: 170px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 50px; }
.footer-brand img { width: 240px; height: auto; }
.footer-brand p { margin: 10px 0 0; color: #8e96a2; font-size: .85rem; }
.footer-nav { display: flex; gap: 24px; color: #c8cdd5; font-size: .82rem; }
.footer-nav a:hover { color: var(--orange); }
.always-live { justify-self: end; display: flex; align-items: center; gap: 14px; color: var(--orange); }
.always-live .broadcast-icon { width: 42px; height: 42px; }
.always-live small { display: block; color: #fff; text-transform: uppercase; font-size: .67rem; letter-spacing: .1em; }
.always-live strong { display: block; text-transform: uppercase; font-size: 1.15rem; }
.footer-bottom { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.07); color: #777f8a; font-size: .75rem; }
.footer-bottom a { color: var(--orange); font-weight: 750; }
.footer-credit { font-size: .7rem; opacity: .6; }
.footer-credit a { color: inherit; font-weight: 400; }

.toast { position: fixed; z-index: 3000; right: 22px; bottom: 22px; max-width: min(420px, calc(100% - 44px)); padding: 14px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(12,15,21,.96); box-shadow: 0 20px 60px rgba(0,0,0,.48); color: #fff; transform: translateY(28px); opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast[data-type="error"] { border-color: rgba(241,40,53,.55); }
.toast[data-type="warning"] { border-color: rgba(255,189,23,.55); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; transition-delay: var(--delay, 0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1420px) {
  :root { --shell: min(1320px, calc(100% - 40px)); }
  .brand img { width: 215px; }
  .brand-subtitle, .brand-divider { display: none; }
  .site-nav { gap: 22px; }
  .site-nav a { font-size: .86rem; }
  .hero-layout { grid-template-columns: minmax(0, .72fr) minmax(590px, 1.28fr); gap: 34px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-card { min-height: 220px; }
}

@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; top: 88px; left: 18px; right: 18px; display: grid; gap: 0; max-height: 0; overflow: hidden; padding: 0 18px; border: 1px solid transparent; border-radius: 0 0 18px 18px; background: rgba(5,7,11,.98); opacity: 0; transition: max-height .3s, opacity .2s, padding .3s, border-color .3s; }
  .site-nav.open { max-height: 560px; padding: 12px 18px 18px; border-color: var(--line); opacity: 1; }
  .site-nav a { padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .site-nav a::after { display: none; }
  .header-live { display: none; }
  .hero-layout { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-copy { max-width: 820px; text-align: center; margin-inline: auto; }
  .hero-copy > p { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-media { width: min(830px, 100%); margin-inline: auto; }
  .quick-links { margin-top: 35px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: span 2; }
  .community-card { grid-template-columns: .8fr 1.2fr; }
  .community-copy { padding-right: 40px; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-nav { display: none; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 680px); --radius: 19px; }
  .site-header, .header-inner { min-height: 74px; }
  .brand img { width: 185px; }
  .site-nav { top: 74px; }
  .hero { min-height: auto; }
  .hero-layout { min-height: auto; padding: 54px 0 42px; gap: 40px; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 4.3rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-trust { gap: 12px 20px; }
  .live-center { padding: 8px; border-radius: 20px; }
  .mode-tab { min-height: 47px; font-size: .85rem; }
  .media-panel { min-height: 340px; }
  .radio-visual { min-height: 265px; }
  .radio-controls { grid-template-columns: auto 1fr; }
  .volume-group { grid-column: span 2; width: 100%; }
  input[type="range"] { flex: 1; width: 100%; }
  .video-shell { min-height: auto; }
  .tv-status { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 205px; }
  .section { padding: 68px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .schedule-switch { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-card { grid-template-columns: 72px 1fr; }
  .schedule-arrow { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; }
  .community-card { grid-template-columns: 1fr; }
  .community-visual { min-height: 330px; }
  .community-copy { padding: 10px 26px 46px; text-align: center; }
  .community-copy .eyebrow { justify-content: center; }
  .community-actions { justify-content: center; }
  .sponsor-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 34px 24px; }
  .contact-actions { width: 100%; flex-direction: column; }
  .contact-actions .button { width: 100%; }
  .site-footer { margin-top: 60px; }
  .footer-top { grid-template-columns: 1fr; padding: 38px 0; text-align: center; }
  .footer-brand img { margin-inline: auto; }
  .always-live { justify-self: center; }
  .footer-bottom { padding: 20px 0; flex-direction: column; text-align: center; }
}

@media (max-width: 430px) {
  .brand img { width: 165px; }
  .menu-toggle { width: 42px; height: 42px; }
  .hero-copy > p { font-size: .99rem; }
  .hero-trust span { font-size: .72rem; }
  .live-center-heading h2 { font-size: .84rem; }
  .radio-logo { width: 78%; }
  .radio-controls { gap: 11px; padding-inline: 12px; }
  .icon-button { width: 54px; height: 54px; }
  .now-playing strong { max-width: 160px; }
  .tv-live-label { display: none; }
  .sponsor-grid { grid-template-columns: 1fr; }
}

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

/* [BACHI] Chat en vivo -- portado del sitio anterior de radioduraznoapleno.com
   para no perder la funcionalidad real (mismo backend/config que ya tenian). */
.chat-online-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 800; font-size: .88rem; }
.chat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(155deg, rgba(18,23,31,.96), rgba(5,8,13,.94)); box-shadow: var(--shadow); }
.chat-messages { height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 6px; }
.chat-empty { margin: auto; color: var(--muted); font-size: .92rem; }
.chat-msg { padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); font-size: .92rem; line-height: 1.5; }
.chat-msg-official { border-color: rgba(255,106,0,.4); background: rgba(255,106,0,.07); }
.cm-name { font-weight: 900; color: var(--text); }
.cm-body { margin-left: 8px; color: var(--text); }
.cm-time { float: right; color: var(--muted); font-size: .76rem; }
.chat-official-badge { color: var(--orange); font-size: .74rem; font-weight: 900; }
.chat-online-names { font-size: .82rem; color: var(--muted); padding: 0 6px; }
.chat-star { color: var(--orange); }
.chat-official-name { color: var(--orange); }
.chat-login { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chat-login input { flex: 1; min-width: 160px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: .92rem; }
.chat-login input:focus { outline: 2px solid rgba(255,106,0,.4); outline-offset: 1px; }
.chat-color-picker { display: flex; gap: 6px; }
.chat-color-swatch { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.chat-color-swatch.selected { border-color: #fff; }
.chat-err { color: #ff6b6b; font-size: .86rem; }
.chat-composer { display: flex; gap: 10px; }
.chat-composer input { flex: 1; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: .92rem; }
.chat-composer input:focus { outline: 2px solid rgba(255,106,0,.4); outline-offset: 1px; }
@media (max-width: 640px) { .chat-messages { height: 280px; } }
