/* ============================================================================
   HIBRIDOAPP · Sistema de diseño (liviano, sin frameworks)
   - Colores de marca (--primary, --accent) los inyecta el panel (inline).
   - Modo día/noche vía [data-theme="light"|"dark"] en <html>.
   - Superficies derivadas → todo se re-pinta solo al cambiar la marca.
   ============================================================================ */

/* ---------- Tonos suaves derivados de la marca ----------
   Se calculan solos a partir de --primary y --accent: sirven para fondos
   tenues, chips y tarjetas tintadas sin pedirle más colores al cliente. */
:root {
  --primary-soft: rgb(var(--primary) / .12);
  --accent-soft:  rgb(var(--accent) / .13);
  --ok-soft:      rgb(var(--ok) / .14);
  --warn-soft:    rgb(var(--warn) / .15);
  --danger-soft:  rgb(var(--danger) / .13);
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font: inherit; }

/* ---------- Tema: NOCHE (por defecto) ---------- */
:root, [data-theme="dark"] {
  --bg:          5 20 36;      /* fondo profundo */
  --surface:     13 28 45;     /* tarjetas */
  --surface-2:   18 33 49;     /* tarjetas elevadas */
  --surface-3:   39 54 71;     /* chips / hover */
  --text:        212 228 250;  /* texto principal */
  --muted:       146 146 155;  /* texto secundario */
  --border:      69 70 77;     /* bordes sutiles */
  --shadow: 0 20px 45px -15px rgba(0,0,0,.6);

  /* Colores con significado. NO los elige el cliente: un error se ve rojo
     siempre, sea cual sea su marca. Aquí van los tonos para fondo oscuro. */
  --ok:     74 222 128;
  --warn:  251 191 36;
  --danger: 248 113 113;
  --info:  96 165 250;
}

/* ---------- Tema: DÍA ---------- */
[data-theme="light"] {
  --bg:          243 246 251;
  --surface:     255 255 255;
  --surface-2:   248 250 253;
  --surface-3:   232 237 245;
  --text:        17 24 39;
  --muted:       100 108 124;
  --border:      222 227 236;
  --shadow: 0 18px 40px -18px rgba(20,40,80,.28);

  /* Sobre fondo claro los mismos colores tienen que ser más oscuros */
  --ok:      22 163 74;
  --warn:   217 119 6;
  --danger: 220 38 38;
  --info:    37 99 235;
}

/* ---------- Base ---------- */
body {
  background: rgb(var(--bg));
  color: rgb(var(--text));
  font-family: var(--font-body, system-ui, sans-serif);
  line-height: 1.5;
  overflow-x: clip;
  transition: background .3s ease, color .3s ease;
  padding-bottom: 120px; /* espacio para el player flotante */
}
h1, h2, h3, h4, h5 { font-family: var(--font-heading, var(--font-body)); line-height: 1.15; font-weight: 800; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
@media (max-width: 640px) { .section { padding: 32px 0; } .container { padding: 0 16px; } }

/* ---------- Utilidades ---------- */
.muted { color: rgb(var(--muted)); }
.accent { color: rgb(var(--accent)); }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scroll::-webkit-scrollbar { display: none; }
.uppercase { text-transform: uppercase; letter-spacing: .12em; }

/* Glassmorphism (la firma visual del diseño) */
.glass {
  background: rgb(var(--surface-2) / .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(var(--accent) / .12);
}

/* Glow neón en hover */
.neon { transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.neon:hover {
  box-shadow: 0 0 18px rgb(var(--accent) / .35);
  border-color: rgb(var(--accent));
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: rgb(var(--accent)); color: #04121f; }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px -8px rgb(var(--accent) / .6); }
.btn-ghost { border: 1px solid rgb(var(--border)); color: rgb(var(--text)); }
.btn-ghost:hover { background: rgb(var(--surface-3)); }

/* ---------- Barra superior (fecha + redes) ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 12px; color: rgb(var(--muted));
  border-bottom: 1px solid rgb(var(--border) / .5);
}
.topbar .socials { display: flex; gap: 14px; }
.topbar a:hover { color: rgb(var(--accent)); }
.topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

/* Botones de descarga de la app */
.app-badges { display: flex; gap: 8px; }
.app-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 9px;
  background: rgb(var(--surface-3)); border: 1px solid rgb(var(--border)); color: rgb(var(--text));
  transition: border-color .2s ease, transform .2s ease; }
.app-badge:hover { border-color: rgb(var(--accent)); transform: translateY(-1px); color: rgb(var(--text)); }
.app-badge.disabled { opacity: .5; }
.app-badge svg { flex-shrink: 0; }
.app-badge span { display: flex; flex-direction: column; line-height: 1.15; font-size: 12.5px; font-weight: 700; }
.app-badge small { font-size: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
@media (max-width: 720px) { .app-badge span { display: none; } .app-badge { padding: 7px; } }

/* Banner publicidad superior */
.promo-box {
  display: flex; align-items: center; justify-content: center;
  margin: 14px 0 4px; padding: 6px;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 12px;
  overflow: hidden; transition: border-color .2s ease;
}
.promo-box:hover { border-color: rgb(var(--accent)); }
.promo-box img { max-width: 100%; max-height: 120px; width: auto; height: auto; object-fit: contain; border-radius: 8px; display: block; }
.promo-box.is-empty { min-height: 72px; gap: 8px; border-style: dashed; color: rgb(var(--muted)); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.promo-box.is-empty .material-symbols-outlined { color: rgb(var(--accent)); }

/* Iconos de redes sociales (logos SVG) con efecto de ONDAS */
.topbar .socials { gap: 12px; }
.social-ico { position: relative; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(var(--surface-3)); color: rgb(var(--text));
  transition: color .2s ease, background .2s ease, transform .2s ease; }
.social-ico svg { position: relative; z-index: 1; }
.social-ico:hover { color: rgb(var(--accent)); background: rgb(var(--accent) / .16); transform: translateY(-2px); }

/* Ondas (radar ping) — continuas y suaves, más intensas al hover */
.social-ico::before, .social-ico::after,
.footer .social-btn::before, .footer .social-btn::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 1.5px solid rgb(var(--accent)); opacity: 0; pointer-events: none;
  animation: ripple 2.8s ease-out infinite;
}
.social-ico::after, .footer .social-btn::after { animation-delay: 1.4s; }
.social-ico:hover::before, .social-ico:hover::after { animation-duration: 1.1s; }
.footer .social-btn { position: relative; }
.footer .social-btn svg { display: block; position: relative; z-index: 1; }
@keyframes ripple { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.85); opacity: 0; } }

/* ---------- Slider de publicidad superior ---------- */
.promo-carousel { position: relative; margin: 14px 0 4px; border-radius: 12px; overflow: hidden;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); }
.promo-track { position: relative; height: 120px; }
.promo-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 6px; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.promo-item.active { opacity: 1; pointer-events: auto; }
.promo-item img { max-width: 100%; max-height: 108px; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.promo-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
  border-radius: 50%; background: rgb(var(--bg) / .55); backdrop-filter: blur(4px); color: rgb(var(--text));
  display: grid; place-items: center; opacity: 0; transition: opacity .2s ease, background .2s ease; z-index: 2; }
.promo-carousel:hover .promo-nav { opacity: 1; }
.promo-nav:hover { background: rgb(var(--accent)); color: #04121f; }
.promo-nav.prev { left: 8px; } .promo-nav.next { right: 8px; }
.promo-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.promo-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--text) / .3); transition: all .25s ease; }
.promo-dot.active { background: rgb(var(--accent)); width: 20px; border-radius: 4px; }

/* Espacios publicitarios en secciones */
.promo-inline { margin: 8px 0; }

/* Publicidad popup centrada (oscurece la web) */
.promo-modal { position: fixed; inset: 0; z-index: 95; background: rgb(0 0 0 / .8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .3s ease; }
.promo-modal[hidden] { display: none; }
.promo-modal-box { position: relative; width: 100%; max-width: 430px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgb(0 0 0 / .8); animation: popIn .4s ease; }
.promo-modal-box img { width: 100%; display: block; }
.promo-modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: rgb(0 0 0 / .6); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.promo-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* Crédito de desarrollador */
.dev-credit { margin-top: 10px; font-size: 12px; color: rgb(var(--muted)); text-align: center; }
.dev-credit a { color: rgb(var(--accent)); font-weight: 600; }
.dev-credit a:hover { text-decoration: underline; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--bg) / .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(var(--border));
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; transition: padding .3s ease; }
.brand-logo { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.brand-logo img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; transition: width .3s ease, height .3s ease; }
/* Header 1: compactar (logo + menú) al hacer scroll */
.nav.scrolled .nav-inner { padding-top: 9px; padding-bottom: 9px; }
.nav.scrolled .brand-logo img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: rgb(var(--muted)); transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: rgb(var(--text)); }
.nav-links a.active { color: rgb(var(--accent)); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; color: rgb(var(--text)); transition: background .2s ease; }
.icon-btn:hover { background: rgb(var(--surface-3)); }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
}

/* ---------- Header · Diseño 2 "Centrado" ---------- */
.hdr2-strip { border-bottom: 1px solid rgb(var(--border)); background: rgb(var(--surface)); }
.hdr2-strip-in { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 10px; flex-wrap: wrap; }
.hdr2-date { font-size: 12px; color: rgb(var(--muted)); letter-spacing: .06em; }
.hdr2-strip-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.hdr2-strip-right .socials { display: flex; gap: 12px; }
.hdr2-sep { width: 1px; height: 18px; background: rgb(var(--border)); }
.app-badges-mini { gap: 6px; }
.app-badges-mini .app-badge { padding: 7px; min-width: 0; }
.app-badges-mini .app-badge span { display: none; }

