/* Rediseño visual 2026 — conserva la lógica de Zeno y Supabase */
:root {
  --papel: #fbfbf7;
  --verde-profundo: #123d24;
  --verde-editorial: #247a2c;
  --verde-luz: #72d52d;
  --amarillo-sol: #ffbd18;
  --naranja-vivo: #ff7815;
  --tinta: #173322;
  --tinta-suave: rgba(23, 51, 34, .68);
  --crema: #fffdf7;
  --crema-suave: rgba(255, 253, 247, .76);
  --radio-sm: 12px;
  --radio-md: 22px;
  --radio-lg: 34px;
  --sombra-card: 0 24px 70px -32px rgba(18, 61, 36, .34);
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 2%, rgba(255, 189, 24, .12), transparent 26rem),
    var(--papel);
  font-size: 16px;
  line-height: 1.65;
}

.envoltura {
  max-width: 1220px;
  padding-inline: clamp(20px, 4vw, 42px);
}

/* Encabezado limpio, con la marca real */
.encabezado {
  background: rgba(251, 251, 247, .9);
  border-bottom: 1px solid rgba(18, 61, 36, .09);
  backdrop-filter: blur(18px);
}
.encabezado .envoltura {
  min-height: 84px;
  padding-block: 9px;
}
.encabezado .marca-nav img {
  width: 156px;
  height: 60px;
  object-fit: contain;
}
.nav-principal {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-principal a,
.enlaces-footer a {
  color: var(--tinta);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}
.nav-principal a:hover,
.enlaces-footer a:hover { color: var(--naranja-vivo); }
.nav-acciones { margin-left: 8px; }
.politicas-enlace-movil { display: none; }
.selector-idioma {
  background: rgba(18, 61, 36, .07);
  border: 1px solid rgba(18, 61, 36, .06);
}
.selector-idioma button { min-height: 34px; }
.selector-idioma button.activo {
  background: var(--verde-profundo);
  color: white;
}
.boton {
  min-height: 46px;
  padding-inline: 20px;
}
.boton-solido {
  background: var(--verde-profundo);
  color: white;
}

/* Portada: emisora y reproductor son el foco principal */
.hero {
  padding-block: clamp(56px, 8vw, 104px);
  color: var(--tinta);
  background: transparent;
}
.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  top: -180px;
  border-radius: 50%;
  background: var(--amarillo-sol);
  opacity: .16;
  pointer-events: none;
}
.hero .envoltura,
.hero .envoltura.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(38px, 6vw, 76px);
  padding-bottom: 0;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--naranja);
  font-family: var(--fuente-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
}
.hero-kicker::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: var(--amarillo-sol);
}
.hero h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  color: var(--verde-profundo);
  font-family: var(--fuente-display);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.hero p.lead {
  max-width: 52ch;
  margin-bottom: 30px;
  color: var(--tinta-suave);
  font-size: clamp(16px, 1.7vw, 19px);
}
.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  border: 8px solid white;
  border-radius: 38px;
  background: var(--verde-editorial);
  box-shadow: 0 34px 90px -40px rgba(18, 61, 36, .55);
}
.hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: 64% center;
}
.hero-sello {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 92px;
  height: 92px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 5px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: var(--amarillo-sol);
  color: var(--verde-profundo);
  box-shadow: 0 16px 36px rgba(18, 61, 36, .25);
}
.hero-sello span {
  font-family: var(--fuente-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.hero-sello small {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tarjeta-reproductor {
  max-width: 590px;
  padding: 18px;
  gap: 16px;
  border: 1px solid rgba(18, 61, 36, .1);
  border-radius: 24px;
  background: white;
  color: var(--tinta);
  box-shadow: var(--sombra-card);
  backdrop-filter: none;
}
.boton-play {
  width: 62px;
  height: 62px;
  background: var(--amarillo-sol);
  color: var(--verde-profundo);
  box-shadow: 0 12px 28px -12px rgba(255, 120, 21, .62);
}
.info-reproductor .nombre-programa {
  color: var(--verde-profundo);
  font-size: 15px;
}
.info-reproductor .franja { color: var(--tinta-suave); }
.aviso-autoplay {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 189, 24, .45);
  border-radius: 999px;
  background: rgba(255, 189, 24, .12);
  color: #ffd15a;
  font: 700 11px/1.2 var(--fuente-cuerpo);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.aviso-autoplay:hover {
  background: rgba(255, 189, 24, .2);
  transform: translateY(-1px);
}
.aviso-autoplay[hidden] { display: none; }
.tarjeta-reproductor .barra-ecualizador { color: var(--verde-editorial); }
.badge-en-vivo {
  padding: 5px 10px 5px 8px;
  font-size: 10px;
}

/* Secciones editoriales */
section { padding-block: clamp(72px, 8vw, 110px); }
#programacion {
  border-block: 1px solid rgba(18, 61, 36, .08);
  background: white;
}
#noticias { background: var(--papel); }
#podcasts { background: #f1f6ed; }
.encabezado-seccion {
  max-width: 720px;
  margin-bottom: 38px;
}
.encabezado-seccion .kicker {
  margin-bottom: 12px;
  color: var(--naranja-vivo);
  font-size: 11px;
  font-weight: 700;
}
.encabezado-seccion h2 {
  margin-bottom: 12px;
  color: var(--verde-profundo);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.encabezado-seccion p {
  max-width: 58ch;
  font-size: 16px;
}
.fila-parrilla {
  gap: 16px;
  padding: 5px 4px 18px;
  scroll-snap-type: x mandatory;
}
.tarjeta-programa {
  width: 248px;
  min-height: 164px;
  padding: 22px;
  border: 1px solid rgba(18, 61, 36, .09);
  border-radius: 22px;
  box-shadow: 0 15px 38px -34px rgba(18, 61, 36, .7);
  scroll-snap-align: start;
}
.tarjeta-programa .hora {
  color: var(--naranja-vivo);
  font-size: 11px;
}
.tarjeta-programa h3 {
  margin: 20px 0 5px;
  color: var(--verde-profundo);
  font-size: 17px;
  line-height: 1.25;
}
.tarjeta-programa p { font-size: 13px; }
.tarjeta-programa.activo {
  border-color: var(--amarillo-sol);
  background: var(--amarillo-sol);
  box-shadow: none;
}
.tarjeta-programa.activo .hora { color: var(--verde-profundo); }

.cuadricula {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tarjeta-noticia,
.tarjeta-podcast {
  min-width: 0;
  border: 1px solid rgba(18, 61, 36, .08);
  border-radius: 24px;
  box-shadow: 0 18px 46px -42px rgba(18, 61, 36, .85);
}
.tarjeta-noticia {
  min-height: 260px;
}
.tarjeta-noticia > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.tarjeta-noticia .cuerpo,
.tarjeta-podcast .cuerpo { padding: 22px; }
.tarjeta-noticia .categoria {
  color: var(--verde-profundo);
  background: rgba(114, 213, 45, .16);
}
.tarjeta-noticia h3,
.tarjeta-podcast h3 {
  color: var(--verde-profundo);
  font-size: 18px;
  line-height: 1.3;
}
.tarjeta-noticia p,
.tarjeta-podcast p {
  font-size: 14px;
  line-height: 1.55;
}
.miniatura-podcast {
  overflow: hidden;
  background: var(--verde-profundo);
}
.miniatura-podcast img {
  transition: transform .5s var(--ease-suave);
}
.tarjeta-podcast:hover .miniatura-podcast img { transform: scale(1.035); }
.insignia-play::after,
.boton-reproducir-mini {
  background: var(--amarillo-sol);
  color: var(--verde-profundo);
}
.insignia-play::before { background: rgba(18, 61, 36, .18); }
.estado-vacio {
  grid-column: 1 / -1;
  background: rgba(255,255,255,.7);
}

/* Descarga: usa la pieza oficial con los QR reales */
#descarga-detalles {
  padding-block: clamp(72px, 9vw, 120px);
  background: white;
}
.seccion-descarga {
  max-width: 1160px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 189, 24, .28), transparent 22rem),
    var(--verde-profundo);
  box-shadow: 0 34px 90px -50px rgba(18, 61, 36, .75);
}
.seccion-descarga .envoltura {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr);
  flex-wrap: nowrap;
  gap: clamp(34px, 7vw, 84px);
  padding: clamp(34px, 6vw, 72px);
}
.bloque-descarga { max-width: 560px; }
.descarga-kicker {
  margin: 0 0 12px !important;
  color: var(--amarillo-sol) !important;
  font-family: var(--fuente-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.bloque-descarga h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.bloque-descarga > p:not(.descarga-kicker) {
  max-width: 48ch;
  margin-bottom: 28px;
  font-size: 16px;
}
.tiendas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tiendas img {
  width: auto;
  height: 52px;
  border-radius: 10px;
}
.descarga-visual {
  align-self: end;
  max-height: 470px;
  overflow: hidden;
  border: 7px solid rgba(255,255,255,.14);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.descarga-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer y reproductor fijo */
footer {
  padding-block: 56px 112px;
  background: #0b2c1a;
}
footer .envoltura { align-items: center; }
footer .marca-nav img {
  width: 178px;
  height: auto;
}
.tagline {
  margin-top: 14px;
  color: var(--amarillo-sol);
}
.enlaces-footer a { color: var(--crema-suave); }
.reproductor-mini {
  background: rgba(11, 44, 26, .96);
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.reproductor-mini .envoltura { min-height: 66px; }
.reproductor-mini .boton-play {
  background: var(--amarillo-sol);
  color: var(--verde-profundo);
}
.reproductor-mini .info-reproductor .nombre-programa { color: white; }

@media (max-width: 980px) {
  .nav-principal { display: none; }
  .politicas-enlace-movil { display: inline-flex; align-items: center; color: var(--verde-profundo); font-size: 12px; font-weight: 800; text-decoration: none; }
  .hero .envoltura,
  .hero .envoltura.hero-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero h1 { max-width: 14ch; }
  .hero-visual,
  .hero-visual > img { min-height: 360px; }
  .cuadricula { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .politicas-enlace-movil { font-size: 11px; }
  .envoltura { padding-inline: 18px; }
  .encabezado .envoltura { min-height: 72px; gap: 10px; }
  .encabezado .marca-nav img {
    width: 112px;
    height: 48px;
  }
  .nav-acciones { gap: 6px; margin-left: auto; }
  .selector-idioma button { padding-inline: 9px; }
  .nav-acciones > .boton { display: none; }
  .hero { padding-block: 48px 70px; }
  .hero h1 { font-size: clamp(36px, 12vw, 50px); }
  .tarjeta-reproductor {
    align-items: flex-start;
    padding: 16px;
  }
  .tarjeta-reproductor .barra-ecualizador { display: none; }
  .hero-visual,
  .hero-visual > img { min-height: 260px; }
  .hero-visual { border-width: 5px; border-radius: 26px; }
  .hero-sello { right: 14px; bottom: 14px; width: 78px; height: 78px; }
  .cuadricula { grid-template-columns: 1fr; }
  .seccion-descarga {
    margin-inline: 14px;
    border-radius: 28px;
  }
  .seccion-descarga .envoltura {
    grid-template-columns: 1fr;
    padding: 36px 22px 0;
    text-align: left;
  }
  .tiendas { justify-content: flex-start; }
  .tiendas img { height: 46px; }
  .descarga-visual {
    width: min(100%, 380px);
    max-height: 420px;
    margin-inline: auto;
  }
  footer .envoltura { align-items: flex-start; }
}

/* Barra superior en verde oscuro en TODAS las páginas: el logo (verde y naranja)
   y los enlaces contrastan mejor que sobre el fondo claro. Misma paleta que el
   inicio (scroll-story.css). */
.encabezado {
  background: rgba(12, 63, 31, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 34px rgba(7, 37, 18, .18);
}
.encabezado .marca-nav img {
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, .95))
    drop-shadow(0 0 5px rgba(255, 255, 255, .35))
    drop-shadow(0 8px 12px rgba(4, 31, 14, .32));
}
.encabezado .nav-principal a { color: rgba(255, 255, 255, .9); }
.encabezado .nav-principal a:hover { color: #ffbd18; }
.encabezado .politicas-enlace-movil { color: rgba(255, 255, 255, .9); }
.encabezado .selector-idioma {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .14);
}
.encabezado .selector-idioma button { color: rgba(255, 255, 255, .68); }
.encabezado .selector-idioma button.activo { background: #ffbd18; color: #123d24; }

/* Las tarjetas de "Noticias recientes" del inicio ahora son enlaces a la noticia. */
a.tarjeta-noticia { color: inherit; text-decoration: none; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
a.tarjeta-noticia:hover, a.tarjeta-noticia:focus-visible { transform: translateY(-4px); box-shadow: 0 24px 50px -38px rgba(18, 61, 36, .95); }
a.tarjeta-noticia:focus-visible { outline: 3px solid #ffbd18; outline-offset: 3px; }
