/* =============================================================================================================
   Radio Skynex — «Cristal de dial»
   El objeto: el frontal de una radio de válvulas de los sesenta. Un cristal negro iluminado por detrás, con la escala
   de FM impresa en crema y los nombres de las emisoras en ámbar, la aguja roja, el mando de sintonía moleteado y el
   «ojo mágico» verde que se cierra cuando la emisora entra limpia. Todo lo demás (biblioteca, listas, panel) va en
   aluminio claro y tinta, sin adornos: la radio aparece en los momentos que importan.
   Letras: Bricolage Grotesque (titulares, muy grande y apretada) · Instrument Sans (texto) · Michroma (la escala,
   las frecuencias y los relojes, como la serigrafía de un dial).
   ============================================================================================================= */

@font-face { font-family: 'Bricolage'; src: url('/fuentes/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage'; src: url('/fuentes/bricolage-ext.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument'; src: url('/fuentes/instrument.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument'; src: url('/fuentes/instrument-ext.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument'; src: url('/fuentes/instrument-cursiva.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Michroma'; src: url('/fuentes/michroma.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ── Colores y letras ─────────────────────────────────────────────────────────────────────────────────────── */
:root {
  --f-texto: 'Instrument', 'Segoe UI', system-ui, sans-serif;
  --f-titulos: 'Bricolage', 'Instrument', system-ui, sans-serif;
  --f-dial: 'Michroma', 'Instrument', system-ui, sans-serif;
  --f-datos: 'Instrument', system-ui, sans-serif;
  --peso-titulos: 760;
  --tracking-titulos: -0.035em;

  --baquelita: #14110e;
  --baquelita-2: #1e1a15;
  --baquelita-3: #2b251e;
  --tinta-cristal: #efe3c8;
  --ambar: #f2a541;
  --ambar-vivo: #ffc56b;
  --aguja: #e5341f;
  --fosforo: #46e08a;
  --fosforo-oscuro: #0b2a19;

  --fondo: #e8eae6;
  --superficie: #f6f7f4;
  --superficie-2: #dde0db;
  --hundido: #d4d8d2;
  --linea: #c6cbc4;
  --linea-fuerte: #959c93;
  --texto: #111311;
  --texto-2: #3f453f;
  --texto-3: #5d645d;
  --acento: #c92a17;
  --acento-hover: #a92312;
  --acento-suave: #f2d8d1;
  --acento-texto: #a42211;
  --sobre-acento: #ffffff;
  --ok: #1b7a46; --ok-suave: #d6efdf;
  --atencion: #8a5a00; --atencion-suave: #f6e7c6;
  --error: #b42b20; --error-suave: #f7dcd8;
  --info: #24609e; --info-suave: #dce8f4;

  --radio-s: 4px; --radio: 6px; --radio-l: 8px; --radio-xl: 12px;
  --sombra-1: none;
  --sombra-2: 0 10px 28px -14px rgb(17 19 17 / 0.35);
  --sombra-3: 0 30px 70px -20px rgb(17 19 17 / 0.5);
  --foco: 0 0 0 3px color-mix(in oklab, var(--acento) 40%, transparent);
  --ancho: 1240px;
  --barra-alto: 60px;
  --pletina-alto: 76px;
  --curva: cubic-bezier(0.22, 0.8, 0.24, 1);
  --curva-muelle: cubic-bezier(0.3, 1.45, 0.55, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema='claro']) {
    --fondo: #0d0e0d; --superficie: #161816; --superficie-2: #1f221f; --hundido: #090a09;
    --linea: #2a2e2a; --linea-fuerte: #4a514a;
    --texto: #ecece6; --texto-2: #b5bab2; --texto-3: #8b9289;
    --acento: #ff5b42; --acento-hover: #ff7a65; --acento-suave: #3a1712; --acento-texto: #ff8b77; --sobre-acento: #1a0805;
    --ok: #55d08c; --ok-suave: #102d1c; --atencion: #f1b44f; --atencion-suave: #33260f; --error: #ff7a6b; --error-suave: #3a1714; --info: #74b2f0; --info-suave: #132a3f;
    --sombra-2: 0 12px 30px -12px rgb(0 0 0 / 0.7); --sombra-3: 0 30px 70px -16px rgb(0 0 0 / 0.85);
    --baquelita: #17130f; --baquelita-2: #211c16;
  }
}
:root[data-tema='oscuro'] {
  --fondo: #0d0e0d; --superficie: #161816; --superficie-2: #1f221f; --hundido: #090a09;
  --linea: #2a2e2a; --linea-fuerte: #4a514a;
  --texto: #ecece6; --texto-2: #b5bab2; --texto-3: #8b9289;
  --acento: #ff5b42; --acento-hover: #ff7a65; --acento-suave: #3a1712; --acento-texto: #ff8b77; --sobre-acento: #1a0805;
  --ok: #55d08c; --ok-suave: #102d1c; --atencion: #f1b44f; --atencion-suave: #33260f; --error: #ff7a6b; --error-suave: #3a1714; --info: #74b2f0; --info-suave: #132a3f;
  --sombra-2: 0 12px 30px -12px rgb(0 0 0 / 0.7); --sombra-3: 0 30px 70px -16px rgb(0 0 0 / 0.85);
  --baquelita: #17130f; --baquelita-2: #211c16;
}

/* ── Base ─────────────────────────────────────────────────────────────────────────────────────────────────── */
body { font-size: 1rem; line-height: 1.5; font-feature-settings: 'ss01'; }
body.con-pletina { padding-bottom: calc(var(--pletina-alto) + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.8rem); line-height: 0.92; letter-spacing: -0.045em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1; letter-spacing: -0.035em; }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 700; }
a { color: var(--texto); text-decoration-color: color-mix(in oklab, var(--acento) 60%, transparent); }
a:hover { color: var(--acento-texto); }
::selection { background: color-mix(in oklab, var(--ambar) 55%, transparent); color: var(--texto); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 2px; }
.mhz, .num, .reloj { font-family: var(--f-dial); font-weight: 400; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.datos, .cifras, time { font-variant-numeric: tabular-nums; }
.contenedor { max-width: var(--ancho); }
.principal { padding-block: 0 72px; }
.vista { animation: vista-entra 260ms var(--curva); }
@keyframes vista-entra { from { opacity: 0; translate: 0 10px; } }
.suave { color: var(--texto-2); }
.tenue { color: var(--texto-3); }
kbd { font-family: var(--f-dial); font-size: 0.68rem; border-radius: 3px; background: var(--superficie); padding: 0.2em 0.45em; }

/* ── Barra de arriba ─────────────────────────────────────────────────────────────────────────────────────── */
.barra { background: var(--fondo); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--linea); }
.barra > .contenedor { gap: 18px; }
.marca { font-family: var(--f-titulos); font-weight: 760; font-size: 1.16rem; letter-spacing: -0.03em; gap: 10px; }
.marca img { width: 30px; height: 30px; border-radius: 7px; }
.navegacion { margin-left: 8px; gap: 2px; }
.navegacion a { position: relative; padding: 8px 11px; border-radius: 0; font-weight: 560; font-size: 0.92rem; color: var(--texto-2); background: none !important; }
.navegacion a:hover { color: var(--texto); }
.navegacion a[aria-current='page'] { color: var(--texto); }
.navegacion a[aria-current='page']::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: -11px; height: 3px; background: var(--aguja); border-radius: 2px 2px 0 0; }
.navegacion .contador-nav { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: var(--aguja); color: #fff; font-size: 0.68rem; font-weight: 700; vertical-align: 2px; }
.barra .acciones { gap: 8px; }
.boton-buscar { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--linea); border-radius: 18px; background: var(--superficie); color: var(--texto-3); font-size: 0.86rem; cursor: pointer; }
.boton-buscar:hover { border-color: var(--linea-fuerte); color: var(--texto-2); }
.boton-buscar .ico { width: 16px; height: 16px; }
@media (max-width: 1080px) { .boton-buscar span, .boton-buscar kbd { display: none; } .boton-buscar { width: 36px; padding: 0; justify-content: center; } }
.cuenta-boton { border-radius: 18px; border-color: var(--linea); background: var(--superficie); }
.cuenta-boton .avatar { background: var(--baquelita); color: var(--ambar); font-family: var(--f-dial); font-size: 0.72rem; }

/* ── Botones: teclas de aparato ──────────────────────────────────────────────────────────────────────────── */
.boton {
  --b-fondo: var(--superficie); --b-texto: var(--texto); --b-borde: var(--linea-fuerte); --b-hover: var(--superficie-2);
  min-height: 40px; padding: 8px 15px; border-radius: var(--radio); border-width: 1px 1px 2px; box-shadow: none;
  font-weight: 620; font-size: 0.9rem; letter-spacing: -0.005em;
  transition: background 120ms, transform 90ms, border-color 120ms, color 120ms;
}
.boton:active { transform: translateY(1px); border-bottom-width: 1px; margin-bottom: 1px; }
.boton.primario { --b-fondo: var(--acento); --b-texto: var(--sobre-acento); --b-borde: color-mix(in oklab, var(--acento) 70%, #000); --b-hover: var(--acento-hover); }
.boton.suave { --b-fondo: var(--acento-suave); --b-texto: var(--acento-texto); --b-borde: transparent; }
.boton.fantasma { --b-borde: transparent; border-width: 1px; }
.boton.oscuro { --b-fondo: var(--baquelita); --b-texto: var(--tinta-cristal); --b-borde: #000; --b-hover: var(--baquelita-3); }
.boton.grande { min-height: 52px; padding: 12px 22px; font-size: 1rem; border-radius: var(--radio-l); }
.boton.pequeno { min-height: 32px; padding: 4px 10px; font-size: 0.8rem; }
.boton.icono { width: 40px; min-width: 40px; padding: 0; }
.boton svg { width: 17px; height: 17px; }
.enlace-boton { background: none; border: 0; padding: 0; color: var(--acento-texto); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* Campos */
.campo > label, .campo > .rotulo { font-weight: 620; font-size: 0.86rem; }
.entrada, .campo input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']), .campo select, .campo textarea, .buscador input {
  border-radius: var(--radio); border: 1.5px solid var(--linea); background: var(--superficie); min-height: 44px;
}
.entrada:focus, .campo input:focus, .campo select:focus, .campo textarea:focus, .buscador input:focus { border-color: var(--texto); box-shadow: var(--foco); }
.buscador input { height: 44px; border-radius: 22px; }
.segmentado { border-radius: 22px; padding: 3px; background: var(--superficie-2); border: 0; }
.segmentado button, .segmentado label { border-radius: 18px; padding: 7px 14px; font-weight: 620; }
.segmentado button[aria-pressed='true'], .segmentado label:has(input:checked) { background: var(--texto); color: var(--fondo); box-shadow: none; }
label.casilla input { border-radius: 3px; }
label.casilla input:checked { background: var(--texto); border-color: var(--texto); }
label.casilla input::before { background: var(--fondo); }
.interruptor input:checked { background: var(--aguja); }
input[type='range'] { accent-color: var(--aguja); }

/* Capas del kit con el lenguaje de la radio */
dialog.dialogo { border-radius: var(--radio-xl); border: 1px solid var(--linea-fuerte); box-shadow: var(--sombra-3); }
dialog.dialogo > header h2 { font-size: 1.6rem; letter-spacing: -0.035em; }
dialog.dialogo::backdrop { background: rgb(10 9 7 / 0.55); backdrop-filter: none; }
.menu { border-radius: var(--radio-l); border-color: var(--linea-fuerte); box-shadow: var(--sombra-2); padding: 5px; }
.menu button, .menu a { border-radius: var(--radio-s); padding: 9px 11px; }
.tostada { border-radius: var(--radio-l); background: var(--baquelita); color: var(--tinta-cristal); box-shadow: var(--sombra-3); border-left: 3px solid var(--ambar); font-weight: 520; }
.tostada.ok { border-left-color: var(--fosforo); }
.tostada.ok svg { color: var(--fosforo); }
.tostada.error { background: #3a0f0a; color: #ffe9e4; border-left-color: var(--aguja); }
body.con-pletina .tostadas { bottom: calc(var(--pletina-alto) + 18px + env(safe-area-inset-bottom)); }
.etiqueta { border-radius: 3px; font-weight: 650; background: transparent; border: 1px solid var(--linea-fuerte); color: var(--texto-2); }
.etiqueta.vivo { border-color: transparent; background: var(--baquelita); color: var(--fosforo); }
.etiqueta.acento { background: var(--acento-suave); }
.aviso { border-radius: var(--radio); }
.vacio { border: 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); border-radius: 0; padding: 48px 16px; }
.vacio h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.vacio > svg:first-child { width: 120px; height: auto; color: var(--texto-3); }
.pasos li { border-top-width: 3px; }
.pasos li[aria-current='step'] { border-color: var(--aguja); }
.progreso { height: 6px; border-radius: 0; background: var(--hundido); }
.progreso > span { background: var(--aguja); border-radius: 0; }
.solapas [aria-selected='true']::after, .solapas [aria-current='page']::after { background: var(--aguja); }

/* ── El frontal (portada y páginas de emisora): la radio de verdad ───────────────────────────────────────── */
.frontal {
  position: relative; color: var(--tinta-cristal);
  background:
    radial-gradient(120% 90% at 50% -10%, rgb(255 255 255 / 0.05), transparent 60%),
    linear-gradient(180deg, var(--baquelita-2), var(--baquelita) 70%);
  border-bottom: 1px solid #000;
  padding: 26px 0 0;
  overflow: hidden;
}
.frontal::after { /* veta de la baquelita: muy leve, solo para que no sea un negro plano */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(97deg, transparent 0 22px, rgb(255 255 255 / 0.012) 22px 23px, transparent 23px 61px);
}
.frontal > * { position: relative; z-index: 1; }
.frontal-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; font-family: var(--f-dial); font-size: 0.72rem; letter-spacing: 0.08em; color: color-mix(in oklab, var(--tinta-cristal) 62%, transparent); }
.frontal-cabeza .reloj { font-size: 0.9rem; color: var(--tinta-cristal); }
.frontal-cabeza .banda b { color: var(--ambar); font-weight: 400; }

/* El cristal del dial */
.dial { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; }
.dial:focus-visible .cristal { box-shadow: 0 0 0 2px var(--ambar), inset 0 0 0 1px #000; }
.cristal {
  position: relative; height: 172px; margin: 0 clamp(0px, 3vw, 40px); border-radius: 10px; overflow: hidden; cursor: grab;
  background:
    linear-gradient(180deg, rgb(255 190 110 / 0.10), transparent 30%, transparent 70%, rgb(0 0 0 / 0.35)),
    radial-gradient(60% 140% at 50% 120%, rgb(242 165 65 / 0.22), transparent 70%),
    #0a0806;
  box-shadow: inset 0 0 0 1px #000, inset 0 2px 0 rgb(255 255 255 / 0.06), inset 0 -18px 30px -18px rgb(242 165 65 / 0.25), 0 1px 0 rgb(255 255 255 / 0.05);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.cristal.arrastrando { cursor: grabbing; }
.escala { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.escala svg { height: 100%; display: block; overflow: visible; }
.escala .marca-c { stroke: var(--tinta-cristal); stroke-width: 1; opacity: 0.55; }
.escala .marca-m { stroke: var(--tinta-cristal); stroke-width: 1.2; opacity: 0.8; }
.escala .marca-l { stroke: var(--tinta-cristal); stroke-width: 1.6; }
.escala .cifra-dial { fill: var(--tinta-cristal); font-family: var(--f-dial); font-size: 15px; }
.escala .linea-banda { stroke: var(--aguja); stroke-width: 1.4; opacity: 0.8; }
.escala .rotulo-banda { fill: var(--aguja); font-family: var(--f-dial); font-size: 10px; letter-spacing: 0.1em; }
.escala .nombre-emisora { fill: var(--ambar); font-family: var(--f-dial); font-size: 11.5px; letter-spacing: 0.04em; transition: fill 200ms; }
.escala .nombre-emisora.propia { fill: #ffd9a0; }
.escala .lampara { fill: var(--ambar); }
.escala .hilo { stroke: var(--ambar); stroke-width: 1; opacity: 0.45; }
.escala .sintonizada .nombre-emisora { fill: #fff3dd; }
.escala .sintonizada .lampara { fill: #fff3dd; }
.aguja { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 3px; margin-left: -1.5px; background: var(--aguja); border-radius: 2px; pointer-events: none;
  box-shadow: 0 0 10px rgb(229 52 31 / 0.65), 0 0 2px rgb(255 120 90 / 0.9); }
.aguja::before { content: ''; position: absolute; top: -10px; left: -5px; width: 13px; height: 8px; border-radius: 2px 2px 6px 6px; background: var(--aguja); }
.cristal-brillo { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / 0.05) 44%, transparent 52%); }

/* Mandos bajo el cristal */
.mandos { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(14px, 3vw, 40px); padding: 20px 0 26px; }
.lectura { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.lectura .mhz { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); color: var(--ambar); line-height: 1; text-shadow: 0 0 18px rgb(242 165 65 / 0.35); }
.lectura small { font-family: var(--f-dial); font-size: 0.7rem; color: color-mix(in oklab, var(--tinta-cristal) 60%, transparent); }
.lectura .estado-senal { margin-left: 8px; font-size: 0.86rem; color: color-mix(in oklab, var(--tinta-cristal) 72%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boton-encender {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 8px; border-radius: 24px; cursor: pointer;
  border: 1px solid #000; background: linear-gradient(180deg, #2a241d, #17130f); color: var(--tinta-cristal); font-weight: 650; font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 2px 0 #000;
}
.boton-encender .piloto { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #0d0b09; box-shadow: inset 0 0 0 1px #000; }
.boton-encender .piloto::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #4a1a12; transition: background 200ms, box-shadow 200ms; }
.boton-encender[aria-pressed='true'] .piloto::after { background: var(--aguja); box-shadow: 0 0 12px var(--aguja); }
.boton-encender:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); }

/* Mando de sintonía moleteado */
.mando { width: 108px; height: 108px; border-radius: 50%; position: relative; cursor: grab; touch-action: none; flex-shrink: 0;
  background: repeating-conic-gradient(from 0deg, #2c261f 0deg 3deg, #1a1612 3deg 6deg);
  box-shadow: 0 6px 14px -4px #000, inset 0 0 0 1px #000, 0 0 0 6px #0f0c0a, 0 0 0 7px #2b251e; }
.mando-cara { position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a4036, #1e1915 70%); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.12), inset 0 -2px 4px rgb(0 0 0 / 0.6); will-change: transform; }
.mando-cara::after { content: ''; position: absolute; top: 9px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 6px rgb(242 165 65 / 0.7); }
.mando:active { cursor: grabbing; }
.mando-pista { font-family: var(--f-dial); font-size: 0.6rem; text-align: center; margin-top: 8px; color: color-mix(in oklab, var(--tinta-cristal) 50%, transparent); letter-spacing: 0.08em; }

/* Ojo mágico (EM84): abanico verde que se cierra al sintonizar */
.ojo { --apertura: 120deg; width: 56px; height: 56px; border-radius: 50%; position: relative; flex-shrink: 0;
  background: conic-gradient(from calc(var(--apertura) / -2), var(--fosforo-oscuro) 0 var(--apertura), var(--fosforo) var(--apertura) 360deg);
  box-shadow: 0 0 0 4px #0d0b09, 0 0 0 5px #2b251e, 0 0 22px rgb(70 224 138 / 0.28); transition: --apertura 240ms; }
.ojo::after { content: ''; position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle, #1b3a28, #07140c); box-shadow: 0 0 0 1px #000; }
.ojo.pequeno { width: 22px; height: 22px; box-shadow: 0 0 0 2px #0d0b09, 0 0 10px rgb(70 224 138 / 0.25); }
.ojo.apagado { background: #0f1a13; box-shadow: 0 0 0 4px #0d0b09, 0 0 0 5px #2b251e; }
@property --apertura { syntax: '<angle>'; inherits: false; initial-value: 120deg; }

/* Bajo el frontal: el nombre enorme de lo que suena */
.sintonia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); gap: clamp(24px, 5vw, 80px); padding-top: clamp(28px, 4vw, 56px); align-items: start; }
.nombre-grande { font-size: clamp(3rem, 0.6rem + 9.6vw, 10rem); line-height: 0.84; letter-spacing: -0.055em; font-weight: 800; margin: 0 0 0.12em -0.04em; overflow-wrap: anywhere; }
.nombre-grande.estatica { color: transparent; -webkit-text-stroke: 1.5px var(--texto-3); }
.lema-grande { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); color: var(--texto-2); max-width: 46ch; margin-bottom: 26px; }
.suena { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0; border-top: 2px solid var(--texto); border-bottom: 1px solid var(--linea); max-width: 760px; }
.suena .portada { width: 96px; height: 96px; }
.suena .que { min-width: 0; }
.suena .titulo-c { font-family: var(--f-titulos); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); font-weight: 720; letter-spacing: -0.03em; line-height: 1.05; }
.suena .artista-c { color: var(--texto-2); font-size: 1.02rem; margin-top: 2px; }
.suena .meta-c { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 0.84rem; color: var(--texto-3); }
.suena .barra-tiempo { margin-top: 10px; height: 3px; background: var(--hundido); position: relative; overflow: hidden; }
.suena .barra-tiempo span { position: absolute; inset: 0 auto 0 0; background: var(--texto); transform-origin: left; }
.dedicatoria { margin-top: 14px; padding: 12px 16px; background: var(--baquelita); color: var(--tinta-cristal); border-radius: 0 var(--radio-l) var(--radio-l) var(--radio-l); font-style: italic; max-width: 620px; position: relative; }
.dedicatoria b { font-style: normal; color: var(--ambar); font-weight: 650; }
.punto-vivo { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fosforo); box-shadow: 0 0 0 3px color-mix(in oklab, var(--fosforo) 25%, transparent); animation: latido 2.4s ease-in-out infinite; }
@keyframes latido { 50% { opacity: 0.35; } }
.explica { font-size: 0.95rem; color: var(--texto-2); border-left: 2px solid var(--texto); padding-left: 18px; }
.explica p:first-child::first-line { color: var(--texto); font-weight: 650; }
.explica .boton { margin-top: 6px; }

/* Parrilla: la programación con horas de reloj */
.bloque { margin-top: clamp(44px, 6vw, 88px); }
.bloque > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--texto); padding-bottom: 10px; margin-bottom: 0; }
.bloque > header h2 { margin: 0; }
.bloque > header p { margin: 0; color: var(--texto-3); font-size: 0.9rem; }
.parrilla { list-style: none; margin: 0; padding: 0; }
.parrilla li { display: grid; grid-template-columns: 74px 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.parrilla .hora { font-family: var(--f-dial); font-size: 0.95rem; color: var(--texto-2); }
.parrilla .portada { width: 40px; height: 40px; }
.parrilla .t { font-weight: 620; min-width: 0; }
.parrilla .t span { display: block; font-weight: 400; color: var(--texto-3); font-size: 0.88rem; }
.parrilla .t, .parrilla .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parrilla .ded { font-style: italic; color: var(--acento-texto); font-size: 0.82rem; }
.parrilla li.primera .hora { color: var(--acento-texto); }
.parrilla li.pasada { opacity: 0.62; }

/* Tabla de frecuencias (las emisoras del dial) */
.frecuencias { width: 100%; border-collapse: collapse; }
.frecuencias td, .frecuencias th { padding: 13px 10px 13px 0; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: middle; }
.frecuencias th { font-size: 0.78rem; color: var(--texto-3); font-weight: 600; }
.frecuencias .mhz { font-size: 1.25rem; width: 120px; }
.frecuencias .nombre-f { font-family: var(--f-titulos); font-weight: 740; font-size: 1.25rem; letter-spacing: -0.03em; }
.frecuencias .nombre-f small { display: block; font-family: var(--f-texto); font-weight: 400; font-size: 0.86rem; letter-spacing: 0; color: var(--texto-3); }
.frecuencias tr { cursor: pointer; transition: background 120ms; }
.frecuencias tbody tr:hover { background: var(--superficie); }
.frecuencias tr[aria-current='true'] .mhz { color: var(--acento-texto); }
.frecuencias .sonando-f { color: var(--texto-2); font-size: 0.9rem; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .frecuencias .sonando-f, .frecuencias th:nth-child(3) { display: none; } .frecuencias .mhz { width: 86px; font-size: 1.05rem; } }

/* Pedir una canción */
.pedir { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding-top: 22px; }
.pedir .formulario { align-content: start; }
.resultados { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.resultados li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--linea); }
.resultados li b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resultados li span { font-size: 0.84rem; color: var(--texto-3); }
.resultados li.elegido { background: var(--acento-suave); box-shadow: -10px 0 0 var(--acento-suave), 10px 0 0 var(--acento-suave); }
.nota-pedir { font-size: 0.88rem; color: var(--texto-3); }

/* ── Portadas de disco y dibujos propios ──────────────────────────────────────────────────────────────────── */
.portada { position: relative; display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; border-radius: 3px; background: var(--baquelita); }
.portada img { width: 100%; height: 100%; object-fit: cover; }
.portada.sin { display: grid; place-items: center; background: radial-gradient(circle, #2b251e 0 18%, #0e0c0a 19% 21%, #1d1915 22% 100%); }
.portada.sin::after { content: ''; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--ambar); opacity: 0.85; }

/* ── Reproductor fijo abajo («la pletina») ───────────────────────────────────────────────────────────────── */
.pletina {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(var(--pletina-alto) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--baquelita); color: var(--tinta-cristal); border-top: 1px solid #000; box-shadow: 0 -10px 30px -18px rgb(0 0 0 / 0.6);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 520px) minmax(0, 1fr); align-items: center; gap: 18px; padding-inline: 16px;
  animation: pletina-sube 320ms var(--curva);
}
@keyframes pletina-sube { from { translate: 0 100%; } }
.pletina[hidden] { display: none; }
.pletina .que { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pletina .portada { width: 50px; height: 50px; }
.pletina .textos { min-width: 0; }
.pletina .titulo-p { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.95rem; }
.pletina .artista-p { font-size: 0.82rem; color: color-mix(in oklab, var(--tinta-cristal) 66%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pletina .origen-p { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-family: var(--f-dial); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--ambar); text-decoration: none; }
.pletina .origen-p:hover { color: var(--ambar-vivo); }
.pletina .centro { display: grid; gap: 4px; }
.transporte { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tecla-p { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--tinta-cristal); cursor: pointer; transition: background 120ms, color 120ms, transform 90ms; }
.tecla-p:hover { background: rgb(255 255 255 / 0.07); }
.tecla-p:active { transform: scale(0.94); }
.tecla-p svg { width: 20px; height: 20px; fill: currentColor; }
.tecla-p.activa { color: var(--ambar); }
.tecla-p[disabled] { opacity: 0.3; pointer-events: none; }
.tecla-p.grande { width: 46px; height: 46px; background: var(--aguja); color: #fff; box-shadow: 0 0 0 4px rgb(229 52 31 / 0.18); }
.tecla-p.grande:hover { background: #ff4b33; }
.tecla-p.grande svg { width: 22px; height: 22px; }
.tecla-p .ico { width: 19px; height: 19px; fill: none; }
.tiempo-p { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 8px; font-family: var(--f-dial); font-size: 0.6rem; color: color-mix(in oklab, var(--tinta-cristal) 60%, transparent); }
.tiempo-p span:last-child { text-align: right; }
.raya { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.raya::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgb(255 255 255 / 0.14); }
.raya .hecho { position: absolute; left: 0; top: 8px; height: 2px; background: var(--tinta-cristal); transform-origin: left; width: 100%; transform: scaleX(0); }
.raya .cursor { position: absolute; top: 2px; width: 3px; height: 14px; margin-left: -1px; background: var(--aguja); border-radius: 2px; left: 0; box-shadow: 0 0 6px rgb(229 52 31 / 0.6); }
.raya.directo { cursor: default; }
.raya.directo::before { background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.18) 0 4px, transparent 4px 8px); }
.pletina .lado { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.volumen { display: flex; align-items: center; gap: 6px; }
.volumen input { width: 96px; accent-color: var(--ambar); }
.dormir-p { font-family: var(--f-dial); font-size: 0.58rem; color: var(--ambar); margin-right: 4px; }
.pletina .oyentes-p { font-size: 0.78rem; color: color-mix(in oklab, var(--tinta-cristal) 70%, transparent); white-space: nowrap; }

/* Panel desplegado (cola, programación, ajustes de escucha) */
.hoja { position: fixed; z-index: 75; right: 12px; bottom: calc(var(--pletina-alto) + 12px + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 24px)); max-height: min(70dvh, 640px);
  display: flex; flex-direction: column; background: var(--superficie); color: var(--texto); border: 1px solid var(--linea-fuerte); border-radius: var(--radio-xl); box-shadow: var(--sombra-3); overflow: hidden; animation: hoja-entra 220ms var(--curva); }
@keyframes hoja-entra { from { opacity: 0; translate: 0 12px; } }
.hoja > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--linea); }
.hoja > header h2 { font-size: 1.25rem; margin: 0; }
.hoja .cuerpo-hoja { overflow-y: auto; padding: 6px 16px 16px; }
.hoja h3 { font-size: 0.86rem; color: var(--texto-3); font-weight: 650; margin: 14px 0 6px; }
.cola-l { list-style: none; margin: 0; padding: 0; }
.cola-l li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--linea); }
.cola-l li.ahora { color: var(--acento-texto); }
.cola-l .portada { width: 36px; height: 36px; }
.cola-l b { display: block; font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cola-l span { display: block; font-size: 0.8rem; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hoja .transporte-hoja { display: none; }
@media (max-width: 900px) {
  .hoja .transporte-hoja { display: block; }
  :root { --pletina-alto: 66px; }
  .pletina { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-inline: 10px 6px; }
  .pletina .centro .tiempo-p, .pletina .lado .volumen, .pletina .lado .solo-ancho { display: none; }
  .pletina .centro { order: 2; }
  .pletina .transporte .solo-ancho { display: none; }
  .pletina .portada { width: 44px; height: 44px; }
  .pletina .raya-movil { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: rgb(255 255 255 / 0.1); }
  .pletina .raya-movil span { display: block; height: 100%; background: var(--ambar); transform-origin: left; transform: scaleX(0); }
  .pletina .lado { display: none; }
  body.con-pestanas.con-pletina { padding-bottom: calc(var(--pletina-alto) + 64px + env(safe-area-inset-bottom)); }
  body.con-pestanas .pletina { bottom: calc(64px + env(safe-area-inset-bottom)); height: var(--pletina-alto); padding-bottom: 0; border-bottom: 1px solid #000; }
  body.con-pestanas .hoja { bottom: calc(var(--pletina-alto) + 64px + 10px + env(safe-area-inset-bottom)); }
  body.con-pestanas.con-pletina .tostadas { bottom: calc(var(--pletina-alto) + 64px + 14px + env(safe-area-inset-bottom)); }
}
@media (min-width: 901px) { .pletina .raya-movil { display: none; } }

/* Pestañas de abajo (móvil) */
.pestanas { background: var(--fondo); border-top: 1px solid var(--linea); backdrop-filter: none; -webkit-backdrop-filter: none; }
.pestanas a { font-weight: 620; font-size: 0.68rem; color: var(--texto-3); position: relative; }
.pestanas a[aria-current='page'] { color: var(--texto); }
.pestanas a[aria-current='page']::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--aguja); }
.pestanas a .contador-nav { position: absolute; top: 6px; left: 56%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--aguja); color: #fff; font-size: 0.6rem; display: grid; place-items: center; }

/* ── Zonas de trabajo (biblioteca, listas, peticiones, emisora, control) ─────────────────────────────────── */
.trabajo { padding-top: clamp(24px, 4vw, 48px); }
.cabeza-t { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 28px; padding-bottom: 18px; border-bottom: 2px solid var(--texto); margin-bottom: 18px; }
.cabeza-t h1 { margin: 0; }
.cabeza-t .sub { margin: 10px 0 0; color: var(--texto-2); max-width: 60ch; }
.cabeza-t .acciones-t { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 700px) { .cabeza-t { grid-template-columns: minmax(0, 1fr); } .cabeza-t .acciones-t { justify-content: flex-start; } }
.cifra-grande { font-family: var(--f-dial); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1; letter-spacing: -0.01em; }
.herramientas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px; }
.herramientas .buscador { flex: 1 1 260px; min-width: 200px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--linea-fuerte); background: transparent; color: var(--texto-2); border-radius: 16px; padding: 5px 12px; font-size: 0.84rem; font-weight: 600; cursor: pointer; min-height: 32px; }
.chip[aria-pressed='true'] { background: var(--texto); border-color: var(--texto); color: var(--fondo); }
.chip .n { font-family: var(--f-dial); font-size: 0.62rem; margin-left: 6px; opacity: 0.75; }
.ordenar-sel { min-height: 36px; border-radius: 18px; border: 1px solid var(--linea-fuerte); background: var(--superficie); padding: 0 32px 0 12px; font-size: 0.86rem; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }

/* Filas de canciones */
.pistas { list-style: none; margin: 0; padding: 0; }
.pista { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) minmax(0, 0.55fr) 64px 40px 40px; gap: 12px; align-items: center; padding: 7px 6px; border-bottom: 1px solid var(--linea); min-height: 58px; position: relative; }
.pista:hover { background: color-mix(in oklab, var(--superficie) 70%, transparent); }
.pista.sonando { background: color-mix(in oklab, var(--ambar) 14%, transparent); }
.pista.sonando .t b { color: var(--acento-texto); }
.pista.elegida { background: color-mix(in oklab, var(--acento) 10%, transparent); }
.pista .t { min-width: 0; cursor: default; }
.pista .t b { display: block; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pista .t span { display: block; font-size: 0.86rem; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pista .alb { font-size: 0.86rem; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pista .dur { font-family: var(--f-dial); font-size: 0.72rem; color: var(--texto-2); text-align: right; }
.pista .portada { cursor: pointer; }
.pista .portada .play-sobre { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 0.5); color: #fff; opacity: 0; transition: opacity 120ms; }
.pista .portada .play-sobre svg { width: 18px; height: 18px; fill: currentColor; }
.pista:hover .portada .play-sobre, .pista .portada:focus-visible .play-sobre { opacity: 1; }
.pista .ded-l { font-style: italic; color: var(--acento-texto); }
.corazon { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--texto-3); cursor: pointer; border-radius: 50%; }
.corazon svg { width: 18px; height: 18px; }
.corazon[aria-pressed='true'] { color: var(--aguja); }
.corazon[aria-pressed='true'] svg { fill: currentColor; }
.corazon:hover { background: var(--superficie-2); }
.corazon.late { animation: late 380ms var(--curva-muelle); }
@keyframes late { 40% { transform: scale(1.35); } }
.asa { display: grid; place-items: center; width: 28px; height: 40px; color: var(--texto-3); cursor: grab; touch-action: none; border: 0; background: none; }
.asa svg { width: 16px; height: 16px; }
.pista.arrastrada { z-index: 5; background: var(--superficie); box-shadow: var(--sombra-2); }
.pista.hueco { opacity: 0.35; }
.origen-m { font-family: var(--f-dial); font-size: 0.55rem; letter-spacing: 0.04em; color: var(--texto-3); border: 1px solid var(--linea); border-radius: 2px; padding: 1px 4px; margin-left: 6px; vertical-align: 2px; }
@media (max-width: 760px) {
  .pista { grid-template-columns: 28px 44px minmax(0, 1fr) 40px 36px; gap: 10px; }
  .pista .alb, .pista .dur { display: none; }
}
.mas-filas { display: flex; justify-content: center; padding: 18px 0; }

/* Barra de acciones en lote */
.lote { position: sticky; top: calc(var(--barra-alto) + 8px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; margin-bottom: 8px;
  background: var(--baquelita); color: var(--tinta-cristal); border-radius: var(--radio-l); box-shadow: var(--sombra-2); animation: hoja-entra 180ms var(--curva); }
.lote .boton { --b-fondo: transparent; --b-texto: var(--tinta-cristal); --b-borde: rgb(255 255 255 / 0.2); --b-hover: rgb(255 255 255 / 0.08); }
.lote .boton.primario { --b-fondo: var(--aguja); --b-borde: #000; --b-texto: #fff; }
.lote b { font-family: var(--f-dial); font-size: 0.78rem; margin-right: 6px; color: var(--ambar); }

/* Cola de descargas */
.cola-d { margin: 0 0 20px; border: 1px solid var(--linea-fuerte); border-radius: var(--radio-l); background: var(--superficie); overflow: hidden; }
.cola-d > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linea); }
.cola-d > header h2 { font-size: 1.05rem; margin: 0; letter-spacing: -0.02em; }
.cola-d ul { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow-y: auto; }
.trabajo-d { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--linea); }
.trabajo-d:last-child { border-bottom: 0; }
.trabajo-d b { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trabajo-d .estado-d { font-size: 0.8rem; color: var(--texto-3); }
.trabajo-d .estado-d.error { color: var(--error); }
.trabajo-d .estado-d.hecho { color: var(--ok); }
.trabajo-d .progreso { grid-column: 1 / -1; }
.trabajo-d.marcha .progreso > span { background: var(--ambar); }
.trabajo-d.marcha .progreso { background: var(--baquelita); }

/* Vúmetro de la cuota (aguja de verdad) */
.vumetro { display: flex; align-items: center; gap: 14px; }
.vumetro svg { width: 132px; height: auto; flex-shrink: 0; }
.vumetro .caja-vu { fill: var(--baquelita); }
.vumetro .escala-vu { fill: none; stroke: var(--tinta-cristal); stroke-width: 1.2; }
.vumetro .zona-roja { fill: none; stroke: var(--aguja); stroke-width: 3; }
.vumetro .aguja-vu { stroke: var(--aguja); stroke-width: 2; stroke-linecap: round; transition: transform 900ms var(--curva-muelle); transform-origin: 66px 64px; }
.vumetro .texto-vu { fill: var(--tinta-cristal); font-family: var(--f-dial); font-size: 7px; }
.vumetro .datos-vu { font-size: 0.86rem; color: var(--texto-2); line-height: 1.45; }
.vumetro .datos-vu b { font-family: var(--f-dial); font-weight: 400; color: var(--texto); }

/* Listas (estantería) */
.estante { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .estante { grid-template-columns: minmax(0, 1fr); } .estante.con-detalle .indice-l { display: none; } }
.indice-l { list-style: none; margin: 0; padding: 0; position: sticky; top: calc(var(--barra-alto) + 16px); }
.indice-l li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 6px; border-bottom: 1px solid var(--linea); }
.indice-l a { display: block; padding: 11px 0; text-decoration: none; min-width: 0; color: var(--texto); }
.indice-l a b { display: block; font-family: var(--f-titulos); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.indice-l a span { font-size: 0.82rem; color: var(--texto-3); }
.indice-l a[aria-current='page'] b { color: var(--acento-texto); }
.indice-l .asa { height: 32px; }
.indice-l .marca-antena { font-family: var(--f-dial); font-size: 0.55rem; color: var(--fosforo); background: var(--baquelita); padding: 3px 6px; border-radius: 2px; letter-spacing: 0.05em; }
.detalle-l h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); overflow-wrap: anywhere; }
.detalle-l .meta-l { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--texto-3); font-size: 0.9rem; margin: 6px 0 16px; }
.detalle-l .acciones-l { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

/* Peticiones */
.peticion { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.peticion .de { font-size: 0.84rem; color: var(--texto-3); }
.peticion .cancion { font-family: var(--f-titulos); font-weight: 720; font-size: 1.2rem; letter-spacing: -0.025em; line-height: 1.15; overflow-wrap: anywhere; }
.peticion blockquote { margin: 8px 0 0; font-style: italic; color: var(--texto-2); border-left: 2px solid var(--ambar); padding-left: 12px; }
.peticion .botones-p { display: flex; flex-wrap: wrap; gap: 6px; align-items: start; justify-content: flex-end; }
.peticion.resuelta { opacity: 0.7; }
.estado-pet { font-family: var(--f-dial); font-size: 0.6rem; letter-spacing: 0.05em; padding: 3px 7px; border-radius: 2px; border: 1px solid currentColor; white-space: nowrap; }
.estado-pet.pendiente { color: var(--atencion); }
.estado-pet.lista, .estado-pet.aceptada { color: var(--ok); }
.estado-pet.rechazada, .estado-pet.fallida { color: var(--error); }

/* Mi emisora: la «carta de ajuste» */
.carta-ajuste { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; padding: 26px clamp(18px, 3vw, 34px); margin-bottom: 28px; border-radius: var(--radio-xl); background: var(--baquelita); color: var(--tinta-cristal); position: relative; overflow: hidden; }
.carta-ajuste::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #efe3c8 0 14.28%, #f2a541 0 28.56%, #46e08a 0 42.84%, #5ac4d6 0 57.12%, #b06ad6 0 71.4%, #e5341f 0 85.68%, #3b5bd6 0); opacity: 0.9; }
.carta-ajuste h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); margin: 0; color: #fff7e8; }
.carta-ajuste .mhz { color: var(--ambar); font-size: 1.4rem; }
.carta-ajuste p { margin: 6px 0 0; color: color-mix(in oklab, var(--tinta-cristal) 75%, transparent); }
.carta-ajuste .boton { --b-fondo: transparent; --b-texto: var(--tinta-cristal); --b-borde: rgb(255 255 255 / 0.25); --b-hover: rgb(255 255 255 / 0.08); }
.carta-ajuste .boton.primario { --b-fondo: var(--aguja); --b-texto: #fff; --b-borde: #000; }
@media (max-width: 700px) { .carta-ajuste { grid-template-columns: minmax(0, 1fr); } }
.ajustes-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 30px 48px; }
.ajustes-g section { border-top: 1px solid var(--texto); padding-top: 14px; }
.ajustes-g section h2 { font-size: 1.35rem; margin-bottom: 12px; }
.selector-f { display: grid; gap: 8px; }
.selector-f .regla { position: relative; height: 36px; background: var(--baquelita); border-radius: var(--radio); overflow: hidden; }
.selector-f .regla span { position: absolute; top: 6px; bottom: 6px; width: 2px; background: var(--ambar); opacity: 0.8; }
.selector-f .regla .tuya { background: var(--aguja); width: 3px; top: 2px; bottom: 2px; opacity: 1; box-shadow: 0 0 8px var(--aguja); }
.selector-f input[type='range'] { width: 100%; }

/* Asistente de inicio */
.asistente { max-width: 680px; margin: 0 auto; padding-top: clamp(24px, 5vw, 64px); }
.asistente h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem); }

/* Control del dueño */
.paneles-c { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border-top: 2px solid var(--texto); margin-bottom: 28px; }
.paneles-c > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--linea); }
.paneles-c .cifra-grande { display: block; margin-top: 6px; }
.paneles-c span { font-size: 0.82rem; color: var(--texto-3); }
.tabla-r { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tabla-r th { text-align: left; font-size: 0.76rem; color: var(--texto-3); font-weight: 650; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--texto); white-space: nowrap; }
.tabla-r td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.tabla-r .num { font-family: var(--f-dial); font-size: 0.74rem; text-align: right; }
.tabla-caja-r { overflow-x: auto; }
.barrita { display: block; height: 4px; background: var(--hundido); margin-top: 4px; min-width: 60px; }
.barrita span { display: block; height: 100%; background: var(--texto); }

/* Ayuda y textos */
.prosa h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prosa h3 { margin-top: 1.4em; }
.prosa p, .prosa li { color: var(--texto-2); }
.prosa strong { color: var(--texto); }
.atajos-t { width: 100%; border-collapse: collapse; }
.atajos-t td { padding: 7px 0; border-bottom: 1px solid var(--linea); }
.atajos-t td:first-child { width: 140px; }

/* Pie */
.pie { border-top: 0; background: var(--baquelita); color: color-mix(in oklab, var(--tinta-cristal) 70%, transparent); margin-top: 40px; }
.pie a { color: var(--tinta-cristal); }
.pie a:hover { color: var(--ambar); }

/* Estados vacíos dibujados */
.dibujo-vacio { display: block; width: 150px; color: var(--texto-3); margin-bottom: 4px; }
.dibujo-vacio svg { width: 100%; height: auto; }
.pistas > li > .vacio { width: 100%; }

/* Animación al hacer scroll (con alternativa: si no hay animation-timeline, se ve todo sin más) */
@supports (animation-timeline: view()) {
  .aparece { animation: aparecer-scroll linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  @keyframes aparecer-scroll { from { opacity: 0; translate: 0 26px; } }
}

/* Movimiento reducido: sin coreografía (el kit ya acorta las transiciones) */
@media (prefers-reduced-motion: reduce) { .aparece { animation: none; } .punto-vivo { animation: none; } .escala { will-change: auto; } }

/* Móvil */
@media (max-width: 900px) {
  .sintonia { grid-template-columns: minmax(0, 1fr); }
  .pedir { grid-template-columns: minmax(0, 1fr); }
  .mandos { grid-template-columns: auto minmax(0, 1fr); padding-bottom: 20px; }
  .mandos .mando-envoltura { display: none; }
  .mandos .boton-encender { grid-column: 1 / -1; justify-self: start; }
  .cristal { height: 150px; margin: 0; border-radius: 0; }
  .navegacion { display: none; }
}
@media (max-width: 480px) {
  .suena { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .suena .portada { width: 72px; height: 72px; }
  .parrilla li { grid-template-columns: 58px 36px minmax(0, 1fr); }
  .parrilla li > :last-child:not(.t) { display: none; }
  .parrilla .portada { width: 36px; height: 36px; }
  .marca span { display: none; }
}

/* Impresión: tarjeta de la emisora con su QR y las listas */
@media print {
  .frontal, .pletina, .hoja, .lote, .herramientas, .asa, .corazon, .pestanas { display: none !important; }
  .carta-ajuste { background: #fff; color: #000; border: 2px solid #000; }
  .carta-ajuste h2, .carta-ajuste .mhz { color: #000; }
  .pista { grid-template-columns: 28px 0 minmax(0, 1fr) minmax(0, 0.55fr) 64px 0 0; }
}