/* Barra centrada (sticky al hacer scroll) */
.nav-center { position: sticky; top: 0; z-index: 60; background: rgb(var(--bg) / .92); backdrop-filter: blur(10px); transition: box-shadow .3s ease, background .3s ease; }
.nav-center-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 0 16px; transition: padding .3s ease, gap .3s ease; }
.brand-logo-center { flex-direction: column; gap: 8px; text-align: center; }
.brand-logo-center img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid rgb(var(--accent) / .55); box-shadow: 0 6px 22px rgb(0 0 0 / .18); transition: width .3s ease, height .3s ease, border-width .3s ease; }
.brand-logo-center span { font-size: clamp(20px, 3vw, 26px); }
.nav-center .nav-links { justify-content: center; flex-wrap: wrap; gap: 22px; }
.nav-toggle-abs { position: absolute; right: 0; top: 22px; }

/* Estado compacto: el logo se encoge y entra en la barra del menú */
.nav-center.scrolled { box-shadow: 0 4px 22px rgb(0 0 0 / .16); }
.nav-center.scrolled .nav-center-in { flex-direction: row; justify-content: center; gap: 26px; padding: 9px 0; }
.nav-center.scrolled .brand-logo-center img { width: 46px; height: 46px; border-width: 2px; }
.nav-center.scrolled .nav-toggle-abs { top: 50%; transform: translateY(-50%); }
.nav-center.scrolled .hdr2-eq { opacity: .1; }

/* Ecualizador animado de fondo */
.hdr2-eq { position: absolute; inset: 0; z-index: 0; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 5px; padding: 0 8px; pointer-events: none; opacity: .16; transition: opacity .3s ease; }
.hdr2-eq span { flex: 0 0 auto; width: 5px; height: 14px; border-radius: 3px 3px 0 0; background: rgb(var(--accent)); animation: eqbar 1.1s ease-in-out infinite; will-change: height; }
@keyframes eqbar { 0%, 100% { height: 12px; } 50% { height: var(--eqh, 50%); } }
@media (prefers-reduced-motion: reduce) { .hdr2-eq span { animation: none; } }

@media (max-width: 640px) { .hdr2-strip-right .app-badges-mini, .hdr2-strip-right .hdr2-sep { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; aspect-ratio: 21/9; border-radius: 18px; overflow: hidden; margin: 30px 0 24px; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--bg)) 5%, transparent 60%); z-index: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s ease; }
.hero:hover .hero-bg { transform: scale(1.05); }
.hero-content { position: absolute; bottom: 40px; left: 40px; right: 40px; z-index: 2; max-width: 640px; }
.hero-badge { display: inline-block; background: rgb(var(--accent)); color: rgb(var(--on-accent)); padding: 5px 14px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(28px, 5vw, 60px); margin-bottom: 12px; }
.hero p { color: rgb(var(--text) / .85); margin-bottom: 22px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 640px) { .hero { aspect-ratio: 4/5; } .hero-content { left: 20px; right: 20px; bottom: 24px; } }

/* ---------- Encabezado de sección ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head .title { border-left: 4px solid rgb(var(--accent)); padding-left: 18px; }
.section-head h2 { font-size: clamp(22px, 3vw, 32px); }
.section-head p { color: rgb(var(--muted)); margin-top: 4px; }
.section-head .link { color: rgb(var(--accent)); font-size: 13px; font-weight: 700; }
.section-head .link:hover { text-decoration: underline; }

@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* ---------- Programación (barra Ahora / A continuación / Después) ---------- */
.prog-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.prog-slot { flex: 1 1 240px; min-width: 240px; display: flex; align-items: stretch; justify-content: space-between; gap: 12px;
  background: rgb(var(--surface-2)); border: 1px solid rgb(var(--border)); border-radius: 14px; padding: 14px 16px; overflow: hidden; transition: border-color .2s ease; }
.prog-slot-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.prog-slot-label { font-size: 11.5px; font-weight: 700; color: rgb(var(--muted)); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.prog-slot h3 { font-size: 16px; line-height: 1.2; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-slot-time { font-size: 13px; color: rgb(var(--muted)); }
.prog-slot-thumb { width: 66px; height: 66px; border-radius: 11px; overflow: hidden; flex-shrink: 0; align-self: center; position: relative;
  background: linear-gradient(145deg, rgb(var(--surface-3)), rgb(var(--bg))); display: grid; place-items: center; }
.prog-slot-thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.thumb-letter { position: absolute; z-index: 0; font-family: var(--font-heading); font-weight: 800; font-size: 30px; color: rgb(var(--accent) / .55); }

/* Resaltado del programa EN VIVO */
.prog-slot.live { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .10);
  box-shadow: 0 0 0 1px rgb(var(--accent) / .45), 0 0 20px rgb(var(--accent) / .22); }
.prog-slot.live .prog-slot-label { color: rgb(var(--accent)); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--accent)); display: inline-block; animation: pulse 1.2s infinite; }

/* Botón "Programación completa" */
.prog-slot.cta { flex: 0 0 auto; min-width: 160px; align-items: center; cursor: pointer; text-align: left;
  background: rgb(var(--accent)); color: #04121f; border: none; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; line-height: 1.2; }
.prog-slot.cta:hover { filter: brightness(1.06); }
.prog-slot.cta .material-symbols-outlined { font-size: 28px; }

/* Modal programación completa */
.prog-modal { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .7); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.prog-modal[hidden] { display: none; }
.prog-modal-box { position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.prog-modal-title { margin-bottom: 18px; font-size: 20px; }
.prog-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgb(var(--surface-3)); color: rgb(var(--text)); font-size: 22px; display: grid; place-items: center; }
.prog-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }
.prog-full-list { display: flex; flex-direction: column; gap: 8px; }
.prog-full-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid rgb(var(--border)); }
.prog-full-item.live { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .08); }
.prog-full-thumb { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; flex-shrink: 0; position: relative; background: linear-gradient(145deg, rgb(var(--surface-3)), rgb(var(--bg))); display: grid; place-items: center; }
.prog-full-thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.prog-full-thumb .thumb-letter { font-size: 22px; }
.prog-full-body { flex: 1; min-width: 0; }
.prog-full-body strong { display: block; font-size: 15px; }
.prog-full-body span { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-full-time { text-align: right; flex-shrink: 0; font-size: 13px; color: rgb(var(--muted)); }
.live-badge { display: inline-flex; align-items: center; gap: 4px; background: rgb(var(--accent)); color: #04121f; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-bottom: 4px; }

/* ---------- Eventos (flyer + modal) ---------- */
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .events-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .events-grid { grid-template-columns: repeat(2,1fr); } }
.event-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0; text-align: left;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); transition: border-color .2s ease, transform .2s ease; }
.event-card:hover { border-color: rgb(var(--accent)); transform: translateY(-3px); }
.event-flyer { position: relative; aspect-ratio: 3/4; overflow: hidden; background: linear-gradient(145deg, rgb(var(--surface-3)), rgb(var(--bg))); }
.event-flyer img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.event-card:hover .event-flyer img { transform: scale(1.05); }
.event-date-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgb(var(--accent)); color: #04121f; border-radius: 10px; padding: 5px 11px; text-align: center; line-height: 1; font-weight: 800; display: flex; flex-direction: column; gap: 2px; font-size: 11px; box-shadow: 0 4px 12px rgb(0 0 0 / .3); }
.event-date-badge strong { font-size: 18px; }
.event-flyer-fallback { position: absolute; inset: 0; display: none; place-items: center; color: rgb(var(--accent) / .5); }
.event-flyer-fallback .material-symbols-outlined { font-size: 54px; }
.event-flyer.no-img .event-flyer-fallback { display: grid; }
.event-info { padding: 12px 14px; }
.event-info h3 { font-size: 15px; line-height: 1.25; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-more { font-size: 13px; color: rgb(var(--accent)); font-weight: 700; }

.event-modal { position: fixed; inset: 0; z-index: 85; background: rgb(0 0 0 / .8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.event-modal[hidden] { display: none; }
.event-modal-box { position: relative; width: 100%; max-width: 700px; max-height: 88vh; overflow-y: auto; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; box-shadow: var(--shadow); }
.event-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; font-size: 22px; display: grid; place-items: center; }
.event-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }
.event-modal-flyer { width: 100%; display: block; max-height: 62vh; object-fit: contain; background: #000; }
.event-modal-inner { padding: 22px 24px; }
.event-modal-inner h2 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 8px; }
.event-modal-date { display: inline-flex; align-items: center; gap: 6px; color: rgb(var(--accent)); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.event-modal-inner p { color: rgb(var(--muted)); line-height: 1.75; margin-bottom: 16px; }
.event-wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 700; }
.event-wa:hover { filter: brightness(1.05); }

/* ---------- Top musical + Podcasts ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-col > * { min-width: 0; } /* evita que las columnas se desborden */
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* Si se oculta Top o Podcasts, el módulo que queda llena el ancho en 2 columnas
   (así no queda el espacio vacío al lado). En móvil, 1 columna. */
.two-col.one-col { grid-template-columns: 1fr; }
.two-col.one-col > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px; align-content: start; }
.two-col.one-col > div > .col-head { grid-column: 1 / -1; }
.two-col.one-col .pod-card { margin-bottom: 0; }
@media (max-width: 760px) { .two-col.one-col > div { grid-template-columns: 1fr; } }
.col-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.col-head .material-symbols-outlined { color: rgb(var(--accent)); font-size: 30px; }
.col-head h2 { font-size: clamp(20px,2.4vw,26px); letter-spacing: .1em; text-transform: uppercase; }

