:root{
  --bg:#0b0d12;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text:#eaeef6;
  --muted: rgba(234,238,246,.72);

  /* Rojo institucional aproximado (ajústalo si tienes el exacto) */
  --brand:#b5121b;
  --brand2:#ff2a2a;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --r1:18px;
  --r2:22px;

  --max:1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(181,18,27,.25), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255,255,255,.07), transparent 55%),
    var(--bg);
}

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

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
}


/* =========================
   TOPBAR (limpio y estable)
   ========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(10px);
  background: rgba(11,13,18,.70);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 12px 18px;
  flex-wrap: nowrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 0 0 auto;
  min-width: 240px;
}
.brand-logo{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.brand > div{ min-width:0; }
.brand-name{
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.brand-sub{
  font-size: .86rem;
  color: rgba(234,238,246,.68);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

#mainnav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}

.navlink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(234,238,246,.82);
  font-weight: 900;
  letter-spacing: .2px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.navlink:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  transform: translateY(-1px);
}
.navlink.active{
  background: rgba(181,18,27,.18);
  border-color: rgba(181,18,27,.35);
  color: rgba(255,255,255,.95);
}

.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background: rgba(234,238,246,.86);
  border-radius: 99px;
}

/* ===== MOBILE ===== */
@media (max-width: 920px){
  .brand-sub{ display:none; }
  .brand{ min-width: 0; }
  .brand-name{ max-width: 180px; }

  .nav-toggle{ display:flex; }

  /* oculto por defecto */
  #mainnav{
    display:none;
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    z-index: 99999;

    flex-direction: column;
    align-items: stretch;
    gap: 8px;

    padding: 14px;
    border-radius: 16px;
    background: rgba(12,12,16,.96);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,.55);

    max-height: calc(100vh - 90px);
    overflow: auto;
    white-space: normal;
  }

  /* cuando JS agrega .open */
  #mainnav.open{ display:flex; }

  .navlink{
    width: 100%;
    justify-content: flex-start;
    padding: 12px 12px;
    border-radius: 14px;
  }
}


/* Hero */
.hero{
  margin-top:16px;
  border-radius: var(--r2);
  border: 1px solid var(--border);
  overflow:hidden;
  box-shadow: var(--shadow);
  position:relative;
  min-height: 360px;
}
.hero-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg, rgba(0,0,0,.70), rgba(181,18,27,.20)),
    url("images/BannerTepicRadio.jpg") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(700px 400px at 15% 20%, rgba(255,255,255,.08), transparent 60%);
  pointer-events:none;
}
.hero-grid{
  position:relative;
  padding: 28px;
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 18px;
}
@media(max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/* Live badge */
.live-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(181,18,27,.18);
  border: 1px solid rgba(181,18,27,.35);
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .4px;
  width: max-content;
}
.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background: var(--brand2);
  box-shadow: 0 0 0 0 rgba(255,42,42,.7);
  animation: pulse 1.3s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(255,42,42,.7) }
  70%{ box-shadow:0 0 0 12px rgba(255,42,42,0) }
  100%{ box-shadow:0 0 0 0 rgba(255,42,42,0) }
}

.hero h1{
  margin: 14px 0 8px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.8px;
}
.hero .thin{
  font-weight: 600;
  color: rgba(234,238,246,.86);
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 62ch;
}
.muted{ color: var(--muted); }

/* Buttons */
.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 900;
  cursor:pointer;
  transition: .15s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.09); }
.btn.brand{
  background: linear-gradient(135deg, rgba(181,18,27,.95), rgba(181,18,27,.55));
  border-color: rgba(181,18,27,.55);
  box-shadow: 0 14px 40px rgba(181,18,27,.22);
}
.btn.brand:hover{ filter: brightness(1.02); }
.btn.small{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .92rem;
}

/* Meta chips */
.meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
  color: rgba(234,238,246,.75);
  font-weight: 700;
  font-size: .92rem;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
}

/* Contact badges */
.contact-badges{
  margin-top: 16px;
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}
.badge{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  min-width: 240px;
}
.badge-ico{
  width:40px;
  height:40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 900;
}
.badge-title{ font-weight: 900; }
.badge-sub{ color: rgba(234,238,246,.78); font-weight: 700; margin-top:2px; }

