/* LU4YYY Tools — hoja común. Misma familia visual que Horizonte Satelital (tipografías, magenta LU4YYY),
   pero oscura por defecto y con su propia grilla. Colores solo como variables. */
:root, :root[data-theme="dark"] {
  --paper: #090f16;
  --panel: #0f1822;
  --panel-2: #132030;
  --ink: #e2e9ef;
  --ink-2: #97a6b4;
  --ink-3: #657583;
  --rule: #1f2e3c;
  --rule-2: #2a3d4e;
  --accent: #ef5fa4;
  --accent-soft: rgba(239, 95, 164, .14);
  --obs: #6aa8f0;
  --good: #42c487;
  --warn: #e7a93e;
  --warn-soft: rgba(231, 169, 62, .12);
  --bad: #f06a5f;
  /* niveles de actividad: cambian forma, tamaño y color */
  --l1: #7f97ab;
  --l2: #4fa3e8;
  --l3: #ef5fa4;
  --grid: rgba(226, 233, 239, .045);
  color-scheme: dark;
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 6px;
  --gutter: clamp(16px, 3vw, 32px);
}
:root[data-theme="light"] {
  --paper: #e9eef2; --panel: #f7f9fa; --panel-2: #eef2f5; --ink: #142230; --ink-2: #4c5c6b; --ink-3: #7d8b97;
  --rule: #c6d0d8; --rule-2: #b3c0ca; --accent: #b1246c; --accent-soft: rgba(177, 36, 108, .1); --obs: #1d5fa8;
  --good: #16794c; --warn: #9a6200; --warn-soft: rgba(154, 98, 0, .1); --bad: #b23a33;
  --l1: #7d93a6; --l2: #1d6fc0; --l3: #b1246c; --grid: rgba(20, 34, 48, .06); color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: var(--f-body); font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
       padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: .015em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono, .num { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.eyebrow, .flabel { font-family: var(--f-display); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow a { text-decoration: none; color: var(--ink-2); }
.eyebrow a:hover { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--paper); padding: 6px 12px; border-radius: 4px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 8px var(--gutter) 56px; display: grid; gap: 18px; flex: 1; align-content: start; }

/* ---------- cabecera y pie ---------- */
.site-top { width: 100%; max-width: 1360px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { flex: none; }
.brand-txt { display: grid; }
.brand-txt b { font-family: var(--f-display); font-weight: 700; font-size: 25px; letter-spacing: .03em; text-transform: uppercase; line-height: 1; }
.brand-txt small { font-size: 12.5px; color: var(--ink-2); }
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.site-nav a { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
              color: var(--ink-2); padding: 8px 10px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.theme-btn { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.site-foot { width: 100%; max-width: 1360px; margin: 0 auto; padding: 20px var(--gutter) 28px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap;
             justify-content: space-between; gap: 10px 24px; font-size: 13px; color: var(--ink-2); }
.foot-id { display: grid; gap: 2px; }
.foot-id b { color: var(--ink); font-family: var(--f-display); font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.foot-nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--accent); }

/* ---------- piezas comunes ---------- */
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.panel-head h2 { font-size: 19px; text-transform: uppercase; letter-spacing: .06em; }
.panel-foot { padding: 8px 14px 11px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--rule); }
.btn { background: var(--panel); border: 1px solid var(--rule-2); border-radius: 4px; padding: 6px 12px; cursor: pointer; white-space: nowrap; font-size: 14px; }
.btn:hover { border-color: var(--ink-3); }
.btn[aria-pressed="true"] { border-color: var(--warn); color: var(--warn); }
.chip { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .06em; padding: 0 6px; border-radius: 3px; border: 1px solid var(--rule-2); color: var(--ink-2); }
.sim-tag { display: inline-block; vertical-align: 1px; font-family: var(--f-display); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
           padding: 1px 7px; border-radius: 3px; color: var(--warn); border: 1px solid var(--warn); background: var(--warn-soft); margin-left: 6px; }
.empty { padding: 20px; text-align: center; color: var(--ink-2); }

/* Indicador de nivel: forma + tamaño + color, nunca solo color. */
.dot { display: inline-block; flex: none; border-radius: 50%; vertical-align: middle; }
.dot.l0 { width: 10px; height: 2px; border-radius: 1px; background: var(--ink-3); opacity: .55; }
.dot.l1 { width: 10px; height: 10px; border: 2px solid var(--l1); }
.dot.l2 { width: 12px; height: 12px; background: var(--l2); }
.dot.l3 { width: 15px; height: 15px; background: var(--l3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--l3) 28%, transparent); }
.dot.na { width: 5px; height: 5px; background: var(--rule-2); }

/* ---------- home ---------- */
.hero { padding: clamp(18px, 5vw, 56px) 0 clamp(6px, 2vw, 18px); display: grid; gap: 10px; max-width: 70ch; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); text-transform: uppercase; letter-spacing: .01em; }
.lede { font-size: clamp(16px, 2vw, 18px); color: var(--ink-2); max-width: 60ch; }
.feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: center; text-decoration: none; padding: clamp(18px, 3vw, 30px);
           border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--radius); position: relative; overflow: hidden;
           background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 24px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 100%, var(--panel); }