.top-row { display: flex; align-items: center; gap: 18px; padding: 12px; border-radius: 10px; border-bottom: 1px solid rgb(var(--border) / .3); transition: background .2s ease; }
.top-row:hover { background: rgb(var(--surface-2)); }
.top-rank { font-family: var(--font-heading); font-style: italic; font-weight: 800; font-size: 26px; color: rgb(var(--muted)); width: 34px; text-align: center; transition: color .2s ease; }
.top-row:hover .top-rank { color: rgb(var(--accent)); }
.top-thumb { width: 48px; height: 48px; border-radius: 7px; overflow: hidden; flex-shrink: 0; }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-info { flex: 1; min-width: 0; }
.top-info h4 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-info p { color: rgb(var(--muted)); font-size: 12px; }
.top-play { color: rgb(var(--muted)); opacity: 0; transition: opacity .2s ease, color .2s ease; }
.top-row:hover .top-play { opacity: 1; color: rgb(var(--accent)); }

/* Podcast card */
.pod-card { display: flex; gap: 18px; padding: 16px; border-radius: 14px; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); transition: background .2s ease; margin-bottom: 16px; }
.pod-card:hover { background: rgb(var(--surface-2)); }
.pod-cover { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; flex-shrink: 0; position: relative; }
.pod-cover img { width: 100%; height: 100%; object-fit: cover; }
.pod-cover .play-badge { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .35); opacity: 0; transition: opacity .2s ease; }
.pod-card:hover .play-badge { opacity: 1; }
.pod-cover .play-badge .material-symbols-outlined { color: #fff; font-size: 34px; }

/* El podcast que está sonando ahora se distingue de los demás */
.pod-card.is-playing, .pod-card.is-paused { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .06); }
.pod-card.is-playing .play-badge, .pod-card.is-paused .play-badge { opacity: 1; background: rgb(var(--accent) / .55); }
.pod-card.is-playing .play-badge .material-symbols-outlined { display: none; }
.pod-card.is-playing .play-badge::after {
  content: ''; width: 22px; height: 20px;
  background: linear-gradient(#fff, #fff) 0 100%/4px 40% no-repeat,
              linear-gradient(#fff, #fff) 9px 100%/4px 85% no-repeat,
              linear-gradient(#fff, #fff) 18px 100%/4px 60% no-repeat;
  animation: eq .9s ease-in-out infinite alternate;
}
@keyframes eq {
  from { background-size: 4px 30%, 4px 85%, 4px 55%; }
  to   { background-size: 4px 90%, 4px 35%, 4px 100%; }
}
@media (prefers-reduced-motion: reduce) { .pod-card.is-playing .play-badge::after { animation: none; } }
.pod-meta { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pod-ep { color: rgb(var(--accent)); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.pod-meta h4 { font-size: 16px; margin-bottom: 4px; }
.pod-meta p { color: rgb(var(--muted)); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-source { display:inline-flex; align-items:center; gap:4px; font-size:11px; margin-top:6px; color: rgb(var(--muted)); }

/* ---------- Noticias ---------- */
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }
.news-feat { cursor: pointer; border-radius: 16px; overflow: hidden; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); transition: border-color .2s ease; }
.news-feat:hover { border-color: rgb(var(--accent)); }
.news-feat-img { aspect-ratio: 16/9; overflow: hidden; }
.news-feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-feat:hover .news-feat-img img { transform: scale(1.04); }
.news-feat-body { padding: 20px; }
.news-cat { display: inline-block; background: rgb(var(--accent)); color: #04121f; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.news-feat-body h3 { font-size: clamp(18px, 2.4vw, 23px); margin-bottom: 8px; }
.news-feat-body p { color: rgb(var(--muted)); margin-bottom: 12px; }
.news-more { color: rgb(var(--accent)); font-weight: 700; font-size: 14px; }
.news-auto-note { margin-top: 16px; text-align: center; color: rgb(var(--muted)); font-size: 12.5px; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item { display: flex; gap: 14px; cursor: pointer; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 12px; padding: 10px; transition: border-color .2s ease; }
.news-item:hover { border-color: rgb(var(--accent)); }
.news-item-img { width: 100px; height: 74px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.news-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.news-item-body h4 { font-size: 15px; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item-body span { font-size: 12px; }

/* Noticias · Diseño 2 "Cuadrícula" (tarjetas iguales) */
.news-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 14px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.news-card:hover { transform: translateY(-4px); border-color: rgb(var(--accent) / .5); }
.news-card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: rgb(var(--surface-2)); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img .news-cat { position: absolute; top: 10px; left: 10px; margin: 0; }
.news-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.news-card-body h3 { font-size: 17px; line-height: 1.35; }
.news-card-body p { color: rgb(var(--muted)); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-meta { color: rgb(var(--muted)); font-size: 12.5px; margin-top: auto; }
.news-card .news-more { font-size: 13px; }
/* Carrusel de noticias (diseño 2 con más de 4) */
.news-row { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.news-row .news-card { flex: 0 0 clamp(240px, 26vw, 300px); scroll-snap-align: start; }

/* Modal de noticia */
.news-modal { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .7); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.news-modal[hidden] { display: none; }
.news-modal-box { position: relative; width: 100%; max-width: 640px; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
#news-modal-content { max-height: 88vh; overflow-y: auto; }
#news-modal-content img { width: 100%; display: block; }
.news-modal-inner { padding: 24px; }
.news-modal-inner h2 { font-size: clamp(20px, 3vw, 27px); margin-bottom: 6px; }
.news-modal-inner .date { color: rgb(var(--accent)); font-size: 13px; font-weight: 600; margin-bottom: 16px; display: block; }
.news-modal-inner p { color: rgb(var(--muted)); line-height: 1.8; margin-bottom: 12px; }
.news-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgb(var(--bg) / .8); color: rgb(var(--text)); font-size: 22px; line-height: 1; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.news-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }

/* ---------- Página de noticia (artículo + sidebar) ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding: 28px 0 60px; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article { background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; overflow: hidden; }
.article-hero { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.article-inner { padding: 28px; }
@media (max-width: 560px) { .article-inner { padding: 20px; } }
.article-title { font-size: clamp(23px, 4vw, 35px); margin: 10px 0 8px; line-height: 1.2; }
.article-date { color: rgb(var(--muted)); font-size: 14px; display: inline-block; margin-bottom: 8px; }
.article-body p { color: rgb(var(--text)); opacity: .9; line-height: 1.9; margin-bottom: 16px; font-size: 16px; }

/* Botones compartir */
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid rgb(var(--border) / .5); border-bottom: 1px solid rgb(var(--border) / .5); margin: 16px 0; }
.share-label { font-size: 14px; font-weight: 600; color: rgb(var(--muted)); margin-right: 4px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--surface-3)); color: rgb(var(--text)); transition: transform .2s ease, background .2s ease, color .2s ease; }
.share-btn:hover { transform: translateY(-2px); }
.share-btn.wa:hover { background: #25D366; color: #fff; }
.share-btn.fb:hover { background: #1877F2; color: #fff; }
.share-btn.tw:hover { background: #000; color: #fff; }
.share-btn.copy.copied { background: rgb(var(--accent)); color: #04121f; }

/* Sidebar del artículo */
.article-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 88px; }
@media (max-width: 900px) { .article-side { position: static; } }
.side-block { background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 14px; padding: 16px; }
.side-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--muted)); margin-bottom: 12px; }
.promo-aside { margin: 0 0 12px; }
.promo-aside:last-child { margin-bottom: 0; }
.promo-aside img { max-height: 260px; }
.side-news { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgb(var(--border) / .4); align-items: center; }
.side-news:last-child { border-bottom: none; }
.side-news-img { width: 62px; height: 46px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.side-news-img img { width: 100%; height: 100%; object-fit: cover; }
.side-news span { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-news:hover span { color: rgb(var(--accent)); }

/* ---------- Videos (Shorts) ---------- */
.shorts-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.short-card { position: relative; flex: 0 0 auto; width: 200px; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; cursor: pointer; background: rgb(var(--surface-2)); border: 1px solid rgb(var(--border)); text-align: left; padding: 0; }
.short-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.short-card:hover .short-thumb { transform: scale(1.06); }
.short-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .75), transparent 34%), linear-gradient(to bottom, rgb(0 0 0 / .55), transparent 28%); }
.short-play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.yt-play { width: 56px; height: 40px; background: #ff0000; border-radius: 11px; position: relative; box-shadow: 0 4px 16px rgb(0 0 0 / .45); transition: transform .2s ease; }
.yt-play::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%); border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.short-card:hover .yt-play { transform: scale(1.12); }
.short-title { position: absolute; top: 12px; left: 12px; right: 12px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.25; z-index: 2; text-shadow: 0 1px 3px rgb(0 0 0 / .7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short-brand { position: absolute; bottom: 12px; left: 12px; color: #fff; font-size: 12px; opacity: .92; z-index: 2; text-shadow: 0 1px 3px rgb(0 0 0 / .7); }
@media (max-width: 480px) { .short-card { width: 158px; } }

/* Modal de video (YouTube) */
.video-modal { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / .88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.video-modal[hidden] { display: none; }
.video-modal-box { position: relative; width: 100%; max-width: 860px; }
.video-frame { aspect-ratio: 16/9; width: 100%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
#video-frame-inner { width: 100%; height: 100%; }
.video-modal-close { position: absolute; top: -48px; right: 0; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; font-size: 24px; display: grid; place-items: center; transition: background .2s ease; }
.video-modal-close:hover { background: rgb(255 255 255 / .3); }
@media (max-width: 560px) { .video-modal-close { top: -46px; } }

/* ---------- Locutores (cards con foto + bio + modal) ---------- */
.hosts-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px) { .hosts-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .hosts-grid { grid-template-columns: 1fr; } }
.host-card { display: flex; flex-direction: column; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 16px; overflow: hidden; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.host-card:hover { border-color: rgb(var(--accent)); transform: translateY(-3px); }
.host-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: linear-gradient(145deg, rgb(var(--surface-3)), rgb(var(--bg))); }
.host-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.host-card:hover .host-photo img { transform: scale(1.05); }
.host-photo-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .85), transparent 45%); }
.host-photo-info { position: absolute; bottom: 12px; left: 14px; right: 14px; z-index: 1; }
.host-photo-info h4 { color: #fff; font-size: 17px; text-shadow: 0 1px 4px rgb(0 0 0 / .6); }
.host-role { display: inline-block; margin-top: 3px; background: rgb(var(--accent)); color: #04121f; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.host-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.host-bio { color: rgb(var(--muted)); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.host-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.host-more { font-size: 13px; font-weight: 700; color: rgb(var(--accent)); }
.host-social { display: flex; gap: 6px; }
.host-social a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--surface-3)); color: rgb(var(--muted)); transition: color .2s ease, background .2s ease; }
.host-social a:hover { color: rgb(var(--accent)); }

/* Modal locutor */
.host-modal { position: fixed; inset: 0; z-index: 85; background: rgb(0 0 0 / .8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.host-modal[hidden] { display: none; }
.host-modal-box { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; box-shadow: var(--shadow); }
.host-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgb(0 0 0 / .5); color: #fff; font-size: 22px; display: grid; place-items: center; }
.host-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }
.host-modal-head { display: flex; gap: 18px; align-items: center; padding: 24px; }
.host-modal-head img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.host-modal-head h2 { font-size: clamp(20px,3vw,26px); }
.host-modal-head .host-role { margin-top: 6px; }
.host-modal-body { padding: 0 24px 24px; }
.host-modal-body p { color: rgb(var(--muted)); line-height: 1.8; margin-bottom: 18px; }
.host-modal-social { display: flex; gap: 10px; flex-wrap: wrap; }
.host-modal-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--surface-3)); color: rgb(var(--text)); transition: color .2s ease, transform .2s ease; }
.host-modal-social a:hover { color: rgb(var(--accent)); transform: translateY(-2px); }

/* ---------- Nosotros / Contacto ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-text { color: rgb(var(--muted)); font-size: 16px; line-height: 1.8; }
.contact-card { border-radius: 16px; padding: 26px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgb(var(--border) / .4); }
.contact-item .material-symbols-outlined { color: rgb(var(--accent)); }
a.contact-item { text-decoration: none; color: rgb(var(--text)); transition: color .2s ease; }
a.contact-item:hover { color: rgb(var(--accent)); }

/* Páginas Nosotros / Contacto */
.page-panel { max-width: 820px; }
.about-cover { aspect-ratio: 21/9; border-radius: 16px; background-size: cover; background-position: center; margin-bottom: 26px; border: 1px solid rgb(var(--border)); }
.about-text p { margin-bottom: 14px; }
.about-text h2, .about-text h3 { color: rgb(var(--text)); margin: 22px 0 10px; }
.about-text a { color: rgb(var(--accent)); }
.contact-page { max-width: 560px; }
.contact-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.contact-socials { display: flex; gap: 12px; margin-top: 20px; }

/* ---------- Bloque tinte fondo ---------- */
.tint { background: rgb(var(--surface) / .5); border-top: 1px solid rgb(var(--border)); border-bottom: 1px solid rgb(var(--border)); }

/* ---------- Footer ---------- */
.footer { background: rgb(var(--surface) / .4); border-top: 1px solid rgb(var(--border)); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer a.f-link { color: rgb(var(--muted)); }
.footer a.f-link:hover { color: rgb(var(--accent)); }
.footer .social-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(var(--border)); display: grid; place-items: center; transition: all .2s ease; }
.footer .social-btn:hover { background: rgb(var(--accent)); color: #04121f; border-color: rgb(var(--accent)); }
.footer-bottom { text-align: center; padding: 22px 0; border-top: 1px solid rgb(var(--border) / .4); color: rgb(var(--muted)); font-size: 13px; }

/* ============================================================================
   REPRODUCTOR FLOTANTE PERSISTENTE
   ============================================================================ */
.player {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 20px; z-index: 60;
  width: 95%; max-width: 900px;
  border-radius: 999px; padding: 12px 22px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow);
}
/* Deja aire al final de la página para que el player no tape el footer */
body:has(.player-floating) { padding-bottom: 108px; }

.player-track { display: flex; align-items: center; gap: 14px; flex-shrink: 0; min-width: 0; }

/* ---------- Carátula (gira en vivo, se atenúa mientras conecta) ---------- */
.player-cover { position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgb(var(--surface-3)); }
.player-cover img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.player.playing .player-cover img { animation: spin 8s linear infinite; }
.player.is-loading .player-cover img { opacity: .35; }
.player-loader { position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity .2s ease;
  background: conic-gradient(from 0deg, transparent 0 65%, rgb(var(--accent)) 100%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
          mask: radial-gradient(circle, transparent 58%, #000 60%); }
.player.is-loading .player-loader { opacity: 1; animation: spin .9s linear infinite; }

/* ---------- Título + estado ---------- */
.player-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.player-meta h6 { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; max-width: 190px; }
.player-meta h6 > span { display: inline-block; white-space: nowrap; }
.player-meta h6.scrolling { -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 84%, transparent 100%); }
.player-meta h6.scrolling > span { animation: marquee var(--mq-t, 9s) ease-in-out infinite alternate; }
@keyframes marquee { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(var(--mq, 0)); } }

.player-meta .live { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px; color: rgb(var(--accent));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta .live .material-symbols-outlined { font-size: 13px; }
.player-meta .live .dot { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--accent)); animation: pulse 1.2s infinite; }
.player-meta .live.is-pod { color: rgb(var(--muted)); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.player-meta .live.is-retry { color: rgb(var(--warn)); }
.player-meta .live.is-retry .material-symbols-outlined { animation: spin 1.1s linear infinite; }
.player-meta .live.is-error { color: rgb(var(--danger)); letter-spacing: .04em; }

/* ---------- Controles ---------- */
.player-controls { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.play-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; background: rgb(var(--accent)); color: rgb(var(--on-accent));
  display: grid; place-items: center; flex-shrink: 0; transition: transform .18s ease, box-shadow .18s ease; }
.play-btn:hover { transform: scale(1.08); }
.play-btn:active { transform: scale(.96); }
.play-btn:focus-visible { outline: 3px solid rgb(var(--accent) / .45); outline-offset: 3px; }
.play-btn .material-symbols-outlined { font-size: 28px; font-variation-settings: 'FILL' 1; }
.play-ring { position: absolute; inset: -5px; border-radius: 50%; opacity: 0;
  border: 2.5px solid rgb(var(--accent) / .25); border-top-color: rgb(var(--accent)); }
.player.is-loading .play-ring { opacity: 1; animation: spin .8s linear infinite; }
.player.is-loading .play-btn .material-symbols-outlined { opacity: .45; }
.player-controls .icon-btn { width: 38px; height: 38px; flex-shrink: 0; }
.player [hidden] { display: none !important; }   /* si no, display:grid/flex gana sobre [hidden] */
.player-controls .icon-btn .material-symbols-outlined { font-size: 22px; }

/* ---------- Volumen ---------- */
.player-vol { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.player-vol .vol-btn { width: 36px; height: 36px; }
.player-vol .vol-btn .material-symbols-outlined { font-size: 20px; color: rgb(var(--muted)); }
.player-vol .vol-btn:hover .material-symbols-outlined { color: rgb(var(--text)); }
.player-vol input[type=range] { width: 84px; }

/* ---------- Barra de progreso del podcast ---------- */
.player-progress { position: absolute; left: 26px; right: 26px; bottom: 5px; height: 14px; display: flex; align-items: center; }
.player-progress input[type=range] { width: 100%; }
.player.is-podcast { padding-bottom: 18px; }
.player.is-podcast .player-cover img { animation: none; }

/* ---------- Deslizadores (volumen y progreso), iguales en los dos temas ---------- */
.player input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 3px; cursor: pointer;
  background: linear-gradient(to right, rgb(var(--accent)) var(--fill, 80%), rgb(var(--border)) var(--fill, 80%)); }
.player input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%; background: rgb(var(--accent));
  box-shadow: 0 0 0 3px rgb(var(--accent) / 0); transition: box-shadow .18s ease, transform .18s ease; }
.player input[type=range]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgb(var(--accent) / .2); }
.player input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.player input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: rgb(var(--accent)); }
.player input[type=range]:focus-visible { outline: 2px solid rgb(var(--accent) / .5); outline-offset: 4px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  .player { bottom: 0; border-radius: 20px 20px 0 0; padding: 10px 14px; gap: 10px; width: 100%; max-width: 100%; }
  .player-controls { flex: 0; gap: 4px; }
  .player-vol input[type=range] { display: none; }   /* el volumen lo maneja el teléfono */
  .player-meta h6 { max-width: 130px; }
  .player-progress { left: 16px; right: 16px; }
  body, body:has(.player-floating) { padding-bottom: 94px; }
}
@media (max-width: 400px) {
  .player-controls .icon-btn { width: 34px; height: 34px; }
  .player-meta h6 { max-width: 96px; }
}

/* ---------- Respeta a quien pidió menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .player.playing .player-cover img,
  .player-meta h6.scrolling > span,
  .player-meta .live .dot { animation: none !important; }
  .player-meta h6.scrolling { -webkit-mask-image: none; mask-image: none; text-overflow: ellipsis; }
}

/* ---------- Toggle día/noche ---------- */
.theme-toggle { position: relative; }
.theme-toggle .material-symbols-outlined { transition: transform .4s ease; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

/* ---------- Menú móvil ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: rgb(var(--bg) / .97); backdrop-filter: blur(10px); display: none; flex-direction: column; padding: 80px 32px; gap: 8px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 22px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid rgb(var(--border) / .4); }
.mobile-menu .close { position: absolute; top: 24px; right: 24px; }

/* ---------- Menú desplegable (Nosotros) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; } /* puente hover */
.nav-drop-btn { display: inline-flex; align-items: center; gap: 2px; color: rgb(var(--muted)); font-size: 15px; transition: color .2s ease; }
.nav-drop-btn:hover, .nav-dropdown:hover .nav-drop-btn { color: rgb(var(--text)); }
.nav-drop-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 195px; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; z-index: 60; display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a { padding: 9px 12px; border-radius: 8px; font-size: 14px; color: rgb(var(--muted)); }
.nav-drop-menu a:hover { background: rgb(var(--surface-3)); color: rgb(var(--accent)); }
.mobile-menu a.sub { font-size: 18px; padding: 9px 0 9px 20px; opacity: .82; }

/* ---------- Directorio comercial (cards verticales + modal) ---------- */
.dir-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.dir-card { flex: 0 0 auto; width: 240px; display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; overflow: hidden;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 16px; transition: border-color .2s ease, transform .2s ease; }
.dir-card:hover { border-color: rgb(var(--accent)); transform: translateY(-3px); }
.dir-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(145deg, rgb(var(--surface-3)), rgb(var(--bg))); display: grid; place-items: center; }
.dir-card-img img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform .4s ease; }
.dir-card:hover .dir-card-img img { transform: scale(1.05); }
.dir-card-fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; color: rgb(var(--accent) / .5); }
.dir-card-fallback .material-symbols-outlined { font-size: 48px; }
.dir-card-cat { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgb(var(--accent)); color: #04121f; font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.dir-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.dir-card-body h4 { font-size: 16px; }
.dir-more { color: rgb(var(--accent)); font-weight: 700; font-size: 13px; margin-top: 2px; }
.dir-cat { display: inline-block; background: rgb(var(--accent) / .16); color: rgb(var(--accent)); font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.dir-line { display: flex; align-items: center; gap: 5px; color: rgb(var(--muted)); font-size: 12.5px; }
.dir-line .material-symbols-outlined { font-size: 15px; color: rgb(var(--accent)); flex-shrink: 0; }

/* Modal de comercio */
.dir-modal { position: fixed; inset: 0; z-index: 85; background: rgb(0 0 0 / .8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.dir-modal[hidden] { display: none; }
.dir-modal-box { position: relative; width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 18px; box-shadow: var(--shadow); }
.dir-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; font-size: 22px; display: grid; place-items: center; }
.dir-modal-close:hover { background: rgb(var(--accent)); color: #04121f; }
.dir-modal-img { display: block; max-width: 100%; max-height: 56vh; width: auto; height: auto; margin: 0 auto; }
.dir-modal-inner { padding: 22px 24px; }
.dir-modal-inner h2 { font-size: clamp(20px,3vw,26px); margin: 8px 0; }
.dir-modal-inner p { color: rgb(var(--muted)); line-height: 1.7; margin-bottom: 16px; }
.dir-modal-contact { display: flex; flex-direction: column; gap: 10px; }
.dir-modal-contact .dir-line { font-size: 15px; color: rgb(var(--text)); }
.dir-modal-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dir-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .15s ease, filter .15s ease; }
.dir-btn.wa { background: #25D366; color: #fff; }
.dir-btn.call { background: rgb(var(--accent)); color: #04121f; }
.dir-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.dir-modal-inner .host-modal-social { margin-top: 16px; }

/* Directorio: página completa */
.dir-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dir-chip { padding: 7px 16px; border-radius: 999px; border: 1px solid rgb(var(--border)); background: rgb(var(--surface)); color: rgb(var(--muted)); font-size: 13px; font-weight: 600; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.dir-chip:hover { border-color: rgb(var(--accent)); }
.dir-chip.active { background: rgb(var(--accent)); color: #04121f; border-color: rgb(var(--accent)); }
.dir-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px) { .dir-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .dir-grid { grid-template-columns: 1fr; } }
.dir-item { display: flex; gap: 16px; width: 100%; text-align: left; cursor: pointer; background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 16px; padding: 18px; transition: border-color .2s ease, transform .2s ease; }
.dir-item:hover { border-color: rgb(var(--accent)); transform: translateY(-2px); }
.dir-item-logo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.dir-item-logo .dir-logo-fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; color: rgb(var(--accent) / .5); }
.dir-item-logo { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: rgb(var(--surface-3)); position: relative; display: grid; place-items: center; }
.dir-item-body { min-width: 0; }
.dir-item-body h3 { font-size: 17px; margin: 4px 0 6px; }
.dir-desc { color: rgb(var(--muted)); font-size: 13.5px; line-height: 1.5; margin-bottom: 10px; }
.dir-contact { display: flex; flex-direction: column; gap: 5px; }
.dir-contact a.dir-line:hover { color: rgb(var(--accent)); }

/* ---------- Loader de navegación (PJAX) ---------- */
#page-loader { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgb(var(--bg) / .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
#page-loader.active { display: flex; opacity: 1; }
.loader-spin { width: 48px; height: 48px; border-radius: 50%; border: 4px solid rgb(var(--accent) / .22); border-top-color: rgb(var(--accent)); animation: spin .7s linear infinite; }

/* Material Symbols base */
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; display: inline-block; vertical-align: middle; user-select: none; }

/* ============================================================================
   AJUSTES RESPONSIVE FINOS
   ============================================================================ */
@media (max-width: 520px) {
  /* Barra superior: que las redes no se salgan */
  .topbar { flex-wrap: wrap; gap: 8px 10px; }
  #current-date { font-size: 10px; letter-spacing: .04em; }
  .topbar .socials { gap: 8px; margin-left: auto; }
  .social-ico { width: 30px; height: 30px; }
  .social-ico svg { width: 15px; height: 15px; }
}
@media (max-width: 420px) {
  /* Botones del hero: que quepan / envuelvan bien */
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 11px 16px; font-size: 12px; }
  .promo-track { height: 92px; }
  .promo-item img { max-height: 82px; }
}

/* ==========================================================================
   HEADER · DISEÑO 3 "NOTICIERO"  (titulares · logo+menú+buscador · al aire)
   ========================================================================== */

/* ---------- Fila 1: últimas noticias + redes ---------- */
.hdr3-top { background: rgb(var(--primary)); color: rgb(var(--on-primary)); font-size: 13px; }
.hdr3-top-in { display: flex; align-items: stretch; gap: 0; min-height: 40px; }

/* Fondo y texto del propio tema: siempre legible, sea cual sea el color de
   marca y esté en modo día o noche. El acento se queda en el rayo. */
.hdr3-flag { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 0 18px; background: rgb(var(--bg)); color: rgb(var(--text));
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.hdr3-flag .material-symbols-outlined { font-size: 17px; font-variation-settings: 'FILL' 1;
  color: rgb(var(--accent)); }

/* Los titulares se turnan en el mismo espacio */
.hdr3-ticker { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 0 16px; }
.hdr3-tick { position: absolute; left: 16px; right: 16px; color: rgb(var(--on-primary)); font-weight: 600; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.hdr3-tick.on { opacity: 1; transform: none; pointer-events: auto; }
.hdr3-tick:hover { text-decoration: underline; }

.hdr3-tick-nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.hdr3-tick-nav button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px;
  background: rgb(var(--on-primary) / .14); border: 0; color: rgb(var(--on-primary)); cursor: pointer;
  transition: background .15s ease, color .15s ease; }
.hdr3-tick-nav button:hover { background: rgb(var(--accent)); color: rgb(var(--on-accent)); }
.hdr3-tick-nav .material-symbols-outlined { font-size: 17px; }

.hdr3-social { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-left: 18px; }
.hdr3-social-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.hdr3-social a { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(var(--on-primary) / .18); color: rgb(var(--on-primary));
  transition: background .18s ease, color .18s ease, transform .18s ease; }
.hdr3-social a:hover { background: rgb(var(--accent)); color: rgb(var(--on-accent)); transform: translateY(-2px); }
.hdr3-social svg { fill: currentColor; }

/* ---------- Fila 2: logo + menú + buscador ---------- */
.hdr3-nav { background: rgb(var(--bg)); border-bottom: 1px solid rgb(var(--border)); }
.hdr3-brand img { height: 42px; width: auto; }
/* En este diseño el botón "Menú" se ve SIEMPRE, también en escritorio */
.hdr3-nav .nav-toggle { display: grid; }
.hdr3-menu-btn { display: flex; align-items: center; justify-content: center;
  width: auto; gap: 8px; padding: 0 15px; border-radius: 10px; background: rgb(var(--surface-3)); }
.hdr3-nav .hdr3-menu-btn { display: flex; }
.hdr3-menu-btn:hover { background: rgb(var(--accent) / .16); color: rgb(var(--accent)); }
.hdr3-menu-txt { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 900px) { .hdr3-menu-txt { display: none; } .hdr3-menu-btn { width: 42px; padding: 0; } }

/* ---------- Fila 3: qué suena ahora ---------- */
.hdr3-live { position: relative; overflow: hidden; background: rgb(var(--primary));
  background: linear-gradient(100deg, rgb(var(--primary)), color-mix(in srgb, rgb(var(--primary)) 74%, #000));
  color: rgb(var(--on-primary)); }
.hdr3-eq { position: absolute; inset: 0; z-index: 0; display: flex; align-items: flex-end;
  gap: 5px; padding: 0 6px; pointer-events: none; opacity: .3; }
.hdr3-eq span { flex: 1 1 0; min-width: 3px; height: 12px; border-radius: 3px 3px 0 0; background: rgb(var(--accent));
  will-change: height; transition: height .45s ease; }
/* Igual que el del player: se mueve cuando de verdad están escuchando */
body.radio-playing .hdr3-eq span { animation: eqbar 1.1s ease-in-out infinite; }
.hdr3-eq { transition: opacity .4s ease; }
body.radio-playing .hdr3-eq { opacity: .34; }
@media (prefers-reduced-motion: reduce) { .hdr3-eq span { animation: none; } }

.hdr3-live-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; padding: 14px 0; }

.hdr3-live-cover { position: relative; width: 68px; height: 68px; flex-shrink: 0; border-radius: 50%;
  overflow: hidden; background: rgb(var(--on-primary) / .15); }
.hdr3-live-cover img { width: 100%; height: 100%; object-fit: cover; }
.hdr3-live-ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid rgb(var(--accent)); }

.hdr3-live-now { flex-shrink: 0; display: flex; flex-direction: column; gap: 2px;
  padding-right: 20px; border-right: 1px solid rgb(var(--on-primary) / .3); }
.hdr3-live-tag { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; opacity: .9; }
.hdr3-live-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--accent)); animation: pulse 1.3s infinite; }
.hdr3-live-name { font-family: var(--font-heading); font-size: 24px; line-height: 1.05; font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; max-width: 240px; }

.hdr3-live-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hdr3-live-txt p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hdr3-live-hour { font-size: 13px; font-weight: 700; opacity: .88; }

.hdr3-live-cta { flex-shrink: 0; }
.hdr3-btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 24px; border-radius: 999px;
  background: rgb(var(--accent)); color: rgb(var(--on-accent)); border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  transition: transform .18s ease, box-shadow .18s ease; }