/* Player card */
.player-card{
  align-self: start;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 18px;
  backdrop-filter: blur(6px);
}
.player-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.player-kicker{
  font-size: .82rem;
  color: rgba(234,238,246,.72);
  font-weight: 800;
  letter-spacing: .3px;
}
.player-title{
  font-weight: 900;
  margin-top: 2px;
}
.player-sub{
  margin-top: 4px;
  color: rgba(234,238,246,.72);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
}

.signal{
  width: 92px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
  margin-top: 6px;
}
.signal > i{
  display:block;
  height:100%;
  width:55%;
  background: linear-gradient(90deg, rgba(181,18,27,.95), rgba(255,42,42,.18));
  animation: level 1.0s infinite alternate ease-in-out;
}
@keyframes level{
  from{ width:35%; } to{ width:85%; }
}

.player-embed{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.player-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.player-note{
  margin-top: 12px;
  color: rgba(234,238,246,.70);
  font-weight: 700;
  font-size: .92rem;
}

/* Sections */
.section{
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  background: rgba(255,255,255,.04);
}
.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.section h2{
  margin:0;
  font-size: 1.25rem;
  letter-spacing: -.2px;
}
.section-head p{
  margin:0;
}

/* Posters grid */
.posters{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media(max-width: 980px){
  .posters{ grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 560px){
  .posters{ grid-template-columns: 1fr; }
}
.poster{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  transform: translateZ(0);
  transition: .18s ease;
}
.poster:hover{
  transform: translateY(-2px);
  border-color: rgba(181,18,27,.40);
}
.poster img{
  width:100%;
  height:100%;
  object-fit: cover;
}

/* Band */
.band{
  margin-top: 18px;
}
.band-card{
  border-radius: var(--r2);
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 200px at 10% 10%, rgba(181,18,27,.16), transparent 60%),
    rgba(255,255,255,.04);
  padding: 18px;
}
.band-title{
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.band-text{
  margin: 0;
  color: rgba(234,238,246,.78);
  line-height: 1.55;
  font-weight: 600;
}
.band-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 12px;
}

/* Footer */
.footer{
  margin-top: 18px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.25);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding: 16px 18px;
  color: rgba(234,238,246,.78);
  font-weight: 700;
  font-size: .92rem;
}
.footer-title{
  font-weight: 900;
  color: rgba(234,238,246,.92);
}
.footer-text{
  margin-top: 4px;
  line-height: 1.45;
}
.footer-copy{
  margin-top: 8px;
  color: rgba(234,238,246,.70);
}
.footer-copy a{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-dev{
  align-self:end;
  color: rgba(234,238,246,.82);
}
.footer-dev b{
  color: rgba(234,238,246,.95);
}
.badge-link{
  text-decoration:none;
  cursor:pointer;
  transition: .15s ease;
}
.badge-link:hover{
  transform: translateY(-2px);
  border-color: rgba(181,18,27,.35);
  background: rgba(0,0,0,.40);
}
.badge-cta{
  margin-left:auto;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight: 900;
  color: rgba(234,238,246,.92);
}
/* Parrilla + Ahora al aire */
.onair{
  margin-top: 14px;
  display:flex;
  gap:12px;
  align-items:stretch;
  justify-content:space-between;
  flex-wrap:wrap;
}
.onair-card{
  flex: 1 1 420px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
}
.onair-kicker{
  font-weight: 900;
  font-size: .86rem;
  color: rgba(234,238,246,.70);
  letter-spacing: .4px;
}
.onair-title{
  margin-top: 6px;
  font-weight: 900;
  font-size: 1.2rem;
}
.onair-sub{
  margin-top: 4px;
  color: rgba(234,238,246,.75);
  font-weight: 700;
}
.onair-tags{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.onair-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-end;
  flex: 0 0 auto;
}

.parrilla-wrap{
  margin-top: 14px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}
.parrilla-img{
  width:100%;
  height:auto;
  display:block;
}
.nowline{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.nowlabel{ color: rgba(234,238,246,.75); font-weight: 900; }
.nowvalue{ font-weight: 900; }
.nowtime{
  margin-left:auto;
  color: rgba(234,238,246,.70);
  font-weight: 800;
  font-size: .92rem;
}
:root{
  --schedGap: 10px;
  --schedTimeW: 140px;
  --schedHourH: 60px;
}

/* scroller */
.sched-scroller{ overflow:auto; padding-bottom: 8px; }

/* grid parrilla */
.sched-grid{
  min-width: 1120px;
  display:grid;
  grid-template-columns: var(--schedTimeW) repeat(7, 1fr);
  grid-template-rows: auto repeat(24, var(--schedHourH));
  gap: var(--schedGap);
  align-items: stretch;
}

/* headers */
.sched-tab{
  background: rgba(181,18,27,.18);
  border: 1px solid rgba(181,18,27,.35);
  color: rgba(234,238,246,.95);
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:.6px;
  padding: 12px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* time cells */
.sched-time{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(234,238,246,.90);
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  padding: 10px 10px;
  white-space: nowrap;
}

/* events */
.sched-event{
  background: #a8833b;
  color:#fff;
  border-radius: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:900;
  letter-spacing:.6px;
  text-transform: uppercase;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  position:relative;
  overflow:hidden;
}
.sched-event::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 55%);
  pointer-events:none;
}
.sched-event span{ position:relative; z-index:1; }
.sched-event.small{ font-size:.78rem; padding: 10px 10px; }
.sched-event.pill{
  background: rgba(255,255,255,.92);
  color:#101218;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
/* =========================
   AJUSTE PARRILLA EN DESKTOP
   ========================= */
@media (min-width: 1200px) {

  :root{
    --schedTimeW: 120px;   /* antes 140px */
    --schedHourH: 52px;    /* antes 60px */
    --schedGap: 8px;       /* antes 10px */
  }

  .sched-grid{
    min-width: unset;      /* clave: deja de forzar scroll */
    width: 100%;
  }

  .sched-event{
    font-size: .82rem;
    padding: 8px 8px;
    letter-spacing: .4px;
  }

  .sched-event.small{
    font-size: .72rem;
  }

  .sched-time{
    font-size: .78rem;
    padding: 8px 6px;
  }

  .sched-tab{
    font-size: .78rem;
    padding: 10px 6px;
  }
}
/* =========================
   Acordeón (Audiencias)
   ========================= */
.accordion{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.accordion details{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  overflow: hidden;
}

.accordion summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.accordion summary::-webkit-details-marker{ display:none; }

.accordion .acc-num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(181,18,27,.18);
  border: 1px solid rgba(181,18,27,.35);
  font-weight: 900;
}

.accordion .acc-title{
  flex: 1;
}

.accordion .acc-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  transition: transform .18s ease;
}

.accordion details[open] .acc-icon{
  transform: rotate(180deg);
}

.accordion .acc-body{
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(234,238,246,.92);
  line-height: 1.55;
}

.accordion .acc-body strong{
  color: rgba(255,255,255,.95);
}

/* =========================
   Lista de documentos (PDF) – estilo pro
   ========================= */
.doc-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 6px;
}

.doc-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.doc-item:hover{
  transform: translateY(-1px);
  border-color: rgba(181,18,27,.35);
  background: rgba(255,255,255,.08);
}

.doc-badge{
  width: 46px;
  height: 36px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: .8px;
  font-size: .78rem;
  color: #fff;
  background: rgba(181,18,27,.22);
  border: 1px solid rgba(181,18,27,.45);
}

.doc-text{
  flex:1;
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.doc-text a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.doc-text a:hover{
  text-decoration: underline;
}

.doc-meta{
  font-size: .80rem;
  color: rgba(234,238,246,.70);
}

.doc-cta{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.85);
}

.doc-item:hover .doc-cta{
  border-color: rgba(181,18,27,.35);
}

/* Responsive: en móvil se compacta */
@media (max-width: 520px){
  .doc-badge{ width: 42px; height: 34px; border-radius: 10px; }
  .doc-meta{ display:none; }
}
/* =========================
   Contacto (card + mapa)
   ========================= */
.contact-card{
  overflow: hidden;
}

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  padding: 18px;
}

