/* Tipografías servidas desde nuestro propio sitio (sin pedirle nada a Google). */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --bg: #060f1f;
  --surface: #0c1a30;
  --surface-2: #13253f;
  --panel: #091527;
  --line: rgba(140, 185, 255, .12);
  --text: #eaf2ff;
  --muted: #8197b6;
  --accent: #38bdf8;
  --accent-2: #a5e3ff;
  --on-accent: #02101f;
  --blue: #2563eb;
  --yt: #ff3b3b;
  --ease: cubic-bezier(.32, .72, 0, 1);          /* tipo iOS: hojas, paneles, fondos */
  --ease-out: cubic-bezier(.23, 1, .32, 1);      /* respuesta a un toque: rápida al principio, suave al final */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);  /* algo que se mueve de un lado a otro en pantalla */
  --display: "Outfit", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden;
  background: var(--bg); color: var(--text);
  font: 500 15px/1.5 "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.015em; text-wrap: balance; }
[hidden] { display: none !important; }
/* Texto que leen Google y los lectores de pantalla, pero no se ve (el título de la página). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Respuesta al toque: todo lo que se aprieta se "hunde" apenas (rápido al bajar, más suave al soltar). */
.menu a, .yt-side, .days button, .rv-btn, .send, .contact a, .tabs button, .mode button {
  transition: transform .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.menu a:active, .yt-side:active, .days button:active, .rv-btn:active, .contact a:active, .mode button:active { transform: scale(.97); transition-duration: .1s; }
.send:active, .tabs button:active { transform: scale(.92); transition-duration: .1s; }

/* Alto = lo que realmente se ve (html/body al 100%). No usamos 100dvh: en algunos Android, con la app
   instalada, Chrome lo calcula con las barras del sistema incluidas y las pestañas quedan fuera de la pantalla. */
.app { height: 100%; display: grid; grid-template-columns: 232px minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr); }

