/* =====================================================================
   Santo Pecado Radio — barra fija, página /radio y ventana emergente
   ===================================================================== */
.radio-ico--pause { display: none; }
html.radio-wants .radio-ico--play { display: none; }
html.radio-wants .radio-ico--pause { display: inline-flex; }
html.radio-blocked .radio-ico--play { display: inline-flex; }
html.radio-blocked .radio-ico--pause { display: none; }

/* Punto "en vivo" */
.radio-live { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-live i, .radio-dot { width: 7px; height: 7px; border-radius: 50%; background: #e2464f; box-shadow: 0 0 0 0 rgba(226, 70, 79, .6); animation: radio-pulse 1.8s infinite; flex: none; display: inline-block; }
.radio-live--lg { font-size: 12px; }
@keyframes radio-pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 70, 79, .55); } 70% { box-shadow: 0 0 0 9px rgba(226, 70, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 70, 79, 0); } }
.main-nav__link--radio { display: inline-flex; align-items: center; gap: 7px; }

/* Ecualizador animado */
.radio-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.radio-eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--gold); transition: height .3s; }
html.radio-playing .radio-eq i { animation: radio-eq 1s ease-in-out infinite; }
html.radio-playing .radio-eq i:nth-child(2) { animation-delay: -.4s; animation-duration: .8s; }
html.radio-playing .radio-eq i:nth-child(3) { animation-delay: -.2s; animation-duration: 1.2s; }
html.radio-playing .radio-eq i:nth-child(4) { animation-delay: -.7s; animation-duration: .9s; }
html.radio-playing .radio-eq i:nth-child(5) { animation-delay: -.1s; }
html.radio-playing .radio-eq i:nth-child(6) { animation-delay: -.5s; animation-duration: 1.1s; }
html.radio-playing .radio-eq i:nth-child(7) { animation-delay: -.3s; animation-duration: .7s; }
@keyframes radio-eq { 0%, 100% { height: 4px; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { html.radio-playing .radio-eq i, .radio-live i, .radio-dot { animation: none; } html.radio-playing .radio-disc { animation: none; } }

/* Barra de progreso y volumen */
.radio-progress, .radio-bar__progress { position: relative; height: 3px; border-radius: 3px; background: rgba(197, 161, 90, .18); overflow: hidden; }
.radio-progress span, .radio-bar__progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); border-radius: inherit; transition: width .5s linear; }
.radio-volume { width: 92px; accent-color: var(--gold); cursor: pointer; }

/* ---------------------------------------------------------------- Barra fija */
.radio-bar { position: fixed; left: 50%; bottom: 14px; z-index: 60; transform: translateX(-50%); width: min(980px, calc(100% - 24px));
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px 13px;
  border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(12, 11, 10, .92); backdrop-filter: blur(14px); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9); }