.contact-info{
  padding: 6px 6px 6px 10px;
}

.contact-title{
  font-size: 2rem;
  font-weight: 900;
  margin: 6px 0 10px;
}

.contact-text{
  color: rgba(234,238,246,.88);
  line-height: 1.55;
  margin: 0 0 16px;
}

.contact-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 8px;
}

.contact-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  text-decoration:none;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.contact-link:hover{
  transform: translateY(-1px);
  border-color: rgba(181,18,27,.35);
  background: rgba(255,255,255,.08);
}

.contact-link .go{
  margin-left:auto;
  opacity: .85;
}

.ic{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.9);
}

.ic-fb{
  border-color: rgba(255,255,255,.14);
  background: rgba(59,89,152,.25);
}

.ic-ig{
  background: rgba(225,48,108,.18);
  border-color: rgba(225,48,108,.35);
}

.ic-mail{
  background: rgba(181,18,27,.18);
  border-color: rgba(181,18,27,.35);
}

.contact-note{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(234,238,246,.82);
}

.contact-map{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  min-height: 360px;
}

.contact-map iframe{
  width:100%;
  height:100%;
  min-height: 360px;
  border:0;
  display:block;
}

/* Responsive */
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-map{ min-height: 320px; }
  .contact-map iframe{ min-height: 320px; }
}