.hdr3-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgb(0 0 0 / .5); }
.hdr3-btn .material-symbols-outlined { font-size: 20px; }

/* ---------- Adaptable ---------- */
@media (max-width: 1050px) {
  .hdr3-live-txt p { -webkit-line-clamp: 1; }
  .hdr3-live-name { font-size: 20px; max-width: 170px; }
}
@media (max-width: 860px) {
  .hdr3-social-lbl { display: none; }
  .hdr3-live-txt { display: none; }
}
@media (max-width: 700px) {
  .hdr3-top-in { flex-wrap: wrap; min-height: 0; }
  .hdr3-flag { padding: 7px 11px; font-size: 10px; }
  .hdr3-ticker { order: 3; flex: 1 0 100%; padding: 9px 0; min-height: 34px; }
  .hdr3-tick { left: 0; right: 0; font-size: 12.5px; }
  .hdr3-tick-nav { order: 2; padding: 4px 0; }
  .hdr3-social { margin-left: auto; padding: 4px 8px 4px 0; gap: 5px; }
  .hdr3-social a { width: 23px; height: 23px; }
  /* Solo el logo: el nombre completo parte el header en dos líneas */
  .hdr3-brand span { display: none; }
  .hdr3-brand img { height: 46px; }
  .hdr3-nav .nav-inner { gap: 10px; }
  .hdr3-nav .nav-actions { margin-left: auto; gap: 2px; }
  .hdr3-live-in { gap: 14px; padding: 12px 0; }
  .hdr3-live-cover { width: 54px; height: 54px; }
  .hdr3-live-now { border-right: 0; padding-right: 0; }
  .hdr3-live-name { font-size: 18px; max-width: none; }
  .hdr3-live-cta { margin-left: auto; }
  .hdr3-btn { padding: 10px 16px; font-size: 12px; }
  .hdr3-btn .material-symbols-outlined { font-size: 18px; }
}
@media (max-width: 460px) {
  .hdr3-btn span:not(.material-symbols-outlined) { display: none; }
  .hdr3-btn { padding: 11px; border-radius: 50%; }
}

