/* SuperQ · estilos del sitio (móvil primero). Colores y medidas en tokens.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--sq-bg); color: var(--sq-text);
  font: 400 var(--sq-text-base)/1.55 var(--sq-font);
  padding-bottom: calc(var(--sq-bar-h, 72px) + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sq-blue-text); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--sq-yellow); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }

.sq-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sq-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--sq-yellow); color: var(--sq-ink); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.sq-skip:focus { top: 12px; }
.sq-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sq-icon { width: 1.4em; height: 1.4em; flex: none; }

/* ------------------------------------------------ Cabecera */
.sq-header { position: sticky; top: 0; z-index: 40; background: rgba(14, 14, 16, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sq-border); }
.admin-bar .sq-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .sq-header { top: 32px; } }
.sq-header__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.sq-header__brand { display: block; margin-right: auto; }
.sq-logo--header { width: 132px; height: auto; }
.sq-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.sq-menu-btn__close, .sq-menu-open .sq-menu-btn__open { display: none; }
.sq-menu-open .sq-menu-btn__close { display: inline; }
.sq-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sq-bg); border-bottom: 1px solid var(--sq-border); padding: 8px 16px 16px; max-height: calc(100vh - 64px); overflow: auto; }
.sq-menu-open .sq-nav { display: block; }
.sq-nav__list { list-style: none; margin: 0; padding: 0; }
.sq-nav a { display: block; padding: 12px 8px; color: var(--sq-text); text-decoration: none; font-weight: 600; font-size: 18px; border-radius: 8px; }
.sq-nav a[aria-current="page"], .sq-nav .current-menu-item > a { color: var(--sq-yellow); }
.sq-nav a:hover { background: var(--sq-surface); }
@media (min-width: 960px) {
  .sq-menu-btn { display: none; }
  .sq-nav { display: block; position: static; padding: 0; border: 0; background: none; max-height: none; }
  .sq-nav__list { display: flex; gap: 4px; }
  .sq-nav a { font-size: 15px; padding: 8px 12px; }
  .sq-logo--header { width: 156px; }
}

/* ------------------------------------------------ Tipografía */
.sq-h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; margin: 0 0 8px; }
.sq-h2 { font-size: clamp(20px, 4vw, 26px); line-height: 1.2; font-weight: 800; margin: 0 0 12px; }
.sq-lead { color: var(--sq-text-muted); font-size: 18px; margin: 0 0 20px; }
.sq-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sq-text-muted); }
.sq-eyebrow a { color: inherit; }
.sq-note { color: var(--sq-text-muted); font-size: 14px; margin: 8px 0; }
.sq-empty { color: var(--sq-text-muted); background: var(--sq-surface); border-radius: var(--sq-radius); padding: 16px; margin: 0; }
.sq-prose { max-width: 68ch; }
.sq-prose h2 { font-size: 22px; margin-top: 32px; }