/* =========================
   Chips Contacto (Cabina / WhatsApp)
   ========================= */
.contact-chips{
  display:flex;
  gap:12px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  text-decoration:none;
  color: rgba(255,255,255,.92);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.chip:hover{
  transform: translateY(-1px);
  border-color: rgba(181,18,27,.35);
  background: rgba(255,255,255,.08);
}

.chip-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}

.chip-title{
  font-weight: 900;
  letter-spacing: .3px;
}

.chip-sub{
  opacity: .85;
  font-weight: 800;
}

.chip-call .chip-dot{
  background: rgba(181,18,27,.85);
  box-shadow: 0 0 0 3px rgba(181,18,27,.18);
}

.chip-wa .chip-dot{
  background: rgba(37,211,102,.95);
  box-shadow: 0 0 0 3px rgba(37,211,102,.18);
}

/* ===== Reproductor PRO (dentro de .player-card) ===== */
.radio-player{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 14px;
  border-radius:16px;
  background: rgba(8,10,18,.55);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}

.play-btn{
  width:54px;
  height:54px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  display:grid;
  place-items:center;
  background: linear-gradient(180deg, rgba(225,29,72,.95), rgba(153,27,27,.95));
  box-shadow: 0 10px 22px rgba(225,29,72,.25);
  transition: transform .15s ease, filter .15s ease;
}
.play-btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.play-btn:active{ transform: translateY(0px) scale(.98); }

.play-ico{
  font-size:18px;
  color:#fff;
  transform: translateX(1px);
}

.radio-player[data-state="playing"] .play-ico{
  transform:none;
}

.player-info{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.live{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color: rgba(255,255,255,.78);
}

.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
  animation: livePulse 1.3s ease-in-out infinite;
}
@keyframes livePulse{
  0%,100%{ opacity:.6; transform: scale(.95); }
  50%{ opacity:1; transform: scale(1.05); }
}

.station{
  font-weight:700;
  font-size:15px;
  line-height:1.2;
  color:#fff;
}

.program{
  font-size:13px;
  color: rgba(255,255,255,.75);
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.program #miniNow{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 280px;
}
.program .sep{ opacity:.35; }

.player-msg{
  margin-top:2px;
  font-size:12px;
  color: rgba(255,255,255,.65);
  min-height: 16px;
}

/* móvil: que no se apachurre feo */
@media (max-width: 520px){
  .program #miniNow{ max-width: 190px; }
  .play-btn{ width:50px; height:50px; }
}
/* === Player panel (estilo anterior, sin plugin) === */
.radio-panel{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  border-radius:18px;
  background: rgba(10,12,22,.55);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 35px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}