/* ==========================================================================
   SLIDER DE PORTADA (tema Experto)
   ========================================================================== */
.hslider { position: relative; border-radius: 22px; overflow: hidden;
  margin: 30px 0 24px;   /* aire con la franja de programación de arriba */
  aspect-ratio: 21/9; min-height: 320px; max-height: 560px; background: rgb(var(--surface-3)); }
.hslider-track { position: absolute; inset: 0; }

.hslide { position: absolute; inset: 0; display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s ease; }
.hslide.on { opacity: 1; visibility: visible; }
a.hslide { cursor: pointer; }
.hslide-bg { position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 7s ease-out; }
.hslide.on .hslide-bg { transform: scale(1); }
.hslide::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(var(--primary) / .92) 0%, rgb(var(--primary) / .45) 42%, transparent 78%); }

.hslide-body { position: relative; z-index: 1; padding: 34px 40px 56px; max-width: 660px;
  color: rgb(var(--on-primary)); display: flex; flex-direction: column; gap: 10px; }
.hslide-body h2 { font-family: var(--font-heading); font-size: clamp(24px, 3.6vw, 42px); line-height: 1.08; font-weight: 800; }
.hslide-body p { font-size: clamp(14px, 1.4vw, 17px); line-height: 1.45; opacity: .95; max-width: 540px; }
.hslide-btn { align-self: flex-start; margin-top: 6px; pointer-events: none;
  background: rgb(var(--accent)); color: rgb(var(--on-accent)); }