/* ================= Menú lateral ================= */
/* Si el menú no entra (notebooks de 768 de alto, con la imagen del auspiciante), se desplaza solo él.
   Antes estiraba toda la página y lo de abajo del chat (entrar, escribir, el aviso de cerrado) quedaba fuera de la pantalla. */
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 24px 16px; gap: 28px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.side-logo { width: 110px; margin: 0 8px; }
.menu { display: grid; gap: 4px; }
.menu a, .yt-side { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.menu a.on { background: var(--surface-2); color: var(--text); }
.menu a.on svg { color: var(--accent); }
.menu svg { transition: color .2s var(--ease-out); }
.menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.yt-side { margin-top: auto; }
.yt-side svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.yt-side.is-live { color: #fff; background: rgba(255, 59, 59, .14); }
.yt-side.is-live svg { color: var(--yt); }
.yt-side.is-live span::after { content: " · En vivo"; color: var(--yt); }
/* Auspiciantes en la compu: recuadro arriba de YouTube que va pasando los negocios de a uno. */
.sp-card { margin-top: auto; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sp-card:not([hidden]) + .yt-side { margin-top: 0; }
.sp-card small { font-size: 12px; font-weight: 700; color: #9fb3cf; }
.sp-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #fff; }
.sp-card b { font-size: 14px; line-height: 1.3; }
.sp-card[hidden], .sp-chat[hidden] { display: none; }
.side .fm { padding: 16px; border-radius: 16px; background: linear-gradient(140deg, var(--blue), #0e3a8c); }
.side .fm b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; }
.side .fm span { display: block; font-size: 13px; color: #cfe0ff; }
.side .fm span:last-child { margin-top: 6px; font-style: italic; color: var(--accent-2); }

/* ================= Centro ================= */
/* La barra de desplazamiento del centro quedaba como una raya suelta entre el reproductor y el chat:
   ahora es invisible y aparece solo con el mouse encima. */
.center { overflow-y: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: transparent transparent; }
@media (hover: hover) { .center:hover { scrollbar-color: var(--surface-2) transparent; } }
.inner { max-width: 980px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 40px) 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.inner > section { scroll-margin-top: 24px; }

/* ---------- Anuncio ---------- */
.announce { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(120deg, rgba(37, 99, 235, .28), rgba(56, 189, 248, .12)); box-shadow: 0 0 0 1px rgba(56, 189, 248, .3); margin-bottom: -24px; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
@starting-style { .announce { opacity: 0; transform: translateY(-8px); } }
.announce-tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.announce p { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Reproductor ---------- */
.player {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 440px; padding: 28px; border-radius: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--surface);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .06), 0 0 0 1px var(--line);
}
.player-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--photo, url("img/fotos/estudio.jpg"));
  background-size: cover; background-position: center right;
  transition: opacity .8s var(--ease), transform 8s var(--ease);
}
.is-playing .player-bg { transform: scale(1.04); }
/* Cambió el programa al aire: la foto nueva aparece fundiéndose. */
.player-bg.is-swap { animation: rv-bg .8s var(--ease) both; }
@keyframes rv-bg { from { opacity: .25; filter: blur(8px); } }
.player-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 15, 31, .94) 0%, rgba(6, 15, 31, .72) 45%, rgba(6, 15, 31, .15) 100%),
    linear-gradient(0deg, rgba(6, 15, 31, .85) 0%, transparent 55%);
}
.player-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: rgba(6, 15, 31, .55); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.player-info { max-width: 560px; }
/* Instalar app: aparece solo cuando se puede instalar. Oscura y translúcida como "EN VIVO" (la blanca le competía al logo de neón de la foto). */
.install { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 14px 7px 11px; border: 0; border-radius: 999px; background: rgba(6, 15, 31, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); backdrop-filter: blur(6px); color: var(--text); font-weight: 700; font-size: 13px; transition: transform .2s var(--ease-out), opacity .3s var(--ease-out); }
.install svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install:active { transform: scale(.95); transition-duration: .1s; }
/* Celulares angostos: "EN VIVO" y "Instalar" tienen que entrar en la misma línea. */
@media (max-width: 430px) {
  .player-top { flex-wrap: nowrap; gap: 8px; }
  .live { letter-spacing: .08em; padding: 7px 10px; gap: 8px; }
  .install { padding: 7px 12px 7px 10px; }
  .install-long { display: none; }
}
@starting-style { .install { opacity: 0; transform: translateY(-4px); } }
.rv-steps { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: paso; }
.rv-steps li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.rv-steps li::before { counter-increment: paso; content: counter(paso); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 800; font-size: 14px; }
.rv-steps svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.player h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; line-height: 1.02; }
.hosts { color: #c6d6ee; font-size: 17px; margin: 10px 0 0; display: flex; align-items: center; gap: 10px; }
.hosts img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
/* Cambió el programa: el nombre entra enfocándose (desenfoque → nítido). */
.is-swap { animation: rv-swap .45s var(--ease-out) both; }
.hosts.is-swap { animation-delay: .06s; }
/* El tema que suena: hasta dos líneas, y si es más largo se corta con "…" (el nombre completo queda en el title). */
.song { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; max-width: 100%; color: var(--accent-2); font-size: 15px; font-weight: 600; line-height: 1.35; }
.song svg { width: 18px; height: 18px; margin-top: 1px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.song span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
@keyframes rv-swap { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } }
.ctrl { display: flex; align-items: center; gap: 18px; margin-top: 26px; }

/* ---------- Botón Play: el momento principal ----------
   Los tres íconos (play, pausa, cargando) están apilados y se cruzan con escala + desenfoque,
   así el cambio se siente como una transformación y no como un salto. */
.play { position: relative; width: 66px; height: 66px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; box-shadow: 0 16px 36px -12px rgba(56, 189, 248, .8); transition: transform .25s var(--ease-out), box-shadow .3s var(--ease-out); }
.play:active { transform: scale(.92); transition-duration: .1s; }
.play > svg, .play > .rv-spin { grid-area: 1 / 1; transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), filter .2s var(--ease-out); }
.play svg { width: 26px; height: 26px; fill: currentColor; }
.play .ic-pause, .play .rv-spin { opacity: 0; transform: scale(.5); filter: blur(4px); }
.is-playing .play .ic-play, .is-loading .play .ic-play { opacity: 0; transform: scale(.5); filter: blur(4px); }
.is-playing .play .ic-pause, .is-loading .play .rv-spin { opacity: 1; transform: none; filter: none; }
/* Sonando: un halo que "respira" alrededor, como señal de que está en vivo. */
.play::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.is-playing .play::before { animation: rv-halo 2.4s var(--ease-out) infinite; }
@keyframes rv-halo { from { box-shadow: 0 0 0 0 rgba(56, 189, 248, .45); } to { box-shadow: 0 0 0 18px rgba(56, 189, 248, 0); } }
.is-playing .play { box-shadow: 0 18px 44px -12px rgba(56, 189, 248, .95); }
.vol { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.vol svg { width: 20px; height: 20px; fill: currentColor; }
.vol input { width: 130px; accent-color: var(--accent); }
/* Ahorro de datos: pastilla con interruptor. Prendido = celeste, con la perilla corrida a la derecha. */
.ctrl { flex-wrap: wrap; row-gap: 14px; }
.saver { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 10px; border: 0; border-radius: 999px; background: rgba(6, 15, 31, .55); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px var(--line); color: #c6d6ee; font-weight: 600; font-size: 14px; transition: transform .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.saver:active { transform: scale(.96); transition-duration: .1s; }
.saver-sw { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .16); transition: background-color .25s var(--ease-out); }
.saver-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .25s var(--ease-out); }
.saver[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .55); }
.saver[aria-pressed="true"] .saver-sw { background: var(--accent); }
.saver[aria-pressed="true"] .saver-sw::after { transform: translateX(14px); }
.saver:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg { margin-top: 22px; }
.pg .bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pg .bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .8s var(--ease-out); }
.pg .t { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #9fb3cf; margin-top: 6px; }
.player-msg { color: var(--accent-2); font-size: 14px; margin: 8px 0 0; min-height: 1.4em; }
.player-msg:not(:empty) { animation: rv-swap .3s var(--ease-out); }

/* Selector Radio / Video */
.mode { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(6, 15, 31, .6); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px var(--line); }
.mode button { border: 0; background: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.mode button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.yt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yt); animation: rv-ping 1.6s infinite; }
@keyframes rv-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .6); } 100% { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); } }