.feature:hover { border-color: var(--rule-2); border-left-color: var(--accent); }
.feature-txt { display: grid; gap: 10px; }
.feature h2 { font-size: clamp(32px, 5vw, 46px); text-transform: uppercase; }
.feature-txt > p:not(.eyebrow) { color: var(--ink-2); max-width: 58ch; }
.feature-note { font-size: 13.5px; }
.feature-note .sim-tag { margin: 0 6px 0 0; }
.live-tag { display: inline-block; vertical-align: 1px; font-family: var(--f-display); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
            padding: 1px 7px; border-radius: 3px; color: var(--good); border: 1px solid var(--good); margin-right: 6px; }
.feature-go { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.feature:hover .feature-go { text-decoration: underline; text-underline-offset: 4px; }
.mini-matrix { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; justify-items: center; align-items: center; padding: 14px; }
.mini-matrix i { display: block; border-radius: 50%; }
.mini-matrix .l0 { width: 10px; height: 2px; background: var(--ink-3); opacity: .5; }
.mini-matrix .l1 { width: 10px; height: 10px; border: 2px solid var(--l1); }
.mini-matrix .l2 { width: 12px; height: 12px; background: var(--l2); }
.mini-matrix .l3 { width: 15px; height: 15px; background: var(--l3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--l3) 28%, transparent); }
.section-h { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding-top: 8px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-top: 12px; }
.cat { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 16px 14px; display: grid; gap: 9px; align-content: start; }
.cat-head { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.cat-head svg { flex: none; }
.cat h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .04em; }
.cat > p { color: var(--ink-2); font-size: 14px; }
.tools { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.tools li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.tools a { font-weight: 700; text-decoration: none; color: var(--ink); }
.tools a:hover { color: var(--accent); }
.state { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.state.on { color: var(--good); }
.ext-link { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 11px 13px; border: 1px solid var(--accent); border-radius: 4px;
            text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ext-link:hover { background: var(--accent-soft); }
.cat-foot { font-family: var(--f-data); font-size: 12px; color: var(--ink-3); }

/* ---------- Digital Radar ---------- */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; padding-top: 8px; }
.page-head h1 { font-size: clamp(36px, 6vw, 54px); text-transform: uppercase; margin-top: 2px; }
.lede-sm { color: var(--ink-2); margin-top: 4px; }
.live { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.src-badge { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
             border: 1px solid var(--rule-2); color: var(--ink-2); }
.src-badge.sim { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.updated { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 19ch; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); opacity: .35; }
.pulse.blink { animation: blink 1.2s ease-out; }
@keyframes blink { 0% { opacity: 1; transform: scale(1.4); } 100% { opacity: .35; transform: scale(1); } }
.sim-banner { border: 1px solid var(--warn); background: var(--warn-soft); color: var(--ink); border-radius: var(--radius); padding: 9px 13px; font-size: 14px; }
.info-note { border: 1px solid var(--rule-2); border-left: 3px solid var(--good); background: var(--panel); border-radius: var(--radius); padding: 9px 13px; font-size: 14px; color: var(--ink-2); }
.info-note a, .sim-banner a, .best-none a { color: var(--ink); }
.src-badge.live { color: var(--good); border-color: var(--good); }
.updated.stale, #updated.stale { color: var(--warn); }
.sim-banner b { color: var(--warn); text-transform: uppercase; letter-spacing: .06em; font-family: var(--f-display); font-size: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: end; }
.filter { display: grid; gap: 5px; min-width: 0; }
.filter.off { opacity: .45; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule-2); border-radius: 5px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; border-right: 1px solid var(--rule-2); background: transparent; padding: 7px 12px; cursor: pointer; font-size: 14px; white-space: nowrap; min-height: 36px; }
.seg button:last-child { border-right: 0; }
.seg button:hover:not(:disabled) { background: var(--panel-2); }
.seg button[aria-checked="true"] { background: var(--accent); color: #fff; font-weight: 700; }
:root[data-theme="light"] .seg button[aria-checked="true"] { color: #fff; }
.seg button:disabled { cursor: not-allowed; }

/* tarjeta destacada */
.best { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 14px 28px; align-items: center;
        padding: clamp(16px, 2.6vw, 24px); border: 1px solid var(--rule); border-left: 4px solid var(--l1); border-radius: var(--radius);
        background: radial-gradient(120% 140% at 0% 0%, var(--panel-2), var(--panel) 60%); }
.best.l2 { border-left-color: var(--l2); }
.best.l3 { border-left-color: var(--l3); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--l3) 12%, var(--panel)), var(--panel) 62%); }
.best.empty-best { display: block; border-left-color: var(--rule-2); }
.best-none { color: var(--ink-2); margin-top: 6px; }
.best-hit { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; border-radius: var(--radius); z-index: 1; }
.best-main { display: grid; gap: 4px; }
.best-band { font-family: var(--f-display); text-transform: uppercase; line-height: .9; display: flex; align-items: baseline; gap: 10px; }
.best-band b { font-size: clamp(56px, 9vw, 92px); font-weight: 700; letter-spacing: -.01em; }
.best-band span { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: .1em; color: var(--ink-2); }
.best-mode { font-size: 18px; font-weight: 700; }
.best-mode .mono { font-weight: 500; }
.best-path { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: .04em; color: var(--accent); }
.best-stats { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.best-stats div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.best-stats dt { color: var(--ink-2); font-size: 14px; }
.best-stats dd { margin: 0; font-family: var(--f-data); font-weight: 500; font-size: 17px; font-variant-numeric: tabular-nums; }
.best-rating { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: .1em; text-transform: uppercase; }
.best.l3 .best-rating { color: var(--l3); }
.best.l2 .best-rating { color: var(--l2); }

.deck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 14px; align-items: start; }
.lower { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }

/* matriz */
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { margin: 0 2px; }
.matrix-scroll { overflow-x: auto; padding: 10px 10px 8px; }
.matrix { --cols: 12; display: grid; grid-template-columns: minmax(64px, auto) repeat(var(--cols), minmax(40px, 1fr)); gap: 3px; min-width: max-content; }
.mx-corner, .mx-col, .mx-row { font-family: var(--f-display); font-weight: 600; letter-spacing: .06em; color: var(--ink-2); display: flex; align-items: center; }
.mx-corner { font-size: 11px; text-transform: uppercase; color: var(--ink-3); }
.mx-col { justify-content: center; font-size: 15px; padding-bottom: 2px; }
.mx-row { font-size: 15px; padding-right: 8px; white-space: nowrap; }
.cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 46px; min-width: 40px;
        border-radius: 4px; border: 1px solid transparent; background: var(--panel-2); padding: 0; cursor: pointer; }