a.hslide:hover .hslide-btn { transform: translateY(-2px); }
.hslide-btn .material-symbols-outlined { font-size: 19px; }

.hslider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(var(--bg) / .82); color: rgb(var(--text)); backdrop-filter: blur(6px);
  border: 1px solid rgb(var(--border)); opacity: 0; transition: opacity .25s ease, background .2s ease; }
.hslider:hover .hslider-btn { opacity: 1; }
.hslider-btn:hover { background: rgb(var(--accent)); color: rgb(var(--on-accent)); border-color: transparent; }
.hslider-btn.prev { left: 16px; }
.hslider-btn.next { right: 16px; }

.hslider-dots { position: absolute; left: 40px; bottom: 20px; z-index: 4; display: flex; gap: 7px; }
.hslider-dot { width: 9px; height: 9px; border-radius: 50%; padding: 0;
  background: rgb(var(--on-primary) / .45); transition: all .25s ease; }
.hslider-dot.on { width: 26px; border-radius: 5px; background: rgb(var(--accent)); }

.hslider-play { position: absolute; right: 22px; bottom: 20px; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px;
  background: rgb(var(--accent)); color: rgb(var(--on-accent));
  font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  transition: transform .18s ease, box-shadow .18s ease; }
.hslider-play:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgb(0 0 0 / .55); }
.hslider-play .material-symbols-outlined { font-size: 21px; font-variation-settings: 'FILL' 1; }

@media (max-width: 860px) {
  .hslider { aspect-ratio: 4/3; min-height: 300px; margin: 20px 0 18px; }
  .hslide-body { padding: 24px 22px 108px; }
  .hslider-dots { left: 22px; bottom: 22px; }
  .hslider-btn { opacity: 1; width: 38px; height: 38px; }
  .hslider-play { left: 22px; right: auto; bottom: 58px; padding: 10px 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hslide-bg, .hslide { transition: none; }
  .hslide.on .hslide-bg { transform: scale(1); }
}

/* ==========================================================================
   NOTICIAS · DISEÑO 3 "MOSAICO" (tema Experto)
   ========================================================================== */

/* Título centrado entre dos líneas */
.nmos-head { position: relative; text-align: center; margin-bottom: 26px; }
.nmos-head::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgb(var(--primary) / .35); }
.nmos-head span { position: relative; display: inline-block; padding: 8px 26px; border-radius: 6px;
  background: rgb(var(--primary)); color: rgb(var(--on-primary));
  font-family: var(--font-heading); font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; }

/* Mosaico: una grande, dos medianas y una alta */
.nmos-grid { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(150px, 1fr)); height: 520px; }
.nmos-grid .big  { grid-column: 1; grid-row: 1 / span 2; }
.nmos-grid .sm:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.nmos-grid .sm:nth-of-type(3) { grid-column: 2; grid-row: 2; }
.nmos-grid .tall { grid-column: 3; grid-row: 1 / span 2; }

.nmos { position: relative; overflow: hidden; border-radius: 10px; display: flex; align-items: flex-end;
  background: rgb(var(--surface-3)); isolation: isolate; }
.nmos-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .5s ease; }
.nmos:hover .nmos-img { transform: scale(1.06); }
.nmos::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / .88) 0%, rgb(0 0 0 / .55) 34%, rgb(0 0 0 / .05) 68%); }