.rp-play{
  width:56px;
  height:56px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  display:grid;
  place-items:center;
  background: linear-gradient(180deg, rgba(225,29,72,.95), rgba(153,27,27,.95));
  box-shadow: 0 12px 26px rgba(225,29,72,.25);
}
.rp-ico{ color:#fff; font-size:18px; transform: translateX(1px); }

.rp-meta{ min-width:0; display:flex; flex-direction:column; gap:4px; }
.rp-live{ font-size:12px; color: rgba(255,255,255,.8); display:flex; align-items:center; gap:8px; }
.rp-dot{
  width:8px; height:8px; border-radius:999px;
  background:#22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}
.rp-station{ font-weight:800; font-size:15px; color:#fff; }
.rp-sub{
  font-size:13px;
  color: rgba(255,255,255,.72);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  max-width: 320px;
}

/* en móvil, que no se rompa */
@media (max-width: 520px){
  .rp-sub{ max-width: 200px; }
  .rp-play{ width:52px; height:52px; }
}



/* =========================================
   FIX: TOPBAR DESKTOP no se encime (brand + nav)
   ========================================= */
@media (min-width: 921px){

  .topbar .topbar-inner{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:18px !important;
  }

  /* Brand: ocupa su espacio y NO se deja encimar */
  .topbar .brand{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    flex: 0 0 auto !important;
    max-width: 360px;              /* ajusta si quieres más/menos */
  }
  .topbar .brand > div{ min-width:0; }

  /* Evita que el texto del brand se vaya a 2 líneas raras */
  .topbar .brand-name,
  .topbar .brand-sub{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Nav: se pega a la derecha y NUNCA se monta al brand */
  .topbar .nav{
    flex: 1 1 auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap: 10px !important;
    min-width: 0 !important;

    /* por si traías cosas del modo móvil contaminando desktop */
    position: static !important;
    transform: none !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .topbar .navlink{ white-space: nowrap; }
}
/* =========================================
   FIX: Topbar no se encime en "desktop chico"
   - sube el breakpoint del menú móvil
   ========================================= */

/* 1) Reduce un poco el nav en desktop medio (sin romper) */
@media (max-width: 1260px){
  .navlink{ padding: 8px 10px; font-size: .92rem; }
  .brand-name{ max-width: 220px; }
  .brand-sub{ max-width: 220px; }
}

/* 2) Activa menú tipo móvil antes (aquí está el verdadero fix) */
@media (max-width: 1100px){
  .brand-sub{ display:none; }
  .brand{ min-width: 0; }
  .brand-name{ max-width: 180px; }

  .nav-toggle{ display:flex; }

  /* oculto por defecto */
  #mainnav{
    display:none;
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    z-index: 99999;

    flex-direction: column;
    align-items: stretch;
    gap: 8px;

    padding: 14px;
    border-radius: 16px;
    background: rgba(12,12,16,.96);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,.55);

    max-height: calc(100vh - 90px);
    overflow: auto;
    white-space: normal;
  }

  #mainnav.open{ display:flex; }

  .navlink{
    width: 100%;
    justify-content: flex-start;
    padding: 12px 12px;
    border-radius: 14px;
  }
}

/* 3) Asegura que en desktop "grande" SIEMPRE sea barra normal */
@media (min-width: 1101px){
  .nav-toggle{ display:none; }
  #mainnav{
    display:flex;
    position: static;
    flex-direction: row;
    align-items:center;
    justify-content:flex-end;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    white-space: nowrap;
  }
}
/* ==================================================
   TOPBAR: más compacto, letra más delgada,
   menú a la derecha SIN salirse del contenedor
   ================================================== */

.topbar .topbar-inner{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap: 12px !important;

  flex-wrap: wrap !important;
}

/* Brand compacto (izquierda) */
.topbar .brand{
  display:flex !important;
  align-items:center !important;
  gap: 10px !important;
  flex: 1 1 260px !important;
  min-width: 220px !important;
}

.topbar .brand-name{
  font-weight: 600 !important;      
  font-size: 15px !important;
  line-height: 1.1 !important;
}
.topbar .brand-sub{
  font-weight: 400 !important;
  font-size: 12px !important;
  opacity: .8 !important;
}

/* NAV: a la derecha, compacto y sin overflow */
.topbar .nav{
  display:flex !important;
  align-items:center !important;

  /* lo manda a la derecha */
  margin-left: auto !important;
  justify-content: flex-end !important;

  /* que no se salga: si no cabe, baja (pero alineado a la derecha) */
  flex: 0 1 auto !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;

  gap: 8px !important;
}

/* Links más “delgados” y compactos */
.topbar .navlink{
  font-weight: 500 !important;       
  font-size: 13px !important;
  padding: 8px 10px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;  
}

/* Evita que el brand se haga 2 líneas raras por culpa del nav */
.topbar .brand-name,
.topbar .brand-sub{
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 260px;
}

/* Ajuste fino: pantallas medianas donde se atasca */
@media (max-width: 1200px){
  .topbar .brand-sub{ display:none !important; } /* libera ancho */
  .topbar .navlink{ font-size: 12.5px !important; padding: 7px 9px !important; }
}
/* ===== FIX menú móvil: hidden por default, visible solo con .open ===== */
@media (max-width: 920px){
  .topbar .nav{
    position: fixed;
    left: 16px;
    right: 16px;
    top: 74px;              /* ajusta si tu topbar es más alto */
    z-index: 10020;

    max-height: calc(100vh - 90px);
    overflow: auto;

    /* oculto por default */
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;

    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .topbar .nav.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-overlay{
    position: fixed;
    inset: 0;
    z-index: 10010;
    background: rgba(0,0,0,.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  body.nav-open .nav-overlay{
    opacity: 1;
    pointer-events: auto;
  }
}