/* Modo video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.is-video { justify-content: flex-start; gap: 20px; }
.player.is-video .player-bg { opacity: .25; }
.player.is-video .video { order: 2; }
.player.is-video .player-top { order: 1; }
.player.is-video .player-info { order: 3; }
.player.is-video [data-audio-ctrl], .player.is-video .pg { display: none; }
.player.is-video h2 { font-size: clamp(24px, 3vw, 34px); }

/* ---------- Secciones ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: 26px; font-weight: 700; }

/* Días: una "pastilla" blanca se desliza hasta el día elegido (como el selector segmentado de iOS). */
.days { position: relative; isolation: isolate; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.days button { flex: none; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; }
.days button[aria-selected="true"] { background: transparent; color: var(--bg); box-shadow: none; }
/* Una capa blanca del ancho de toda la fila, recortada (clip-path) justo sobre el día elegido:
   mover el recorte es más fluido que cambiar tamaño o posición. */
.days-pill { position: absolute; top: 0; left: 0; z-index: -1; height: 100%; width: var(--full, 100%); background: var(--text); clip-path: inset(0 var(--r, 100%) 0 var(--l, 0) round 10px); pointer-events: none; }
.days-pill.is-ready { transition: clip-path .35s var(--ease); }
.days:not(:has(.days-pill)) button[aria-selected="true"] { background: var(--text); }
.list { list-style: none; margin: 0; padding: 0; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
/* Al cambiar de día, los programas entran en cascada corta (máx. ~300 ms en total). */
.list .slot[data-anim] { animation: rv-item .32s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 8) * 35ms); }
@keyframes rv-item { from { opacity: 0; transform: translateY(10px); } }
.list .slot { display: grid; grid-template-columns: 120px 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.list .slot:last-child { border-bottom: 0; }
.list .slot-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.list .slot-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.list .slot-body { display: grid; }
.list .slot-name { font-size: 16px; }
.list .slot-host { color: var(--muted); font-size: 13px; }
.list .is-now { background: rgba(56, 189, 248, .08); }
.list .is-now .slot-time { color: var(--accent); }
.list .slot-empty { display: block; color: var(--muted); }
.slot-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 4px 9px; border-radius: 999px; }
/* Punto que late en "Al aire": indica que está pasando ahora. */
.slot-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: rv-beat 1.6s var(--ease-in-out) infinite; }
@keyframes rv-beat { 50% { opacity: .3; transform: scale(.7); } }

