/* ==========================================================================
   Portal de radio — tema "estación de campaña"
   Chapa oliva, remaches, displays de fósforo y papel de despacho.
   ========================================================================== */
:root {
  --bg: #13150e;
  --bg-2: #1a1d13;
  --panel: #262b1c;
  --panel-2: #303624;
  --panel-edge: #3d4430;
  --olive: #4b5320;
  --olive-hi: #6d7834;
  --olive-lo: #343a16;
  --khaki: #c8b88a;
  --sand: #e6dab5;
  --paper: #dccfa8;
  --paper-2: #cfc096;
  --ink: #2b2519;
  --ink-soft: #5a4f3a;
  --phosphor: #7dff9b;
  --phosphor-2: #45d968;
  --phosphor-dim: #2a6a37;
  --lcd: #08110a;
  --amber: #ffb000;
  --amber-dim: #8a5f00;
  --red: #d63a2a;
  --red-dark: #8c2018;
  --text: #ddd7c1;
  --muted: #959079;
  --line: rgba(200, 184, 138, .16);
  --stencil: "Black Ops One", "Impact", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --type: "Special Elite", "Courier New", monospace;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", system-ui, sans-serif;
  --r: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .04) inset;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background-color: var(--bg);
  /* camuflaje muy sutil + ruido de rejilla */
  background-image:
    radial-gradient(ellipse 38% 26% at 12% 18%, rgba(75, 83, 32, .20), transparent 70%),
    radial-gradient(ellipse 30% 40% at 82% 10%, rgba(52, 58, 22, .28), transparent 70%),
    radial-gradient(ellipse 45% 30% at 70% 70%, rgba(75, 83, 32, .16), transparent 70%),
    radial-gradient(ellipse 34% 28% at 20% 85%, rgba(92, 78, 46, .16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px);
  background-attachment: fixed;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
::selection { background: var(--amber); color: #000; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ----------------------------------------------------------- piezas comunes */
.stencil { font-family: var(--stencil); letter-spacing: .04em; font-weight: 400; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #111 14px 28px);
  opacity: .85;
}
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 40%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 5px),
    var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
/* remaches en las esquinas */
.rivets::before, .rivets::after,
.rivets > .rv::before, .rivets > .rv::after {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9aa07a, #3a3f2a 60%, #1c1f14);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .7);
}
.rivets::before { top: 8px; left: 8px; }
.rivets::after { top: 8px; right: 8px; }
.rivets > .rv::before { bottom: 8px; left: 8px; }
.rivets > .rv::after { bottom: 8px; right: 8px; }
.rv { position: absolute; inset: 0; pointer-events: none; }

.lcd {
  font-family: var(--mono);
  color: var(--phosphor);
  background: radial-gradient(ellipse at center, #0e1d10, var(--lcd) 75%);
  border: 2px solid #050805;
  border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .9), 0 0 0 1px #3a4130;
  text-shadow: 0 0 6px rgba(125, 255, 155, .65);
  position: relative;
  overflow: hidden;
}
.lcd::after { /* líneas de barrido */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px);
}
.lamp {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  background: #3a1410; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8);
  vertical-align: middle;
}
.lamp.on { background: radial-gradient(circle at 40% 35%, #ffd1c4, var(--red) 55%); box-shadow: 0 0 10px var(--red), 0 0 2px #fff; }
.lamp.green.on { background: radial-gradient(circle at 40% 35%, #e6ffe9, var(--phosphor-2) 55%); box-shadow: 0 0 10px var(--phosphor-2); }
.lamp.amber.on { background: radial-gradient(circle at 40% 35%, #fff2c9, var(--amber) 55%); box-shadow: 0 0 10px var(--amber); }
.blink { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.stamp {
  display: inline-block;
  font-family: var(--stencil);
  color: var(--red);
  border: 3px solid var(--red);
  padding: 2px 12px;
  letter-spacing: .14em;
  transform: rotate(-7deg);
  opacity: .82;
  mix-blend-mode: multiply;
  border-radius: 3px;
  -webkit-mask-image: repeating-radial-gradient(circle at 30% 40%, #000 0 2px, rgba(0, 0, 0, .75) 2px 3px);
          mask-image: repeating-radial-gradient(circle at 30% 40%, #000 0 2px, rgba(0, 0, 0, .75) 2px 3px);
}
.stamp.dark { mix-blend-mode: normal; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--cond); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: #1a1a10;
  background: linear-gradient(180deg, #d8c99a, #a8996c);
  border: 1px solid #5d5338;
  border-bottom-width: 3px;
  border-radius: 4px;
  padding: .55em 1.1em;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
  transition: transform .05s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); border-bottom-width: 1px; }
.btn.olive { color: var(--sand); background: linear-gradient(180deg, var(--olive-hi), var(--olive-lo)); border-color: #1d2010; }
.btn.red { color: #fff; background: linear-gradient(180deg, #e2523f, var(--red-dark)); border-color: #4a0e08; }
.btn.ghost { color: var(--khaki); background: transparent; border-color: var(--panel-edge); box-shadow: none; }
.btn.small { font-size: .78rem; padding: .35em .75em; }

.tag {
  display: inline-block; font-family: var(--cond); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .1em .55em; border-radius: 3px;
  border: 1px solid var(--line); color: var(--khaki); background: rgba(0, 0, 0, .25);
}
.tag.st-operativo, .tag.st-activa, .tag.st-dominado, .tag.st-favorita { color: var(--phosphor); border-color: var(--phosphor-dim); }
.tag.st-aprendiendo, .tag.st-en-pruebas, .tag.st-escucha, .tag.st-proyecto { color: var(--amber); border-color: var(--amber-dim); }
.tag.st-averiado, .tag.st-en-reparación, .tag.st-vendido { color: #ff8a7a; border-color: var(--red-dark); }
.tag.st-lista-de-deseos { color: #c9a7ff; border-color: #5b3f8a; }

.section-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 0 0 18px;
}
.section-head .num { font-family: var(--mono); color: var(--amber); font-size: .9rem; letter-spacing: .1em; }
.section-head h2 {
  margin: 0; font-family: var(--stencil); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  color: var(--sand); letter-spacing: .05em; text-transform: uppercase;
}
.section-head .rule { flex: 1; height: 2px; min-width: 40px; background: linear-gradient(90deg, var(--khaki), transparent); opacity: .35; }

/* ======================================================= WEB PÚBLICA */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 8px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(10, 12, 7, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #2c3121;
  font-family: var(--mono); font-size: .85rem; color: var(--khaki);
  letter-spacing: .08em;
}
.topbar .brand { font-family: var(--stencil); color: var(--sand); font-size: 1.05rem; letter-spacing: .12em; }
.topbar .sp { flex: 1; }
.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar nav a { color: var(--khaki); text-transform: uppercase; }
.topbar nav a:hover { color: var(--amber); text-decoration: none; }
.topbar .onair {
  font-family: var(--cond); font-weight: 700; letter-spacing: .2em; font-size: .8rem;
  padding: 2px 10px; border: 1px solid var(--red-dark); color: #ff9c8f; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 7px;
}

.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

/* ---- Caja de chapa (la usa el login) ---- */
.radio {
  position: relative;
  border-radius: 14px;
  padding: 26px 28px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 30%, rgba(0, 0, 0, .25)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 30% 0%, #5b6428, var(--olive) 45%, var(--olive-lo));
  border: 2px solid #20240f;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -4px 10px rgba(0, 0, 0, .4);
}
.radio-plate {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--cond); font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
  font-size: .78rem; color: #1b1e0d; opacity: .85; margin-bottom: 12px;
}
.radio-plate .serial { font-family: var(--mono); letter-spacing: .1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ======================================================= TRANSCEPTOR (portada) */
.hero { padding: 34px 0 26px; }
.hero-eyebrow {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.hero-eyebrow .muted { letter-spacing: .1em; }

.trx { --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/></svg>"); position: relative; padding-bottom: 14px; }
/* sombra de contacto sobre la mesa */
.trx::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 30px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .85), transparent 70%);
  filter: blur(6px);
}
.trx-body {
  position: relative;
  border-radius: 14px;
  padding: 7px;
  /* marco de la carcasa: aluminio pintado gris oscuro */
  background:
    var(--noise),
    linear-gradient(180deg, #4a4c51 0%, #2c2e32 6%, #232428 50%, #1a1b1e 94%, #101113 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .25) inset,
    0 -1px 0 rgba(0, 0, 0, .8) inset,
    0 24px 50px rgba(0, 0, 0, .65),
    0 6px 14px rgba(0, 0, 0, .5);
}
.trx-face {
  position: relative;
  border-radius: 9px;
  padding: 18px 20px 18px;
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr) 290px;
  grid-template-areas: "left center right";
  gap: 22px;
  align-items: stretch;
  /* frontal de plástico negro mate con grano */
  background:
    var(--noise),
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(180deg, #1d1e21, #141517 55%, #0f1012);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .9),
    inset 0 1px 0 1px rgba(255, 255, 255, .06),
    inset 0 -10px 20px rgba(0, 0, 0, .35);
}
.trx-feet { position: absolute; left: 7%; right: 7%; bottom: 2px; display: flex; justify-content: space-between; z-index: -1; }
.trx-feet i { width: 70px; height: 16px; border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #1b1c1f, #050506); box-shadow: 0 4px 6px rgba(0, 0, 0, .6); }

/* serigrafía */
.lbl {
  display: block; text-align: center; margin-top: 6px;
  font: 600 .6rem/1 Arial, "Helvetica Neue", sans-serif; letter-spacing: .08em;
  color: #c9ccd2; text-transform: uppercase; white-space: nowrap;
}
.lbl i { font-style: normal; color: #7d8189; }
.ctl { display: flex; flex-direction: column; align-items: center; }

.trx-left { grid-area: left; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.trx-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.trx-logo {
  font: italic 800 1.45rem/1 var(--sans); letter-spacing: .04em;
  background: linear-gradient(180deg, #ffffff 0%, #d9dce2 45%, #8f949c 55%, #e7e9ed 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .9));
}

/* teclas de goma */
.key {
  position: relative;
  min-width: 56px; height: 26px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font: 700 .6rem/1 Arial, "Helvetica Neue", sans-serif; letter-spacing: .04em; color: #e8eaee; white-space: nowrap;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(180deg, #3d3f44, #2a2b2f 55%, #222326);
  border: 0; border-radius: 6px;
  box-shadow:
    0 0 0 1px #050506,
    0 2px 0 1px #050506,
    0 4px 6px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .15),
    inset 0 -1px 2px rgba(0, 0, 0, .5);
  cursor: pointer; transition: transform .05s, box-shadow .05s;
}
.key:active, .key.pressed {
  transform: translateY(1.5px);
  box-shadow: 0 0 0 1px #050506, 0 0.5px 0 1px #050506, 0 1px 2px rgba(0, 0, 0, .5), inset 0 1px 3px rgba(0, 0, 0, .6);
}
.key.wide { min-width: 84px; }
.tx-led { width: 6px; height: 6px; border-radius: 50%; background: #3a0d08; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .8); }
.tx-led.on { background: radial-gradient(circle at 40% 35%, #fff, #ff4a2c 50%, #a01a0a); box-shadow: 0 0 7px 2px rgba(255, 60, 30, .75); }
.trx.rx .tx-key .tx-led:not(.on) { background: radial-gradient(circle at 40% 35%, #e9ffe9, #3be05a 50%, #128a26); box-shadow: 0 0 6px 1px rgba(60, 230, 90, .55); }

/* botón de encendido */
.pwr-btn {
  width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer; border: 0;
  background: radial-gradient(circle at 50% 30%, #4a4c51, #212225 65%, #151618);
  box-shadow: 0 0 0 2px #050506, 0 3px 0 2px #050506, 0 5px 8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
  display: grid; place-items: center;
}
.pwr-btn:active { transform: translateY(2px); box-shadow: 0 0 0 2px #050506, 0 1px 0 2px #050506, inset 0 1px 3px rgba(0, 0, 0, .6); }
.pwr-ico { width: 13px; height: 13px; border: 2px solid #8b8f97; border-top-color: transparent; border-radius: 50%; position: relative; }
.pwr-ico::before { content: ""; position: absolute; left: 50%; top: -5px; width: 2px; height: 8px; margin-left: -1px; background: #8b8f97; }
.trx:not(.off) .pwr-ico { border-color: #6cd0ff; border-top-color: transparent; filter: drop-shadow(0 0 3px #39b8ff); }
.trx:not(.off) .pwr-ico::before { background: #6cd0ff; }

/* mando doble concéntrico AF / RF */
.dual-knob { position: relative; width: 82px; height: 82px; }
.dual-knob .outer, .dual-knob .inner, .small-knob { --rot: 0deg; position: absolute; border-radius: 50%; cursor: ns-resize; touch-action: none; }
.dual-knob .outer {
  inset: 0;
  background:
    radial-gradient(circle, transparent 0 25px, rgba(0, 0, 0, .7) 26px 27px, transparent 28px),
    repeating-conic-gradient(from var(--rot), #2c2d31 0 5deg, #17181a 5deg 10deg);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .7), 0 0 0 1px #000, inset 0 1px 1px rgba(255, 255, 255, .12);
}
.dual-knob .outer::after { content: ""; position: absolute; left: 50%; top: 3px; width: 3px; height: 9px; margin-left: -1.5px; border-radius: 2px; background: #d9dce2; transform-origin: 50% 38px; transform: rotate(var(--rot)); }
.dual-knob .inner {
  inset: 18px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .18), transparent 55%),
    repeating-conic-gradient(from var(--rot), #34353a 0 8deg, #1f2023 8deg 16deg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .8), 0 0 0 1px #000;
}
.dual-knob .inner::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle at 45% 30%, #4c4d52, #1a1b1d 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.dual-knob .inner::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: #f1f2f4; transform-origin: 50% 19px; transform: rotate(var(--rot)); }
.small-knob {
  position: relative; display: block; width: 46px; height: 46px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .16), transparent 55%), repeating-conic-gradient(from var(--rot), #2f3034 0 7deg, #18191b 7deg 14deg);
  box-shadow: 0 5px 8px rgba(0, 0, 0, .7), 0 0 0 1px #000;
}
.small-knob::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle at 45% 30%, #4a4b50, #19191b 70%); }
.small-knob::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 10px; margin-left: -1px; background: #eef0f3; border-radius: 1px; transform-origin: 50% 19px; transform: rotate(var(--rot)); }

/* conectores */
.jacks { justify-content: flex-start; gap: 18px; }
.jack { position: relative; display: block; border-radius: 50%; }
.jack.phones { width: 24px; height: 24px; background: radial-gradient(circle, #000 0 4px, #9a9ea6 5px 6px, #2a2b2e 7px 9px, #b7bbc2 10px 11px, #1b1c1f 12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .12); }
.jack.mic { width: 36px; height: 36px; background: radial-gradient(circle, #1e1f22 0 10px, #050506 11px 12px, #c2c6cc 13px 15px, #6d7178 16px 17px, #1b1c1f 18px); box-shadow: 0 1px 0 rgba(255, 255, 255, .12); }
.jack.mic i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #d4bd73; left: 50%; top: 50%; margin: -1.5px; }
.jack.mic i:nth-child(1) { transform: rotate(0deg) translateY(-6px); } .jack.mic i:nth-child(2) { transform: rotate(45deg) translateY(-6px); }
.jack.mic i:nth-child(3) { transform: rotate(90deg) translateY(-6px); } .jack.mic i:nth-child(4) { transform: rotate(135deg) translateY(-6px); }
.jack.mic i:nth-child(5) { transform: rotate(180deg) translateY(-6px); } .jack.mic i:nth-child(6) { transform: rotate(225deg) translateY(-6px); }
.jack.mic i:nth-child(7) { transform: rotate(270deg) translateY(-6px); } .jack.mic i:nth-child(8) { transform: none; }

/* pantalla */
.trx-center { grid-area: center; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.trx-model { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; font: 600 .6rem Arial, sans-serif; letter-spacing: .14em; color: #9da1a9; }
.trx-model b { font: italic 800 .85rem var(--sans); letter-spacing: .08em; color: #d4d7dc; }
.screen-bezel {
  border-radius: 8px; padding: 9px;
  background: linear-gradient(180deg, #060607, #121315);
  box-shadow:
    0 0 0 1px #000,
    0 1px 0 1px rgba(255, 255, 255, .07),
    inset 0 2px 4px rgba(0, 0, 0, .9);
}
.screen { position: relative; border-radius: 3px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #000; }
.tft { display: block; width: 100%; aspect-ratio: 480 / 272; }
.screen-glass {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .04) 30%, transparent 31%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .10) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .45);
}
.screen-keys { display: flex; justify-content: space-between; gap: 8px; }
.screen-keys .key { flex: 1; min-width: 0; }

/* derecha */
.trx-right { grid-area: right; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; padding-top: 22px; }
.key-grid .key { width: 100%; min-width: 0; }
.key-grid.second { padding-top: 0; margin-top: -4px; }
.dial-area { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.dial-area .multi { position: absolute; left: 0; bottom: 0; }

/* dial principal: goma moleteada negra con cara satinada y hendidura */
.dial {
  --rot: 0deg;
  position: relative; width: 190px; aspect-ratio: 1; border-radius: 50%;
  cursor: grab; touch-action: none; outline-offset: 6px;
  box-shadow:
    0 0 0 3px #050506,
    0 0 0 5px #26272b,
    0 0 0 6px #050506,
    0 16px 22px rgba(0, 0, 0, .75);
}
.dial:active { cursor: grabbing; }
.dial-grip { position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 68%, rgba(0, 0, 0, .6) 69% 70%, transparent 71%),
    repeating-conic-gradient(from var(--rot), #2a2b2f 0 2.5deg, #121315 2.5deg 5deg);
}
.dial-face { /* el brillo es fijo: la luz viene de arriba */
  position: absolute; inset: 12%; border-radius: 50%;
  background:
    radial-gradient(ellipse 70% 45% at 50% 18%, rgba(255, 255, 255, .22), transparent 70%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 50%, #2b2c30, #17181b 70%, #0e0f11);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .7), inset 0 1px 1px rgba(255, 255, 255, .2), inset 0 -3px 6px rgba(0, 0, 0, .6);
}
.dial-dimple { position: absolute; inset: 0; border-radius: 50%; transform: rotate(var(--rot)); pointer-events: none; }
.dial-dimple::before {
  content: ""; position: absolute; width: 21%; aspect-ratio: 1; border-radius: 50%; left: 62%; top: 22%;
  background: radial-gradient(circle at 50% 30%, #060607, #1d1e21 60%, #2e2f33);
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .12);
}

/* placa de características */
.dataplate {
  position: relative; margin: 26px auto 0; max-width: 980px;
  padding: 16px 30px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, .03) 1px 2px),
    linear-gradient(180deg, #c9c7bd, #a3a197 60%, #8e8c83);
  color: #1d1c17;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .3);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.dataplate .pr { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f2f2ec, #77756c 70%); box-shadow: 0 1px 1px rgba(0, 0, 0, .6); }
.pr.tl { top: 6px; left: 6px; } .pr.tr { top: 6px; right: 6px; } .pr.bl { bottom: 6px; left: 6px; } .pr.br { bottom: 6px; right: 6px; }
.dp-grid { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 30px; }
.dp-k { display: block; font: 700 .64rem var(--cond); letter-spacing: .2em; text-transform: uppercase; color: #4c4a41; }
.dp-v { display: block; font-family: var(--mono); font-size: 1rem; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.dp-v.morse { letter-spacing: .12em; }
.dp-actions { display: flex; gap: 10px; }
.dataplate .btn.ghost { color: #1d1c17; border-color: #4c4a41; }

/* cabecera «Indicativo» (alternativa sencilla a la emisora) */
.callhero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 28px; align-items: center;
  padding: 34px 38px; overflow: hidden;
}
.callhero::selection { background: var(--olive-hi); }
.ch-main { position: relative; min-width: 0; }
.ch-kicker { display: flex; align-items: center; gap: 10px; font: 600 .78rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--khaki); }
.ch-call {
  margin: 8px 0 4px; font: 400 clamp(3.4rem, 15vw, 7.2rem)/.95 var(--stencil); letter-spacing: .04em; color: var(--sand);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 32px rgba(230, 218, 181, .08);
  overflow-wrap: anywhere;
}
.ch-morse { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 14px 0 18px; min-height: 14px; }
.ch-letter { display: inline-flex; gap: 5px; }
.ch-morse i {
  display: block; height: 10px; width: 10px; border-radius: 5px;
  background: #2f3523; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7);
  transition: background .06s, box-shadow .06s;
}
.ch-morse i.dah { width: 30px; }
.ch-morse i.on { background: var(--amber); box-shadow: 0 0 10px var(--amber), 0 0 2px #fff; }
.ch-line { margin: 0 0 18px; font-size: 1.05rem; color: var(--text); }
.ch-line .mono { font-family: var(--mono); color: var(--khaki); }
.ch-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ch-play-ico { display: inline-block; width: 1em; }
.callhero.keying .ch-play-ico { color: var(--amber); }
.ch-side { padding: 16px 18px; display: grid; gap: 8px; font-size: .95rem; }
.ch-row { display: flex; align-items: baseline; gap: 10px; position: relative; z-index: 1; }
.ch-side .dim { color: var(--phosphor-dim); text-shadow: none; }
.ch-row .dim { width: 5.5em; flex: none; font-size: .78rem; letter-spacing: .12em; }
.ch-row b { font-weight: 400; font-size: 1.15rem; }
.ch-vfo b { color: var(--amber); text-shadow: 0 0 8px rgba(255, 176, 0, .6); font-size: 1.35rem; }
.ch-vfo b + .dim { width: auto; }
.ch-note { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--phosphor-dim); font-size: .82rem; color: var(--phosphor); min-height: 2.6em; }
.callhero.tuned .ch-side { animation: ch-tuned .9s ease-out; }
@keyframes ch-tuned { 0% { box-shadow: inset 0 0 18px rgba(0, 0, 0, .9), 0 0 0 2px var(--amber); } 100% { box-shadow: inset 0 0 18px rgba(0, 0, 0, .9), 0 0 0 1px #3a4130; } }
@media (max-width: 760px) {
  .callhero { grid-template-columns: 1fr; padding: 26px 20px; gap: 20px; }
  .ch-morse { gap: 6px 7px; }
  .ch-letter { gap: 3px; }
  .ch-morse i { height: 6px; width: 6px; } .ch-morse i.dah { width: 16px; }
}
@media (prefers-reduced-motion: reduce) { .callhero.tuned .ch-side { animation: none; } }
.hero-placa .dataplate { margin-top: 0; }

/* ajustes: elección de cabecera */
.cab-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cab-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--panel-edge); border-radius: var(--r); cursor: pointer; background: rgba(0, 0, 0, .15); }
.cab-opt:has(input:checked) { border-color: var(--olive-hi); background: rgba(109, 120, 52, .18); }
.cab-opt input { margin-top: 3px; accent-color: var(--olive-hi); }
.cab-opt > span { display: grid; gap: 4px; }
.cab-opt .muted { font-size: .85rem; line-height: 1.35; }
@media (max-width: 760px) { .cab-pick { grid-template-columns: 1fr; } }

@media (max-width: 1100px) {
  .trx-face { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "center center" "left right"; }
  .trx-left { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .trx-logo { width: 100%; }
  .key-grid { padding-top: 0; }
  .dp-grid { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 620px) {
  .trx-body { padding: 5px; border-radius: 10px; }
  .trx-face { padding: 12px; gap: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "center" "right" "left"; }
  .trx-model span { display: none; }
  .screen-bezel { padding: 5px; }
  .screen-keys { gap: 5px; }
  .screen-keys .key { padding: 0 2px; font-size: .5rem; }
  .key-grid { gap: 10px 8px; }
  .dial { width: 150px; }
  .dial-area .multi, .key-grid.second { display: none; }
  .trx-left { justify-content: space-between; }
  .trx-left .jacks, .trx-left > .ctl:has(.dual-knob) { display: none; }
  .trx-logo { width: auto; font-size: 1.2rem; }
  .trx-feet i { width: 46px; }
  .hero-eyebrow { letter-spacing: .1em; font-size: .72rem; }
  .hero-eyebrow .muted { display: none; }
  .dataplate { padding: 14px 18px; }
  .dp-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Secciones públicas ---- */
.section { padding: 38px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Despacho en papel */
.dispatch {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255, 255, 255, .35), transparent 50%),
    radial-gradient(ellipse at 90% 95%, rgba(120, 90, 40, .25), transparent 55%),
    repeating-linear-gradient(0deg, rgba(90, 70, 30, .05) 0 1px, transparent 1px 26px),
    var(--paper);
  border-radius: 3px;
  padding: 28px 30px 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 60px rgba(110, 80, 30, .25);
  font-family: var(--type);
}
.dispatch::before { /* esquina doblada */
  content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px;
  background: linear-gradient(225deg, var(--bg) 50%, var(--paper-2) 50%);
  box-shadow: -3px 3px 6px rgba(0, 0, 0, .2);
}
.dispatch .head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 16px;
}
.dispatch h3 { font-family: var(--stencil); font-weight: 400; margin: 0; font-size: 1.5rem; letter-spacing: .08em; }
.dispatch .ref { font-size: .8rem; color: var(--ink-soft); }
.dispatch dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.dispatch dt { text-transform: uppercase; font-size: .82rem; color: var(--ink-soft); padding-top: 2px; }
.dispatch dd { margin: 0; font-size: 1.05rem; word-break: break-word; }
.dispatch a { color: #7a2414; text-decoration: underline; text-decoration-style: dotted; }
.dispatch .stamp { position: absolute; right: 26px; bottom: 22px; font-size: 1.1rem; }
.dispatch .bio { font-family: var(--type); font-size: 1rem; line-height: 1.7; }
.dispatch .bio p { margin: 0 0 .7em; }
.reveal-mail { font-family: var(--type); background: none; border: 1px dashed var(--ink-soft); color: var(--ink); padding: 2px 10px; cursor: pointer; font-size: .95rem; }

/* Placas de equipo */
.plate {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 50%),
    var(--olive-lo);
  border: 1px solid #1d200d;
  border-radius: 6px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}
.plate .cat { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .25em; font-size: .72rem; color: var(--amber); }
.plate .model { font-family: var(--stencil); font-size: 1.35rem; color: var(--sand); margin: 2px 0 6px; line-height: 1.15; letter-spacing: .04em; }
.plate .spec { font-family: var(--mono); font-size: .86rem; color: var(--khaki); }
.plate .spec span { display: block; }
.plate .plate-post { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: .82rem; color: var(--amber); }

.terminal { padding: 18px 20px; font-size: .95rem; }
.terminal .tl-row { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 12px; padding: 4px 0; border-bottom: 1px dashed rgba(125, 255, 155, .14); }
.terminal .tl-row:last-child { border-bottom: 0; }
.terminal .dim { color: var(--phosphor-dim); text-shadow: none; }
.terminal .prompt::before { content: "> "; color: var(--phosphor-dim); }

.crt { padding: 14px; text-align: center; }
.crt img { display: inline-block; filter: sepia(.25) saturate(1.1); border-radius: 2px; }

/* Ficha QRZ */
.qrz-checks { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.qrz-preview { width: 100%; height: 680px; border: 1px solid var(--panel-edge); border-radius: 4px; background: #fff; }
.qrz-html { width: 100%; font-family: var(--mono); font-size: .78rem; }
.qrz-steps { color: var(--text); margin: 16px 0 8px; padding-left: 22px; line-height: 1.7; }
.qrz-steps code { font-family: var(--mono); color: var(--amber); }

/* Parte de propagación */
.prop { padding: 20px 22px 14px; }
.prop .is-good { --c: var(--phosphor); } .prop .is-fair { --c: var(--amber); } .prop .is-poor { --c: #ff6a55; } .prop .is-na { --c: var(--muted); }
.prop-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; margin-bottom: 16px; font-family: var(--cond); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--khaki); }
.prop-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.prop-now b { color: var(--sand); }
.prop-tip { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--sand); background: rgba(0, 0, 0, .25); border: 1px solid var(--panel-edge); border-radius: 4px; padding: 2px 10px; }
.prop-geo { border: 1px solid var(--c); color: var(--c); border-radius: 4px; padding: 3px 10px; }
.prop-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gauge { padding: 10px 12px 9px; display: grid; gap: 4px; cursor: help; }
.g-lbl { font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--phosphor-dim); text-shadow: none; }
.g-val { font-size: 1.9rem; line-height: 1.05; color: var(--c, var(--amber)); text-shadow: 0 0 8px currentColor; }
.g-val small { font-size: .8rem; margin-left: 4px; opacity: .7; }
.g-hint { font-size: .72rem; color: var(--phosphor-dim); text-shadow: none; }
.g-bar { height: 6px; background: rgba(125, 255, 155, .1); border-radius: 3px; overflow: hidden; }
.g-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--phosphor-dim), var(--phosphor)); box-shadow: 0 0 6px var(--phosphor); }
.g-bar.warn i { background: linear-gradient(90deg, var(--phosphor-dim), var(--amber) 60%, #ff6a55); }
.g-segs { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; height: 6px; }
.g-segs i { background: rgba(125, 255, 155, .1); border-radius: 1px; }
.g-segs i.on.good { background: var(--phosphor); box-shadow: 0 0 5px var(--phosphor); }
.g-segs i.on.fair { background: var(--amber); box-shadow: 0 0 5px var(--amber); }
.g-segs i.on.poor { background: #ff6a55; box-shadow: 0 0 5px #ff6a55; }
.prop-bands { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.pb-table, .pb-vhf { background: rgba(0, 0, 0, .28); border: 1px solid var(--panel-edge); border-radius: 4px; padding: 6px 12px; font-family: var(--mono); }
.pb-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.pb-row:last-child { border-bottom: 0; }
.pb-row > :first-child { color: var(--sand); font-size: 1.05rem; }
.pb-head, .pb-vhf-head { font-family: var(--cond); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--muted); }
.pb-head .now { color: var(--amber); }
.pb-head .now::after { content: " · ahora"; }
.pb-cell { color: var(--c); font-size: .85rem; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; opacity: .6; }
.pb-cell.now { opacity: 1; }
.pb-cell .lamp { width: 10px; height: 10px; background: var(--c); box-shadow: 0 0 8px var(--c); opacity: .9; }
.pb-cell.is-na .lamp { box-shadow: none; opacity: .4; }
.pb-vhf-head { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.pb-vhf-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .85rem; color: var(--muted); border-bottom: 1px dashed var(--line); }
.pb-vhf-row:last-child { border-bottom: 0; }
.pb-vhf-row b { font-weight: 400; letter-spacing: .08em; }
.pb-vhf-row.open { color: var(--phosphor); } .pb-vhf-row.open b { text-shadow: 0 0 6px var(--phosphor); }
.prop-foot { color: var(--muted); font-size: .82rem; margin: 12px 0 0; }
@media (max-width: 900px) { .prop-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prop-bands { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .prop { padding: 16px 14px 12px; } .g-val { font-size: 1.5rem; } .pb-cell { font-size: .75rem; gap: 6px; } }

/* DX Cluster */
.dx-intro { color: var(--muted); margin: -6px 0 16px; max-width: 70ch; }
.dx-filters { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.dx-filters .chips { margin-bottom: 12px; }
button.chip { cursor: pointer; line-height: 1.5; }
button.chip:focus-visible, .dx-tune:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.dx-screen { padding: 14px 16px 10px; font-size: .9rem; }
.dx-status { color: var(--amber); text-shadow: 0 0 6px rgba(255, 176, 0, .5); letter-spacing: .08em; font-size: .8rem; margin-bottom: 10px; }
.dx-head, .dx-row { display: grid; grid-template-columns: 3.4em 6.2em 7.5em minmax(7em, 11em) 3.6em minmax(0, 1fr) 6.5em; gap: 10px; align-items: baseline; }
.dx-head { color: var(--phosphor-dim); text-shadow: none; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid rgba(125, 255, 155, .25); }
.dx-list { max-height: 30.5em; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--phosphor-dim) transparent; }
.dx-row { padding: 4px 0; border-bottom: 1px dashed rgba(125, 255, 155, .12); }
.dx-row > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-row.ea { background: linear-gradient(90deg, rgba(255, 176, 0, .12), transparent 60%); }
.dx-row.ea .dx-call { color: var(--amber); }
.dx-tune { font: inherit; color: var(--phosphor); text-shadow: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; border-bottom: 1px dotted var(--phosphor-dim); justify-self: start; }
.dx-tune:hover { color: #fff; }
.dx-call { color: var(--sand); font-weight: 700; letter-spacing: .04em; }
.dx-com { color: var(--phosphor); opacity: .8; }
.dx-mode { font-size: .72rem; letter-spacing: .08em; text-align: center; border: 1px solid currentColor; border-radius: 3px; padding: 0 2px; text-shadow: none; }
.dx-mode.m-cw { color: #7fc8ff; }
.dx-mode.m-ssb, .dx-mode.m-fm { color: var(--amber); }
.dx-mode.m-digi { color: #d79bff; }
.dx-empty { padding: 18px 0; color: var(--phosphor-dim); text-shadow: none; text-align: center; letter-spacing: .1em; }
.dx-foot { color: var(--muted); font-size: .85rem; margin-top: 10px; }
@media (max-width: 760px) {
  .dx-head { display: none; }
  .dx-row { grid-template-columns: 3.4em 5.8em minmax(0, 1fr) 3.6em; grid-template-areas: "t f c m" "e e x x"; row-gap: 0; padding: 6px 0; }
  .dx-row > :nth-child(1) { grid-area: t; } .dx-row > :nth-child(2) { grid-area: f; } .dx-row > :nth-child(3) { grid-area: c; }
  .dx-row > :nth-child(4) { grid-area: e; font-size: .8rem; } .dx-row > :nth-child(5) { grid-area: m; }
  .dx-row > :nth-child(6) { grid-area: x; font-size: .8rem; } .dx-row > :nth-child(7) { display: none; }
}

.footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid #2c3121;
  font-family: var(--mono); color: var(--muted); font-size: .85rem; letter-spacing: .08em;
}
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .sign { font-family: var(--stencil); color: var(--khaki); font-size: 1.3rem; letter-spacing: .15em; }

/* ---- Login ---- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-box { width: min(460px, 100%); }
.login-box .lcd { padding: 22px 22px 18px; font-size: .95rem; }
.login-box .lcd p { margin: 0 0 4px; }
.login-box label { display: block; margin: 14px 0 4px; color: var(--phosphor-2); letter-spacing: .12em; font-size: .82rem; }
.login-box input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--phosphor-dim);
  color: var(--phosphor); font-family: var(--mono); font-size: 1.1rem; padding: 6px 2px; outline: none;
  text-shadow: 0 0 6px rgba(125, 255, 155, .6); caret-color: var(--phosphor);
}
.login-box input:focus { border-bottom-color: var(--phosphor); }
.login-box .err { color: #ff8a7a; text-shadow: 0 0 6px rgba(255, 80, 60, .6); margin-top: 12px; }
.cursor::after { content: "█"; animation: blink 1s steps(1) infinite; margin-left: 2px; }

/* ======================================================= CENTRO DE MANDO */
.cmd { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.rack {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 44px),
    linear-gradient(90deg, #1a1d12, #23271a 40%, #1b1e13);
  border-right: 3px solid #0d0f08;
  padding: 18px 14px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.rack .id {
  text-align: center; padding: 12px 8px 14px;
  border: 1px solid var(--panel-edge); border-radius: 4px; background: rgba(0, 0, 0, .25);
}
.rack .id .call { font-family: var(--stencil); font-size: 1.7rem; color: var(--sand); letter-spacing: .06em; line-height: 1; }
.rack .id .sub { font-family: var(--cond); font-size: .7rem; letter-spacing: .3em; color: var(--amber); text-transform: uppercase; margin-top: 6px; }
.rack nav { display: flex; flex-direction: column; gap: 4px; }
.switch {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 10px; border-radius: 4px; line-height: 1.3;
  font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .88rem;
  color: var(--khaki); text-decoration: none !important;
  background: linear-gradient(180deg, #2a2f1f, #1e2216);
  border: 1px solid #12140c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.switch:hover { color: var(--sand); background: linear-gradient(180deg, #343a26, #23281a); }
.switch .lamp { width: 9px; height: 9px; }
.switch.active { color: var(--sand); border-color: var(--olive-hi); }
.switch.active .lamp { background: radial-gradient(circle at 40% 35%, #e6ffe9, var(--phosphor-2) 55%); box-shadow: 0 0 8px var(--phosphor-2); }
.switch .count { margin-left: auto; font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: 0; }
.switch .code { display: block; font-size: .62rem; letter-spacing: .25em; color: var(--muted); font-weight: 500; }
.rack .sep { font-family: var(--cond); font-size: .66rem; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; margin: 8px 4px 0; }
.rack form { margin: 0; }
.rack .switch.btnlike { width: 100%; cursor: pointer; }

.cmd-main { min-width: 0; }
.cmd-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 28px;
  background: rgba(10, 12, 7, .85); border-bottom: 1px solid #2c3121;
  font-family: var(--mono); color: var(--khaki); font-size: .85rem; letter-spacing: .08em;
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px);
}
.cmd-top .title { font-family: var(--stencil); font-size: 1.05rem; color: var(--sand); letter-spacing: .12em; }
.cmd-top .sp { flex: 1; }
.cmd-top .stamp { font-size: .78rem; padding: 0 8px; border-width: 2px; transform: rotate(-3deg); mix-blend-mode: normal; }
.menu-toggle { display: none; }
.cmd-body { padding: 26px 28px 60px; }

.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .codename { font-family: var(--mono); color: var(--amber); letter-spacing: .25em; font-size: .8rem; }
.page-head h1 { font-family: var(--stencil); font-weight: 400; color: var(--sand); margin: 2px 0 0; font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: .04em; line-height: 1.05; }
.page-head .intro { color: var(--muted); margin: 6px 0 0; max-width: 70ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.flash { margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.flash div { font-family: var(--mono); padding: 10px 14px; border-radius: 4px; border-left: 4px solid; letter-spacing: .04em; }
.flash .ok { background: rgba(69, 217, 104, .08); border-color: var(--phosphor-2); color: var(--phosphor); }
.flash .error { background: rgba(214, 58, 42, .1); border-color: var(--red); color: #ff9c8f; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-family: var(--cond); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; padding: .25em .7em; border: 1px solid var(--panel-edge); border-radius: 999px; color: var(--khaki); background: rgba(0, 0, 0, .2); }
.chip:hover { text-decoration: none; border-color: var(--khaki); }
.chip.on { background: var(--khaki); color: #1a1a10; border-color: var(--khaki); }
.chip b { font-family: var(--mono); font-weight: 400; opacity: .7; margin-left: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--panel-edge); border-radius: var(--r); background: rgba(0, 0, 0, .25); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th {
  text-align: left; white-space: nowrap;
  font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem;
  color: var(--amber); background: #15180f; padding: 10px 12px; border-bottom: 2px solid var(--olive);
  position: sticky; top: 0;
}
table.data td { padding: 9px 12px; border-bottom: 1px solid rgba(200, 184, 138, .08); vertical-align: top; }
table.data tr:hover td { background: rgba(125, 255, 155, .045); }
table.data td.mono { font-family: var(--mono); color: var(--phosphor); white-space: nowrap; }
table.data td a.rowlink { color: var(--sand); font-weight: 600; }
table.data .empty { text-align: center; padding: 40px; color: var(--muted); font-family: var(--mono); }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 18px; font-family: var(--mono); align-items: center; }

/* Formularios */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.form-grid .wide { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--khaki); margin-bottom: 5px; }
.field label .req { color: var(--red); }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=search], input[type=url], input[type=email], input[type=number], input[type=date],
input[type=datetime-local], input[type=password], select, textarea {
  width: 100%;
  font-family: var(--mono); font-size: .98rem;
  color: var(--phosphor);
  background: var(--lcd);
  border: 1px solid #3a4130;
  border-radius: 4px;
  padding: 9px 11px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .7);
  caret-color: var(--phosphor);
  color-scheme: dark;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.md { min-height: 300px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--phosphor-dim); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .7), 0 0 0 2px rgba(125, 255, 155, .15); }
select option { background: #0b120b; }
.check { display: flex; align-items: center; gap: 10px; font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--khaki); cursor: pointer; padding-top: 22px; }
.check input { width: 20px; height: 20px; accent-color: var(--phosphor-2); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.md-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.md-preview { min-height: 300px; }

/* Ficha */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 22px; align-items: start; }
.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; }
.specs dd { min-width: 0; overflow-wrap: anywhere; }
.specs dt, .specs dd { padding: 8px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.specs dt { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--muted); padding-right: 18px; }
.specs dd.mono { font-family: var(--mono); color: var(--phosphor); }

/* Documento clasificado (markdown) */
.dossier {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 255, 255, .3), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(120, 90, 40, .22), transparent 55%),
    var(--paper);
  border-radius: 3px;
  padding: 34px 38px 38px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 60px rgba(110, 80, 30, .22);
  font-family: var(--sans); font-size: 1.02rem; line-height: 1.7;
}
.dossier .stamp { position: absolute; top: 18px; right: 22px; font-size: .95rem; }
.dossier h1, .dossier h2, .dossier h3, .dossier h4 { font-family: var(--type); font-weight: 400; color: var(--ink); line-height: 1.25; }
.dossier h1 { font-size: 1.7rem; } .dossier h2 { font-size: 1.4rem; border-bottom: 1px solid rgba(43, 37, 25, .35); padding-bottom: 4px; } .dossier h3 { font-size: 1.15rem; }
.dossier a { color: #7a2414; text-decoration: underline; }
.dossier code { font-family: var(--mono); background: rgba(43, 37, 25, .1); padding: 1px 5px; border-radius: 3px; font-size: .92em; }
.dossier pre { background: #1d1a12; color: #f0e6c8; padding: 14px 16px; border-radius: 4px; overflow-x: auto; }
.dossier pre code { background: none; color: inherit; padding: 0; }
.dossier table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.dossier th, .dossier td { border: 1px solid rgba(43, 37, 25, .35); padding: 6px 10px; text-align: left; }
.dossier th { background: rgba(43, 37, 25, .08); font-family: var(--type); font-weight: 400; }
.dossier blockquote { border-left: 4px solid var(--red-dark); margin: 1em 0; padding: .2em 1em; background: rgba(140, 32, 24, .06); }
.dossier img { border: 6px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transform: rotate(-.6deg); }
.dossier > :first-child { margin-top: 0; }
.dossier.empty { font-family: var(--type); color: var(--ink-soft); text-align: center; }

/* Dashboard */
.counters { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.counter { padding: 14px 16px; text-decoration: none !important; display: block; }
.counter .n { font-size: 2.3rem; line-height: 1; }
.counter .l { font-family: var(--cond); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--phosphor-2); margin-top: 6px; text-shadow: none; }
.counter:hover { box-shadow: inset 0 0 18px rgba(0, 0, 0, .9), 0 0 0 1px var(--phosphor-dim), 0 0 18px rgba(125, 255, 155, .15); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; }
.panel h3 { font-family: var(--stencil); font-weight: 400; color: var(--sand); letter-spacing: .06em; margin: 0 0 14px; font-size: 1.15rem; text-transform: uppercase; }
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar { display: grid; grid-template-columns: 4.5em 1fr 3em; gap: 10px; align-items: center; font-family: var(--mono); font-size: .88rem; }
.bar .track { height: 12px; background: #0b100a; border: 1px solid #2c3324; border-radius: 2px; overflow: hidden; }
.bar .fill { height: 100%; background: repeating-linear-gradient(90deg, var(--phosphor-2) 0 6px, transparent 6px 8px); box-shadow: 0 0 8px rgba(69, 217, 104, .6); }
.bar .v { text-align: right; color: var(--phosphor); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.list-plain li:last-child { border-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.notice { font-family: var(--mono); border: 1px dashed var(--amber-dim); color: var(--amber); padding: 12px 14px; border-radius: 4px; background: rgba(255, 176, 0, .05); margin-bottom: 22px; }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.error-page .code { font-family: var(--stencil); font-size: clamp(4rem, 16vw, 9rem); color: var(--olive-hi); line-height: 1; }

/* ======================================================= Responsive */
@media (max-width: 960px) {
  .grid-2, .dash-grid, .sheet { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmd { grid-template-columns: 1fr; }
  .rack { position: fixed; z-index: 50; left: 0; top: 0; width: 270px; transform: translateX(-105%); transition: transform .2s; box-shadow: 10px 0 30px rgba(0, 0, 0, .6); }
  body.menu-open .rack { transform: none; }
  .menu-toggle { display: inline-flex; }
  .cmd-top { padding: 10px 16px; }
  .cmd-body { padding: 20px 16px 50px; }
}
@media (max-width: 620px) {
  .grid-3, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar nav { display: none; }
  .dispatch, .dossier { padding: 24px 18px; }
  .dispatch dl, .specs { grid-template-columns: 1fr; }
  .dispatch dt, .specs dt { padding-bottom: 0; border-bottom: 0; }
  .terminal .tl-row { grid-template-columns: 1fr; gap: 0; }
  .check { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ======================================================= BLOG */
.topbar .brand { text-decoration: none; }
.topbar nav a.on { color: var(--amber); }
.nav-blog-sm { display: none; font-family: var(--cond); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--khaki); }
.section-head .btn { margin-left: auto; }

.blog-head { padding: 46px 0 20px; border-bottom: 1px solid #2c3121; background: linear-gradient(180deg, rgba(75, 83, 32, .12), transparent); margin-bottom: 30px; }
.codename { font-family: var(--mono); color: var(--amber); letter-spacing: .25em; font-size: .8rem; }
.blog-head h1 { font-family: var(--stencil); font-weight: 400; color: var(--sand); font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: .03em; margin: 4px 0 6px; line-height: 1; }
.lede { color: #bdb6a0; font-size: 1.12rem; max-width: 62ch; margin: 0 0 18px; }
.blog-search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; max-width: 640px; }
.blog-search input { flex: 1; min-width: 200px; }
.filter-note { font-family: var(--mono); color: var(--khaki); margin: 0 0 18px; }
.blog-empty { padding: 22px 24px; margin-bottom: 30px; }
.blog-empty p { margin: 0 0 4px; }
.blog-empty .dim, .post-nav .dim { color: var(--phosphor-dim); text-shadow: none; }

/* tarjetas */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 30px; }
.pcard {
  display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%), var(--panel);
  border: 1px solid var(--panel-edge); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--olive-hi); box-shadow: 0 16px 30px rgba(0, 0, 0, .55); }
.pcard-img { display: block; aspect-ratio: 16 / 9; background: #0e100a; overflow: hidden; position: relative; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 50px rgba(0, 0, 0, .55); pointer-events: none; }
.pcard-ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    linear-gradient(rgba(125, 255, 155, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(125, 255, 155, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(ellipse at 30% 30%, #2a3a1c, #0c120a 75%);
}
.pcard-ph b { font-family: var(--stencil); font-weight: 400; color: rgba(230, 218, 181, .8); font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 0 14px; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.pcard-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.pcard-cat { font-family: var(--cond); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; color: #1a1a10; background: var(--amber); padding: 1px 8px; border-radius: 2px; }
.pcard-cat:hover { text-decoration: none; filter: brightness(1.1); }
.pcard h3 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 1.4rem; line-height: 1.15; letter-spacing: .01em; }
.pcard h3 a { color: var(--sand); }
.pcard h3 a:hover { color: var(--amber); text-decoration: none; }
.pcard p { margin: 0; color: #b9b29b; font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard.big { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-bottom: 26px; }
.pcard.big .pcard-img { aspect-ratio: auto; min-height: 320px; }
.pcard.big .pcard-body { padding: 30px 32px; justify-content: center; gap: 12px; }
.pcard.big h3 { font-family: var(--stencil); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; }
.pcard.big p { -webkit-line-clamp: 5; font-size: 1.06rem; }

/* entrada */
.post { padding-top: 34px; }
.post-wrap { max-width: 860px; }
.crumbs { font-family: var(--mono); font-size: .85rem; color: var(--muted); letter-spacing: .06em; margin-bottom: 14px; }
.post-head h1 { font-family: var(--cond); font-weight: 700; color: var(--sand); font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.05; margin: 0 0 12px; letter-spacing: .005em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); color: var(--khaki); font-size: .88rem; letter-spacing: .05em; padding: 10px 0 18px; border-bottom: 1px dashed var(--line); margin-bottom: 24px; }
.post-meta span:first-child { color: var(--amber); }
.post-cover { margin: 0 0 26px; border-radius: 4px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.post-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; }

.article {
  position: relative;
  color: #2a2519;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(255, 255, 255, .35), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(120, 90, 40, .16), transparent 55%),
    #e2d6b4;
  border-radius: 3px;
  padding: 40px clamp(20px, 5vw, 56px) 44px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .55), inset 0 0 70px rgba(110, 80, 30, .18);
  font-family: var(--sans); font-size: 1.1rem; line-height: 1.78;
}
.article > .stamp { position: absolute; top: 18px; right: 22px; font-size: 1rem; }
.article > :first-child, .article > .stamp + * { margin-top: 0; }
.article p { margin: 0 0 1.1em; }
.article h1, .article h2, .article h3, .article h4 { font-family: var(--cond); font-weight: 700; color: #1f1b12; line-height: 1.2; margin: 1.6em 0 .55em; }
.article h1 { font-size: 2rem; }
.article h2 { font-size: 1.65rem; padding-bottom: 6px; border-bottom: 2px solid rgba(43, 37, 25, .35); }
.article h3 { font-size: 1.3rem; }
.article a { color: #8a2a12; text-decoration: underline; text-underline-offset: 3px; }
.article strong { color: #17140d; }
.article ul, .article ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.article li { margin: .25em 0; }
.article blockquote { margin: 1.4em 0; padding: .6em 1.2em; border-left: 4px solid var(--red-dark); background: rgba(140, 32, 24, .07); font-style: italic; }
.article blockquote p:last-child { margin: 0; }
.article code { font-family: var(--mono); font-size: .9em; background: rgba(43, 37, 25, .1); padding: 1px 5px; border-radius: 3px; }
.article pre { background: #191710; color: #efe5c6; padding: 16px 18px; border-radius: 4px; overflow-x: auto; font-size: .92rem; line-height: 1.55; }
.article pre code { background: none; padding: 0; color: inherit; }
.article table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .97rem; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid rgba(43, 37, 25, .3); padding: 7px 12px; text-align: left; }
.article th { background: rgba(43, 37, 25, .09); font-family: var(--cond); font-weight: 700; letter-spacing: .03em; }
.article p:has(img) { text-align: center; font-size: .92rem; line-height: 1.45; color: #5a4f3a; margin: 1.8em 0; }
.article p:has(img) em { font-weight: 400; }
.article a:has(> img) { cursor: zoom-in; }
.article p:has(img) img { margin: 0 auto .7em; }
.article img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border: 8px solid #fbf8ef; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.article hr { border: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(43, 37, 25, .4) 0 12px, transparent 12px 20px); margin: 2em 0; }
.article .sign { font-family: var(--type); text-align: right; color: #5a4f3a; margin: 2em 0 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.post-tags .tag:hover { color: var(--amber); text-decoration: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 10px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-decoration: none; font-size: .98rem; }
.post-nav a.next { text-align: right; grid-column: 2; }
.post-nav a:hover { box-shadow: inset 0 0 18px rgba(0, 0, 0, .9), 0 0 0 1px var(--phosphor-dim); }

/* editor */
.md-editor { display: flex; flex-direction: column; gap: 6px; }
.md-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.md-tabs { display: flex; gap: 6px; margin: 0; }
.md-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.md-tools[hidden] { display: none; }
.md-tools button, .md-upload {
  font: 600 .82rem var(--mono); color: var(--khaki); background: #15180f; border: 1px solid var(--panel-edge);
  border-radius: 3px; padding: 4px 9px; cursor: pointer; line-height: 1.3;
}
.md-tools button:hover, .md-upload:hover { color: var(--sand); border-color: var(--khaki); }
.md-upload { color: var(--amber); border-color: var(--amber-dim); }
textarea.md { min-height: 420px; font-size: 1rem; line-height: 1.6; }
textarea.md.drop { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 0, .25); }
.md-status { font-family: var(--mono); font-size: .82rem; color: var(--phosphor-2); min-height: 1.2em; }
.md-status.err { color: #ff8a7a; }
.md-preview.article { box-shadow: none; }
.upload-field { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.upload-preview { aspect-ratio: 16 / 9; background: var(--lcd); border: 1px solid #3a4130; border-radius: 4px; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: .85rem; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-ctl { display: flex; flex-direction: column; gap: 10px; }
.upload-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upload-btns .btn { cursor: pointer; }
.ficha-foto { padding: 12px; }
.ficha-foto img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #f4f1ea; border-radius: 3px; }
img.thumb { max-width: 220px; border-radius: 3px; display: block; }

@media (max-width: 960px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard.big { grid-template-columns: minmax(0, 1fr); }
  .pcard.big .pcard-img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .nav-blog-sm { display: inline; }
  .hide-sm { display: none; }
  .pcard.big .pcard-body { padding: 18px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.next { grid-column: 1; }
  .upload-field { grid-template-columns: 1fr; }
  .article { font-size: 1.04rem; }
}

/* ---- Enlace a la web de tests ---- */
.topbar nav a.nav-exam { color: var(--amber); }
.nav-blog-sm.exam { color: var(--amber); }
.exam-section { padding-top: 10px; }
.exam-banner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: 28px 32px; border-radius: 8px; text-decoration: none !important; color: var(--text);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 176, 0, .05) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 50%),
    var(--panel);
  border: 1px solid var(--amber-dim);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .4);
  transition: transform .15s, border-color .15s;
}
.exam-banner:hover { transform: translateY(-2px); border-color: var(--amber); }
.exam-banner h2 { font-family: var(--stencil); font-weight: 400; color: var(--sand); font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: .04em; margin: 4px 0 8px; text-transform: uppercase; }
.exam-banner p { margin: 0; color: #c5bea6; max-width: 66ch; }
.exam-banner p b { color: var(--sand); }
.exam-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.exam-score { display: flex; flex-direction: column; align-items: center; padding: 10px 26px; min-width: 190px; letter-spacing: .14em; font-size: .78rem; }
.exam-score b { font-family: var(--stencil); font-weight: 400; font-size: 2rem; letter-spacing: .12em; line-height: 1.2; }
.exam-score .dim { color: var(--phosphor-dim); text-shadow: none; }
@media (max-width: 760px) {
  .exam-banner { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .exam-cta { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
  .exam-score { min-width: 0; padding: 8px 16px; }
}

/* ---------------- Confirmación de QSO: tarjeta QSL ---------------- */
.qsl-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.qsl-card {
  position: relative; margin: 0; color: var(--ink); font-family: var(--type);
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, .45), transparent 55%),
    radial-gradient(ellipse at 10% 95%, rgba(120, 90, 40, .22), transparent 55%),
    #efe6c9;
  border-radius: 6px; padding: 0 26px 18px; overflow: hidden;
  box-shadow: 0 22px 40px rgba(0, 0, 0, .55), inset 0 0 50px rgba(110, 80, 30, .2);
  transform: rotate(-1.2deg);
}
.qc-band { height: 14px; margin: 0 -26px 18px; background: repeating-linear-gradient(90deg, var(--red-dark) 0 22px, #c8a646 22px 30px, var(--olive) 30px 52px, #c8a646 52px 60px); }
.qc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.qc-call { font-family: var(--stencil); font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: .95; letter-spacing: .06em; color: var(--red-dark); }
.qc-morse { font-family: var(--mono); letter-spacing: .25em; color: var(--ink-soft); font-size: .85rem; margin-top: 4px; }
.qc-where { text-align: right; display: grid; gap: 2px; }
.qc-where b { font-weight: 400; font-size: 1.05rem; }
.qc-where span { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); letter-spacing: .08em; }
.qc-qso { width: 100%; border-collapse: collapse; margin: 16px 0 12px; font-size: .82rem; text-align: center; }
.qc-qso th { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--ink-soft); border: 1px solid rgba(43, 37, 25, .55); padding: 4px 2px; background: rgba(43, 37, 25, .07); }
.qc-qso td { font-family: var(--mono); border: 1px solid rgba(43, 37, 25, .55); padding: 9px 3px; color: #1f3f8a; transform: rotate(-.4deg); }
.qc-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .85rem; letter-spacing: .08em; }
.qc-stamp { font-size: .9rem; transform: rotate(-5deg); white-space: nowrap; }
.qsl-side { display: grid; gap: 16px; }
.qsl-how { display: grid; gap: 12px; }
.qh-title { color: var(--amber); text-shadow: 0 0 6px rgba(255, 176, 0, .5); letter-spacing: .08em; }
.qsl-how ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; line-height: 1.45; }
.qsl-how b { color: #c9ffd5; font-weight: 400; }
.qh-vias { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.qh-via { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .06em; }
.qsl-how .btn { justify-self: start; }
@media (max-width: 860px) { .qsl-grid { grid-template-columns: 1fr; } .qsl-card { transform: none; } }
@media (max-width: 480px) {
  .qsl-card { padding: 0 14px 14px; } .qc-band { margin: 0 -14px 14px; }
  .qc-where { text-align: left; } .qc-foot { justify-content: center; } .qc-stamp { order: 3; font-size: .78rem; }
  .qc-qso { font-size: .7rem; } .qc-qso th { font-size: .58rem; letter-spacing: .02em; }
}

/* ---------------- Calculadora de antenas ---------------- */
.calc-tabs .chip.off { opacity: .45; cursor: default; }
.calc-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 20px; }
.calc-in { display: grid; gap: 14px; position: sticky; top: 70px; }
.calc-in .field { margin: 0; }
.calc-in .chips { margin: -6px 0 2px; }
.calc-in .chip:disabled { opacity: .35; cursor: not-allowed; }
.calc-kc { margin-top: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--panel-edge); border-radius: 5px; overflow: hidden; }
.seg-btn { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; padding: .6em; border: 0; background: rgba(0, 0, 0, .25); color: var(--khaki); cursor: pointer; }
.seg-btn.on { background: var(--khaki); color: #1a1a10; }
.seg-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.calc-out { display: grid; gap: 18px; min-width: 0; }
.calc-screen { padding: 16px 18px 10px; }
.cs-top { display: flex; justify-content: space-between; color: var(--amber); text-shadow: 0 0 6px rgba(255, 176, 0, .5); letter-spacing: .12em; font-size: .85rem; }
.cs-main { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 4px; }
.cs-main > div { display: grid; }
.cs-lbl { font-family: var(--cond); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--phosphor-dim); text-shadow: none; }
.cs-big { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
.cs-big.alt { color: var(--amber); text-shadow: 0 0 8px rgba(255, 176, 0, .55); }
.cs-ft { color: var(--phosphor-dim); text-shadow: none; font-size: .85rem; }
.cs-svg { width: 100%; height: auto; display: block; margin-top: 4px; }
.cs-svg .wire { stroke: var(--phosphor); stroke-width: 3; filter: drop-shadow(0 0 3px var(--phosphor)); }
.cs-svg .rope { stroke: var(--khaki); stroke-width: 2; stroke-dasharray: 4 3; }
.cs-svg .ins { fill: #d8d0b4; stroke: #7d775f; }
.cs-svg .coax { fill: none; stroke: #5c5c5c; stroke-width: 6; stroke-linecap: round; }
.cs-svg .dim { stroke: var(--phosphor-dim); stroke-width: 1; }
.cs-svg text { fill: var(--phosphor); font-family: var(--mono); text-anchor: middle; }
.cs-svg .t { font-size: 15px; } .cs-svg .t2 { font-size: 15px; fill: var(--amber); } .cs-svg .t3 { font-size: 11px; fill: var(--phosphor-dim); } .cs-svg .ts { text-anchor: start; }
.calc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calc-card { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--r); padding: 14px 16px; }
.calc-card h3 { font-family: var(--stencil); font-weight: 400; color: var(--sand); letter-spacing: .06em; margin: 0 0 6px; font-size: 1rem; text-transform: uppercase; }
.calc-card p { margin: 0 0 6px; line-height: 1.5; }
.calc-card b { color: var(--amber); font-weight: 600; }
.calc-tune h3 { font-family: var(--stencil); font-weight: 400; color: var(--sand); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; }
.calc-tune p { margin: 0 0 12px; }
.calc-tune-out { margin-top: 14px; padding: 12px 14px; line-height: 1.5; }
.calc-tune-out b { font-size: 1.2em; }
.calc-tune-out.go { color: var(--amber); text-shadow: 0 0 6px rgba(255, 176, 0, .5); }
.calc-tune-out.warn { color: #ff6a55; text-shadow: none; }
.calc-tune-out .dim { color: var(--phosphor-dim); text-shadow: none; font-size: .9em; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.calc-foot { color: var(--muted); font-size: .85rem; margin: 0; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } .calc-in { position: static; } }
@media (max-width: 560px) { .calc-cards, .cs-main { grid-template-columns: 1fr; } .cs-svg .t3 { display: none; } }
.calc-what { margin: 0; color: var(--muted); font-size: .92rem; }
.cs-svg .wire.rad { stroke-width: 2; opacity: .8; }
.cs-svg .ground { stroke: var(--khaki); stroke-width: 1; stroke-dasharray: 2 4; opacity: .6; }
.cs-svg .box { fill: #3b3f30; stroke: var(--khaki); }
.cs-svg .boom { stroke: #9a9a8a; stroke-width: 5; stroke-linecap: round; }
.calc-table { overflow-x: auto; border: 1px solid var(--panel-edge); border-radius: var(--r); background: var(--panel); }
.calc-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.calc-table th { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--khaki); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--panel-edge); }
.calc-table td { padding: 9px 14px; border-bottom: 1px dashed var(--line); font-family: var(--mono); white-space: nowrap; }
.calc-table tr:last-child td { border-bottom: 0; }
.calc-table td:first-child { font-family: var(--sans); color: var(--sand); }
.calc-table b { color: var(--amber); font-weight: 400; }

/* ---------------- Mapa de PSK Reporter ---------------- */
.psk .chips { margin-bottom: 12px; }
.psk .chip b, .psk-row b { margin-left: 6px; font-weight: 400; opacity: .7; }
.psk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.psk-map-wrap { padding: 0; overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.psk-map { height: 440px; background: #0a0f0b; }
.psk-map.leaflet-container { background: #0a0f0b; }
.psk-status { margin: 0; padding: 8px 12px; border-top: 1px solid rgba(125, 255, 155, .2); }
.psk-side { padding: 12px 14px; font-size: .9rem; max-height: 486px; overflow-y: auto; }
.psk-side-head, .psk-row { display: grid; grid-template-columns: 3.4em 5.2em minmax(0, 1fr); gap: 8px; align-items: baseline; }
.psk-side-head { color: var(--phosphor-dim); text-shadow: none; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid rgba(125, 255, 155, .25); }
.psk-row { width: 100%; font: inherit; color: var(--phosphor); text-shadow: inherit; text-align: left; background: none; border: 0; border-bottom: 1px dashed rgba(125, 255, 155, .12); padding: 6px 0; cursor: pointer; }
.psk-row > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psk-row .b { color: var(--sand); font-weight: 700; }
.psk-row .dim { color: var(--phosphor-dim); text-shadow: none; }
.psk-row:hover, .psk-row.on { background: linear-gradient(90deg, rgba(125, 255, 155, .12), transparent); }
.psk-row:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.psk .leaflet-container, .sat .leaflet-container { font-family: var(--mono); }
.psk .leaflet-popup-content-wrapper, .psk .leaflet-popup-tip, .sat .leaflet-popup-content-wrapper, .sat .leaflet-popup-tip { background: #0d140e; color: var(--phosphor); border: 1px solid var(--phosphor-dim); box-shadow: 0 6px 20px rgba(0, 0, 0, .6); }
.psk .leaflet-popup-content, .sat .leaflet-popup-content { margin: 10px 14px; line-height: 1.45; font-size: .85rem; }
.psk .leaflet-popup-content b, .sat .leaflet-popup-content b { color: var(--sand); }
.psk .leaflet-popup-content .dim, .sat .leaflet-popup-content .dim { color: var(--muted); }
.psk .leaflet-container a.leaflet-popup-close-button, .sat .leaflet-container a.leaflet-popup-close-button { color: var(--phosphor); }
.psk .leaflet-bar a, .sat .leaflet-bar a { background: #1a2016; color: var(--phosphor); border-color: #2c3324; }
@media (max-width: 900px) { .psk-grid { grid-template-columns: 1fr; } .psk-map { height: 340px; } .psk-side { max-height: none; } }

/* ---------------- Balizas NCDXF ---------------- */
.beacon-screen { padding: 14px 16px 10px; font-size: .92rem; }
.beacon-screen .dx-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-slot { flex: 1 1 120px; max-width: 260px; height: 6px; background: rgba(255, 176, 0, .15); border-radius: 3px; overflow: hidden; }
.bc-slot span { display: block; height: 100%; width: 0; background: var(--amber); box-shadow: 0 0 6px var(--amber); transition: width .5s linear; }
.bc-head, .bc-row { display: grid; grid-template-columns: 5.5em 6.5em minmax(0, 1fr) 6.5em 6em 5.5em; gap: 10px; align-items: baseline; }
.bc-head { color: var(--phosphor-dim); text-shadow: none; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid rgba(125, 255, 155, .25); }
.bc-row { padding: 6px 0; border-bottom: 1px dashed rgba(125, 255, 155, .12); }
.bc-row > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-call { color: var(--sand); font-weight: 700; letter-spacing: .05em; }
.bc-row .dim { color: var(--phosphor-dim); text-shadow: none; }
@media (max-width: 700px) {
  .bc-head { display: none; }
  .bc-row { grid-template-columns: 5.2em 5.6em minmax(0, 1fr); grid-template-areas: "f c d" "e e r"; row-gap: 0; }
  .bc-row > :nth-child(1) { grid-area: f; } .bc-row > :nth-child(2) { grid-area: c; } .bc-row > :nth-child(3) { grid-area: e; font-size: .82rem; }
  .bc-row > :nth-child(4) { grid-area: d; text-align: right; } .bc-row > :nth-child(5) { grid-area: r; text-align: right; font-size: .82rem; } .bc-row > :nth-child(6) { display: none; }
}

/* ---------------- Contador de visitas (privado) ---------------- */
.page-head > .chips { margin-left: auto; }
.dash-visitas .n { color: var(--amber); text-shadow: 0 0 8px rgba(255, 176, 0, .5); }
.vchart-panel h3 { margin-top: 0; }
.vchart { position: relative; }
.vchart svg { width: 100%; height: auto; display: block; }
.vchart .grid { stroke: rgba(125, 255, 155, .1); stroke-width: 1; }
.vchart .base { stroke: rgba(125, 255, 155, .35); stroke-width: 1; }
.vchart .ax { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.vchart .bar { fill: var(--phosphor-2); }
.vchart .hit { fill: transparent; }
.vchart .vbar { cursor: default; outline: none; }
.vchart .vbar.on .bar, .vchart .vbar:focus .bar { fill: var(--phosphor); }
.vchart .vbar.on .hit, .vchart .vbar:focus .hit { fill: rgba(125, 255, 155, .07); }
.vtip { position: absolute; top: 4px; transform: translateX(-50%); background: #0d140e; border: 1px solid var(--phosphor-dim); color: var(--phosphor); font-family: var(--mono); font-size: .82rem; padding: 6px 10px; border-radius: 4px; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.vtip b { color: var(--sand); font-weight: 400; }
.vtip .dim { color: var(--muted); }
.vtable { margin-top: 12px; }
.vtable summary { cursor: pointer; color: var(--khaki); font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.vtable .table-wrap { max-height: 320px; overflow-y: auto; margin-top: 8px; }
.visitas-grid { margin-top: 22px; gap: 22px; }
.vbars .bar { grid-template-columns: minmax(0, 14em) 1fr 3.5em; }
.vbars .bar > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visitas-note { margin-top: 22px; font-size: .9rem; max-width: 90ch; line-height: 1.55; }

/* ---- App instalable / sin conexión ---- */
.footer .install-btn[hidden] { display: none; }
.offline-page .muted { max-width: 46ch; margin: 14px auto; }
.offline-saved { text-align: left; max-width: 460px; margin: 18px auto; padding: 14px 18px; border: 1px solid var(--panel-edge); border-radius: 6px; background: var(--bg-2); }
.offline-saved h3 { margin: 0 0 8px; font-family: var(--cond); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--khaki); }
.offline-saved ul { margin: 0; padding-left: 1.1em; }
.offline-saved li { margin: 4px 0; }
.offline-saved a { color: var(--amber); overflow-wrap: anywhere; }
@media (display-mode: standalone) {
  .footer .install-btn { display: none; }
}

/* ======================================================= Radio en directo (CAT) */
.topbar .onair.live { border-color: var(--red); color: #fff; background: rgba(214, 58, 42, .25); letter-spacing: .08em; font-family: var(--mono); }
.onair-live { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border: 1px solid var(--red); border-radius: 4px;
  font-family: var(--mono); color: #ffd3cc; background: rgba(214, 58, 42, .14); letter-spacing: .06em; }
.onair-live[hidden] { display: none; }
.onair-live b { color: #fff; font-size: 1.1em; }
.cat-state { padding: 10px 14px; font-size: .9rem; margin-bottom: 12px; }
.cat-steps { margin: 0 0 14px; padding-left: 1.3em; color: var(--text); }
.cat-steps li { margin: 4px 0; }
.cat-steps code, .cw-page code { font-family: var(--mono); background: rgba(0, 0, 0, .3); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.flash .token { font-family: var(--mono); user-select: all; overflow-wrap: anywhere; color: var(--phosphor); }
.label-like { display: block; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--khaki); margin-bottom: 5px; }
.sat-pick { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.sat-pick .check { padding-top: 4px; text-transform: none; letter-spacing: .04em; }
.sat-pick .check .muted { font-weight: 400; }

/* ======================================================= Satélites */
.sat-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.sat-now { padding: 14px 16px; }
.sat-sky { display: flex; justify-content: center; margin: 4px 0 10px; }
.sat-polar { width: min(100%, 300px); height: auto; overflow: visible; }
.sat-polar [hidden] { display: none; }
.sat-polar .ring { fill: none; stroke: rgba(125, 255, 155, .25); stroke-width: .8; }
.sat-polar circle.ring:first-child { stroke: rgba(125, 255, 155, .5); fill: rgba(125, 255, 155, .03); }
.sat-polar .card { fill: var(--phosphor); font: 9px var(--mono); text-anchor: middle; }
.sat-polar .deg { fill: var(--phosphor-dim); font: 7px var(--mono); }
.sat-polar .track { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sat-polar .aos { fill: var(--bg); stroke: var(--amber); stroke-width: 1.5; }
.sat-polar .dot { fill: #fff; stroke: var(--red); stroke-width: 2.5; }
.sat-info { font-size: .9rem; }
.sat-name { font-family: var(--stencil); color: var(--sand); text-shadow: none; font-size: 1.3rem; letter-spacing: .05em; }
.sat-name .dim { font-family: var(--mono); font-size: .75rem; color: var(--phosphor-dim); }
.sat-big { display: block; font-size: 1.2rem; color: var(--amber); margin: 2px 0 4px; }
.sat-big.live { color: #fff; text-shadow: 0 0 8px rgba(255, 90, 70, .8); }
.sat-info .dim { color: var(--phosphor-dim); text-shadow: none; }
.sat-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 10px 0 0; }
.sat-dl dt { color: var(--phosphor-dim); text-shadow: none; text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; padding-top: 2px; }
.sat-dl dd { margin: 0; }
.sat-note { font-size: .8rem; margin: 10px 0 0; }
.sat-list { padding: 12px 14px; font-size: .9rem; max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
.sat-head, .sat-row { display: grid; grid-template-columns: minmax(4.5em, 1fr) minmax(7.5em, 1.2fr) 4em 3.4em 5.5em; gap: 8px; align-items: baseline; }
.sat-head { color: var(--phosphor-dim); text-shadow: none; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid rgba(125, 255, 155, .25); }
.sat-row { width: 100%; font: inherit; color: var(--phosphor); text-shadow: inherit; text-align: left; background: none; border: 0; border-bottom: 1px dashed rgba(125, 255, 155, .12); padding: 7px 0; cursor: pointer; }
.sat-row > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sat-row .n { color: var(--sand); font-weight: 700; }
.sat-row .el.hi { color: #fff; }
.sat-row .dim { color: var(--phosphor-dim); text-shadow: none; }
.sat-row:hover, .sat-row.on { background: linear-gradient(90deg, rgba(255, 176, 0, .14), transparent); }
.sat-row.now b { color: #fff; }
.sat-row:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

/* ======================================================= Actividad */
.act-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px; }
.act-bar .chips { margin-bottom: 12px; }
.act-es { padding: 0 0 12px; font-size: .8rem; }
.act-es[hidden] { display: none; }
.act-screen { padding: 14px 16px 10px; font-size: .9rem; }
[data-act-list] { max-height: 30.5em; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--phosphor-dim) transparent; }
.act-row { display: grid; grid-template-columns: 6.6em 7.6em 6.6em minmax(0, 1fr) 3.6em 5.6em 6em; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed rgba(125, 255, 155, .12); }
.act-row > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-row.ea { background: linear-gradient(90deg, rgba(255, 176, 0, .12), transparent 60%); }
.act-row.ea .act-call { color: var(--amber); }
.act-call { color: var(--sand); font-weight: 700; }
.act-row .dim { color: var(--phosphor-dim); text-shadow: none; }
.act-row a { color: var(--phosphor); }
.act-row.contest { grid-template-columns: 19em minmax(0, 1fr) 8em; }
.act-row.contest.live { background: linear-gradient(90deg, rgba(214, 58, 42, .18), transparent 60%); }
.act-row.contest.live b { color: #fff; }
.act-row.contest .dx-mode { color: var(--khaki); }

/* ======================================================= Escuela de Morse */
.cw-teaser { padding-top: 0; }
.cw-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; color: var(--text); text-decoration: none; }
.cw-card:hover { text-decoration: none; border-color: var(--khaki); }
.cw-card b { font-family: var(--stencil); font-weight: 400; color: var(--sand); font-size: 1.2rem; letter-spacing: .05em; }
.cw-dits { font-family: var(--mono); color: var(--amber); font-size: 1.6rem; letter-spacing: .1em; }
.cw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.cw-lesson { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; align-items: flex-end; margin-bottom: 10px; }
.cw-level { display: flex; align-items: center; gap: 10px; font-family: var(--stencil); font-size: 2rem; color: var(--sand); }
.cw-level .muted { font-family: var(--mono); font-size: .9rem; }
.cw-hint { font-size: .85rem; margin: 0; }
.cw-chars { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.cw-chars[hidden], [data-cw-calls-only][hidden], [data-cw-text-only][hidden], [data-cw-copy-wrap][hidden] { display: none; }
.cw-ch { display: grid; justify-items: center; gap: 2px; min-width: 3.4em; padding: 6px 8px; border: 1px solid var(--panel-edge); border-radius: 4px; background: rgba(0, 0, 0, .25); color: var(--sand); cursor: pointer; font: inherit; }
.cw-ch b { font-family: var(--mono); font-size: 1.25rem; }
.cw-ch span { font-family: var(--mono); font-size: .8rem; color: var(--amber); letter-spacing: .08em; }
.cw-ch.new { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
.cw-ch:hover { border-color: var(--khaki); }
.cw-play { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; }
.cw-play [hidden] { display: none; }
.cw-progress { flex: 1; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .35); overflow: hidden; border: 1px solid var(--panel-edge); }
.cw-progress span { display: block; height: 100%; width: 0; background: var(--amber); transition: width .2s linear; }
.cw-copy { width: 100%; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; }
.cw-result { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--panel-edge); border-radius: 6px; background: var(--bg-2); }
.cw-score { font-family: var(--stencil); font-size: 2.6rem; color: #ff8a7a; line-height: 1; }
.cw-score.pass { color: var(--phosphor); }
.cw-sent { font-size: 1.05rem; letter-spacing: .12em; overflow-wrap: anywhere; line-height: 1.8; }
.cw-sent .ok { color: var(--phosphor); }
.cw-sent .bad { color: #ff8a7a; text-decoration: line-through; }
.cw-result .dim { color: var(--muted); font-size: .8rem; }
.cw-settings input[type=range] { width: 100%; accent-color: var(--amber); }
.cw-settings .field { margin-bottom: 12px; }
.cw-settings .field label b { color: var(--sand); }

/* ======================================================= Avisos, repetidores, estadísticas (privado) */
.sep-field h4 { margin: 8px 0 0; font-family: var(--cond); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sand); border-top: 1px solid var(--line); padding-top: 14px; }
.page-head .actions form { display: inline; }
.aviso-texto { white-space: pre-line; font-size: .85rem; min-width: 18em; }
.tag.ok { color: var(--phosphor); border-color: var(--phosphor-dim); }
.tag.warn { color: var(--amber); border-color: var(--amber-dim); }
.tag.bad { color: #ff8a7a; border-color: var(--red-dark); }
.rep-map { height: 420px; border-radius: 4px; background: #0a0f0b; }
.rep-legend, .award-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.rep-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #13150e; margin-right: 6px; vertical-align: -1px; }
.rep-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 14px; }
.rep-filtros .chips { margin: 0; }
.rl.lejos { width: 8px !important; height: 8px !important; opacity: .5; }
.rl.a1 { background: #45d968; } .rl.a2 { background: #ffb000; } .rl.a3 { background: #d63a2a; } .rl.a0 { background: #959079; } .rl.q { background: #4b9bff; }
.stats-map, .stats-map.leaflet-container { height: 420px; border-radius: 4px; background: #0a0f0b; }
.stats-map .leaflet-popup-content-wrapper, .stats-map .leaflet-popup-tip { background: #0d140e; color: var(--phosphor); border: 1px solid var(--phosphor-dim); }
.stats-map .leaflet-popup-content b { color: var(--sand); }
.counter .n small { font-size: .45em; opacity: .7; }
.awards { display: grid; gap: 16px; }
.award-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 6px; }
.award-head b { font-family: var(--stencil); font-weight: 400; color: var(--sand); font-size: 1.1rem; letter-spacing: .05em; }
.award-head .mono { margin-left: auto; color: var(--sand); }
.award-track { position: relative; height: 12px; border-radius: 6px; background: rgba(0, 0, 0, .35); border: 1px solid var(--panel-edge); overflow: hidden; }
.award-track span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.award-track .w, .award-legend i.w { background: rgba(125, 255, 155, .3); }
.award-track .c, .award-legend i.c { background: var(--phosphor-2); }
.award-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.award-como { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.award-como summary { cursor: pointer; color: var(--sand); }
.award-como p { margin: 6px 0 0; }
.award-legend i { display: inline-block; width: 18px; height: 8px; border-radius: 4px; margin-right: 6px; }
.award-foot { font-size: .8rem; margin-top: 4px; }
.ok-text { color: var(--phosphor); }
.wac-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.month-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 180px; align-items: end; }
.month-bars .mb { display: grid; grid-template-rows: auto 1fr auto; height: 100%; align-items: end; text-align: center; }
.month-bars .b { display: block; min-height: 2px; background: var(--phosphor-2); border-radius: 4px 4px 0 0; align-self: end; }
.month-bars .v { font-family: var(--mono); font-size: .75rem; color: var(--sand); }
.month-bars .l { font-size: .7rem; color: var(--muted); text-transform: uppercase; padding-top: 4px; border-top: 1px solid var(--line); }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.band-slot { display: inline-block; font-family: var(--mono); font-size: .72rem; padding: 0 4px; margin: 1px 2px 1px 0; border-radius: 3px; border: 1px solid var(--phosphor-dim); color: var(--phosphor); }
.band-slot.c { background: var(--phosphor-2); color: #0b130c; border-color: var(--phosphor-2); }

@media (max-width: 960px) {
  .sat-grid, .cw-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sat-head { display: none; }
  .sat-row { grid-template-columns: minmax(0, 1fr) auto 3em; grid-template-areas: "n t e" "d d r"; row-gap: 0; }
  .sat-row > :nth-child(1) { grid-area: n; } .sat-row > :nth-child(2) { grid-area: t; } .sat-row > :nth-child(3) { grid-area: d; font-size: .8rem; }
  .sat-row > :nth-child(4) { grid-area: e; text-align: right; } .sat-row > :nth-child(5) { grid-area: r; font-size: .8rem; text-align: right; }
  .act-row { grid-template-columns: 6.2em minmax(0, 1fr) 5.4em; grid-template-areas: "f c m" "r r k" "n n n"; row-gap: 0; padding: 6px 0; }
  .act-row > :nth-child(1) { grid-area: f; } .act-row > :nth-child(2) { grid-area: c; } .act-row > :nth-child(3) { grid-area: r; font-size: .8rem; }
  .act-row > :nth-child(4) { grid-area: n; font-size: .8rem; } .act-row > :nth-child(5) { grid-area: m; } .act-row > :nth-child(6) { grid-area: k; font-size: .8rem; text-align: right; }
  .act-row > :nth-child(7) { display: none; }
  .act-row.contest { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "w m" "n n"; }
  .act-row.contest > :nth-child(1) { grid-area: w; font-size: .8rem; } .act-row.contest > :nth-child(2) { grid-area: n; font-size: .9rem; white-space: normal; } .act-row.contest > :nth-child(3) { grid-area: m; }
  .cw-card { grid-template-columns: minmax(0, 1fr); }
  .cw-dits { font-size: 1.2rem; }
  .month-bars .v { font-size: .6rem; }
}

/* ================= Piezas 3D ================= */
.pieza-card .pcard-img { background: #fbf8ef; }
.pieza-card .pcard-img img { object-fit: contain; filter: none; }
.pieza-card .pcard-img::after { box-shadow: inset 0 0 30px rgba(0, 0, 0, .18); }
.pieza-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; font-family: var(--mono); font-size: .82rem; color: var(--khaki); }
.pieza-page .wrap { max-width: 1100px; }
.pieza-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-bottom: 28px; }
.pieza-visual { position: relative; padding: 14px; }
.pieza-img { display: block; width: 100%; height: auto; border-radius: 3px; background: #fbf8ef; }
.pieza-3d { position: absolute; right: 24px; bottom: 24px; background: rgba(19, 21, 14, .85); }
.pieza-side .post-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pieza-side .lede { margin-bottom: 12px; }
.pieza-side .post-meta { padding: 0 0 12px; margin-bottom: 12px; }
.pieza-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.pieza-specs { margin-bottom: 14px; }
.pieza-post { color: var(--khaki); margin: 0; }
.pieza-desc { margin-bottom: 30px; }
.pieza-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 12px 0 40px; }
.pieza-mini a { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--panel-edge); border-radius: 4px; background: rgba(0, 0, 0, .2); color: var(--sand); }
.pieza-mini a:hover { border-color: var(--olive-hi); text-decoration: none; }
.pieza-mini img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fbf8ef; border-radius: 2px; }
.pieza-mini b { font-family: var(--cond); font-size: 1.05rem; }
.pieza-mini span { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.pieza-page .related h2 { font-family: var(--cond); color: var(--sand); margin: 0; }

.stl-viewer { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 3px; overflow: hidden; cursor: grab; touch-action: none;
  background: radial-gradient(ellipse at 50% 35%, #2b3122, #12150d 75%); outline: none; }
.stl-viewer.small { max-width: 460px; margin-top: 10px; }
.stl-viewer:active { cursor: grabbing; }
.stl-viewer:focus-visible { box-shadow: 0 0 0 2px var(--amber); }
.stl-viewer canvas { display: block; width: 100%; height: 100%; }
.stl-viewer.loading::before { content: "> CARGANDO MODELO…"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); color: var(--phosphor); }
.stl-viewer.err { display: grid; place-items: center; font-family: var(--mono); color: var(--red, #d63a2a); cursor: default; }
.stl-info, .stl-hint { position: absolute; left: 10px; font-family: var(--mono); font-size: .74rem; color: var(--phosphor); pointer-events: none; text-shadow: 0 1px 0 #000; }
.stl-info { top: 8px; }
.stl-hint { bottom: 8px; color: var(--muted); }
.file-field .upload-btns { margin-top: 8px; }

@media (max-width: 860px) {
  .pieza-grid { grid-template-columns: 1fr; }
  .stl-hint { display: none; }
}

/* Cabeceras de las tablas en rejilla: las columnas se miden en em, así que la cabecera tiene que tener el mismo
   tamaño de letra que las filas (si no, sus columnas salen más estrechas). La letra pequeña va en cada celda. */
.dx-head, .bc-head, .sat-head, .psk-side-head { font-size: inherit; }
.dx-head > span, .bc-head > span, .sat-head > span, .psk-side-head > span { font-size: .8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* La lista del DX tiene barra de desplazamiento y la cabecera no: se reserva el mismo hueco en las dos. */
.dx-head, .dx-list { scrollbar-gutter: stable; scrollbar-width: thin; }
.dx-head { overflow: hidden; }

/* Mapa del mundo de los satélites */
.sat-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0 16px; }
.sat-bar .chips { margin-bottom: 12px; }
.sat-map-toggle { margin-bottom: 12px; white-space: nowrap; }
.sat-map-wrap { padding: 0; overflow: hidden; margin-bottom: 16px; }
.sat-map-wrap[hidden] { display: none; }
.sat-map { height: 460px; background: #0a0f0b; }
.sat-map.leaflet-container { background: #0a0f0b; }
.sat-map-legend { margin: 0; padding: 8px 12px 10px; font-size: .8rem; color: var(--phosphor-dim); text-shadow: none; border-top: 1px dashed rgba(125, 255, 155, .15); }
.sat-map-legend b { color: var(--phosphor); font-weight: 600; }
.sat .leaflet-tooltip.sat-lbl { background: rgba(10, 15, 11, .78); color: var(--phosphor); border: 0; box-shadow: none; padding: 0 4px; font: 600 11px var(--mono); letter-spacing: .04em; }
.sat .leaflet-tooltip.sat-lbl::before { display: none; }
.sat .leaflet-tooltip.sat-lbl.on { color: var(--amber); font-size: 12px; }
@media (max-width: 900px) { .sat-map { height: 340px; } }

/* Panel del servidor MCP */
.mcp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mcp-head h3 { margin-bottom: 0; }
.mcp-pasos { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; }
.mcp-pasos li { margin-bottom: 6px; }
.mcp-pasos code, .panel p code { font-family: var(--mono); font-size: .85em; overflow-wrap: anywhere; }
.mcp-nota { font-size: .85rem; margin: 10px 0 0; }
.mcp-page > .panel, .mcp-page > .grid-2 { margin-bottom: 22px; }

/* ------------------------------------------------------------------ ventana de ayuda */
.btn.help { padding-inline: .9em; font-size: 1.05rem; letter-spacing: 0; }
dialog.ayuda {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
  background: var(--panel); color: var(--text); border: 1px solid var(--panel-edge); border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
dialog.ayuda::backdrop { background: rgba(8, 10, 6, .72); }
dialog.ayuda .ayuda-head {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
dialog.ayuda .ayuda-head h2 { margin: 0; font-family: var(--stencil); font-size: 1.25rem; color: var(--sand); letter-spacing: .04em; }
dialog.ayuda .ayuda-body { padding: 6px 22px 22px; line-height: 1.6; }
dialog.ayuda h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; color: var(--amber); font-size: 1rem; margin: 22px 0 8px; }
dialog.ayuda ol, dialog.ayuda ul { padding-left: 1.3em; margin: 0 0 8px; }
dialog.ayuda li { margin: 4px 0; }
dialog.ayuda b { color: var(--sand); }
dialog.ayuda code { font-family: var(--mono); color: var(--phosphor); }
dialog.ayuda table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 6px 0; }
dialog.ayuda th, dialog.ayuda td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
dialog.ayuda th { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--khaki); font-size: .82rem; }
@media (max-width: 560px) { dialog.ayuda .ayuda-body { padding: 4px 14px 16px; } }

/* ---- Tablas del blog en el móvil (ver _tablas_movil en app/__init__.py) ---- */
.article .tabla-ancha { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; }
.article .tabla-ancha table { display: table; margin: 0; width: 100%; }
@media (max-width: 640px) {
  .article .tabla-ancha::before {
    content: "↔ Desliza para ver toda la tabla"; display: block; position: sticky; left: 0;
    font-family: var(--cond); font-size: .8rem; letter-spacing: .04em; color: #7a6d52; margin-bottom: 4px;
  }
  .article .tabla-ancha table { width: max-content; min-width: 100%; font-size: .86rem; }
  .article .tabla-ancha th, .article .tabla-ancha td { padding: 5px 8px; max-width: 15rem; }

  .article table.fichas, .article table.fichas tbody, .article table.fichas tr, .article table.fichas td { display: block; width: auto; }
  .article table.fichas { overflow: visible; font-size: .95rem; }
  .article table.fichas thead { display: none; }
  .article table.fichas tr {
    border: 1px solid rgba(43, 37, 25, .3); border-radius: 6px; margin: 0 0 10px; overflow: hidden;
    background: rgba(255, 255, 255, .16);
  }
  .article table.fichas td {
    position: relative; border: 0; border-top: 1px dashed rgba(43, 37, 25, .16);
    padding: 6px 12px 6px calc(36% + 14px); min-height: 1.6em;
  }
  .article table.fichas td::before {
    content: attr(data-label); position: absolute; left: 12px; top: 8px; width: calc(36% - 12px);
    font-family: var(--cond); font-weight: 700; font-size: .8rem; line-height: 1.3;
    letter-spacing: .05em; text-transform: uppercase; color: #6b5f45;
  }
  .article table.fichas td:first-child { border-top: 0; background: rgba(43, 37, 25, .09); font-weight: 700; padding: 8px 12px; }
  .article table.fichas td:first-child::before { display: none; }
}

/* ---- Tablas del mando en el móvil: una ficha por fila (las etiquetas las pone radio.js) ---- */
@media (max-width: 700px) {
  .table-wrap:has(table.fichas-m) { overflow: visible; border: 0; background: none; }
  table.fichas-m, table.fichas-m tbody, table.fichas-m tr, table.fichas-m td { display: block; width: auto; }
  table.fichas-m thead { display: none; }
  table.fichas-m tr {
    border: 1px solid var(--panel-edge); border-radius: var(--r); margin: 0 0 10px; overflow: hidden;
    background: rgba(0, 0, 0, .25);
  }
  table.fichas-m tr:hover td { background: none; }
  /* rejilla etiqueta | valor: una etiqueta larga se parte en líneas y la fila crece, nunca pisa el valor */
  table.fichas-m td[data-label] {
    display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); column-gap: 12px; align-items: baseline;
    border: 0; border-top: 1px dashed rgba(200, 184, 138, .1);
    padding: 7px 12px; min-height: 1.7em; white-space: normal; overflow-wrap: anywhere;
  }
  table.fichas-m td[data-label]::before {
    content: attr(data-label); white-space: normal; overflow-wrap: break-word; hyphens: auto;
    font-family: var(--cond); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--amber); opacity: .85; line-height: 1.3;
  }
  table.fichas-m td[data-label] > .fv { grid-column: 2; min-width: 0; }
  table.fichas-m td:first-child { display: block; padding: 10px 12px; border-top: 0; background: rgba(200, 184, 138, .07); font-size: 1rem; }
  table.fichas-m td:first-child::before { display: none; }
  table.fichas-m td:not([data-label]) { padding-left: 12px; }
  table.fichas-m td:not([data-label])::before { display: none; }
  table.fichas-m td.empty { padding: 30px 12px; }
}

/* ---- Vídeo de YouTube incrustado en las fichas ---- */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--panel-edge); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Zona de aprendizaje: menú, portada y código Q ---- */
.topbar nav .nav-drop { position: relative; }
.topbar nav .nav-drop > a::after { content: " ▾"; font-size: .8em; }
.topbar nav .nav-menu { display: none; position: absolute; top: 100%; left: -14px; padding-top: 10px; z-index: 60; }
.topbar nav .nav-drop:hover .nav-menu, .topbar nav .nav-drop:focus-within .nav-menu { display: block; }
.topbar nav .nav-menu-in {
  min-width: 250px; padding: 6px; border: 1px solid var(--panel-edge); border-radius: var(--r);
  background: rgba(16, 19, 11, .98); box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.topbar nav .nav-menu a { display: block; padding: 9px 12px; border-radius: 4px; white-space: nowrap; }
.topbar nav .nav-menu a:hover { background: rgba(200, 184, 138, .08); }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.learn-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none !important; transition: transform .15s, border-color .15s; }
.learn-card:hover { transform: translateY(-2px); border-color: var(--khaki); }
.learn-card.exam:hover { border-color: var(--amber); }
.learn-card h3 { margin: 0; font-family: var(--stencil); font-weight: 400; color: var(--sand); letter-spacing: .05em; font-size: 1.3rem; }
.learn-card p { margin: 0; color: #c5bea6; flex: 1; }
.learn-card p b { color: var(--sand); }
.learn-card .btn { align-self: flex-start; }
.learn-icon { color: var(--phosphor); font-size: 1.15rem; line-height: 1.2; letter-spacing: .14em; }
.cw-teaser .cw-card + .cw-card { margin-top: 14px; }
.qz { margin-top: 14px; }
.qz-pane, .qz-progress-panel { margin-top: 14px; }
.qz-progress-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.qz-progress-head .btn { margin-left: auto; }
.qz-boxes { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 4px; }
.qz-box { font-family: var(--mono); font-size: .72rem; padding: 3px 6px; border-radius: 3px; border: 1px solid #3a4130; color: var(--muted); }
.qz-box.lv1 { border-color: #5c5222; color: #b9a35a; }
.qz-box.lv2 { border-color: #6d6a28; color: #d2c56a; }
.qz-box.lv3 { border-color: var(--phosphor-dim); color: var(--phosphor-2); }
.qz-box.lv4, .qz-box.lv5 { border-color: var(--phosphor-2); color: #0d1a0f; background: var(--phosphor-2); }
.qz-dir { margin-bottom: 8px; }
.qz-big { font-size: clamp(2.4rem, 8vw, 3.6rem); color: var(--phosphor); letter-spacing: .12em; line-height: 1.1; }
.qz-txt { font-size: 1.2rem; color: var(--sand); margin: 0 0 6px; }
.qz-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.qz-dl dt { font-family: var(--mono); color: var(--amber); }
.qz-dl dd { margin: 0; }
.qz-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qz-q { margin: 6px 0 14px; }
.qz-opts { display: grid; gap: 8px; }
.qz-opt {
  text-align: left; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--panel-edge);
  background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; cursor: pointer;
}
.qz-opt.mono { font-family: var(--mono); font-size: 1.15rem; letter-spacing: .1em; }
.qz-opt:hover:not(:disabled) { border-color: var(--khaki); }
.qz-opt.ok { border-color: var(--phosphor-2); background: rgba(69, 217, 104, .14); }
.qz-opt.bad { border-color: var(--red); background: rgba(214, 58, 42, .16); }
.qz-opt:disabled { cursor: default; }
.qz-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.qz-n {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--panel-edge); font: 600 .8rem var(--mono); letter-spacing: 0; color: var(--khaki);
}
.qz-opt.ok .qz-n { border-color: var(--phosphor-2); color: var(--phosphor-2); }
.qz-opt.bad .qz-n { border-color: var(--red); color: #ff7a6a; }
.qz-opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qz-opts-4 .qz-opt { justify-content: flex-start; font-size: 1.3rem; }
.qz-expl { margin: 14px 0 4px; padding: 12px 14px; border-left: 3px solid var(--olive-hi); background: rgba(0, 0, 0, .2); border-radius: 0 var(--r) var(--r) 0; }
.qz-expl > b { display: inline-block; margin-bottom: 8px; }
.qz-expl .ok { color: var(--phosphor-2); } .qz-expl .bad { color: #ff7a6a; }
.qz-expl[hidden] { display: none; }
.qz-pane .qz-actions { margin-top: 14px; }
.qz-keys { font-size: .8rem; margin-left: auto; }
.qz-oido { display: flex; align-items: center; gap: 18px; }
.qz-oido .qz-big { letter-spacing: .3em; }
.qz-oido-btn {
  flex: none; width: 72px; height: 72px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--amber-dim); background: radial-gradient(circle at 40% 35%, #3a3f2a, #1c1f14);
  color: var(--amber); font-size: 1.6rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}
.qz-oido-btn:hover { border-color: var(--amber); }
.qz-oido-btn:active { transform: translateY(1px); }
@media (max-width: 700px) { .qz-keys { display: none; } .qz-oido-btn { width: 60px; height: 60px; } }
@media (hover: none) { .qz-keys { display: none; } }
.qz-score { margin: 12px 0; }
.qz-score .ok { color: var(--phosphor-2); } .qz-score .bad { color: #ff7a6a; }
.qz-frase { font-size: 1.15rem; line-height: 1.6; color: var(--sand); }
.qz-hueco { font-family: var(--mono); color: var(--amber); border-bottom: 2px solid var(--amber); padding: 0 4px; }
.qz-hueco.ok { color: var(--phosphor-2); border-color: var(--phosphor-2); }
.qz-hueco.bad { color: #ff7a6a; border-color: #ff7a6a; }
.qz-frase-form { display: flex; gap: 10px; flex-wrap: wrap; }
.qz-frase-form input { width: 7rem; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .15em; text-align: center; }
.qz-tabla .qz-code { color: var(--phosphor); font-size: 1.05rem; }
.qz-tabla tr[hidden] { display: none; }
.qz-grupos { margin-bottom: 10px; }
.qz-progress-panel[hidden] { display: none; }
.qz [hidden] { display: none !important; }
/* ---- Alfabeto fonético y RST ---- */
.alf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.alf-cell {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  padding: 10px 12px; border: 1px solid var(--panel-edge); border-radius: var(--r); background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; cursor: pointer;
}
.alf-cell:hover { border-color: var(--khaki); }
.alf-cell b { grid-row: span 2; font-size: 1.7rem; color: var(--phosphor); }
.alf-cell span { color: var(--sand); font-weight: 600; }
.alf-cell small { color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.alf-notes { margin-top: 18px; }
.alf-notes ul { margin: 0; padding-left: 1.2em; } .alf-notes li { margin: 6px 0; }
.alf-in { width: 12rem; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .12em; }
.alf-speed { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.rst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 14px; }
.rst-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 18px; margin: 10px 0; }
.rst-ctl input[type=range] { width: 100%; }
.rst-lcd { padding: 8px 14px; letter-spacing: .1em; }
.rst-lcd b { color: var(--phosphor); font-size: 1.2rem; margin-left: 6px; }
.rst-pick { display: grid; gap: 10px; margin: 16px 0; }
.rst-pick > div { display: grid; grid-template-columns: 2rem 1fr; align-items: center; gap: 10px; }
.rst-pick .chips { margin: 0; }
.qz-score .ok, .qz .ok { color: var(--phosphor-2); } .qz .bad { color: #ff7a6a; }
.post-video { margin: 18px 0; }
/* Artículo del blog dentro de la ficha de un equipo o una antena */
.ficha-articulo { margin-top: 28px; scroll-margin-top: 80px; }
.ficha-articulo-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 12px; }
.ficha-articulo-head h2 { margin: 0; }
.ficha-articulo .article { max-width: none; }
/* Visor de imágenes (radio.js) */
html.lb-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0c08; color: var(--sand); opacity: 1; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lb-stage { position: absolute; inset: 0 0 52px; display: grid; place-items: center; overflow: auto; padding: 16px 64px; overscroll-behavior: contain; }
.lb-stage img { display: block; width: min(1400px, 100%); max-height: 100%; object-fit: contain; background: #fbf8ef; border-radius: 3px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); cursor: zoom-in; }
.lightbox.zoom .lb-stage { display: block; place-items: normal; padding: 0; }
.lightbox.zoom .lb-stage img { width: 200%; max-width: none; max-height: none; cursor: zoom-out; }
.lb-btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--panel-edge); background: rgba(20, 22, 15, .85); color: var(--sand); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { border-color: var(--amber); color: var(--amber); }
.lb-close { top: 12px; right: 12px; font-size: 1.1rem; }
.lb-prev { left: 10px; top: calc(50% - 49px); }
.lb-next { right: 10px; top: calc(50% - 49px); }
.lightbox.solo .lb-prev, .lightbox.solo .lb-next { display: none; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 18px; font-family: var(--sans); font-size: .95rem; border-top: 1px solid var(--panel-edge); }
.lb-cap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-cnt { font-family: var(--mono); color: var(--khaki); }
.lb-orig { color: var(--amber); white-space: nowrap; }
@media (max-width: 700px) {
  .lb-stage { padding: 56px 6px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 62px; }
  .lightbox.zoom .lb-stage img { width: 260%; }
  .lb-orig { display: none; }
}

/* ---------- Novedades ---------- */
.nov-count { color: var(--amber) !important; font-weight: 700; }
.nov-filtros { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.nov-filtros .chips { margin-bottom: 0; }
.nov-fuente { display: flex; align-items: center; gap: 8px; margin: 0; }
.nov-fuente label { font-family: var(--cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; color: var(--amber); }
.nov-fuente select { width: auto; max-width: 260px; padding-top: 6px; padding-bottom: 6px; }
.nov-quitar { color: var(--khaki); padding: 2px 6px; }
a.tag.nov-src:hover { text-decoration: none; border-color: var(--khaki); }
@media (max-width: 600px) { .nov-fuente { width: 100%; } .nov-fuente select { flex: 1; max-width: none; } }
.nov-lista { display: grid; gap: 12px; margin-bottom: 22px; }
.nov { padding: 14px 16px; border-left: 3px solid var(--panel-edge); opacity: .82; }
.nov.nueva { opacity: 1; border-left-color: var(--phosphor-dim); }
.nov.dest { border-left-color: var(--amber); }
.nov-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.nov-star { color: var(--amber); border-color: var(--amber-dim); }
.nov-dot { font-family: var(--cond); font-weight: 700; letter-spacing: .15em; font-size: .72rem; color: var(--phosphor); }
.nov-t { margin: 8px 0 4px; font-size: 1.12rem; letter-spacing: .02em; text-transform: none; }
.nov-t a { color: var(--sand); }
.nov-r { margin: 4px 0 6px; color: var(--khaki); max-width: 90ch; }
.nov-cats { font-size: .8rem; font-family: var(--mono); }
.nov-acc { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Registro rápido de QSO (campo / móvil) ---------- */
.rq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.rq .panel { padding: 12px 14px; margin: 0; }
.rq-sum { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; width: 100%; }
.rq-sum:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.rq-sum-f { font-family: var(--mono); font-size: 1.6rem; color: var(--phosphor); text-shadow: 0 0 8px rgba(124, 255, 107, .35); }
.rq-sum-m { font-family: var(--mono); color: var(--sand); font-size: 1.05rem; }
.rq-sum-a { font-family: var(--mono); color: var(--amber); }
.rq-sum-e { margin-left: auto; font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--khaki); }
.rq-sum.vacia .rq-sum-f { color: var(--muted); text-shadow: none; }
.rq-edit { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.rq-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rq-f { flex: 1 1 140px; display: flex; flex-direction: column; gap: 4px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--khaki); margin-bottom: 10px; }
.rq-f.rq-sm { flex: 1 1 100px; }
.rq input, .rq select { font-size: 1.1rem; min-height: 46px; }
.rq-lbl { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--khaki); margin-bottom: 6px; }
.rq-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rq-chips .chip { font-size: .95rem; padding: .5em 1em; min-height: 44px; cursor: pointer; }
.rq-chips select { width: auto; min-width: 110px; }
.rq-chips select.on { border-color: var(--khaki); background: var(--khaki); color: #1a1a10; }
.rq-edit-acc { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.rq-hora { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: .95rem; }
.rq-hora input { width: auto; min-height: 40px; font-size: 1rem; }
.linklike { all: unset; cursor: pointer; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; font-size: .92rem; }
.linklike:focus-visible { outline: 2px solid var(--amber); }
.rq-ind { font-size: 2rem !important; min-height: 64px !important; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.rq-info { display: flex; flex-wrap: wrap; gap: 4px 12px; min-height: 1.6em; margin: 6px 0 10px; font-size: .92rem; }
.rq-dupe { color: #1a1a10; background: var(--amber); padding: 0 .5em; border-radius: 3px; font-weight: 700; font-family: var(--cond); letter-spacing: .08em; }
.rq-new { color: var(--phosphor); font-weight: 700; }
.rq-rst input { text-align: center; font-size: 1.3rem; }
.rq-mas { margin: 0 0 12px; }
.rq-mas summary { cursor: pointer; color: var(--khaki); font-size: .92rem; padding: 6px 0; }
.rq-go { width: 100%; font-size: 1.25rem; min-height: 58px; }
.rq-prog { padding: 8px 12px; border: 1px solid var(--panel-edge); border-radius: 4px; background: rgba(0, 0, 0, .25); }
.rq-prog-t { font-family: var(--mono); font-size: .92rem; margin-bottom: 6px; }
.rq-prog-bar { height: 8px; background: rgba(255, 255, 255, .06); border-radius: 4px; overflow: hidden; }
.rq-prog-bar span { display: block; height: 100%; width: 0; background: var(--amber); transition: width .3s; }
.rq-prog.done .rq-prog-bar span { background: var(--phosphor); }
.rq-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: #0b0c08; border: 1px solid var(--phosphor-dim); color: var(--sand); padding: 12px 18px; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .6); max-width: calc(100vw - 32px); font-size: 1rem; }
.rq-toast .linklike { margin-left: 10px; font-weight: 700; }
.rq-lista-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.rq-lista-h h3 { margin: 0; }
.rq-lista-h .btn { margin-left: auto; }
.rq-cola { color: var(--amber); font-family: var(--mono); font-size: .85rem; }
.rq-qsos { list-style: none; margin: 0; padding: 0; }
.rq-qsos li { display: grid; grid-template-columns: 3.4em minmax(5em, 1fr) auto auto auto; gap: 4px 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.rq-qsos li .c { font-size: 1.1rem; color: var(--sand); }
.rq-qsos li .d, .rq-qsos li .t { color: var(--khaki); font-size: .9rem; }
.rq-qsos li .r { color: var(--muted); font-size: .9rem; }
.rq-qsos li .acc { display: flex; gap: 12px; justify-content: flex-end; }
.rq-qsos li .acc a, .rq-qsos li .acc .linklike { text-decoration: none; font-size: 1.1rem; }
.rq-qsos li.pend { opacity: .75; }
.rq-qsos li.err .c { color: #ff8a7a; }
@media (max-width: 520px) {
  .rq-qsos li { grid-template-columns: 3.4em 1fr auto; }
  .rq-qsos li .r { grid-column: 2; }
  .rq-qsos li .d { grid-column: 3; text-align: right; }
  .rq-qsos li .acc { grid-column: 3; }
  .rq-sum-f { font-size: 1.35rem; }
}
.rq > *, .rq-f { min-width: 0; }
.rq input, .rq select { width: 100%; box-sizing: border-box; }
.rq-chips select, .rq-hora input { width: auto; }
.rq-rst .rq-f { flex: 1 1 0; }
.tag.st-programada { color: #8fd3ff; border-color: #2d5f7a; }
.notice.ok-notice { color: var(--phosphor-2); border-color: rgba(125, 255, 155, .45); background: rgba(125, 255, 155, .05); }
