/* ===== v6: marca, carátula junto a la canción, décadas, programas, historial, pedidos y auspicios ===== */

/* --- Marca: el micrófono con sus rayos, tal como está en el logo --- */
.nav__brand .emblem, .emblem { display: block; flex: none; height: 58px; transition: transform 300ms var(--ease-out); }
.nav__brand .emblem img, .footer__brand .emblem img, .emblem img { width: auto; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,148,51,.28)); }
@media (hover: hover) and (pointer: fine) { .nav__brand:hover .emblem { transform: scale(1.06); } }
.footer__brand .emblem { height: 88px; }
.sp-mock__bar .emblem { height: 34px; }
@media (max-width: 639px) {
  .nav__brand .emblem { height: 48px; }
  .nav__brand { flex: none; }
  .nav__live { flex: none; height: 42px; padding: 0 14px; gap: 8px; font-size: 14px; white-space: nowrap; }
}

/* --- Pie de página: fondo propio, se lee igual sobre el cierre naranja --- */
.footer { background: var(--bg); }

/* --- Barra: el micrófono entra cuando el logo grande ya pasó, para no verlo dos veces --- */
.nav__brand { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 300ms ease, transform 300ms var(--ease-out), visibility 300ms; }
.nav.show-brand .nav__brand { opacity: 1; visibility: visible; transform: none; }

/* --- Portada: todo en una pantalla, también en laptops --- */
.eq { display: none; }
@media (min-width: 1024px) {
  .hero { padding: 92px var(--gut) 56px; }
  .hero .logo-anim { width: min(25vw, 380px, 40vh); }
  .deck { width: min(36vw, 540px, 62vh); }
  .hero__lead { font-size: clamp(17px, 1.3vw, 20px); max-width: 40ch; margin: 14px 0 22px; }
  .hero .eyebrow { margin-bottom: 10px; }
}