.radio-bar__play, .radio-big-play { display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #140f07; background: var(--gold-metal); box-shadow: var(--shadow-gold); transition: transform .2s var(--ease); }
.radio-bar__play { width: 44px; height: 44px; }
.radio-bar__play:hover, .radio-big-play:hover { transform: scale(1.06); }
.radio-bar__cover { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #000; border: 1px solid var(--line); }
.radio-bar__meta { display: grid; min-width: 0; line-height: 1.25; }
.radio-bar__meta strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-bar__artist { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-bar__blocked { display: none; font-size: 12px; color: var(--gold-light); }
html.radio-blocked .radio-bar__artist { display: none; }
html.radio-blocked .radio-bar__blocked { display: block; }
html.radio-blocked .radio-bar__play, html.radio-blocked .radio-big-play { animation: radio-pulse-gold 1.6s infinite; }
@keyframes radio-pulse-gold { 0% { box-shadow: 0 0 0 0 rgba(228, 201, 137, .6); } 70% { box-shadow: 0 0 0 14px rgba(228, 201, 137, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 201, 137, 0); } }
.radio-bar__tools { display: flex; align-items: center; gap: 6px; }
.radio-bar__listeners { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-right: 4px; }
.radio-bar__progress { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; }
.icon-btn--sm { width: 34px; height: 34px; }
body:has(.radio-bar) { padding-bottom: 92px; }
body:has(.radio-bar) .toast-stack { bottom: 100px; }

/* Minimizada: sólo un botón flotante */
html.radio-bar-min .radio-bar { left: 14px; transform: none; width: auto; grid-template-columns: auto auto; padding: 6px; border-radius: 999px; gap: 8px; }
html.radio-bar-min .radio-bar > :not(.radio-bar__play):not(.radio-bar__tools), html.radio-bar-min .radio-bar__tools > :not(.radio-bar__min) { display: none; }
html.radio-bar-min .radio-bar__min svg { transform: rotate(180deg); }
html.radio-bar-min body:has(.radio-bar) { padding-bottom: 70px; }

@media (max-width: 760px) {
  .radio-bar { grid-template-columns: auto minmax(0, 1fr) auto; bottom: 8px; width: calc(100% - 16px); gap: 10px; padding: 8px 10px 11px; }
  .radio-bar__cover, .radio-bar > .radio-eq, .radio-volume, .radio-bar__listeners, .radio-bar__tools a { display: none; }
}

/* ---------------------------------------------------------------- Página /radio */
.radio-hero { position: relative; overflow: hidden; padding: 64px 0 90px; border-bottom: 1px solid var(--line);
  background: radial-gradient(1000px 420px at 20% 0%, rgba(197, 161, 90, .14), transparent 70%), radial-gradient(800px 400px at 90% 100%, rgba(112, 27, 36, .28), transparent 70%); }
html[data-world="norte"] .radio-hero { background: radial-gradient(1000px 420px at 20% 0%, rgba(112, 27, 36, .32), transparent 70%), radial-gradient(800px 400px at 90% 100%, rgba(197, 161, 90, .12), transparent 70%); }
.radio-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 48px; align-items: center; }
.radio-hero__station { margin: 8px 0 4px; font-size: clamp(30px, 5vw, 52px); }
.radio-hero__slogan { margin: 0 0 10px; color: var(--muted); font-family: var(--font-serif); font-style: italic; font-size: 19px; }
.radio-program { display: inline-flex; margin: 0 0 18px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; letter-spacing: .06em; color: var(--gold-light); background: rgba(197, 161, 90, .06); }
.radio-now { display: grid; gap: 6px; max-width: 560px; }
.radio-now--center { text-align: center; margin: 0 auto; }
.radio-now__label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.radio-now__title { font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px); line-height: 1.2; }
.radio-now__artist { color: var(--gold-light); font-size: 16px; min-height: 1.3em; }
.radio-now__req { font-size: 12px; color: var(--muted); }
.radio-now .radio-progress { margin-top: 10px; }
.radio-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.radio-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.radio-controls--center { justify-content: center; }
.radio-big-play { width: 68px; height: 68px; }
.radio-big-play svg { width: 28px; height: 28px; }
.radio-vol { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.radio-blocked-hint { display: none; margin-top: 12px; color: var(--gold-light); font-size: 13px; }
html.radio-blocked .radio-blocked-hint { display: block; }

/* Disco de vinilo con la portada */
.radio-disc { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 15%;
  background: repeating-radial-gradient(circle at 50% 50%, #0c0c0c 0 2px, #161616 2px 4px); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .95), inset 0 0 0 10px rgba(0, 0, 0, .6), 0 0 60px -20px rgba(197, 161, 90, .35); }
html.radio-playing .radio-disc { animation: radio-spin 9s linear infinite; }
@keyframes radio-spin { to { transform: rotate(360deg); } }
.radio-disc__cover { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #000; border: 3px solid rgba(197, 161, 90, .55); }
.radio-disc__hole { position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--black); border: 2px solid var(--gold-dark); }
.radio-viz { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; opacity: .55; pointer-events: none; }
.radio-eq--hero { position: absolute; right: 24px; bottom: 22px; height: 30px; }
.radio-eq--hero i { width: 4px; }

.radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding-top: 34px; padding-bottom: 50px; }
.radio-card--wide { grid-column: 1 / -1; }
.radio-next { margin: 0; font-size: 16px; }
.radio-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.radio-history li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 14px; }
.radio-history li.muted { display: block; }
.radio-history time { color: var(--gold); font-variant-numeric: tabular-nums; font-size: 12px; }
.radio-history span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-history em { font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; }
.radio-req__list { display: grid; gap: 6px; margin-top: 12px; max-height: 340px; overflow: auto; }
.radio-req__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 8, 8, .4); }
.radio-req__row span { display: grid; min-width: 0; }
.radio-req__row strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-req__row small { color: var(--muted); font-size: 12px; }
.radio-schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.radio-block { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 8, 8, .45); }
.radio-block p { margin: 0; }
.radio-block__time { font-family: var(--font-display); color: var(--gold); font-size: 13px; letter-spacing: .08em; }
.radio-block__days { display: flex; gap: 4px; flex-wrap: wrap; }
.radio-block__days i { font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 5px; color: var(--muted); border: 1px solid rgba(244, 241, 235, .08); }
.radio-block__days i.on { color: #140f07; background: var(--gold); border-color: var(--gold); }
@media (max-width: 760px) {
  .radio-hero { padding: 36px 0 80px; }
  .radio-hero__inner { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .radio-disc { width: min(240px, 70vw); margin: 0 auto; }
  .radio-now { margin: 0 auto; }
  .radio-controls { justify-content: center; }
}

/* ---------------------------------------------------------------- Ventana emergente */
.radio-popup-body { min-height: 100vh; margin: 0; background: radial-gradient(500px 300px at 50% 0%, rgba(197, 161, 90, .16), transparent 70%), var(--black); }
.radio-pop { display: grid; gap: 14px; justify-items: center; padding: 22px 20px 26px; text-align: center; }
.radio-pop__head { display: grid; gap: 6px; justify-items: center; }
.radio-pop__head strong { font-family: var(--font-display); font-size: 18px; }
.radio-disc--pop { width: min(230px, 62vw); }
.radio-pop .radio-now { width: 100%; }
.radio-pop__hint { margin: 0; }

/* Menú: que "Cómo comprar" no se parta en dos líneas al añadir "Radio" */
@media (min-width: 961px) {
  .main-nav__link { white-space: nowrap; }
}
@media (min-width: 961px) and (max-width: 1320px) {
  .main-nav__link { padding-left: 9px; padding-right: 9px; }
}

