:root {
  --bg: #050505;
  --bg-soft: #0b0b0c;
  --panel: #111114;
  --panel-2: #17171b;
  --text: #f7f7f8;
  --muted: #a5a5ad;
  --line: rgba(255,255,255,.09);
  --orange: #ff7a00;
  --orange-2: #ffb000;
  --silver: #d8d9dc;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
  --radius: 24px;
  --shell: min(1180px, calc(100% - 36px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 15%, rgba(255,122,0,.09), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(255,176,0,.06), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -50px; z-index: 1000; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,5,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner { height: 78px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 28px; }
.brand { width: 150px; height: 58px; overflow: hidden; display: flex; align-items: center; }
.brand img { width: 150px; transform: scale(1.16); }
.site-nav { display: flex; justify-content: center; gap: 28px; color: #d5d5d8; font-size: .94rem; font-weight: 700; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--orange); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.header-live { display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border: 1px solid rgba(255,122,0,.35); border-radius: 999px; background: rgba(255,122,0,.08); font-size: .88rem; font-weight: 800; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,122,0,.12), 0 0 18px rgba(255,122,0,.8); animation: pulse 1.65s infinite; flex: 0 0 auto; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

.hero { position: relative; min-height: 720px; display: grid; align-items: center; padding: 74px 0 58px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,122,0,.5), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; position: relative; z-index: 3; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--orange-2); font-weight: 900; font-size: .79rem; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 22px 0 18px; max-width: 720px; font-size: clamp(3.2rem, 6vw, 6.4rem); line-height: .92; letter-spacing: -.065em; }
.hero h1 strong { display: block; color: transparent; -webkit-text-stroke: 1px var(--orange-2); text-shadow: 0 0 36px rgba(255,122,0,.14); }
.hero-copy > p { max-width: 650px; margin: 0; color: #c1c1c7; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.button { min-height: 52px; padding: 0 22px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
#heroListenBtn:hover { transform: none; }
.button-primary { color: #111; background: linear-gradient(135deg, var(--orange-2), var(--orange)); box-shadow: 0 12px 30px rgba(255,122,0,.22); }
.button-ghost { background: rgba(255,255,255,.035); border-color: var(--line); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 42px; max-width: 630px; }
.hero-metrics div { padding: 18px; border-top: 1px solid var(--line); }
.hero-metrics b { display: block; font-size: 1.15rem; color: #fff; }
.hero-metrics span { color: var(--muted); font-size: .84rem; }

.hero-visual { min-height: 560px; position: relative; display: grid; place-items: center; }
.visual-glow { position: absolute; inset: 16% 12%; background: radial-gradient(circle, rgba(255,122,0,.3), rgba(255,122,0,.07) 38%, transparent 70%); filter: blur(12px); }
.logo-stage { position: relative; width: min(560px, 100%); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.logo-stage::before, .logo-stage::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.logo-stage::before { inset: 7%; }
.logo-stage::after { inset: 16%; border-color: rgba(255,122,0,.22); }
.logo-stage img { width: 92%; border-radius: 50%; filter: drop-shadow(0 30px 52px rgba(0,0,0,.58)); position: relative; z-index: 3; mix-blend-mode: screen; }
.stage-line { position: absolute; inset: 50% auto auto 50%; width: 115%; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); transform-origin: left center; opacity: .6; }
.line-one { transform: rotate(16deg) translateX(-50%); }
.line-two { transform: rotate(146deg) translateX(-50%); }
.glass-card { background: rgba(18,18,21,.78); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.on-air-card { position: absolute; right: 0; bottom: 35px; min-width: 310px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; }
.on-air-card small { display: block; color: var(--orange); font-weight: 900; letter-spacing: .12em; }
.on-air-card strong { font-size: .92rem; }
.on-air-card time { font-size: 1.4rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.05); border-radius: 50%; }
.orbit-one { width: 780px; height: 780px; right: -240px; top: -180px; }
.orbit-two { width: 470px; height: 470px; left: -240px; bottom: -260px; }

.player-section { position: relative; z-index: 8; margin-top: -34px; }
.player-card { display: grid; grid-template-columns: 1.25fr 1fr auto; align-items: center; gap: 32px; padding: 26px 30px; border-radius: 26px; background: linear-gradient(135deg, rgba(24,24,28,.98), rgba(11,11,13,.98)); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0,0,0,.36); }
.player-status { display: flex; align-items: center; gap: 18px; min-width: 0; }
.station-avatar { width: 74px; height: 74px; flex: 0 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,122,0,.28); background: #000; }
.station-avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.player-status h2 { margin: 6px 0 2px; font-size: 1.2rem; }
.player-status p { margin: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.waveform { display: flex; gap: 4px; align-items: center; justify-content: center; height: 48px; opacity: .9; }
.waveform i { display: block; width: 3px; height: 24%; border-radius: 99px; background: linear-gradient(var(--orange-2), var(--orange)); animation: wave 1.15s ease-in-out infinite; animation-play-state: paused; }
.waveform.active i { animation-play-state: running; }
.waveform i:nth-child(3n) { animation-delay: -.5s; }
.waveform i:nth-child(4n) { animation-delay: -.25s; }
.waveform i:nth-child(5n) { animation-delay: -.75s; }
.player-controls { display: flex; align-items: center; gap: 16px; }
.play-button { width: 58px; height: 58px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #111; box-shadow: 0 12px 26px rgba(255,122,0,.25); }
.play-button svg { width: 27px; height: 27px; fill: currentColor; }
.icon-pause { display: none; }
.play-button.is-playing .icon-play { display: none; }
.play-button.is-playing .icon-pause { display: block; }
.volume-wrap { display: flex; align-items: center; gap: 8px; }
.volume-wrap svg { width: 22px; height: 22px; fill: var(--muted); }
.volume-wrap input { width: 100px; accent-color: var(--orange); }
.player-message { display: inline-block; color: var(--muted); font-size: .85rem; min-width: 84px; }

.section { padding: 118px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-heading h2, .network-copy h2, .contact-card h2 { margin: 12px 0 0; font-size: clamp(2.2rem, 4.5vw, 4.4rem); line-height: 1; letter-spacing: -.05em; }
.section-heading > p { max-width: 510px; margin: 0; color: var(--muted); }
.text-link { color: var(--orange-2); font-weight: 900; }

.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.schedule-card { position: relative; min-height: 220px; padding: 24px; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); border: 1px solid var(--line); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.schedule-card:hover { transform: translateY(-5px); border-color: rgba(255,122,0,.38); }
.schedule-card::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -70px; bottom: -70px; background: radial-gradient(circle, rgba(255,122,0,.18), transparent 70%); }
.schedule-time { font-size: .86rem; color: var(--orange-2); font-weight: 900; letter-spacing: .1em; }
.schedule-card h3 { margin: 46px 0 7px; font-size: 1.45rem; }
.schedule-card p { margin: 0; color: var(--muted); }
.live-badge { position: absolute; top: 20px; right: 20px; display: inline-flex; gap: 8px; align-items: center; color: #fff; font-size: .74rem; font-weight: 900; }

.chat-section { padding-top: 0; }
.chat-online-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-2); font-weight: 800; font-size: .88rem; }
.chat-card { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.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,122,0,.4); background: rgba(255,122,0,.07); }
.cm-name { font-weight: 900; color: var(--silver); }
.cm-body { margin-left: 8px; color: var(--text); }
.cm-time { float: right; color: var(--muted); font-size: .76rem; }
.chat-official-badge { color: var(--orange-2); font-size: .74rem; font-weight: 900; }
.chat-online-names { font-size: .82rem; color: var(--muted); padding: 0 6px; }
.chat-star { color: var(--orange-2); }
.chat-official-name { color: var(--orange-2); }
.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,122,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,122,0,.4); outline-offset: 1px; }
.news-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card-img { width: 100%; height: 150px; object-fit: cover; border-radius: 18px; margin-bottom: auto; }
.news-link { color: inherit; }
.news-link:hover { color: var(--orange-2); }

.news-section { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.news-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 18px; }
.news-main, .news-card { border: 1px solid var(--line); background: var(--panel); border-radius: 24px; overflow: hidden; }
.news-art { min-height: 330px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 30%, rgba(255,176,0,.28), transparent 33%), linear-gradient(135deg, #1a1a20, #09090b); }
.news-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; }
.news-map { width: 170px; height: 170px; border: 1px solid rgba(255,122,0,.4); border-radius: 50%; display: grid; place-items: center; color: var(--orange-2); font-weight: 900; font-size: 5rem; box-shadow: inset 0 0 60px rgba(255,122,0,.12), 0 0 80px rgba(255,122,0,.1); }
.news-kicker { position: absolute; top: 22px; left: 22px; padding: 8px 11px; border-radius: 999px; color: #111; background: var(--orange-2); font-size: .73rem; font-weight: 900; }
.news-body { padding: 26px; }
.news-body h3 { font-size: 1.7rem; line-height: 1.12; margin: 8px 0 10px; }
.news-body p, .news-card p { color: var(--muted); }
.news-meta { color: var(--orange-2); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.news-card { padding: 25px; display: flex; flex-direction: column; }
.news-card h3 { font-size: 1.25rem; line-height: 1.2; margin: 16px 0 8px; }
.news-icon { margin-bottom: auto; height: 150px; display: grid; place-items: center; border-radius: 18px; font-size: 4rem; font-weight: 900; color: rgba(255,122,0,.23); background: radial-gradient(circle, rgba(255,122,0,.15), transparent 65%), #0b0b0e; }

.network-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.network-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.network-copy > p { color: var(--muted); font-size: 1.07rem; }
.feature-list { margin-top: 34px; display: grid; gap: 14px; }
.feature-list > div { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.feature-list span { color: var(--orange-2); font-weight: 900; }
.feature-list p { margin: 0; color: var(--muted); }
.feature-list b { color: #fff; }
.device-stage { min-height: 520px; position: relative; display: grid; place-items: center; }
.desktop-device { width: 92%; aspect-ratio: 1.55; border: 8px solid #1d1d22; border-bottom-width: 22px; border-radius: 18px; background: #08080a; box-shadow: var(--shadow); overflow: hidden; transform: perspective(900px) rotateY(-7deg); }
.browser-bar { height: 28px; display: flex; align-items: center; gap: 6px; padding-left: 10px; background: #222227; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #59595e; }
.screen-content { height: calc(100% - 28px); display: grid; place-items: center; align-content: center; gap: 18px; background: radial-gradient(circle, rgba(255,122,0,.18), transparent 52%), #050505; }
.screen-content img { width: 62%; mix-blend-mode: screen; }
.screen-content span { color: var(--orange-2); font-weight: 900; letter-spacing: .15em; }
.phone-device { position: absolute; right: 0; bottom: 0; width: 180px; aspect-ratio: .5; border: 8px solid #26262a; border-radius: 32px; background: radial-gradient(circle at 50% 40%, rgba(255,122,0,.18), transparent 45%), #070708; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.phone-speaker { position: absolute; top: 10px; width: 54px; height: 5px; border-radius: 99px; background: #4b4b4f; }
.phone-device img { width: 94%; mix-blend-mode: screen; }
.phone-device small { color: var(--orange); font-weight: 900; }
.phone-device button { width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--orange); color: #111; font-weight: 900; }

.contact-section { padding-top: 86px; }
.contact-card { padding: 48px; border-radius: 28px; border: 1px solid rgba(255,122,0,.22); background: linear-gradient(135deg, rgba(255,122,0,.14), rgba(255,255,255,.02) 42%, rgba(255,255,255,.02)); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-card p { color: var(--muted); max-width: 650px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

.site-footer { padding: 44px 0; border-top: 1px solid var(--line); background: #030303; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 38px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 110px; }
.footer-brand p { margin: 0; color: var(--muted); }
.footer-links { display: flex; gap: 20px; color: var(--muted); font-size: .9rem; }
.footer-copy { color: #727279; font-size: .88rem; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 13px 18px; border-radius: 12px; background: #fff; color: #111; font-weight: 800; box-shadow: var(--shadow); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.78); opacity: .64; } }
@keyframes wave { 0%,100% { height: 24%; } 50% { height: 100%; } }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .site-nav { position: fixed; inset: 78px 0 auto; background: rgba(7,7,8,.98); border-bottom: 1px solid var(--line); padding: 24px 18px; flex-direction: column; align-items: center; transform: translateY(-130%); transition: transform .25s ease; }
  .site-nav.open { transform: translateY(0); }
  .menu-toggle { display: block; grid-column: 2; grid-row: 1; }
  .header-live { display: none; }
  .hero { min-height: auto; }
  .hero-grid, .network-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p, .hero-metrics { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 480px; }
  .player-card { grid-template-columns: 1fr auto; }
  .waveform { grid-column: 1 / -1; grid-row: 2; }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-main { grid-column: 1 / -1; }
  .network-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { justify-content: center; }
}

@media (max-width: 650px) {
  :root { --shell: min(100% - 24px, 1180px); --radius: 20px; }
  .brand { width: 126px; }
  .brand img { width: 126px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .hero-metrics { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { min-height: 380px; }
  .on-air-card { position: relative; right: auto; bottom: auto; width: 100%; min-width: 0; margin-top: -24px; }
  .player-section { margin-top: 18px; }
  .player-card { grid-template-columns: 1fr; padding: 22px; }
  .waveform { grid-column: auto; grid-row: auto; }
  .player-controls { justify-content: space-between; flex-wrap: wrap; }
  .volume-wrap { flex: 1; }
  .volume-wrap input { width: 100%; }
  .section { padding: 86px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .schedule-grid, .news-grid { grid-template-columns: 1fr; }
  .news-main { grid-column: auto; }
  .news-art { min-height: 250px; }
  .device-stage { min-height: 390px; }
  .phone-device { width: 135px; }
  .contact-card { padding: 30px 22px; flex-direction: column; align-items: flex-start; }
  .contact-actions { width: 100%; justify-content: flex-start; }
  .contact-actions .button { width: 100%; }
  .footer-links { flex-wrap: wrap; }
}

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

/* Modal de instalación PWA */
.install-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.76); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 20px; }
.install-overlay.show { display: flex; }
.install-card { width: min(360px, 100%); padding: 28px 24px; border-radius: 22px; text-align: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.install-card img { margin: 0 auto 14px; border-radius: 16px; }
.install-card h3 { margin: 0 0 8px; font-size: 20px; }
.install-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.install-actions { display: flex; gap: 10px; }
.install-actions .button { flex: 1; min-height: 46px; }
