/* Separador: un solo aparato. Un chasis con las esquinas cortadas y luces en
   los cantos; dentro, placas: las pantallas de las pistas, el transporte y
   una placa por canal del mezclador. Botones de goma y faders de metal. */
:root {
  --fondo: #03050A;
  --chasis-a: #1A2334; --chasis-b: #0B111C;
  --placa-a: #141C2B; --placa-b: #0B1019; --placa-borde: #26324A;
  --azul: #FFB23F; --azul-luz: #FFD98A; --texto: #D6DEEE; --apagado: #71809B; --grabado: #56637C;
  --c0: #FFF27A; --c1: #FFC93D; --c2: #FF9F2E; --c3: #FF7A2A;
  --ch: 10px; --header-offset: 105px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Nada se desplaza: es una app. Sin esto, en el teléfono arrastrar un
   fader movía la página entera. */
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--fondo);
  color: var(--texto); font-family: 'Barlow Condensed', Lato, system-ui, sans-serif; }
body { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 30%, #1D1708 0, var(--fondo) 70%); }
button, label.goma { font: inherit; color: inherit; }

/* ---------- placas con esquinas cortadas ---------- */
.placa, .maquina { position: relative; isolation: isolate; }
.placa::before, .placa::after, .maquina::before, .maquina::after {
  content: ''; position: absolute; z-index: -1;
  clip-path: polygon(var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)),
    calc(100% - var(--ch)) 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch));
}
.placa::before { inset: 0; background: linear-gradient(180deg, #34425F, var(--placa-borde) 30%, #1A2233); }
.placa::after { inset: 1px; background:
  radial-gradient(ellipse at 50% 0, rgba(255, 210, 120, .07), transparent 60%),
  linear-gradient(180deg, var(--placa-a), var(--placa-b)); }

/* ---------- el chasis ---------- */
.app { position: absolute; inset: var(--header-offset, 105px) 0 0 0; display: flex; justify-content: center;
  padding: 6px max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
.maquina { --ch: 22px; width: 100%; max-width: 1100px; height: 100%; display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto minmax(250px, 42%); gap: 8px; padding: 14px 14px 16px;
  filter: drop-shadow(0 0 10px rgba(255, 178, 63, .35)) drop-shadow(0 18px 30px rgba(0, 0, 0, .8)); }
.maquina::before { inset: 0; background: linear-gradient(160deg, #8A6A2C, #3A2E16 25%, #2A2416 60%, #7A5A22); }
.maquina::after { inset: 2px; background:
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px),
  linear-gradient(180deg, var(--chasis-a), var(--chasis-b)); }
/* luces de los cantos */
.canto { position: absolute; background: var(--azul-luz); border-radius: 3px; box-shadow: 0 0 6px #fff, 0 0 14px var(--azul), 0 0 26px var(--azul); z-index: 3; pointer-events: none; }
.canto.arriba, .canto.abajo { left: 50%; width: 22%; height: 3px; transform: translateX(-50%); }
.canto.arriba { top: -1px; } .canto.abajo { bottom: -1px; }
.canto.izq, .canto.der { top: 50%; height: 14%; width: 3px; transform: translateY(-50%); }
.canto.izq { left: -1px; } .canto.der { right: -1px; }
.canto.arriba.i, .canto.arriba.d { width: 9%; }
.canto.arriba.i { left: 16%; } .canto.arriba.d { left: 84%; }
/* anclajes: casquillos con su piloto, no tornillos */
.anclaje { position: absolute; width: 18px; height: 18px; border-radius: 50%; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #FFE08A 0 2px, #9C6A1C 3px, #0A1222 4.5px, #28324A 5.5px, #121A29 7px, #3A4865 8.5px, #0B1019 9px);
  box-shadow: 0 0 6px rgba(255, 178, 63, .6), inset 0 1px 1px rgba(255, 255, 255, .2); }
.anclaje.a { top: 13px; left: 13px; } .anclaje.b { top: 13px; right: 13px; } .anclaje.c { bottom: 13px; left: 13px; } .anclaje.d { bottom: 13px; right: 13px; }

/* ---------- botones de goma ---------- */
.goma { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  height: 36px; padding: 0 13px; border-radius: 9px; border: 1px solid #070A12;
  background: radial-gradient(ellipse at 50% 20%, #34405A, #1D2536 55%, #151B28);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .28), inset 0 -3px 5px rgba(0, 0, 0, .55), 0 2px 0 #04060B, 0 4px 8px rgba(0, 0, 0, .6);
  letter-spacing: .12em; text-transform: uppercase; font-size: 14px; font-weight: 700; color: #C5D2EA;
  transition: transform .06s, box-shadow .15s, filter .15s; }
.goma:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .15), inset 0 -1px 4px rgba(0, 0, 0, .6), 0 1px 0 #04060B; }
.goma:disabled { filter: saturate(.3) brightness(.55); cursor: default; }
.goma svg { filter: drop-shadow(0 0 3px currentColor); }
.goma input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; font-size: 0; }

/* ---------- cabecera ---------- */
.cabecera { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 6px; }
.volver { display: grid; place-items: center; width: 30px; height: 30px; color: var(--apagado); flex: 0 0 auto; }
.titulo { flex: 1; min-width: 0; line-height: 1.05; }
.titulo b { display: block; font-size: 17px; letter-spacing: .22em; text-transform: uppercase; color: #EAF2FF;
  text-shadow: 0 0 10px rgba(255, 178, 63, .8); }
.titulo span { display: block; font-size: 12.5px; color: var(--apagado); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .05em; }

/* ---------- pantallas de las pistas ---------- */
.pistas { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 8px; --ch: 12px; }
.carril { --ch: 7px; flex: 1; min-height: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr) 38px; gap: 7px; align-items: stretch; padding: 5px;
  transition: opacity .2s; }
.carril.callado { opacity: .38; }
.modulo { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding-left: 9px; position: relative; min-width: 0; }
.modulo .led { position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 2px; background: var(--c); box-shadow: 0 0 6px var(--c), 0 0 12px var(--c); }
.modulo b { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #EDF3FF; }
.modulo small { font-size: 10.5px; color: var(--apagado); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .03em; }
.pantalla { position: relative; border-radius: 5px; overflow: hidden; cursor: pointer; min-height: 0; touch-action: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255, 210, 120, .06) 0 1px, transparent 1px 10%),
    linear-gradient(180deg, #03060C, #060B15);
  box-shadow: inset 0 0 0 1px #04070D, inset 0 2px 6px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 210, 120, .12); }
.pantalla::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(255, 210, 120, .08); }
.pantalla canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.carril .bajar { width: 38px; height: auto; padding: 0; color: var(--c); }
.cabezal { position: absolute; top: 12px; bottom: 12px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px #fff, 0 0 12px var(--azul); pointer-events: none; z-index: 2; }
.vacio { position: absolute; inset: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 20px; border: 1.5px dashed #6A5222; border-radius: 10px; cursor: pointer; background: rgba(3, 6, 12, .82); z-index: 3; }
.vacio[hidden] { display: none; }
.vacio.encima, .vacio:hover { border-color: var(--azul); box-shadow: inset 0 0 30px rgba(255, 178, 63, .18); }
.vacio svg { width: 44px; height: 44px; color: var(--c0); filter: drop-shadow(0 0 8px rgba(255, 214, 90, .7)); }
.vacio b { font-size: 21px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.vacio span { max-width: 36ch; font-family: Lato, system-ui, sans-serif; font-size: 14px; color: var(--apagado); }
.vacio input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; font-size: 0; }

/* ---------- transporte ---------- */
.transporte { --ch: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-width: 0; }
.redondo { width: 42px; height: 42px; padding: 0; border-radius: 50%; flex: 0 0 auto; }
.tocar { width: 50px; height: 50px; border-color: #5A3A0A; color: #1A1206; background: radial-gradient(ellipse at 50% 22%, #FFE3A3, #FFB23F 45%, #C0701F 85%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), inset 0 -4px 6px rgba(0, 0, 0, .4), 0 2px 0 #04060B, 0 0 16px rgba(255, 178, 63, .7); }
.tocar .i-pausa, .tocar.sonando .i-play { display: none; }
.tocar.sonando .i-pausa { display: block; }
.visor { flex: 1; min-width: 0; padding: 5px 10px; border-radius: 6px; background: linear-gradient(180deg, #02050A, #050A14);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 210, 120, .14); }
.tiempo { font-size: 19px; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: #FFE7A0;
  text-shadow: 0 0 8px rgba(255, 214, 90, .7); line-height: 1.1; }
.estado { font-family: Lato, system-ui, sans-serif; font-size: 11.5px; color: var(--apagado); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.estado.error { color: #FF9AAA; }
.progreso { height: 3px; border-radius: 2px; background: #111B30; margin-top: 3px; overflow: hidden; }
.progreso i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c0), var(--c1), var(--c2), var(--c3)); box-shadow: 0 0 6px var(--c0); transition: width .3s; }

/* ---------- mezclador ---------- */
.mezclador { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; min-height: 0; padding: 4px; --ch: 14px; }
.mezclador.placa::after { background: linear-gradient(180deg, #06090F, #030509); }
.canal { --ch: 9px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; justify-items: center; gap: 7px; padding: 8px 4px 8px; min-height: 0; }
.canal .nombre { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #D5E1F7; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.canal .nombre::after { content: ''; display: block; width: 60%; height: 2px; margin: 5px auto 0; background: var(--c); box-shadow: 0 0 6px var(--c); border-radius: 1px; }
.sm { display: flex; gap: 6px; }
.sm .goma { width: 34px; height: 30px; padding: 0; font-size: 15px; letter-spacing: 0; }
.sm .s { color: #FFE3A8; border-color: #2A1A04; background: radial-gradient(ellipse at 50% 20%, #8E6A2C, #5A3E12 55%, #3D2A0B);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), inset 0 -3px 5px rgba(0, 0, 0, .5), 0 2px 0 #04060B, 0 0 0 1px rgba(255, 178, 63, .45); }
.sm .s.on { color: #fff; color: #1A1206; background: radial-gradient(ellipse at 50% 20%, #FFE9A8, #FFB23F 50%, #C27418);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -3px 5px rgba(0, 0, 0, .35), 0 1px 0 #04060B, 0 0 14px #FFB23F; transform: translateY(1px); }
.sm .m { color: #FFC4CF; border-color: #2A0610; background: radial-gradient(ellipse at 50% 20%, #9A2944, #5E1024 55%, #420A19);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .25), inset 0 -3px 5px rgba(0, 0, 0, .5), 0 2px 0 #04060B, 0 0 0 1px rgba(255, 61, 94, .4); }
.sm .m.on { color: #fff; background: radial-gradient(ellipse at 50% 20%, #FF9AAE, #FF3D5E 50%, #C0183A);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -3px 5px rgba(0, 0, 0, .3), 0 1px 0 #04060B, 0 0 14px #FF3D5E; transform: translateY(1px); }

/* el fader: riel, escala pegada con sus guías, y la perilla de metal */
.fader { --medio: 29px; position: relative; width: 100%; min-height: 0; touch-action: none; cursor: ns-resize; user-select: none; -webkit-user-select: none; }
.fader:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: 6px; }
.recorrido { position: absolute; left: 0; right: 0; top: var(--medio); bottom: var(--medio); }
.ranura { position: absolute; left: 50%; top: -14px; bottom: -14px; width: 12px; transform: translateX(-50%); border-radius: 6px;
  background: linear-gradient(90deg, #000, #0A0F18 50%, #000); box-shadow: inset 0 0 0 1px #1C2638, inset 0 2px 4px #000, 0 1px 0 rgba(255, 255, 255, .06); }
.luz { position: absolute; left: 50%; width: 3px; bottom: -8px; transform: translateX(-50%); border-radius: 2px;
  background: linear-gradient(0deg, var(--c), color-mix(in srgb, var(--c) 70%, #fff)); box-shadow: 0 0 6px var(--c), 0 0 14px var(--c); }
.guias { position: absolute; top: 0; bottom: 0; width: 12px; }
.guias.i { right: calc(50% + 9px); } .guias.d { left: calc(50% + 9px); }
.guias span { position: absolute; height: 0; border-top: 1px solid #3A4966; width: 6px; }
.guias.i span { right: 0; } .guias.d span { left: 0; }
.guias span.mayor { width: 12px; border-top-color: #5A6C8E; }
.numeros { position: absolute; top: 0; bottom: 0; right: calc(50% + 24px); width: 24px; }
.numeros span { position: absolute; right: 0; transform: translateY(-50%); font-family: Lato, system-ui, sans-serif; font-size: 10px;
  color: #6F7F9E; font-variant-numeric: tabular-nums; line-height: 1; text-align: right; }
.perilla { position: absolute; left: 50%; width: 20px; height: 58px; transform: translate(-50%, -50%); border-radius: 4px; z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 18%, transparent 82%, rgba(0, 0, 0, .45)),
    linear-gradient(180deg, #E4E9F2 0, #B3BBC9 6%, #8D96A8 20%, #6A7386 42%, #3E4557 49%, #3E4557 51%, #6A7386 58%, #8891A3 80%, #A9B1C0 94%, #D2D8E3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(0, 0, 0, .45), inset 1px 0 0 rgba(255, 255, 255, .25), inset -1px 0 0 rgba(0, 0, 0, .35),
    0 6px 10px rgba(0, 0, 0, .75), 0 2px 3px rgba(0, 0, 0, .8); }
/* estrías de agarre, arriba y abajo */
.perilla::before, .perilla::after { content: ''; position: absolute; left: 3px; right: 3px; height: 15px;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .45) 0 1px, rgba(255, 255, 255, .45) 1px 2px, transparent 2px 5px); }
.perilla::before { top: 5px; } .perilla::after { bottom: 5px; }
.perilla i { position: absolute; left: 2px; right: 2px; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 2px;
  background: color-mix(in srgb, var(--c) 60%, #fff); box-shadow: 0 0 4px var(--c), 0 0 10px var(--c), 0 0 16px var(--c); }
.canal .pie { width: 44%; height: 4px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c), 0 0 16px var(--c); }
.canal.callado .luz, .canal.callado .pie, .canal.callado .perilla i { opacity: .2; }

@media (max-height: 720px) { .maquina { grid-template-rows: auto minmax(0, 1fr) auto minmax(215px, 40%); }
  .fader { --medio: 24px; } .perilla { height: 48px; } .perilla::before, .perilla::after { height: 11px; } }
@media (min-width: 800px) { .carril { grid-template-columns: 110px minmax(0, 1fr) 42px; } .canal .nombre { font-size: 18px; }
  .perilla { width: 14px; } .perilla::before, .perilla::after { left: 2px; right: 2px; } .perilla i { left: 1px; right: 1px; }
  .maquina { padding: 18px 20px 20px; } }

/* El monitor de carga: mientras separa, en lugar del estado, un letrero
   grande que una luz recorre de izquierda a derecha. */
.fila-visor { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.porcentaje { font-size: 15px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: #FFE7A0;
  text-shadow: 0 0 8px rgba(255, 214, 90, .7); }
.monitor { font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.15; margin-top: 1px;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, #7A5A1E 0%, #7A5A1E 38%, #FFFBE6 48%, #FFD86B 52%, #7A5A1E 62%, #7A5A1E 100%);
  background-size: 250% 100%; animation: barrido 2.4s linear infinite;
  filter: drop-shadow(0 0 5px rgba(255, 214, 90, .45)); }
.monitor[hidden] { display: none; }
@keyframes barrido { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .monitor { animation: none; color: #FFD86B; } }
@media (min-width: 800px) { .monitor { font-size: 19px; } }

/* Las pantallas van hundidas en su placa: un marco con bisel (oscuro arriba
   y a la izquierda, con luz abajo y a la derecha) y un reborde que sobresale. */
.pantalla, .visor { border: 2px solid; border-color: #020308 #2B3650 #3A4868 #020308;
  box-shadow: 0 0 0 1px #0A0E17, 0 0 0 3px #1B2334, 0 0 0 4px rgba(255, 255, 255, .07), 0 2px 6px 4px rgba(0, 0, 0, .55),
    inset 0 4px 10px rgba(0, 0, 0, .95), inset 0 -1px 0 rgba(255, 210, 120, .06); }
.carril { padding: 7px 7px 7px 5px; }
.transporte { padding: 10px 12px; }
.anclaje { width: 16px; height: 16px; }

/* En el ordenador el aparato no se estira: tiene la proporción de una mesa
   pequeña, centrada. */
@media (min-width: 1000px) { .maquina { max-width: 760px; } }

/* En el teléfono la página baja justo lo que mide el header: al deslizar
   hacia abajo el header se esconde y el aparato ocupa toda la pantalla; al
   subir, vuelve. Igual que el buscador de acordes. */
.site-header { transition: transform .25s ease; }
.site-header.cab-oculta { transform: translateY(-100%); }
@media (max-width: 999px) {
  html, body { height: auto; overflow-x: hidden; overflow-y: auto; }
  body { position: static; }
  .app { position: relative; inset: auto; height: 100dvh; margin-top: var(--header-offset, 105px); }
}

/* Aviso en el teléfono */
.vacio.no-movil { cursor: default; border-style: solid; border-color: #6A5222; }
.vacio.no-movil:hover { box-shadow: none; }
.vacio.no-movil svg { color: var(--c3); }
.goma.apagado { filter: saturate(.3) brightness(.55); cursor: default; pointer-events: none; }