.nmos-body { position: relative; padding: 16px 18px 18px; color: #fff; display: flex; flex-direction: column; gap: 7px; }
.nmos-body h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.22;
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.nmos-body p { font-size: 13.5px; line-height: 1.45; opacity: .88;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nmos-cat { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 4px 12px 4px 9px; border-radius: 999px; background: #fff; color: rgb(var(--primary));
  font-size: 11.5px; font-weight: 700; }
.nmos-cat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--primary)); }

/* Tamaños de titular según el hueco */
.nmos.big  .nmos-body { padding: 22px 26px 26px; }
.nmos.big  h3 { font-size: clamp(19px, 2vw, 25px); -webkit-line-clamp: 3; }
.nmos.sm   h3 { font-size: 15px; -webkit-line-clamp: 3; }
.nmos.tall h3 { font-size: 16px; -webkit-line-clamp: 3; }

.nmos-more { margin-top: 18px; text-align: center; }
.nmos-more a { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700;
  color: rgb(var(--accent)); }
.nmos-more a:hover { text-decoration: underline; }
.nmos-more .material-symbols-outlined { font-size: 18px; }

@media (max-width: 900px) {
  .nmos-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 170px 170px; height: auto; }
  .nmos-grid .big  { grid-column: 1 / span 2; grid-row: 1; }
  .nmos-grid .sm:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .nmos-grid .sm:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  .nmos-grid .tall { grid-column: 1 / span 2; grid-row: 3; }
  .nmos.big h3 { -webkit-line-clamp: 2; }
  .nmos.big .nmos-body p { display: none; }
}
@media (max-width: 560px) {
  .nmos-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 190px); }
  .nmos-grid .big, .nmos-grid .tall,
  .nmos-grid .sm:nth-of-type(2), .nmos-grid .sm:nth-of-type(3) { grid-column: 1; grid-row: auto; }
  .nmos-head span { font-size: 12.5px; padding: 7px 18px; }
}
@media (prefers-reduced-motion: reduce) { .nmos:hover .nmos-img { transform: none; } }

/* ---------- Tira de titulares por categoría (bajo el mosaico) ---------- */
.ntira { display: flex; align-items: stretch; gap: 14px; margin-top: 16px;
  padding: 12px 14px; border-radius: 12px; background: rgb(var(--surface-2)); }

.ntira-lbl { flex: 0 0 auto; display: flex; align-items: center; padding-left: 12px;
  border-left: 4px solid rgb(var(--primary)); }
.ntira-lbl span { font-family: var(--font-heading); font-size: 13px; font-weight: 800; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .02em; color: rgb(var(--primary)); }
[data-theme="dark"] .ntira-lbl span { color: rgb(var(--accent)); }
[data-theme="dark"] .ntira-lbl { border-left-color: rgb(var(--accent)); }

.ntira-row { flex: 1 1 auto; min-width: 0; display: flex; gap: 12px; overflow-x: auto;
  scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x proximity; }
.ntira-row::-webkit-scrollbar { display: none; }

.ntira-card { flex: 0 0 auto; width: 292px; scroll-snap-align: start;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 10px;
  background: rgb(var(--surface-3)); transition: background .18s ease, transform .18s ease; }
.ntira-card:hover { background: rgb(var(--accent) / .14); transform: translateY(-2px); }

