@font-face {
  font-family: "Instrument Sans";
  src: url("/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --noche: #0f1622;
  --panel: #152231;
  --borde: #334758;
  --texto: #f6f3ec;
  --tenue: #afbdc8;
  --menta: #88eed5;
  --oro: #f6ca86;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--noche); }
body {
  margin: 0; min-height: 100dvh; color: var(--texto);
  background: radial-gradient(ellipse at 9% -16%, #2e3e58 0, transparent 54%),
              radial-gradient(ellipse at 99% 19%, #1d3b3d 0, transparent 50%), var(--noche);
  font: 16px/1.4 "Instrument Sans", system-ui, sans-serif;
}
h1, h2, p { margin: 0; }
button, select { font: inherit; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--menta); outline-offset: 3px; }
.visor { width: min(1120px, 100%); margin: auto; padding: clamp(20px, 5vw, 62px) clamp(14px, 4.2vw, 48px); }
.encabezado { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 4vw, 35px); }
.marca { display: flex; align-items: center; gap: 12px; }
.marca img { display: block; border-radius: 12px; box-shadow: 0 6px 16px #02060d55; }
.marca h1 { font-size: clamp(20px, 2.8vw, 26px); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; }
.marca p { color: var(--tenue); font-size: clamp(11px, 1.4vw, 13px); margin-top: 4px; }
.herramientas { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.herramientas button, .herramientas select, .estado {
  display: inline-flex; min-height: 40px; align-items: center; border: 1px solid var(--borde);
  border-radius: 8px; color: var(--texto); background: #151f2ddb;
}
.herramientas button { justify-content: center; padding: 0; width: 40px; cursor: pointer; }
.herramientas button span { font-size: 24px; line-height: 1; }
.herramientas button:hover, .herramientas select:hover { border-color: #76a89a; background: #213344; }
.herramientas select { padding: 0 9px; font-size: 13px; cursor: pointer; }
.estado { gap: 7px; padding: 0 11px; font-size: 12px; color: var(--tenue); font-weight: 650; white-space: nowrap; }
.led { width: 7px; height: 7px; border-radius: 50%; background: #a4acb3; }
.estado.en-vivo { background: #1a3735; border-color: #37625c; color: #a5eedb; }
.estado.en-vivo .led { background: var(--menta); box-shadow: 0 0 10px #88eed59e; }
.escucha-visor { display: flex; gap: 9px; align-items: center; margin: -10px 0 13px; flex-wrap: wrap; }
.escucha-visor button {
  color: #dbf3ed; background: #1c303a; border: 1px solid #3f6d69;
  border-radius: 8px; padding: 7px 10px; font-size: 13px; cursor: pointer;
}
.escucha-visor button:disabled { opacity: .68; cursor: default; }
.escucha-visor button[aria-pressed=true] { background: #2a5851; border-color: #7be6cd; }
.escucha-visor span { color: var(--tenue); font-size: 12px; }
.lectura { display: grid; grid-template-columns: minmax(0, 2.8fr) minmax(180px, 1fr); gap: 14px; }
.tarjeta { border: 1px solid var(--borde); border-radius: 17px; padding: clamp(15px, 3vw, 25px); min-width: 0; background: var(--panel); box-shadow: 0 12px 32px #04070c32; }
.tarjeta h2 { color: var(--tenue); font-size: 12px; text-transform: uppercase; letter-spacing: .075em; font-weight: 650; }
.principal {
  min-height: clamp(210px, 35vw, 338px); display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 100% 18%, #3d586339, transparent 59%), linear-gradient(126deg, #1e2e40, #17252f);
  border-color: #4c6b77; position: relative; overflow: hidden;
}
.principal.sonando { border-color: #67aa9e; }
.cabecera-acorde { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grande {
  display: flex; align-items: center; flex: 1; min-width: 0; padding-bottom: .09em;
  font-size: clamp(65px, 13vw, 178px); line-height: .93; letter-spacing: -.074em;
  font-weight: 650; color: var(--menta); overflow-wrap: anywhere;
}
.grande.largo { display: block; align-content: center; font-size: clamp(42px, 8.1vw, 107px); line-height: 1; }
.principal:not(.sonando) .grande { color: #637e8e; }
.medidor { display: flex; height: 25px; align-items: center; gap: 4px; }
.medidor i { width: 3px; height: 100%; border-radius: 9px; background: #83daca; opacity: .34; transform: scaleY(.22); }
.sonando .medidor i { animation: tocar .86s infinite alternate ease-in-out; opacity: .85; }
.medidor i:nth-child(2n) { animation-delay: -.32s; }
.medidor i:nth-child(3n) { animation-delay: -.61s; }
.medidor i:nth-child(5n) { animation-delay: -.47s; }
@keyframes tocar { from { transform: scaleY(.28); } to { transform: scaleY(1); } }
.apoyo { display: grid; gap: 14px; grid-template-rows: 1fr 1fr; min-width: 0; }
.apoyo .tarjeta { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.grave { background: linear-gradient(130deg, #302c2e, #202733); border-color: #635743; }
.grave h2 { color: #d5b88f; }
.valor { font-size: clamp(29px, 5.1vw, 63px); line-height: 1; font-weight: 650; letter-spacing: -.055em; overflow-wrap: anywhere; }
.grave .valor { color: var(--oro); }
.valor sub { font-size: .39em; margin-left: .16em; letter-spacing: 0; vertical-align: baseline; opacity: .8; }
.previa .valor { color: #d4e3ec; font-size: clamp(24px, 3.7vw, 43px); }
.detalle { margin-top: 14px; }
.cabecera-notas { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.cabecera-notas > div:first-child { flex-shrink: 0; }
.cabecera-notas p { color: var(--tenue); font-size: 12px; margin-top: 4px; }
.notas { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nota { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 8px; border: 1px solid #416a6a; background: #254144; border-radius: 6px; color: #b9f3e3; font-weight: 650; }
.nota:first-child { color: var(--oro); background: #3c322a; border-color: #715b3c; }
.nota sub { font-size: .68em; opacity: .8; }
.registro { display: flex; position: relative; height: clamp(65px, 12vw, 118px); overflow: hidden; border-radius: 7px; border: 1px solid #405569; background: #131d2b; }
.blanca { flex: 1 1 0; min-width: 0; position: relative; border-right: 1px solid #8299a8; background: linear-gradient(#c2cfdb, #f2f5f8); box-shadow: inset 0 -3px #6979876b; }
.blanca:last-child { border-right: 0; }
.negra { position: absolute; z-index: 1; height: 63%; border-radius: 0 0 4px 4px; background: linear-gradient(#2e3b4c, #0e1927); box-shadow: 0 2px 4px #04070b66; }
.blanca > span { position: absolute; bottom: 6px; left: 4px; color: #304254; font-size: clamp(8px, 1.3vw, 11px); font-weight: 650; }
.blanca.toca { background: linear-gradient(#80ddcc, #b8f8e2); }
.negra.toca { background: linear-gradient(#326d66, #69d9bd); }
.blanca.bajo { background: linear-gradient(#e4af63, #fbe1ab); }
.negra.bajo { background: linear-gradient(#8d613c, #e7b778); }
.firma-visor { color: var(--tenue); text-align: right; margin-top: 15px; font-size: 12px; }
.firma-visor strong { color: var(--oro); font-weight: 650; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 610px) {
  .encabezado { flex-wrap: wrap; gap: 12px; }
  .herramientas { flex: 1 0 100%; justify-content: space-between; }
  .estado { margin-right: auto; }
  .lectura { grid-template-columns: 1fr; gap: 9px; }
  .principal { min-height: clamp(168px, 48vw, 245px); }
  .apoyo { grid-template: 1fr / 1fr 1fr; gap: 9px; }
  .detalle { margin-top: 9px; }
  .cabecera-notas { align-items: flex-start; flex-direction: column; }
  .notas { justify-content: flex-start; }
  .notas:empty { display: none; }
  .blanca > span { left: 0; width: 100%; text-align: center; letter-spacing: -.035em; }
  .grande { font-size: clamp(60px, 21vw, 110px); }
  .grande.largo { font-size: clamp(41px, 13vw, 74px); }
}
@media (prefers-reduced-motion: reduce) {
  .sonando .medidor i { animation: none; transform: scaleY(.64); }
}
.ir-sala { color: #9af2cf; font-size: .84rem; text-underline-offset: 3px; }