/* --- Reproductor de la portada: botón, carátula y canción en una sola pieza --- */
.hero__actions { width: min(100%, 500px); gap: 16px; padding: 10px 24px 10px 10px; border-radius: 22px; background: rgba(13,33,37,.74); border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(0,0,0,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.play-big { width: 76px; height: 76px; box-shadow: 0 12px 28px -12px rgba(255,148,51,.65); }
.play-big svg { width: 28px; height: 28px; }
body.is-playing .play-big__ring { animation-name: ring-soft; }
@keyframes ring-soft { from { transform: scale(1); opacity: .55; } to { transform: scale(1.2); opacity: 0; } }
.now { flex: 1; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
.now__art { position: relative; grid-row: 1 / span 3; width: 76px; height: 76px; }
.now__sleeve { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px rgba(244,239,230,.16); }
.now__sleeve img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 600ms ease, transform 900ms var(--ease-out); }
.now__sleeve img.is-in { opacity: 1; transform: none; }
.now__label { grid-column: 2; display: flex; align-items: center; gap: 8px; }
.now__title, .now__artist { grid-column: 2; }
.now__title { font-size: 20px; line-height: 1.25; }
.now__artist { font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.now__eq i { width: 2px; height: 100%; border-radius: 1px; background: var(--orange-hi); transform: scaleY(.25); transform-origin: bottom; }
body.is-playing:not(.is-episode) .now__eq i { animation: eq 700ms ease-in-out infinite alternate; }
.now__eq i:nth-child(2) { animation-delay: -200ms !important; } .now__eq i:nth-child(3) { animation-delay: -450ms !important; } .now__eq i:nth-child(4) { animation-delay: -100ms !important; }

/* --- Mini reproductor: solo donde la canción no está ya a la vista --- */
body.now-in-view:not(.has-episode) .mini.is-on { transform: translate(-50%, calc(100% + 40px)); }

/* --- Portada en celular: disco y logo más compactos, el play dentro de la primera pantalla --- */
@media (max-width: 639px) {
  .hero { padding-top: 76px; gap: 14px; }
  .deck { width: 50vw; }
  .hero__copy { display: flex; flex-direction: column; min-width: 0; }
  .hero__copy .studio-live { order: 0; align-self: flex-start; }
  .hero__copy .eyebrow { order: 1; flex-wrap: nowrap; gap: 8px; font-size: 11px; letter-spacing: .05em; margin-bottom: 8px; white-space: nowrap; }
  .hero__title { order: 2; }
  .hero .logo-anim { width: 50vw; margin-left: -2%; }
  .hero__actions { order: 3; width: 100%; gap: 12px; margin-top: 12px; padding: 8px 14px 8px 8px; border-radius: 18px; }
  .hero__lead { order: 4; margin: 20px 0 0; }
  .play-big { width: 62px; height: 62px; }
  .play-big svg { width: 24px; height: 24px; }
  .now { column-gap: 12px; }
  .now__art { width: 62px; height: 62px; }
  .now__title { font-size: 18px; }
  .now__artist { font-size: 15px; }
  .hero__shade { background: linear-gradient(180deg, rgba(8,21,24,0) 0, rgba(8,21,24,0) calc(76px + 34vw), var(--bg) calc(76px + 58vw), var(--bg) 100%); }
}

/* --- Carátulas que no se repiten: las filas usan grupos distintos (app.js) --- */

/* --- Décadas: número gigante, carátulas de la época y un ambiente para cada una --- */
.decade--era::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.decade--80::before { background: radial-gradient(60% 80% at 62% 50%, rgba(255,148,51,.24), transparent 70%), linear-gradient(0deg, rgba(216,112,8,.12), transparent 40%); }
.decade--90::before { background: radial-gradient(60% 80% at 62% 50%, rgba(67,184,224,.24), transparent 70%), linear-gradient(0deg, rgba(24,136,176,.14), transparent 40%); }
.decade--80 .decade__num { color: rgba(255,148,51,.34); text-shadow: 0 0 26px rgba(255,148,51,.5); }
.decade--90 .decade__num { color: rgba(67,184,224,.34); text-shadow: 0 0 26px rgba(67,184,224,.5); }
.decade--era .decade__copy p { color: #dbe4e3; text-shadow: 0 2px 14px rgba(8,21,24,.9); }
.decade--era .decade__copy h3 { text-shadow: 0 4px 24px rgba(8,21,24,.75); }
.decade__covers { position: relative; z-index: 1; }
.decade__col img { display: block; flex: none; border-radius: 10px; object-fit: cover; background: var(--surface); box-shadow: 0 16px 30px -14px rgba(0,0,0,.9); }
@keyframes drift-y { to { transform: translate3d(0, -50%, 0); } }
@keyframes drift-x { to { transform: translate3d(-50%, 0, 0); } }

@media (min-width: 1024px) {
  .decade--era { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) clamp(220px, 24vw, 380px); gap: clamp(28px, 3.4vw, 56px); }
  .decade--era .decade__num { left: 33vw; top: 21vh; bottom: auto; font-size: min(60vh, 34vw); }
  .decade__covers { position: absolute; top: 0; bottom: 0; right: var(--gut); width: clamp(220px, 24vw, 380px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; overflow: hidden;
    -webkit-mask: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
  .decade__col { display: flex; flex-direction: column; gap: 14px; will-change: transform; animation: drift-y 46s linear infinite; }
  .decade__col--b { animation-direction: reverse; animation-duration: 58s; }
  .decade__col img { width: 100%; aspect-ratio: 1; height: auto; }
}
@media (max-width: 1023px) {
  .decade--era .decade__num { font-size: 44vw; margin-bottom: -9vw; }
  .decade__covers { overflow: hidden; margin: 8px calc(var(--gut) * -1) 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .decade__col { display: flex; gap: 12px; width: max-content; will-change: transform; animation: drift-x 38s linear infinite; }
  .decade__col--b { display: none; }
  .decade__col img { width: 118px; height: 118px; }
}

/* --- Acaban de sonar: la canción actual en grande y el resto debajo --- */
.history__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 0; }
.history__item, .history__item.is-now { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
.history__cover { width: 72px; height: 72px; }
.history__song { font-size: clamp(24px, 2.2vw, 32px); }
.history__artist { font-size: 15px; margin-top: 4px; }
.history__tag { grid-column: auto; justify-self: start; margin-bottom: 10px; }
.history__item.is-now { grid-column: 1 / -1; grid-template-columns: clamp(150px, 17vw, 250px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: 0 0 clamp(24px, 3vw, 40px); }
.history__item.is-now .history__cover { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; box-shadow: 0 0 0 1px rgba(244,239,230,.14), 0 34px 60px -26px rgba(0,0,0,.95); }
.history__item.is-now .history__song { font-size: clamp(44px, 5.6vw, 92px); line-height: .94; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.history__item.is-now .history__artist { font-size: clamp(18px, 1.5vw, 22px); margin-top: 12px; }
.history__item.is-loading .history__cover { opacity: 1; }
.history__note i { font-style: normal; }
@media (max-width: 639px) {
  .history__list { grid-template-columns: minmax(0, 1fr); }
  .history__item, .history__item.is-now { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
  .history__cover { width: 56px; height: 56px; }
  .history__item.is-now { grid-template-columns: 112px minmax(0, 1fr); padding: 0 0 22px; }
  .history__item.is-now .history__song { font-size: 38px; }
  .history__item.is-now .history__artist { font-size: 16px; margin-top: 8px; }
}

/* --- Programas: disco en cada tarjeta, barra de duración y el último en grande --- */
.ep__disc { position: absolute; top: 22px; right: 22px; width: 88px; height: 88px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, #0c0f10 0 1px, #1b1f20 1.5px 2.6px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.07); }
.ep__disc::before { content: ""; position: absolute; inset: 31%; border-radius: 50%; background: #f4efe6 url("img/logo-128.webp") center / 82% no-repeat; }
.ep__disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,.2) 12%, transparent 18% 50%, rgba(255,255,255,.14) 58%, transparent 64%); }
@media (hover: hover) and (pointer: fine) { .ep:hover .ep__disc::before { animation: spin 2.4s linear infinite; } }
.ep.is-playing .ep__disc::before { animation: spin 2.4s linear infinite; }
.ep__bar { position: relative; display: block; height: 3px; width: calc(var(--len, .8) * 100%); margin-top: 4px; border-radius: 2px; background: rgba(244,239,230,.16); overflow: hidden; }
.ep__bar i { position: absolute; inset: 0; background: var(--blue-hi); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 300ms linear; }
.ep__tag { display: none; }
.ep--latest { grid-column: 1 / -1; padding: clamp(28px, 4vw, 52px); padding-right: clamp(150px, 34vw, 480px); min-height: clamp(260px, 25vw, 340px); align-content: center;
  background: radial-gradient(90% 150% at 100% 50%, rgba(255,148,51,.26), transparent 62%), linear-gradient(150deg, #123844, var(--surface) 70%); border-color: rgba(255,148,51,.32); }
.ep--latest .ep__tag { display: inline-flex; justify-self: start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--orange-hi); color: #1a0d02; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ep--latest .ep__num { font-size: clamp(110px, 13vw, 190px); }
.ep--latest .ep__title { font-size: clamp(22px, 2.2vw, 30px); }
.ep--latest .ep__meta { font-size: 17px; }
.ep--latest .ep__disc { top: 50%; right: clamp(-90px, -4vw, -30px); width: clamp(220px, 28vw, 420px); height: clamp(220px, 28vw, 420px); margin-top: calc(clamp(220px, 28vw, 420px) / -2); }
@media (max-width: 639px) {
  .ep__disc { width: 72px; height: 72px; top: 20px; right: 20px; }
  .ep--latest { padding: 24px; min-height: 0; padding-right: 24px; }
  .ep--latest .ep__num { font-size: 104px; }
  .ep--latest .ep__disc { width: 150px; height: 150px; top: 20px; right: -34px; margin-top: 0; }
}

/* --- Pedidos: cómo le llega el mensaje a Iván --- */
@media (min-width: 1024px) {
  .request__copy { grid-column: 1; grid-row: 1; }
  .request__form { grid-column: 2; grid-row: 1 / span 2; }
  .wa { grid-column: 1; grid-row: 2; }
}
.wa { align-self: start; width: min(100%, 440px); border-radius: 20px; overflow: hidden; background: #0b141a; border: 1px solid var(--line); box-shadow: 0 30px 60px -34px rgba(0,0,0,.9); }
.wa__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #1f2c34; }
.wa__head img { width: 38px; height: 38px; border-radius: 50%; background: #f4efe6; object-fit: contain; }
.wa__head b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.wa__head span { font-size: 12px; color: #9fb0b8; }
.wa__body { padding: 18px 16px 20px; display: grid; }
.wa__bubble { position: relative; justify-self: end; max-width: 92%; padding: 9px 12px 8px; border-radius: 10px 0 10px 10px; background: #005c4b; color: #e9edef; font-size: 15px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; transition: opacity 200ms ease; }
.wa__bubble.is-sample { opacity: .6; }
@media (max-width: 1023px) { .wa { justify-self: center; } }

/* --- Auspicios: un ejemplo de cómo se ve una marca en la web --- */
.sp-mock { justify-self: end; width: min(100%, 460px); border-radius: 20px; overflow: hidden; background: rgba(8,21,24,.78); border: 1px solid rgba(244,239,230,.16); box-shadow: 0 40px 70px -36px rgba(0,0,0,.95); }
.sp-mock__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sp-mock__bar img { width: 30px; height: 30px; object-fit: contain; }
.sp-mock__bar .wordmark { font-size: 21px; }
.sp-mock__bar i { margin-left: auto; font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-hi); }
.sp-mock__now { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.sp-mock__art { flex: none; width: 46px; height: 46px; border-radius: 6px; background: repeating-radial-gradient(circle, #0c0f10 0 1px, #1b1f20 1.5px 2.6px); box-shadow: 0 0 0 1px rgba(244,239,230,.14); }
.sp-mock__now small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sp-mock__now strong { font-weight: 600; font-size: 16px; }
.sp-mock__ad { position: relative; margin: 2px 16px 16px; padding: 20px 18px; border-radius: 12px; border: 1.5px dashed rgba(255,148,51,.7); background: rgba(255,148,51,.1); overflow: hidden; }
.sp-mock__ad small { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--orange-hi); color: #1a0d02; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sp-mock__ad strong { display: block; margin-top: 12px; font-family: var(--display); font-weight: 400; font-size: clamp(46px, 5vw, 72px); line-height: .9; color: var(--orange-hi); }
.sp-mock__ad span { display: block; margin-top: 8px; color: #dbe4e3; font-size: 15px; }
@media (max-width: 1023px) { .sp-mock { justify-self: start; } }

@media (prefers-reduced-motion: reduce) {
  .decade__col, .ep__disc::before { animation: none !important; }
}

/* --- Galería de fotos de Iván --- */
.gallery { position: relative; isolation: isolate; background: #0b1d21; }
.gallery::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(4,10,12,.55), transparent 18%, transparent 68%, rgba(4,10,12,.8)); }
.gallery__track { --i: 0; display: flex; height: 100%; transform: translate3d(calc(var(--i) * -100%), 0, 0); transition: transform 750ms var(--ease-out); touch-action: pan-y; cursor: grab; outline: none; user-select: none; }
.gallery__track:focus-visible { box-shadow: inset 0 0 0 3px var(--blue-hi); }
.gallery__track.is-drag { transition: none; cursor: grabbing; }
.gallery__slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; }
.host__photo .gallery__slide img { position: relative; width: 100%; height: 100%; object-fit: cover; will-change: auto; user-select: none; -webkit-user-drag: none; }
.host__photo .gallery__slide.is-wide img { object-fit: contain; }
.host__photo .gallery__slide img.gallery__bg { position: absolute; inset: 0; object-fit: cover; filter: blur(24px) brightness(.5) saturate(1.2); transform: scale(1.2); }
.gallery__bars { position: absolute; top: 12px; left: 14px; right: 14px; z-index: 2; display: flex; gap: 6px; }
.gallery__bar { flex: 1; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.gallery__bar i { position: relative; display: block; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(244,239,230,.3); }
.gallery__bar i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.gallery__bar.is-done i::after { transform: scaleX(1); }
.gallery__bar.is-on i::after { animation: gallery-fill 5.5s linear forwards; }
.gallery.is-paused .gallery__bar.is-on i::after { animation-play-state: paused; }
@keyframes gallery-fill { to { transform: scaleX(1); } }
.gallery__ui { position: absolute; left: 18px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.gallery__count { margin-right: auto; font-family: var(--display); font-size: 22px; letter-spacing: .08em; color: rgba(244,239,230,.6); }
.gallery__count b { font-weight: 400; color: var(--ink); }
.gallery__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(244,239,230,.3); background: rgba(8,21,24,.55); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.gallery__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery__btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .gallery__btn:hover { background: var(--orange-hi); border-color: var(--orange-hi); color: #1a0d02; } }
@media (prefers-reduced-motion: reduce) { .gallery__bar.is-on i::after { animation: none; transform: scaleX(1); } }

/* --- Cinta de fotos de Iván (sustituye al carrusel) --- */
.reel { position: relative; margin-top: clamp(56px, 9vh, 110px); padding: 30px 0 40px; overflow: hidden; perspective: 1400px; }
.reel::before, .reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.reel::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.reel__tilt { transform: rotateX(14deg) rotateZ(-3deg); transform-style: preserve-3d; will-change: transform; }
.reel__row { display: flex; gap: 22px; width: max-content; padding: 0 11px; will-change: transform; touch-action: pan-y; cursor: grab; user-select: none; }
.reel.is-drag .reel__row { cursor: grabbing; }
.reel__item { flex: none; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface); cursor: inherit;
  box-shadow: 0 30px 50px -24px rgba(0,0,0,.9); filter: saturate(.92) brightness(.9); transition: transform 450ms var(--ease-out), filter 450ms ease; }
.reel__item img { display: block; height: clamp(230px, 30vw, 400px); width: auto; max-width: none; pointer-events: none; -webkit-user-drag: none; }
@media (hover: hover) and (pointer: fine) { .reel__item:hover { transform: translateY(-12px) scale(1.04); filter: none; } }
.reel__item:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 3px; }

.lightbox { width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #050c0e; color: var(--ink); overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.8); }
.lightbox::backdrop { background: rgba(3,8,10,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { animation: dlg-in 320ms var(--ease-out); }
.lightbox__img { display: block; width: 100%; max-height: calc(92vh - 78px); object-fit: contain; background: #050c0e; touch-action: pan-y; }
.lightbox__ui { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.lightbox__count { margin-right: auto; font-family: var(--display); font-size: 22px; letter-spacing: .08em; color: rgba(244,239,230,.7); }
@media (max-width: 639px) { .reel__row { gap: 14px; } .reel__item { border-radius: 10px; } }
.host { padding-bottom: 6vh; }