/* ------------------------------------------------ Botones */
.sq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--sq-touch); padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .12s ease;
}
.sq-btn:active { transform: scale(.97); }
.sq-btn--xl { min-height: 64px; font-size: 19px; padding: 0 28px; }
.sq-btn--sm { min-height: 40px; font-size: 14px; padding: 0 14px; }
.sq-btn--primary { background: var(--sq-red-ui); color: #fff; }
.sq-btn--primary:hover { background: #b80d10; color: #fff; }
.sq-btn--yellow { background: var(--sq-yellow); color: var(--sq-ink); }
.sq-btn--yellow:hover { background: #fff35c; color: var(--sq-ink); }
.sq-btn--ghost { background: transparent; color: var(--sq-text); border-color: var(--sq-border); }
.sq-btn--ghost:hover { border-color: var(--sq-text); color: #fff; }
.sq-btn--wa { background: #1f8f4a; color: #fff; } /* verde con contraste AA sobre blanco */
.sq-btn--wa:hover { background: #18773d; color: #fff; }
.sq-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sq-border); background: var(--sq-surface); cursor: pointer; }
.sq-icon-btn[aria-pressed="true"] { background: var(--sq-yellow); color: var(--sq-ink); }

.sq-actions { display: grid; gap: 12px; margin: 20px 0; }
@media (min-width: 560px) { .sq-actions { grid-template-columns: repeat(2, minmax(0, max-content)); } }

/* Iconos reproducir/pausa según el estado */
.sq-when-playing { display: none; }
.sq-audio-on .sq-when-playing { display: inline-flex; }
.sq-audio-on .sq-when-stopped { display: none; }
.sq-when-playing, .sq-when-stopped { align-items: center; }

/* ------------------------------------------------ Portada */
.sq-hero {
  position: relative; overflow: hidden; padding: 24px 0 32px;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(254, 236, 2, .16), transparent 60%),
    radial-gradient(90% 60% at 0% 20%, rgba(245, 19, 22, .2), transparent 60%),
    radial-gradient(80% 60% at 50% 100%, rgba(2, 103, 183, .22), transparent 70%),
    var(--sq-bg);
  border-bottom: 1px solid var(--sq-border);
}
.sq-hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sq-logo--hero { width: min(420px, 82vw); height: auto; margin: 8px auto 4px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); }
.sq-hero .sq-actions { width: 100%; max-width: 560px; }
@media (min-width: 560px) { .sq-hero .sq-actions { grid-template-columns: 1fr 1fr; } }
.sq-hero .sq-video { width: 100%; max-width: 860px; text-align: left; }
.sq-hero .sq-now { width: 100%; max-width: 860px; text-align: left; }

.sq-notice { background: var(--sq-surface-2); border-left: 4px solid var(--sq-yellow); padding: 12px 16px; border-radius: 8px; max-width: 860px; width: 100%; text-align: left; }

/* Al aire */
.sq-now { display: grid; gap: 12px; background: var(--sq-surface); border: 1px solid var(--sq-border); border-radius: var(--sq-radius); padding: 16px; margin: 8px 0 0; }
@media (min-width: 720px) { .sq-now { grid-template-columns: 1.4fr 1fr auto; align-items: center; } }
.sq-now__name { font-size: 22px; font-weight: 900; margin: 0; line-height: 1.2; }
.sq-now__meta, .sq-now__next { margin: 2px 0 0; color: var(--sq-text-muted); }
.sq-now__next { color: var(--sq-text); font-weight: 600; }
.sq-now__item--next { border-top: 1px solid var(--sq-border); padding-top: 12px; }
@media (min-width: 720px) { .sq-now__item--next { border-top: 0; padding-top: 0; border-left: 1px solid var(--sq-border); padding-left: 16px; } }
.sq-now__all { font-weight: 700; white-space: nowrap; }
.sq-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sq-red); box-shadow: 0 0 0 0 rgba(245, 19, 22, .6); animation: sq-pulse 2s infinite; }
@keyframes sq-pulse { 70% { box-shadow: 0 0 0 8px rgba(245, 19, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 19, 22, 0); } }

/* ------------------------------------------------ Secciones */
.sq-page { padding-top: 24px; padding-bottom: 32px; }
.sq-section { margin: 32px 0; }
.sq-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sq-section__head a { font-weight: 700; }
.sq-panel { background: var(--sq-surface); border-radius: var(--sq-radius); padding: 20px; }

.sq-wa-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #10301d, var(--sq-surface)); border: 1px solid #1f5a35; border-radius: var(--sq-radius); padding: 20px; }
.sq-wa-cta p { margin: 0; color: var(--sq-text-muted); }
.sq-app-cta { background: var(--sq-surface); border-radius: var(--sq-radius); padding: 20px; }

/* Tarjetas */
.sq-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.sq-card { background: var(--sq-surface); border-radius: var(--sq-radius); overflow: hidden; border: 1px solid var(--sq-border); }
.sq-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.sq-card__link:hover .sq-card__title { color: var(--sq-yellow); }
.sq-card__body { padding: 12px 16px 16px; }
.sq-card__title { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.sq-card__meta { margin: 0; color: var(--sq-text); }
.sq-card__time { margin: 4px 0 0; color: var(--sq-text-muted); font-size: 14px; }
.sq-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sq-surface-2); }
.sq-media--placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sq-red-ui), #7a0a0c 55%, var(--sq-blue)); }
.sq-media--placeholder span { font-size: 44px; font-weight: 900; color: var(--sq-yellow); text-shadow: 3px 3px 0 var(--sq-ink); letter-spacing: .02em; }