.ntira-img { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px rgb(var(--primary)); background: rgb(var(--surface)); }
[data-theme="dark"] .ntira-img { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.ntira-img img { width: 100%; height: 100%; object-fit: cover; }

.ntira-tit { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ntira-nav { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ntira-nav button { width: 28px; height: 26px; display: grid; place-items: center; border-radius: 7px;
  color: rgb(var(--muted)); transition: background .15s ease, color .15s ease; }
.ntira-nav button:hover { background: rgb(var(--accent) / .16); color: rgb(var(--accent)); }
.ntira-nav .material-symbols-outlined { font-size: 22px; }

@media (max-width: 720px) {
  .ntira { flex-direction: column; gap: 10px; padding: 12px; }
  .ntira-lbl { padding-left: 10px; }
  .ntira-nav { flex-direction: row; justify-content: flex-end; }
  .ntira-card { width: 250px; }
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP (todos los diseños)
   ========================================================================== */
.wa-float { position: fixed; left: 20px; bottom: 108px; z-index: 55;
  display: flex; align-items: center; gap: 10px; }
.wa-float-btn { position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0; color: #fff;
  background: linear-gradient(145deg, #4ade80, #22c55e 55%, #16a34a);
  box-shadow: 0 10px 24px -8px rgb(34 197 94 / .7), 0 16px 40px -14px rgb(0 0 0 / .45);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease; }
.wa-float:hover .wa-float-btn { transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px -8px rgb(34 197 94 / .85), 0 22px 50px -16px rgb(0 0 0 / .55); }
.wa-float:active .wa-float-btn { transform: scale(.96); }
.wa-float:focus-visible .wa-float-btn { outline: 3px solid rgb(34 197 94 / .5); outline-offset: 4px; }

/* Aro que late para que se note, sin ser molesto */
.wa-float-btn::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgb(34 197 94 / .55); animation: waHalo 3s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes waHalo {
  0%   { box-shadow: 0 0 0 0 rgb(34 197 94 / .5); }
  70%  { box-shadow: 0 0 0 16px rgb(34 197 94 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); }
}

.wa-float-tip { order: 2; padding: 9px 15px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: rgb(var(--text));
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border));
  box-shadow: 0 10px 26px -12px rgb(0 0 0 / .5);
  opacity: 0; transform: translateX(-8px); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease; }
.wa-float:hover .wa-float-tip { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .wa-float { left: 14px; bottom: 96px; }
  .wa-float-btn { width: 50px; height: 50px; }
  .wa-float-btn svg { width: 25px; height: 25px; }
  .wa-float-tip { display: none; }   /* en el celular solo el botón */
}
@media (prefers-reduced-motion: reduce) { .wa-float-btn::before { animation: none; } }
@media print { .wa-float { display: none !important; } }

/* ==========================================================================
   PLAYER · ESTILO 2 "BARRA" (tema Experto)
   ========================================================================== */
.player-extra { display: none; }

.player.player-bar {
  left: 0; right: 0; bottom: 0; width: 100%; max-width: none; transform: none;
  border-radius: 0; padding: 10px max(18px, 3vw); gap: 18px; overflow: hidden;
  background: rgb(var(--primary));
  background: linear-gradient(100deg, rgb(var(--primary)), rgb(var(--primary-strong)));
  color: rgb(var(--on-primary));
  border-top: 1px solid rgb(var(--on-primary) / .16); box-shadow: 0 -12px 34px -18px rgb(0 0 0 / .6);
}
body:has(.player-bar) { padding-bottom: 96px; }

/* Ecualizador de fondo */
.player-bar .player-eq { position: absolute; inset: 0; z-index: 0; display: flex; align-items: flex-end;
  gap: 5px; padding: 0 6px; pointer-events: none; opacity: .22; }
.player-bar .player-eq span { flex: 1 1 0; min-width: 3px; height: 10px; border-radius: 3px 3px 0 0;
  background: rgb(var(--on-primary)); will-change: height;
  transition: height .45s ease; }
/* Quietas y bajitas mientras nadie escucha; se mueven al darle play */
.player-bar.playing .player-eq span { animation: eqbar 1.1s ease-in-out infinite; }
.player-bar .player-eq { transition: opacity .4s ease; opacity: .12; }
.player-bar.playing .player-eq { opacity: .26; }
@media (prefers-reduced-motion: reduce) { .player-bar .player-eq span { animation: none; } }

.player-bar > *:not(.player-eq) { position: relative; z-index: 1; }

/* Izquierda: logo cuadrado + estado y nombre */
.player-bar .player-track { order: 1; flex: 1 1 0; gap: 14px; }
.player-bar .player-cover { width: 58px; height: 58px; border-radius: 10px;
  box-shadow: 0 0 0 1px rgb(var(--on-primary) / .25); }
.player-bar.playing .player-cover img { animation: none; }
.player-bar .player-meta { gap: 3px; }
.player-bar .player-meta h6 { font-family: var(--font-heading); font-size: 17px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em; max-width: 260px; }
.player-bar .player-meta .live { order: -1; font-size: 10px; letter-spacing: .14em; color: rgb(var(--on-primary)); }
.player-bar .player-meta .live .dot { background: rgb(var(--on-primary)); }
.player-bar .player-meta .live.is-pod,
.player-bar .player-meta .live.is-retry,
.player-bar .player-meta .live.is-error { color: rgb(var(--on-primary)); opacity: .85; }

/* Centro: volumen + play grande */
.player-bar .player-vol { order: 2; gap: 0; }
.player-bar .player-vol input[type=range] { display: none; }
.player-bar .player-vol .vol-btn .material-symbols-outlined { color: rgb(var(--on-primary)); opacity: .85; font-size: 24px; }
.player-bar .player-vol .vol-btn:hover .material-symbols-outlined { opacity: 1; }

.player-bar .player-controls { order: 3; flex: 0 0 auto; gap: 10px; }
.player-bar .play-btn { width: 56px; height: 56px;
  background: rgb(var(--on-primary) / .18); color: rgb(var(--on-primary));
  box-shadow: 0 0 0 6px rgb(var(--on-primary) / .1); }
.player-bar .play-btn:hover { background: rgb(var(--on-primary) / .3); }
.player-bar .play-btn .material-symbols-outlined { font-size: 30px; }
.player-bar .play-ring { border-color: rgb(var(--on-primary) / .3); border-top-color: rgb(var(--on-primary)); }
.player-bar .player-controls .icon-btn .material-symbols-outlined { color: rgb(var(--on-primary)); }

/* Derecha: compartir y pantalla completa */
.player-bar .player-extra { order: 4; display: flex; align-items: center; gap: 4px; flex: 1 1 0; justify-content: flex-end; }
.player-bar .player-extra .icon-btn { width: 40px; height: 40px; color: rgb(var(--on-primary)); opacity: .8; }
.player-bar .player-extra .icon-btn:hover { opacity: 1; background: rgb(var(--on-primary) / .15); }

.player-bar .player-progress { left: max(18px, 3vw); right: max(18px, 3vw); bottom: 2px; }
.player-bar.is-podcast { padding-bottom: 14px; }

@media (max-width: 900px) {
  .player-bar .player-meta h6 { max-width: 150px; font-size: 15px; }
  .player-bar .player-extra { flex: 0 0 auto; }
  .player-bar #fs-btn { display: none; }
}
@media (max-width: 640px) {
  .player.player-bar { padding: 9px 12px; gap: 10px; }
  body:has(.player-bar) { padding-bottom: 88px; }
  .player-bar .player-cover { width: 46px; height: 46px; }
  .player-bar .play-btn { width: 48px; height: 48px; box-shadow: none; }
  .player-bar .player-meta h6 { max-width: 110px; font-size: 14px; }
  .player-bar .player-extra { gap: 0; }
  .player-bar .player-extra .icon-btn { width: 36px; height: 36px; }
}

/* ==========================================================================
   PLAYER · ESTILO 3 "DISCO" (tema Experto)
   Tarjeta compacta a la derecha con un vinilo que gira mientras suena.
   Se pliega a un solo vinilo para no estorbar.
   ========================================================================== */
#disc-fold { display: none; }

.player.player-disc {
  left: auto; right: 22px; bottom: 22px; transform: none;
  width: 336px; max-width: calc(100vw - 44px); min-width: 0;
  /* Rejilla en vez de flex: con flex el título largo empujaba el play a
     la fila de abajo. Así cada pieza tiene su sitio fijo. */
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 12px 12px;
  padding: 14px 18px 14px 14px; border-radius: 20px;
  background: rgb(var(--surface) / .93); border: 1px solid rgb(var(--border));
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 60px -22px rgb(0 0 0 / .7);
  transition: width .35s cubic-bezier(.16,1,.3,1), padding .35s ease, border-radius .35s ease;
}
body:has(.player-disc) { padding-bottom: 130px; }

.player-disc .player-track    { grid-area: 1 / 1; min-width: 0; gap: 13px; }
.player-disc .player-controls { grid-area: 1 / 2; }
.player-disc .player-vol      { grid-area: 2 / 1; min-width: 0; }
.player-disc .player-extra    { grid-area: 2 / 2; }
.player-disc .player-progress { grid-area: 3 / 1 / auto / span 2; position: static; height: auto; }
.player-disc .player-meta     { min-width: 0; gap: 3px; }
.player-disc .player-meta h6  { max-width: 100%; font-size: 14.5px; }
.player-disc .player-meta .live { order: -1; }

/* ---- El vinilo ---- */
.player-disc .player-cover { width: 66px; height: 66px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 6px 18px -6px rgb(0 0 0 / .6), inset 0 0 0 1px rgb(var(--border)); }
.player-disc .player-cover img { animation: none; }
.player-disc.playing .player-cover { animation: spin 4.5s linear infinite; }

/* Surcos del disco */
.disc-rings { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: .55;
  background: repeating-radial-gradient(circle at 50% 50%,
    rgb(0 0 0 / .5) 0 1px, rgb(255 255 255 / .08) 1px 2px, transparent 2px 5px); }
/* Agujero del centro */
.disc-hole { position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  border-radius: 50%; background: rgb(var(--surface)); pointer-events: none;
  box-shadow: 0 0 0 3px rgb(var(--accent) / .55), inset 0 0 3px rgb(0 0 0 / .5); }

/* ---- Controles ---- */
.player-disc .player-controls { gap: 6px; }
.player-disc .play-btn { width: 50px; height: 50px; }
.player-disc .play-btn .material-symbols-outlined { font-size: 27px; }

/* Segunda fila: volumen a la izquierda, acciones a la derecha */
.player-disc .player-vol { gap: 8px; padding-top: 12px; border-top: 1px solid rgb(var(--border) / .7); }
.player-disc .player-vol input[type=range] { flex: 1 1 auto; width: auto; min-width: 0; }
.player-disc .player-extra { display: flex; align-items: center; gap: 2px;
  padding-top: 12px; border-top: 1px solid rgb(var(--border) / .7); }
.player-disc .player-extra .icon-btn { width: 34px; height: 34px; }
.player-disc .player-extra .material-symbols-outlined { font-size: 19px; color: rgb(var(--muted)); }
.player-disc .player-extra .icon-btn:hover .material-symbols-outlined { color: rgb(var(--accent)); }
.player-disc #disc-fold { display: grid; }
.player-disc #disc-fold .material-symbols-outlined { transition: transform .3s ease; }

/* ---- Plegado: queda solo el vinilo ---- */
.player.player-disc.folded { display: block; position: fixed; width: 90px; height: 90px;
  padding: 12px; border-radius: 50%; }
.player-disc.folded .player-meta,
.player-disc.folded .player-vol,
.player-disc.folded .player-progress,
.player-disc.folded .player-controls .icon-btn,
.player-disc.folded .player-extra .icon-btn:not(#disc-fold) { display: none; }
.player-disc.folded .player-track { display: block; }
.player-disc.folded .player-extra { padding-top: 0; border-top: 0; position: absolute; top: -6px; right: -6px; }
.player-disc.folded #disc-fold { width: 26px; height: 26px; border-radius: 50%;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); }
.player-disc.folded #disc-fold .material-symbols-outlined { transform: rotate(180deg); font-size: 16px; }
.player-disc.folded .player-controls { position: absolute; inset: 0; display: grid; place-items: center; }
.player-disc.folded .play-btn { width: 40px; height: 40px; background: rgb(var(--accent) / .92);
  box-shadow: 0 4px 14px -4px rgb(0 0 0 / .6); }
.player-disc.folded .play-btn .material-symbols-outlined { font-size: 22px; }

@media (max-width: 640px) {
  .player.player-disc { right: 12px; left: auto; bottom: 12px; width: min(300px, calc(100vw - 24px)); padding: 12px 14px 12px 12px; }
  body:has(.player-disc) { padding-bottom: 120px; }
  .player-disc .player-cover { width: 56px; height: 56px; }

  .player-disc .player-vol input[type=range] { display: block; }
}
@media (prefers-reduced-motion: reduce) { .player-disc.playing .player-cover { animation: none; } }

/* ==========================================================================
   PLAYER · ESTILO 1 "PÍLDORA"  ·  ecualizador de fondo y minimizar
   Es el reproductor que tienen todos los clientes.
   ========================================================================== */
.player.player-pill { position: fixed; overflow: hidden; }
.player-pill > *:not(.player-eq) { position: relative; z-index: 1; }

/* Ecualizador suave detrás, con el color de acento */
.player-pill .player-eq { position: absolute; inset: 0; z-index: 0; display: flex; align-items: flex-end;
  gap: 4px; padding: 0 6px; pointer-events: none; opacity: .1; transition: opacity .4s ease; }
.player-pill .player-eq span { flex: 1 1 0; min-width: 2px; height: 8px; border-radius: 3px 3px 0 0;
  background: rgb(var(--accent)); transition: height .45s ease; will-change: height; }
.player-pill.playing .player-eq { opacity: .2; }
.player-pill.playing .player-eq span { animation: eqbar 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .player-pill .player-eq span { animation: none; } }

/* Botón de minimizar: discreto, al final de la fila */
.player-pill .player-extra { display: flex; align-items: center; margin-left: 2px; }
.player-pill .player-extra .icon-btn:not(#disc-fold) { display: none; }
.player-pill #disc-fold { display: grid; width: 34px; height: 34px; }
.player-pill #disc-fold .material-symbols-outlined { font-size: 21px; color: rgb(var(--muted)); transition: transform .3s ease; }
.player-pill #disc-fold:hover .material-symbols-outlined { color: rgb(var(--accent)); }

/* ---- Minimizado: queda una píldora pequeña con carátula y play ---- */
.player.player-pill.folded { width: auto; min-width: 0; max-width: none; padding: 8px 10px 8px 8px; gap: 10px; }
.player-pill.folded .player-meta,
.player-pill.folded .player-vol,
.player-pill.folded .player-progress,
.player-pill.folded .player-controls .icon-btn { display: none; }
.player-pill.folded .player-cover { width: 38px; height: 38px; }
.player-pill.folded .play-btn { width: 40px; height: 40px; }
.player-pill.folded .play-btn .material-symbols-outlined { font-size: 24px; }
.player-pill.folded .player-controls { flex: 0 0 auto; }
.player-pill.folded #disc-fold { width: 28px; height: 28px; }
.player-pill.folded #disc-fold .material-symbols-outlined { transform: rotate(180deg); font-size: 18px; }
.player-pill.folded .player-eq { opacity: 0; }
/* Al minimizar deja de hacer falta tanto aire abajo */
body:has(.player-pill.folded) { padding-bottom: 78px; }

@media (max-width: 640px) {
  .player-pill #disc-fold { width: 30px; height: 30px; }
  .player.player-pill.folded { width: auto; border-radius: 999px; bottom: 12px; }
}
