/*
 * larradio.com · estilos del sitio de La R Internacional.
 * La misma marca que el app: oscuro, Bebas Neue para los títulos y el rojo
 * de La R solo como acento (botón principal, lo que está al aire, la pestaña activa).
 */
:root {
  --noche: #0F0B0A;
  --noche-2: #0B0807;
  --brasa: #1A1413;
  --brasa-2: #241B19;
  --hueso: #F3EAE6;
  --tenue: rgba(243, 234, 230, .66);
  --rojo: #D6212B;
  --rojo-vivo: #E8333D;
  --naranja: #F58220;
  --vivo: #43E08A;
  --borde: rgba(255, 255, 255, .09);
  --borde-fuerte: rgba(243, 234, 230, .26);
  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --texto: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --alto-barra: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` le gana a cualquier `display`: en Android se oculta el botón de la App Store. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--alto-barra) + 16px); }
body {
  margin: 0;
  background: var(--noche);
  color: var(--hueso);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }

.envoltura { max-width: 72rem; margin: 0 auto; padding-inline: 20px; }
.envoltura.angosta { max-width: 48rem; }

.saltar {
  position: absolute; left: 12px; top: -80px; z-index: 60;
  background: var(--hueso); color: var(--noche); padding: 12px 18px; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.saltar:focus { top: 12px; }

/* ── Marca ─────────────────────────────────────────────────────────────── */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.marca img { height: 36px; width: auto; }
.marca b { display: block; font-family: var(--display); font-weight: 400; font-size: 27px; letter-spacing: .02em; line-height: .9; }
.marca small { display: block; font-size: 10px; letter-spacing: .22em; font-weight: 700; color: var(--tenue); text-transform: uppercase; }

/* ── Botones ───────────────────────────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--rojo); color: #fff; font: 700 16px/1.1 var(--texto); text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.boton:hover { background: var(--rojo-vivo); }
.boton:active { transform: scale(.98); }
.boton svg { width: 20px; height: 20px; flex: none; }
.boton.claro { background: var(--hueso); color: var(--noche); }
.boton.claro:hover { background: #fff; }
.boton.contorno { background: transparent; color: var(--hueso); border-color: var(--borde-fuerte); }
.boton.contorno:hover { border-color: var(--hueso); background: rgba(255, 255, 255, .04); }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Barra superior y menú ─────────────────────────────────────────────── */
.barra {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 11, 10, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borde);
}
.barra-fila { display: flex; align-items: center; gap: 16px; min-height: var(--alto-barra); }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; white-space: nowrap;
  border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--tenue); text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.menu a:hover { color: var(--hueso); background: rgba(255, 255, 255, .05); }
.menu a[aria-current="page"] {
  color: var(--hueso);
  text-decoration: underline; text-decoration-color: var(--rojo);
  text-decoration-thickness: 2px; text-underline-offset: 9px;
}
.menu .menu-app { display: none; }
.boton-barra { min-height: 44px; padding: 0 18px; font-size: 15px; flex: none; }

.abrir-menu {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px;
  border-radius: 999px; border: 1px solid var(--borde-fuerte); background: transparent;
  color: var(--hueso); font-weight: 600; font-size: 15px; cursor: pointer;
}
.abrir-menu-icono { display: grid; gap: 4px; width: 18px; }
.abrir-menu-icono i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.barra.abierta .abrir-menu-icono i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.barra.abierta .abrir-menu-icono i:nth-child(2) { opacity: 0; }
.barra.abierta .abrir-menu-icono i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1240px) {
  .boton-barra { margin-left: auto; }
  .abrir-menu { display: inline-flex; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px 20px 28px; background: var(--noche); border-bottom: 1px solid var(--borde);
    height: calc(100dvh - var(--alto-barra)); overflow-y: auto; overscroll-behavior: contain;
  }
  .barra.abierta .menu { display: flex; }
  .menu a {
    min-height: 58px; padding: 0 6px; border-radius: 0; border-bottom: 1px solid var(--borde);
    font-size: 20px; color: var(--hueso);
  }
  .menu a:hover { background: transparent; color: var(--hueso); }
  .menu a[aria-current="page"] { text-decoration: none; box-shadow: inset 3px 0 0 var(--rojo); padding-left: 16px; }
  .menu .menu-app {
    display: flex; margin-top: 22px; min-height: 56px; border: 0; border-radius: 999px;
    padding: 0 24px; background: var(--rojo); color: #fff; font-size: 17px; justify-content: center;
  }
  html.menu-abierto { overflow: hidden; }
  html.menu-abierto .fija { display: none; }
}
@media (max-width: 640px) {
  .boton-barra { display: none; }
  .abrir-menu { margin-left: auto; }
}

/* ── Señal «en vivo» ───────────────────────────────────────────────────── */
.punto-vivo {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--vivo); box-shadow: 0 0 0 0 rgba(67, 224, 138, .55);
  animation: latido 2.2s ease-out infinite;
}
.punto-vivo.apagado { background: var(--tenue); animation: none; box-shadow: none; }
@keyframes latido {
  0% { box-shadow: 0 0 0 0 rgba(67, 224, 138, .55); }
  70% { box-shadow: 0 0 0 8px rgba(67, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 224, 138, 0); }
}

/* ── Encabezado de cada página ─────────────────────────────────────────── */
.cabecera { position: relative; overflow: hidden; border-bottom: 1px solid var(--borde); }
.cabecera::before, .heroe::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(214, 33, 43, .26), transparent 70%);
  pointer-events: none;
}
.cabecera .envoltura { position: relative; padding-block: 64px 52px; }
.senal {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue);
}
.senal > i:not(.punto-vivo) { width: 9px; height: 9px; border-radius: 50%; background: var(--rojo); flex: none; }
.cabecera h1, .titulo-grande {
  font-family: var(--display); font-weight: 400; font-size: clamp(58px, 10vw, 118px);
  line-height: .86; letter-spacing: .005em; margin: 0 0 22px;
}
.cabecera h1 em, .titulo-grande em { display: block; font-style: normal; color: var(--rojo); }
.bajada { font-size: 19px; color: var(--tenue); max-width: 42ch; margin: 0; }
.bajada strong { color: var(--hueso); font-weight: 600; }
.cabecera .botones { margin-top: 30px; }

/* ── Secciones ─────────────────────────────────────────────────────────── */
.seccion { padding-block: 72px; }
.seccion.brasa { background: var(--brasa); border-block: 1px solid var(--borde); }
.seccion.pegada { padding-top: 0; }
.antetitulo {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tenue);
}
.titulo {
  font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.6vw, 64px);
  line-height: .95; letter-spacing: .01em; margin: 0 0 14px;
}
.subtitulo { color: var(--tenue); margin: 0 0 36px; max-width: 48ch; font-size: 18px; }
.cabeza-seccion { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.cabeza-seccion .titulo, .cabeza-seccion .subtitulo { margin-bottom: 0; }
.enlace-flecha {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; text-decoration: none; color: var(--hueso);
}
.enlace-flecha::after { content: "→"; transition: transform .15s ease; }
.enlace-flecha:hover::after { transform: translateX(4px); }

/* ── Tarjetas y rejillas ───────────────────────────────────────────────── */
.rejilla-2, .rejilla-3 { display: grid; gap: 20px; }
.rejilla-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tarjeta {
  position: relative; display: flex; flex-direction: column;
  background: var(--brasa); border: 1px solid var(--borde); border-radius: 22px; padding: 28px;
}
.seccion.brasa .tarjeta { background: var(--noche); }
.tarjeta h2, .tarjeta h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; margin: 0 0 10px; letter-spacing: .01em; }
.tarjeta p { color: var(--tenue); margin: 0 0 18px; }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta .enlace-flecha, .tarjeta .boton { margin-top: auto; align-self: flex-start; }
a.tarjeta { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.tarjeta:hover { border-color: var(--borde-fuerte); transform: translateY(-3px); }
a.tarjeta:hover .enlace-flecha::after { transform: translateX(4px); }
.icono {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: rgba(214, 33, 43, .14); color: var(--rojo-vivo); margin-bottom: 20px;
}
.icono svg { width: 26px; height: 26px; }

/* ── Texto largo ───────────────────────────────────────────────────────── */
.prosa { font-size: 18px; line-height: 1.7; }
.prosa > :first-child { margin-top: 0; }
.prosa p { margin: 0 0 1.15em; }
.prosa h2 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: .01em; margin: 1.7em 0 .5em; }
.prosa h3 { font-size: 19px; margin: 1.6em 0 .4em; }
.prosa ul, .prosa ol { padding-left: 1.2em; margin: 0 0 1.15em; }
.prosa li { margin-bottom: .55em; }
.prosa li::marker { color: var(--rojo); }
.prosa a { text-underline-offset: 3px; text-decoration-color: rgba(243, 234, 230, .45); }
.prosa a:hover { text-decoration-color: var(--hueso); }
.prosa strong { font-weight: 700; }
.destacado { font-size: 21px; line-height: 1.55; color: var(--hueso); }

.cita {
  margin: 0 0 1.5em; padding: 6px 0 6px 22px; border-left: 3px solid var(--rojo);
  font-size: 22px; line-height: 1.5; font-weight: 500;
}
.cita p { margin: 0; }
.cita cite {
  display: block; margin-top: 12px; font-style: normal; font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--tenue);
}

/* ── Estados: cargando y vacío ─────────────────────────────────────────── */
.vacio {
  display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 24px;
  border: 1px dashed var(--borde-fuerte); border-radius: 22px; color: var(--tenue);
}
.vacio b { color: var(--hueso); font-size: 19px; }
.esqueleto {
  display: block; border-radius: 10px; min-height: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05));
  background-size: 200% 100%; animation: brillo 1.4s linear infinite;
}
@keyframes brillo { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Reproductor de la radio (portada y /radio/) ───────────────────────── */
.reproductor {
  position: relative; display: grid; gap: 22px; padding: 28px; border-radius: 28px;
  background: linear-gradient(160deg, var(--brasa-2), var(--brasa) 60%);
  border: 1px solid var(--borde);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 120px -40px rgba(214, 33, 43, .55);
}
.rep-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rep-vivo {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--borde-fuerte); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.rep-centro { display: flex; align-items: center; gap: 20px; }
.rep-arte {
  width: 92px; height: 92px; flex: none; border-radius: 22px; display: grid; place-items: center;
  background: var(--noche); border: 1px solid var(--borde);
}
.rep-arte img { height: 54px; width: auto; }
.rep-texto { min-width: 0; }
.rep-texto small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); }
.rep-programa { margin: 4px 0 2px; font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: .01em; overflow-wrap: anywhere; }
.rep-detalle { margin: 0; font-size: 15px; color: var(--tenue); }
.rep-controles { display: flex; align-items: center; gap: 18px; }
.rep-boton {
  position: relative; width: 76px; height: 76px; flex: none; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--rojo); color: #fff; cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(214, 33, 43, .8); transition: transform .15s ease, background-color .15s ease;
}
.rep-boton:hover { background: var(--rojo-vivo); }
.rep-boton:active { transform: scale(.95); }
.rep-boton svg { width: 30px; height: 30px; }
.rep-boton .ico-pausa { display: none; }
.sonando .rep-boton .ico-play, .cargando .rep-boton .ico-play { display: none; }
.sonando .rep-boton .ico-pausa, .cargando .rep-boton .ico-pausa { display: block; }
.cargando .rep-boton::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 3px solid rgba(214, 33, 43, .25); border-top-color: var(--rojo-vivo);
  animation: girar .9s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
.rep-ayuda { display: grid; gap: 6px; min-width: 0; }
.rep-ayuda b { font-size: 17px; }
.rep-estado { margin: 0; font-size: 14px; color: var(--tenue); min-height: 1.5em; }
.con-error .rep-estado { color: #FFB4AE; }
.ecualizador { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.ecualizador span { width: 4px; height: 25%; border-radius: 2px; background: var(--rojo); opacity: .5; }
.sonando .ecualizador span { opacity: 1; animation: eq 1.1s ease-in-out infinite; }
.sonando .ecualizador span:nth-child(2) { animation-delay: -.4s; }
.sonando .ecualizador span:nth-child(3) { animation-delay: -.8s; }
.sonando .ecualizador span:nth-child(4) { animation-delay: -.2s; }
.sonando .ecualizador span:nth-child(5) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.rep-siguiente { margin: 0; padding-top: 16px; border-top: 1px solid var(--borde); font-size: 14px; color: var(--tenue); }
.rep-siguiente b { color: var(--hueso); font-weight: 600; }

/* ── Tiendas (Google Play y App Store) ─────────────────────────────────── */
.tiendas { display: flex; flex-wrap: wrap; gap: 12px; }
.tienda {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px 10px 18px;
  border-radius: 14px; text-decoration: none; background: var(--hueso); color: var(--noche);
  border: 1px solid var(--hueso); transition: transform .15s ease;
}
.tienda.secundaria { background: transparent; color: var(--hueso); border-color: var(--borde-fuerte); }
.tienda:hover { transform: translateY(-2px); }
.tienda svg { width: 26px; height: 26px; flex: none; }
.tienda span { display: flex; flex-direction: column; line-height: 1.1; }
.tienda small { font-size: 11px; font-weight: 600; letter-spacing: .04em; opacity: .75; }
.tienda b { font-size: 19px; font-weight: 700; }

.qr { display: none; align-items: center; gap: 16px; margin-top: 24px; padding: 14px; border: 1px dashed var(--borde-fuerte); border-radius: 16px; max-width: 26rem; }
.qr .codigo { background: #fff; padding: 8px; border-radius: 8px; flex: none; }
.qr .codigo img, .qr .codigo canvas { width: 96px; height: 96px; }
.qr p { margin: 0; font-size: 14px; color: var(--tenue); }
.qr p b { color: var(--hueso); display: block; font-size: 16px; }
.es-escritorio .qr { display: flex; }

/* ── Teléfonos con capturas del app ────────────────────────────────────── */
.telefono {
  position: relative; width: min(100%, 300px); aspect-ratio: 9 / 19.5; margin-inline: auto;
  border-radius: 44px; padding: 10px; background: #1d1716;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 120px -30px rgba(214, 33, 43, .5);
}
.telefono img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.telefono::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 30%; height: 24px; border-radius: 20px; background: #000; }

/* ── Pie ───────────────────────────────────────────────────────────────── */
.pie { background: var(--noche-2); border-top: 1px solid var(--borde); padding-block: 60px 32px; font-size: 15px; color: var(--tenue); }
.pie-rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px 28px; }
.pie-marca p { margin: 18px 0 22px; max-width: 30ch; }
.pie h2 { margin: 6px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hueso); }
.pie nav:not(.redes) a { display: block; padding: 7px 0; text-decoration: none; }
.pie nav a:hover { color: var(--hueso); }
.redes { display: flex; flex-wrap: wrap; gap: 10px; }
.redes a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--borde); color: var(--hueso); transition: background-color .15s ease, border-color .15s ease;
}
.redes a:hover { background: var(--brasa); border-color: var(--borde-fuerte); }
.redes svg { width: 20px; height: 20px; }
.pie-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--borde); font-size: 13px;
}
.con-fija .pie { padding-bottom: 120px; }

/* Barra fija de descarga en el teléfono (solo en la portada) */
.fija {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 20, 19, .96); border-top: 1px solid var(--borde);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.fija a {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px;
  background: var(--rojo); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
}
.fija svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .rejilla-3 { grid-template-columns: 1fr; }
  .pie-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pie-marca { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .fija { display: block; }
  .seccion { padding-block: 56px; }
  .cabecera .envoltura { padding-block: 44px 40px; }
  .bajada { font-size: 17px; }
  .rejilla-2 { grid-template-columns: 1fr; }
  .tarjeta { padding: 24px; }
  .prosa { font-size: 17px; }
}
@media (max-width: 560px) {
  .pie-rejilla { grid-template-columns: 1fr 1fr; }
  .rep-centro { gap: 16px; }
  .rep-arte { width: 72px; height: 72px; border-radius: 18px; }
  .rep-arte img { height: 42px; }
  .rep-programa { font-size: 30px; }
  .reproductor { padding: 22px; border-radius: 24px; }
  .tienda { flex: 1 1 100%; justify-content: center; }
  .botones .boton { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sonando .ecualizador span { height: 60%; }
}
