 :root{
  --gov-top:#0c5eca;
  --brand:#1d59c9;
  --brand-2:#0f3f9f;
  --accent:#ffd200;

  --radio:#d71920;
  --radio-red:#d71920;
  --radio-red-dark:#ad1117;
  --radio-yellow:#ffd200;
  --radio-gold:#9a6a00;
  --radio-soft:#fff1f2;

  --bg:#f5f7fb;
  --card:#ffffff;
  --ink:#0f172a;
  --muted:#6b7280;
  --soft:#eef3ff;
  --line:#e5e7eb;
  --radius:16px;
  --shadow:0 14px 30px rgba(2,15,46,.08);
  --shadow-strong:0 24px 50px rgba(2,15,46,.14);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
}
body{min-height:100vh}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.skip-link{
  position:absolute;
  left:1rem;
  top:-100px;
  background:#fff;
  color:var(--brand);
  padding:.65rem .85rem;
  border-radius:10px;
  z-index:999;
  box-shadow:var(--shadow);
}
.skip-link:focus{top:1rem}

/* GOV.CO */
.gov-top{background:var(--gov-top);color:#fff}
.gov-top .wrap{
  max-width:1200px;
  margin:0 auto;
  padding:.4rem 1rem;
  display:flex;
  align-items:center;
}
.gov-top img{height:26px;width:auto}

/* HEADER */
header.header{background:#fff;border-bottom:1px solid var(--line)}
.header .wrap{
  max-width:1200px;
  margin:0 auto;
  padding:.9rem 1rem;
  display:grid;
  grid-template-columns:1fr auto;
  gap:1rem;
  align-items:center;
}
.brand{display:flex;align-items:center;gap:.75rem;min-width:0}
.brand-logos{display:flex;align-items:center;gap:.45rem;flex:0 0 auto}
.brand-logos img{width:88px;height:88px;object-fit:cover}
.brand-title{display:flex;flex-direction:column;min-width:0}
.brand-title h1{
  margin:0;
  font-size:1.06rem;
  font-weight:800;
  letter-spacing:.2px;
  line-height:1.1;
}
.brand-sub{
  margin-top:.1rem;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.1;
}
.search-mini{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:.35rem;
  border:1px solid var(--line);
  border-radius:999px;
  padding:.45rem .7rem;
  max-width:420px;
  width:100%;
  background:#fff;
}
.search-mini input{
  border:0;
  outline:0;
  font-size:.95rem;
  width:100%;
  background:transparent;
}

/* NAVBAR */
.nav{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#fff;
}
.nav .wrap{
  max-width:1200px;
  margin:0 auto;
  padding:.68rem 1rem;
  display:block;
}
.nav-shell{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  flex-wrap:nowrap;
  width:100%;
  min-width:0;
}
.nav-alcaldia-card{
  display:flex;
  align-items:center;
  gap:.45rem;
  flex-wrap:nowrap;
  flex:0 1 auto;
  min-width:0;
  padding:.38rem .45rem;
  border:1px solid #d8dde8;
  background:#fff;
  border-radius:16px;
  box-shadow:0 8px 18px rgba(2,15,46,.05);
}
.nav-alcaldia-label{
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  padding:.52rem .66rem;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid #d8dde8;
  color:#334155;
  font-size:.86rem;
  font-weight:900;
  white-space:nowrap;
  flex:0 0 auto;
}
.nav-alcaldia-label::before{
  content:"🏛";
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#eef3ff;
  color:var(--brand);
  font-size:.82rem;
}
.menu{
  display:flex;
  gap:.25rem;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  margin:0;
  max-width:100%;
  min-width:0;
}
.menu a{
  padding:.62rem .7rem;
  border-radius:11px;
  font-size:.86rem;
  font-weight:700;
  color:#1f2a44;
  white-space:nowrap;
  text-align:center;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  transition:background .2s ease,color .2s ease,transform .08s ease,border-color .2s ease;
}
.menu a:hover{
  background:#eef3ff;
  color:var(--brand);
  border-color:#cddcff;
  transform:translateY(-1px);
}
.nav-radio-card{
  flex:0 0 auto;
  display:flex;
  align-items:center;
}
.nav-radio-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:.68rem .86rem;
  border-radius:13px;
  background:linear-gradient(180deg,var(--radio-red),var(--radio-red-dark));
  color:#fff !important;
  border:1px solid #991b1b;
  font-size:.88rem;
  font-weight:900;
  box-shadow:0 10px 22px rgba(215,25,32,.22);
  white-space:nowrap;
}
.nav-radio-link::before{
  content:"●";
  color:var(--radio-yellow);
  margin-right:.45rem;
  font-size:.8rem;
  filter:drop-shadow(0 0 4px rgba(255,210,0,.45));
}
.nav-radio-link:hover{
  background:linear-gradient(180deg,#ef3036,var(--radio-red-dark));
  transform:translateY(-1px);
}
.nav-radio-link.active{
  outline:3px solid rgba(255,210,0,.32);
  outline-offset:2px;
}

/* MAIN */
main{
  max-width:1200px;
  margin:1.25rem auto 3rem;
  padding:0 1rem;
}
.hero{
  position:relative;
  background:
    radial-gradient(circle at top right,rgba(255,210,0,.34),transparent 30%),
    radial-gradient(circle at bottom left,rgba(215,25,32,.14),transparent 28%),
    linear-gradient(135deg,#fff8dc 0%,#ffffff 48%,#fff1f2 100%);
  border:1px solid #f3d37a;
  border-radius:24px;
  padding:1.2rem;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  right:-90px;
  top:-120px;
  width:320px;
  height:320px;
  border-radius:999px;
  background:rgba(255,210,0,.28);
  filter:blur(4px);
}
.hero::after{
  content:"";
  position:absolute;
  left:-100px;
  bottom:-140px;
  width:280px;
  height:280px;
  border-radius:999px;
  background:rgba(215,25,32,.12);
  filter:blur(2px);
}
.hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:1.25rem;
  align-items:center;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  width:max-content;
  max-width:100%;
  background:#fff7cc;
  border:1px solid #f2dfa1;
  border-radius:999px;
  padding:.45rem .7rem;
  color:#7a4900;
  font-size:.88rem;
  font-weight:800;
  box-shadow:0 8px 18px rgba(2,15,46,.05);
}
.live-dot{
  width:.62rem;
  height:.62rem;
  border-radius:999px;
  background:#ef4444;
  box-shadow:0 0 0 6px rgba(239,68,68,.12);
  display:inline-block;
}
.hero h2{
  margin:.75rem 0 .4rem;
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:900;
  color:var(--radio-red-dark);
}
.hero h2 span{color:var(--radio-red)}
.subtitle{
  color:#475569;
  margin:0;
  font-size:1.02rem;
  line-height:1.65;
  max-width:62ch;
}
.hero-actions{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin-top:1rem;
}
.btn-primary,.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  border-radius:999px;
  font-weight:800;
  padding:.85rem 1rem;
  transition:transform .08s ease, box-shadow .2s ease, background .2s ease;
  border:0;
  cursor:pointer;
}
.btn-primary{
  background:linear-gradient(180deg,#ffe26a,var(--accent));
  color:#1f2937;
  box-shadow:0 10px 22px rgba(255,210,0,.25);
}
.btn-secondary{
  background:#fff;
  color:var(--radio-red);
  border:1px solid #fecdd3;
  box-shadow:0 8px 18px rgba(215,25,32,.08);
}
.btn-primary:hover,.btn-secondary:hover{transform:translateY(-1px)}

.station-card{
  background:linear-gradient(135deg,#ffffff 0%,#fff7cc 48%,#ffe4e6 100%);
  border:1px solid #f1d27a;
  border-radius:22px;
  box-shadow:var(--shadow-strong);
  padding:1rem;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:1rem;
  align-items:center;
}
.station-logo{
  width:118px;
  height:118px;
  border-radius:24px;
  display:grid;
  place-items:center;
  background:#fff;
  color:#fff;
  font-weight:900;
  text-align:center;
  line-height:1.05;
  border:4px solid #fff;
  box-shadow:0 12px 24px rgba(2,15,46,.16);
  overflow:hidden;
}
.station-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#fff;
}
.station-logo span{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:#fff;
  background:linear-gradient(135deg,var(--radio-red),#111827);
  font-size:.95rem;
}
.station-meta h3{
  margin:0;
  font-size:1.35rem;
  line-height:1.1;
  font-weight:900;
  color:var(--radio-red);
}
.station-meta p{
  margin:.35rem 0 0;
  color:#64748b;
  font-size:.95rem;
  line-height:1.45;
}
.signal-row{
  display:flex;
  gap:.45rem;
  flex-wrap:wrap;
  margin-top:.65rem;
}
.signal-pill{
  font-size:.78rem;
  font-weight:800;
  color:#7a4900;
  background:#fff7cc;
  border:1px solid #f2dfa1;
  border-radius:999px;
  padding:.32rem .55rem;
}
.signal-pill:first-child{
  background:#fff1f2;
  border-color:#fecdd3;
  color:var(--radio-red);
}

.section-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:1rem;
  margin-top:1rem;
}
.stack{display:grid;gap:1rem}
.card{
  background:#fff;
  border:1px solid #e6ebf5;
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card-h{
  padding:1rem 1rem .8rem;
  border-bottom:1px solid #eef2fb;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}
.card-title{
  margin:0;
  font-weight:900;
  font-size:1.05rem;
  color:#0f172a;
}
.card-subtitle{
  margin:.25rem 0 0;
  color:#64748b;
  font-size:.9rem;
  line-height:1.45;
}
.card-b{padding:1rem}

/* PLAYER */
.player-shell{
  background:
    radial-gradient(circle at top right,rgba(255,210,0,.22),transparent 35%),
    linear-gradient(135deg,#7f1015,#c2171d 58%,#d71920);
  border-radius:18px;
  padding:1rem;
  color:#fff;
  overflow:hidden;
  position:relative;
}
.player-shell::after{
  content:"";
  position:absolute;
  right:-60px;
  bottom:-80px;
  width:220px;
  height:220px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}
.player-head{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr auto;
  gap:1rem;
  align-items:center;
  margin-bottom:.8rem;
}
.player-title{
  font-weight:900;
  font-size:1.25rem;
  margin:0;
}
.player-status{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  background:#fff7cc;
  color:#7a4900;
  border:1px solid #f2dfa1;
  border-radius:999px;
  padding:.38rem .6rem;
  font-size:.82rem;
  font-weight:900;
}
.player-frame-wrap{
  position:relative;
  z-index:1;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.24);
  min-height:160px;
}
.player-frame-wrap iframe{
  display:block;
  width:100%;
  height:190px;
  border:0;
  background:#fff;
}
.native-audio{
  width:100%;
  padding:1rem;
  background:#fff;
  color:#0f172a;
}
.native-audio.show{display:block}
.native-audio audio{
  width:100%;
  display:block;
}
.player-note{
  position:relative;
  z-index:1;
  margin:.7rem 0 0;
  color:rgba(255,255,255,.85);
  font-size:.86rem;
  line-height:1.45;
}
.player-note a{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* CHAT */
.chat-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.65rem;
}
.chat-form .full{grid-column:1/-1}
.field label{
  display:block;
  font-size:.82rem;
  font-weight:800;
  color:#334155;
  margin-bottom:.28rem;
}
.field input,.field textarea{
  width:100%;
  border:1px solid #d6dcec;
  border-radius:12px;
  padding:.75rem .85rem;
  font:inherit;
  outline:none;
  background:#fff;
  color:#0f172a;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field textarea{
  min-height:92px;
  resize:vertical;
  line-height:1.5;
}
.field input:focus,.field textarea:focus{
  border-color:var(--radio-red);
  box-shadow:0 0 0 3px rgba(215,25,32,.14);
}
.hp{display:none !important}
.chat-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  grid-column:1/-1;
  flex-wrap:wrap;
}
.chat-help{
  font-size:.82rem;
  color:#64748b;
  line-height:1.4;
  max-width:48ch;
}
.chat-submit{
  border:0;
  border-radius:12px;
  padding:.75rem 1rem;
  font-weight:900;
  cursor:pointer;
  background:linear-gradient(180deg,var(--radio-red),var(--radio-red-dark));
  color:#fff;
  box-shadow:0 8px 18px rgba(215,25,32,.22);
}
.chat-submit:disabled{
  opacity:.6;
  cursor:not-allowed;
}
.chat-list{
  display:grid;
  gap:.65rem;
  margin-top:.9rem;
  max-height:410px;
  overflow:auto;
  padding-right:.2rem;
}
.msg{
  border:1px solid #e6ebf5;
  background:#f8fafc;
  border-radius:14px;
  padding:.75rem;
  animation:fadeIn .25s ease;
}
.msg-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.35rem;
}
.msg-name{font-weight:900;color:#0f172a}
.msg-time{color:#64748b;font-size:.78rem;white-space:nowrap}
.msg-text{
  margin:0;
  color:#334155;
  line-height:1.48;
  word-break:break-word;
}
.empty{
  color:#64748b;
  background:#f8fafc;
  border:1px dashed #dbe5ff;
  border-radius:14px;
  padding:.85rem;
  line-height:1.45;
}
.notice{
  display:none;
  margin-top:.7rem;
  border-radius:12px;
  padding:.7rem .8rem;
  font-size:.9rem;
  line-height:1.4;
}
.notice.ok{
  display:block;
  background:#ecfdf5;
  color:#065f46;
  border:1px solid #bbf7d0;
}
.notice.err{
  display:block;
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
}
@keyframes fadeIn{
  from{opacity:0;transform:translateY(4px)}
  to{opacity:1;transform:translateY(0)}
}

/* FACEBOOK */
.fb-embed{
  display:grid;
  place-items:center;
  background:#f8fafc;
  border:1px solid #eef2fb;
  border-radius:16px;
  overflow:hidden;
  min-height:640px;
}
.fb-embed iframe{
  width:100%;
  max-width:500px;
  height:640px;
  border:0;
  overflow:hidden;
  background:#fff;
}
.fb-fallback{
  margin-top:.8rem;
  color:#64748b;
  font-size:.88rem;
  line-height:1.45;
}
.fb-fallback a{
  color:var(--brand);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}

.info-band{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
  margin-top:1rem;
}
.mini-card{
  background:#fff;
  border:1px solid #e6ebf5;
  border-radius:16px;
  padding:1rem;
  box-shadow:var(--shadow);
}
.mini-icon{
  width:42px;
  height:42px;
  border-radius:13px;
  background:#fff7cc;
  display:grid;
  place-items:center;
  margin-bottom:.7rem;
  font-size:1.25rem;
}
.mini-card h3{
  margin:0 0 .35rem;
  font-size:1rem;
  font-weight:900;
}
.mini-card p{
  margin:0;
  color:#64748b;
  font-size:.92rem;
  line-height:1.5;
}

/* FOOTER */
.footer{margin-top:2rem}
.footer .up{background:#0f172a;color:#e5e7eb}
.foot-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:1.2rem 1rem;
}
.foot-cols2{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:1.25rem;
  align-items:start;
}
.f-title{font-weight:800;margin-bottom:.35rem}
.f-item{
  display:block;
  color:#cbd5e1;
  font-size:.95rem;
  margin:.08rem 0;
  line-height:1.45;
}
.foot-logos{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:.6rem;
  margin-top:.35rem;
  flex-wrap:wrap;
}
.foot-logos img{
  width:88px;
  height:88px;
  object-fit:cover;
}
.legal-scroll{
  margin-top:.6rem;
  width:100%;
  overflow:auto;
  display:flex;
  justify-content:center;
  background:transparent;
  border:none;
}
.legal-scroll iframe{
  display:block;
  border:0;
  min-width:510px;
  height:100px;
}
.social-row{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:1rem;
  padding-top:1rem;
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}
.social-row a{
  color:#cbd5e1;
  display:flex;
  align-items:center;
  gap:.4rem;
}
.foot-bottom{background:#1d59c9;color:#fff}
.foot-bottom .wrap{
  max-width:1200px;
  margin:0 auto;
  padding:.7rem 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.gov-logos{
  display:flex;
  align-items:center;
  gap:.9rem;
}
.gov-logos .sep{
  width:1px;
  height:22px;
  background:rgba(255,255,255,.35);
}

@media (max-width:1080px){
  .nav-shell{
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom:.1rem;
  }
  .nav-alcaldia-card{flex:0 0 auto}
}

@media (max-width:980px){
  .hero-inner,.section-grid,.foot-cols2{grid-template-columns:1fr}
  .station-card{max-width:620px}
  .info-band{grid-template-columns:1fr}
  .foot-logos{justify-content:flex-start}
}

@media (max-width:720px){
  .header .wrap{grid-template-columns:1fr}
  .search-mini{
    justify-self:stretch;
    max-width:none;
  }
  .brand-logos img{
    width:62px;
    height:62px;
  }
  .nav .wrap{overflow:visible}
  .nav-shell{
    align-items:center;
    flex-wrap:nowrap;
    overflow-x:auto;
    justify-content:flex-start;
  }
  .nav-alcaldia-card{
    width:auto;
    overflow:visible;
    flex-wrap:nowrap;
    flex:0 0 auto;
  }
  .nav-alcaldia-label{flex:0 0 auto}
  .menu{
    justify-content:flex-start;
    flex-wrap:nowrap;
  }
  .menu a{padding:.68rem .78rem}
  .nav-radio-card{
    width:auto;
    flex:0 0 auto;
  }
  .nav-radio-link{width:auto}
  main{
    margin-top:.8rem;
    padding:0 .75rem;
  }
  .hero{
    padding:1rem;
    border-radius:20px;
  }
  .hero-inner{gap:1rem}
  .station-card{
    grid-template-columns:1fr;
    text-align:left;
  }
  .station-logo{
    width:92px;
    height:92px;
  }
  .player-head{grid-template-columns:1fr}
  .chat-form{grid-template-columns:1fr}
  .fb-embed{min-height:560px}
  .fb-embed iframe{height:560px}
  .foot-bottom .wrap{
    justify-content:center;
    text-align:center;
  }
}

/* Aviso para versión estática */
.static-warning{
  margin-bottom:.85rem;
  border:1px solid #fde68a;
  background:#fffbeb;
  color:#92400e;
  border-radius:14px;
  padding:.75rem .85rem;
  font-size:.88rem;
  line-height:1.45;
}