.cell.l0 { background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
.cell.l1 { background: color-mix(in srgb, var(--l1) 9%, var(--panel-2)); }
.cell.l2 { background: color-mix(in srgb, var(--l2) 14%, var(--panel-2)); }
.cell.l3 { background: color-mix(in srgb, var(--l3) 18%, var(--panel-2)); }
.cell.na { cursor: default; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--grid) 5px 6px); }
.cell:hover:not(.na) { border-color: var(--ink-3); }
.cell.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cell .pct { font-family: var(--f-data); font-size: 10.5px; line-height: 1; color: var(--ink-2); min-height: 10px; font-variant-numeric: tabular-nums; }
.cell.l3 .pct { color: var(--ink); font-weight: 500; }
.matrix.narrow { grid-template-columns: minmax(42px, auto) repeat(var(--cols), minmax(28px, 1fr)); gap: 2px; }
.matrix.narrow .mx-col { font-size: 11.5px; letter-spacing: 0; }
.matrix.narrow .mx-row { font-size: 13.5px; padding-right: 4px; }
.matrix.narrow .cell { height: 40px; min-width: 28px; }
.matrix.narrow .cell .pct { font-size: 9.5px; }

/* detalle */
.detail { padding: 14px; display: grid; gap: 14px; position: sticky; top: 12px; }
.det-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.det-head h2 { font-size: 30px; text-transform: uppercase; margin-top: 2px; }
.lvl-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--rule-2); white-space: nowrap; }
.lvl-pill.l3 { border-color: var(--l3); color: var(--l3); }
.lvl-pill.l2 { border-color: var(--l2); color: var(--l2); }
.lvl-pill.l0 { color: var(--ink-3); }
.det-score { display: flex; align-items: baseline; gap: 8px; }
.det-score b { font-family: var(--f-display); font-size: 52px; line-height: .9; }
.det-score span { color: var(--ink-2); }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.stats div { background: var(--panel); padding: 7px 9px; display: grid; gap: 1px; min-width: 0; }
.stats dt { font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { margin: 0; font-family: var(--f-data); font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.det-freq { display: grid; gap: 2px; }
.det-freq b { font-size: 20px; font-weight: 500; }
.det-list { display: grid; gap: 6px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 46px; gap: 8px; align-items: center; font-size: 13.5px; }
.bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.bb i { display: block; height: 100%; width: var(--w); background: var(--accent); }
.bn { text-align: right; font-size: 12.5px; color: var(--ink-2); }
.det-paths { color: var(--ink-2); }
.det-paths .flabel { display: block; margin-bottom: 2px; }

/* ranking */
.ranking { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.rk { width: 100%; display: grid; grid-template-columns: 52px 58px minmax(40px, 1fr) 50px 92px; gap: 10px; align-items: center; padding: 8px 8px; border: 1px solid transparent;
      border-radius: 4px; background: none; cursor: pointer; text-align: left; }
.rk:hover { background: var(--panel-2); }
.rk.sel { border-color: var(--rule-2); background: var(--panel-2); }
.rk-band { font-family: var(--f-display); font-weight: 700; font-size: 20px; white-space: nowrap; }
.rk-mode { font-weight: 700; font-size: 14px; }
.rk-bar { height: 7px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; width: var(--w); background: var(--l1); }
.rk-bar i.l2 { background: var(--l2); }
.rk-bar i.l3 { background: var(--l3); }
.rk-pct { text-align: right; font-size: 14px; }
.rk-rate { font-family: var(--f-display); font-weight: 600; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.rk-rate.l3 { color: var(--l3); }
.rk-rate.l2 { color: var(--l2); }

/* tabla de spots */
.table-wrap { overflow-x: auto; max-height: 560px; overflow-y: auto; }
.spots { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.spots th { position: sticky; top: 0; background: var(--panel); text-align: left; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .1em;
            text-transform: uppercase; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; z-index: 1; }
.spots td { padding: 6px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.spots tbody tr:hover { background: var(--panel-2); }
.spots .num { text-align: right; }
.spots .call { font-family: var(--f-data); font-weight: 500; }
.spots .loc { font-size: 12px; color: var(--ink-3); }
.spots .path { color: var(--ink-2); }
.more-spots { display: none; }

.howto { color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--rule); padding-top: 12px; }
.howto summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.howto ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; max-width: 90ch; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .deck, .lower { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
  .best { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .best-rating { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .site-top { padding-block: 10px; }
  .brand-txt small { display: none; }
  .site-nav a { padding: 6px 8px; font-size: 14px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .mini-matrix { gap: 8px; padding: 4px 0 0; }
  .best { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .live { width: 100%; justify-content: space-between; }
  .filters { display: grid; gap: 10px; }
  .seg { display: flex; }
  .seg button { flex: 1 1 auto; padding: 8px 8px; font-size: 13.5px; }
  .matrix-scroll { padding: 8px 6px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rk { grid-template-columns: 46px 52px minmax(30px, 1fr) 46px; }
  .rk-rate { grid-column: 2 / -1; font-size: 12.5px; margin-top: -4px; }
  /* tabla -> tarjetas */
  .table-wrap { max-height: none; }
  /* en móvil, 12 tarjetas y un botón para ver el resto */
  .table-wrap:not(.all) .spots tbody tr:nth-child(n+13) { display: none; }
  .more-spots { display: block; margin: 10px auto 12px; }
  .spots thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spots, .spots tbody, .spots tr, .spots td { display: block; }
  .spots tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
  .spots td { border: 0; padding: 0; white-space: normal; text-align: left !important; min-width: 0; overflow-wrap: anywhere; }
  .spots td::before { content: attr(data-label); display: block; font-family: var(--f-display); font-weight: 600; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .spots td[data-label="TX"], .spots td[data-label="RX"] { grid-column: span 1; }
  .spots td[data-label="Origen → destino"] { grid-column: 1 / -1; }
  .spots td.empty { grid-column: 1 / -1; text-align: center !important; }
  .spots td.empty::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { .pulse.blink { animation: none; opacity: 1; } }