/* Programación por día */
.sq-day { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sq-day__item { display: grid; grid-template-columns: 1fr; gap: 2px 16px; background: var(--sq-surface); border-radius: var(--sq-radius); padding: 14px 16px; border-left: 4px solid transparent; }
@media (min-width: 640px) { .sq-day__item { grid-template-columns: 200px 1fr; align-items: center; } }
.sq-day__item.is-now { border-left-color: var(--sq-red); background: var(--sq-surface-2); }
.sq-day__item.is-past { background: transparent; border: 1px solid var(--sq-surface-2); }
.sq-day__item.is-past .sq-day__name a { color: var(--sq-text-muted); }
.sq-day__time { margin: 0; font-weight: 700; color: var(--sq-text-muted); font-variant-numeric: tabular-nums; }
.sq-day__name { margin: 0; font-size: 18px; font-weight: 800; }
.sq-day__name a { color: var(--sq-text); text-decoration: none; }
.sq-day__name a:hover { color: var(--sq-yellow); text-decoration: underline; }
.sq-day__hosts, .sq-day__note { margin: 0; color: var(--sq-text-muted); }
.sq-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--sq-red-text); }

/* Pestañas de días */
.sq-tabs { margin-top: 24px; }
.sq-tabs__list { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.sq-tabs__list [role="tab"] { flex: none; display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; min-height: 52px; justify-content: center; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--sq-border); background: var(--sq-surface); font-weight: 700; cursor: pointer; }
.sq-tabs__list [aria-selected="true"] { background: var(--sq-yellow); color: var(--sq-ink); border-color: var(--sq-yellow); }
.sq-tabs__long { display: none; }
.sq-tabs__today { font-size: 11px; font-weight: 800; text-transform: uppercase; }
@media (min-width: 720px) { .sq-tabs__short { display: none; } .sq-tabs__long { display: inline; } }

/* Programa / locutor */
.sq-show__head { display: grid; gap: 20px; margin-bottom: 24px; }
@media (min-width: 800px) { .sq-show__head { grid-template-columns: 420px 1fr; align-items: center; } }
.sq-show__media { border-radius: var(--sq-radius); }
.sq-show__media--square { aspect-ratio: 1; max-width: 360px; }
.sq-show__times { list-style: none; padding: 0; margin: 8px 0 0; font-weight: 700; font-size: 18px; }
.sq-people { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.sq-people a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 140px; text-align: center; color: var(--sq-text); text-decoration: none; font-weight: 700; }
.sq-people__media { width: 120px; height: 120px; border-radius: 50%; aspect-ratio: 1; }
.sq-people__media.sq-media--placeholder span { font-size: 34px; }
.sq-people--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.sq-people--grid a { width: auto; }

/* ------------------------------------------------ Video */
.sq-video { margin: 16px 0; }
.sq-video__frame { position: relative; background: #000; border-radius: var(--sq-radius); overflow: hidden; aspect-ratio: 16 / 9; }
.sq-video__frame video { width: 100%; height: 100%; object-fit: contain; }
.sq-video__frame:fullscreen { border-radius: 0; aspect-ratio: auto; }
.sq-video__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; padding: 16px; background: rgba(0, 0, 0, .7); font-weight: 700; }
.sq-video__overlay[hidden] { display: none; }
.sq-video__overlay.is-tap { cursor: pointer; font-size: 18px; }
.sq-video__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.sq-video__status { margin: 0 auto 0 0; display: flex; align-items: center; gap: 8px; font-weight: 700; }

/* Estado (punto de color) */
.sq-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sq-text-muted); flex: none; }
[data-sq-audio="playing"] .sq-bar .sq-dot, .sq-video[data-state="playing"] .sq-dot { background: var(--sq-ok); }
[data-sq-audio="connecting"] .sq-bar .sq-dot, [data-sq-audio="retrying"] .sq-bar .sq-dot,
.sq-video[data-state="connecting"] .sq-dot, .sq-video[data-state="retrying"] .sq-dot { background: var(--sq-warn); }
[data-sq-audio="error"] .sq-bar .sq-dot, [data-sq-audio="offline"] .sq-bar .sq-dot,
.sq-video[data-state="error"] .sq-dot, .sq-video[data-state="offline"] .sq-dot { background: var(--sq-error); }