/* ---------- Quiénes somos ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.about-text p { margin: 0; font-size: 17px; color: #c6d6ee; line-height: 1.65; }
.about-text p + p { margin-top: 14px; }
.facts { display: grid; gap: 1px; margin: 22px 0 0; border-radius: 16px; overflow: hidden; background: var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--surface); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; transition: transform .6s var(--ease), filter .6s var(--ease); }
.gallery img:first-child { grid-row: span 2; }

/* ---------- Contacto ---------- */
.contact { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px; border-radius: 24px; background: linear-gradient(120deg, var(--blue), #0e3a8c); }
.contact h2 { font-size: 26px; }
.contact p { margin: 4px 0 0; color: #cfe0ff; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 700; }
.contact a.alt { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
/* Redes: una tarjetita por red, con el color de cada una en el ícono. */
.social-title { font-size: 18px; font-weight: 700; margin: 28px 0 12px; }
.social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .social { grid-template-columns: minmax(0, 1fr); } }
.sn { --c: var(--accent); display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.sn:active { transform: scale(.97); transition-duration: .1s; }
.sn-yt { --c: #ff3b3b; }
.sn-ig { --c: #e4407a; }
.sn-fb { --c: #3b82f6; }
.sn-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--c); transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.sn-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sn-txt { display: grid; min-width: 0; }
.sn-txt b { font-size: 15px; }
.sn-txt small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Efectos al pasar el mouse: solo en compus (en el celu el "hover" se queda pegado después de tocar). */
@media (hover: hover) and (pointer: fine) {
  .menu a:hover { background: var(--surface-2); color: var(--text); }
  .yt-side:hover { color: var(--text); }
  .play:hover { transform: scale(1.05); }
  .play:active { transform: scale(.92); }
  .days button:not([aria-selected="true"]):hover { color: var(--text); }
  .gallery img:hover { transform: scale(1.02); filter: brightness(1.08); }
  .contact a:hover { transform: translateY(-1px); }
  .sn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--c); }
  .sn:hover .sn-ic { background: var(--c); color: #fff; }
  .rv-btn:not(:disabled):hover { filter: brightness(1.08); }
}
.foot { color: var(--muted); font-size: 13px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.foot .credit { display: block; margin-top: 4px; }
.foot .credit a { display: inline-block; padding: 8px 0; color: var(--text); font-weight: 600; text-decoration: none; }
.foot .credit a:hover { color: var(--accent); }

/* ================= Chat ================= */
.chat { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-head { padding: 22px 20px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.chat-head h2 { font-size: 18px; font-weight: 700; }
.chat-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-head p::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; transition: background-color .3s var(--ease-out); animation: rv-online 2.4s var(--ease-out) infinite; }
@keyframes rv-online { from { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } to { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }
.chat.is-closed .chat-head p::before { background: var(--muted); animation: none; }
.chat-head .mod { font-size: 12px; color: var(--accent-2); background: rgba(56, 189, 248, .1); padding: 5px 10px; border-radius: 999px; }
[data-messages] { list-style: none; margin: 0; padding: 16px 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.join, .composer { padding: 14px; border-top: 1px solid var(--line); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
/* Cuando aparece el campo para escribir (se abrió el chat o entraste), sube suave. */
@starting-style { .join, .composer { opacity: 0; transform: translateY(10px); } }
.join label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.join-text { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }
/* Botón de Google en blanco, como pide Google: así la gente lo reconoce al toque. */
.rv-btn.google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; font-size: 15px; }
.rv-btn.google svg { width: 20px; height: 20px; flex: none; }
.row, .composer { display: flex; gap: 8px; align-items: center; }
/* Elegir el nombre: en columna y con título grande, para que no parezca la caja de mensajes (7/11/2026). */
.pick-step { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.join.pick label { font-size: 17px; margin-bottom: 6px; }
.pick .join-text strong { color: var(--text); }
.pick .row { flex-direction: column; align-items: stretch; }
.rv-rules .rv-name-preview { color: var(--text); font-size: 20px; font-weight: 700; }
.field { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.field::placeholder { color: #8ea3c2; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, .18); }
[data-me] { font-size: 13px; font-weight: 700; color: var(--accent-2); max-width: 28%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--accent); display: grid; place-items: center; }
.send svg { width: 18px; height: 18px; fill: var(--on-accent); }
[data-note] { margin: 0; font-size: 13px; color: var(--accent-2); padding: 0 14px; }
[data-note]:not(:empty) { padding-bottom: 12px; animation: rv-swap .3s var(--ease-out); }
/* Chat cerrado: el aviso de cuándo se abre queda como una tarjeta tranquila abajo. */
.chat.is-closed [data-note]:not(:empty) { margin: 0 14px 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: #c6d6ee; font-size: 14px; line-height: 1.5; }

/* Auspiciantes en el celu: línea arriba de los mensajes (en la compu va al costado, no acá). */
.sp-chat { display: none; }
.rv-msg { display: grid; gap: 2px; transform-origin: left bottom; animation: rv-msg .28s var(--ease-out); }
.rv-msg.mine { transform-origin: right bottom; }
@keyframes rv-msg { from { opacity: 0; transform: translateY(8px) scale(.98); } }
/* Un moderador borró el mensaje: se achica y se desvanece antes de irse. */
.rv-msg.is-leaving { animation: rv-leave .2s var(--ease-out) forwards; }
@keyframes rv-leave { to { opacity: 0; transform: scale(.96); filter: blur(3px); } }
.rv-msg-meta { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.rv-msg-meta b { font-weight: 700; }
.rv-msg-meta time { font-size: 11px; color: var(--muted); }
.rv-msg p { margin: 0; overflow-wrap: anywhere; color: #cbd9ee; }
.rv-msg.mod b { color: var(--accent); }
/* Color de cada oyente (como en Kick o YouTube): claros para leerse bien sobre el fondo oscuro, ninguno celeste (es de la radio). */
.rv-msg.c0 b { color: #ff8a80; }
.rv-msg.c1 b { color: #ffb067; }
.rv-msg.c2 b { color: #f2d264; }
.rv-msg.c3 b { color: #b4e06a; }
.rv-msg.c4 b { color: #5fd99b; }
.rv-msg.c5 b { color: #a8b0ff; }
.rv-msg.c6 b { color: #d79bff; }
.rv-msg.c7 b { color: #ff8fc7; }
.rv-msg.system { color: var(--muted); font-size: 13px; text-align: center; }
.rv-badge { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; background: var(--accent); color: var(--on-accent); }
/* Alguien del equipo escribiendo con su nombre: la marca no la puede copiar ningún oyente. */
.rv-badge.team { background: rgba(56, 189, 248, .16); color: var(--accent-2); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .35); }
/* Ayudante: no es de la radio, así que va en gris tranquilo, sin el celeste ni el ✓. */
.rv-badge.helper { background: rgba(255, 255, 255, .07); color: #c6d6ee; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
/* Tachito del ayudante: a la derecha de la línea del nombre, con lugar suficiente para el dedo. */
.rv-del { align-self: center; margin: -8px -6px -8px auto; width: 36px; height: 32px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.rv-del svg { width: 17px; height: 17px; fill: currentColor; }
.rv-del:active { background: rgba(255, 107, 107, .14); color: #ff8a80; }
@media (hover: hover) { .rv-del:hover { background: rgba(255, 107, 107, .14); color: #ff8a80; } }
/* Mensaje propio que espera aprobación (modo cuidado): solo lo ve quien lo mandó. */
.rv-msg.waiting { opacity: .6; }
.rv-wait { font-size: 11px; color: var(--muted); font-style: italic; }

/* ================= Piezas compartidas ================= */
.rv-btn { border: 0; border-radius: 12px; padding: 11px 20px; font-weight: 700; background: var(--accent); color: var(--on-accent); min-height: 44px; }
.rv-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.rv-btn:not(.ghost) { transition: transform .2s var(--ease-out), opacity .25s var(--ease-out), filter .2s var(--ease-out); }
.rv-btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* El giro va en una capa interna: así la capa de afuera puede escalar/aparecer sin pisar la rotación. */
.rv-spin { width: 40%; height: 40%; }
.rv-spin::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; opacity: .8; animation: rv-spin .8s linear infinite; }
@keyframes rv-spin { to { transform: rotate(360deg); } }

.rv-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.rv-eq i { width: 3px; height: 30%; background: currentColor; border-radius: 1px; }
.is-playing .rv-eq i { animation: rv-eq 1s ease-in-out infinite alternate; }
.rv-eq i:nth-child(2) { animation-delay: -.4s !important; }
.rv-eq i:nth-child(3) { animation-delay: -.7s !important; }
.rv-eq i:nth-child(4) { animation-delay: -.2s !important; }
@keyframes rv-eq { from { height: 20%; } to { height: 100%; } }

.rv-rules { width: min(430px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 10, 30, .55), 0 0 0 1px var(--line); }
.rv-rules::backdrop { background: rgba(3, 10, 22, .65); backdrop-filter: blur(3px); }
/* Entra creciendo apenas desde abajo y sale más rápido de lo que entra. */
.rv-rules, .rv-rules::backdrop { transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), overlay .25s allow-discrete, display .25s allow-discrete; }
.rv-rules:not([open]) { opacity: 0; transform: translateY(6px) scale(.97); transition-duration: .18s; }
.rv-rules:not([open])::backdrop { opacity: 0; }
@starting-style {
  .rv-rules[open] { opacity: 0; transform: translateY(14px) scale(.96); }
  .rv-rules[open]::backdrop { opacity: 0; }
}
.rv-rules-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 22px; }
.rv-rules h3 { margin: 18px 0 10px; font-size: 21px; line-height: 1.2; }
.rv-rules p { margin: 0 0 10px; color: var(--muted); line-height: 1.55; }
.rv-rules strong { color: var(--text); }
.rv-rules .rv-small { font-size: 13px; }
.rv-check { display: flex; gap: 10px; align-items: center; margin: 18px 0 22px; font-weight: 600; cursor: pointer; }
.rv-check input { width: 19px; height: 19px; accent-color: var(--accent); }
.rv-rules-actions { display: flex; justify-content: flex-end; gap: 10px; }
.rv-rules h3:first-child { margin-top: 0; }
/* Confirmar un borrado: el mensaje citado, para estar seguro de que es ese. */
.rv-quote { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; overflow-wrap: anywhere; }
.rv-quote b { font-size: 13px; }
.rv-quote span { color: #cbd9ee; }
.rv-btn.danger { background: #ff6b6b; color: #1c0505; }


/* Solo en la copia de prueba (lo agrega el servidor): que nadie la confunda con la de verdad. */
.test-copy { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 100; pointer-events: none; padding: 4px 14px; border-radius: 0 0 10px 10px; background: #facc15; color: #1a1400; font-size: 12px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }

/* ================= Pestañas móviles ================= */
.tabs { display: none; }

@media (max-width: 1180px) {
  .app { grid-template-columns: 84px minmax(0, 1fr) 340px; }
  .side { padding: 20px 10px; align-items: center; }
  .side-logo { width: 56px; margin: 0; }
  .menu a, .yt-side { justify-content: center; }
  .menu a span, .yt-side span, .side .fm { display: none; }
  /* Columna angosta: del recuadro de auspiciantes queda solo la imagen. */
  .sp-card { padding: 0; background: none; box-shadow: none; justify-items: center; }
  .sp-card small, .sp-card b { display: none; }
  .sp-card img { width: 56px; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .side { display: none; }
  .chat { display: none; border: 0; }
  body[data-tab="chat"] .center { display: none; }
  body[data-tab="chat"] .chat { display: flex; }
  .sp-chat:not([hidden]) { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: #9fb3cf; }
  .sp-chat img { width: 40px; height: 40px; flex: none; object-fit: cover; border-radius: 10px; background: #fff; }
  .sp-chat .t { min-width: 0; flex: 1; display: grid; }
  .sp-chat b { font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .inner { padding-top: 16px; gap: 40px; }
  .player { min-height: 520px; padding: 20px; border-radius: 24px; }
  .player-bg { background-position: 70% center; }
  .player-bg::after { background: linear-gradient(0deg, rgba(6, 15, 31, .97) 10%, rgba(6, 15, 31, .55) 60%, rgba(6, 15, 31, .3) 100%); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabs button { border: 0; background: none; color: var(--muted); padding: 10px 0 12px; display: grid; justify-items: center; gap: 3px; font-size: 12px; font-weight: 600; }
  .tabs button[aria-selected="true"] { color: var(--accent); }
  .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  /* La pestaña elegida "salta" apenas, como en iOS. */
  .tabs button[aria-selected="true"] svg { animation: rv-tab .35s var(--ease-out); }
  @keyframes rv-tab { 40% { transform: scale(.82) translateY(1px); } }
  /* Pasar de Escuchar a Chat: fundido corto en vez de un salto. */
  body[data-tab="chat"] .chat, body[data-tab="escuchar"] .center { animation: rv-fade .22s var(--ease-out); }
  .list .slot { grid-template-columns: 44px 1fr auto; gap: 2px 12px; }
  .list .slot-time { grid-column: 2 / -1; grid-row: 1; font-size: 13px; }
  .list .slot-avatar { grid-row: 1 / span 2; }
  .list .slot-body { grid-column: 2; }
  .list .slot-live { grid-column: 3; grid-row: 2; }
}

/* Movimiento reducido: nada se desplaza, escala ni gira; los cambios importantes quedan como fundidos cortos. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv-msg, .list .slot[data-anim], .is-swap, [data-note]:not(:empty) { animation: rv-fade .2s ease-out both !important; }
  .rv-msg.is-leaving { animation: rv-out .15s ease-out forwards !important; }
  .rv-rules, .rv-rules::backdrop, .join, .composer { transition: opacity .2s ease-out !important; transform: none !important; }
  .is-playing .player-bg, .gallery img:hover { transform: none !important; }
}
@keyframes rv-fade { from { opacity: 0; } }
@keyframes rv-out { to { opacity: 0; } }