/* ------------------------------------------------ Carrusel y patrocinadores */
.sq-carousel { position: relative; }
.sq-carousel__track { border-radius: var(--sq-radius); overflow: hidden; background: var(--sq-surface); }
.sq-carousel__slide img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; background: var(--sq-surface); }
@media (max-width: 640px) { .sq-carousel__slide picture source + img, .sq-carousel__slide img { aspect-ratio: auto; } }
.sq-ad-label { margin: 6px 0 0; font-size: 12px; color: var(--sq-text-muted); text-transform: uppercase; letter-spacing: .08em; }
.sq-carousel__controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: -28px; }
.sq-carousel__count { font-variant-numeric: tabular-nums; color: var(--sq-text-muted); font-size: 14px; min-width: 48px; text-align: center; }
.sq-sponsors__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.sq-sponsors__list a { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; padding: 12px; aspect-ratio: 2 / 1; }
.sq-sponsors__list img { max-height: 100%; width: auto; object-fit: contain; }

/* ------------------------------------------------ Contacto y redes */
.sq-contact { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 16px 0 32px; }
.sq-contact__item { display: flex; gap: 12px; align-items: center; background: var(--sq-surface); border-radius: var(--sq-radius); padding: 16px; color: var(--sq-text); text-decoration: none; min-height: 72px; }
a.sq-contact__item:hover { background: var(--sq-surface-2); color: #fff; }
.sq-social { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.sq-social a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; border-radius: 22px; background: var(--sq-surface); color: var(--sq-text); text-decoration: none; }
.sq-social--lg a { padding: 0 16px; font-weight: 700; }

/* ------------------------------------------------ Pie */
.sq-footer { border-top: 1px solid var(--sq-border); padding: 32px 0 16px; margin-top: 48px; background: #09090b; }
.sq-footer__grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .sq-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.sq-logo--footer { width: 160px; height: auto; }
.sq-footer .sq-nav__list a { display: block; padding: 6px 0; color: var(--sq-text); text-decoration: none; }
.sq-footer .sq-nav__list a:hover { color: var(--sq-yellow); }
.sq-footer__contact p { margin: 0 0 6px; }
.sq-footer__legal { color: var(--sq-text-muted); font-size: 13px; margin-top: 24px; }

/* ------------------------------------------------ Barra del reproductor (siempre visible) */
.sq-bar { --sq-bar-h: 72px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(20, 20, 24, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--sq-border); padding-bottom: env(safe-area-inset-bottom); }
.sq-bar__in { display: flex; align-items: center; gap: 12px; height: 72px; }
.sq-bar__play { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--sq-red-ui); color: #fff; cursor: pointer; flex: none; }
.sq-bar__play:hover { background: #b80d10; }
.sq-bar__info { flex: 1; min-width: 0; }
.sq-bar__show { margin: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-bar__status { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sq-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-bar__link { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 48px; padding: 6px; border-radius: 10px; color: var(--sq-text); text-decoration: none; font-size: 11px; font-weight: 700; }
.sq-bar__link:hover { background: var(--sq-surface-2); color: #fff; }
@media (min-width: 640px) { .sq-bar__link { flex-direction: row; font-size: 14px; gap: 8px; padding: 10px 14px; } }

/* Burbuja de WhatsApp: encima de la barra, sin tapar controles */
.sq-wa-bubble { position: fixed; right: 16px; bottom: calc(72px + 16px + env(safe-area-inset-bottom)); z-index: 45; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #25d366; color: #0b3d1e; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.sq-wa-bubble .sq-icon { width: 30px; height: 30px; }
.sq-wa-bubble:hover { background: #3be27a; color: #0b3d1e; }
.sq-menu-open .sq-wa-bubble { display: none; }

/* Carga entre páginas */
.sq-loading .sq-main { opacity: .55; transition: opacity .2s ease .1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
