/* Osicono v0.1 — estilos (escritorio primero, adaptable a móvil) */
:root {
  --bg: #08131d; --bg2: #0d1d28; --card: #102431; --card2: #13293a; --line: #203746; --line2: #294355;
  --text: #e6eef4; --text2: #c3d2dd; --muted: #a9bccb;
  --gold: #f2bd38; --cyan: #65c5df; --green: #5fc48a; --red: #ef7968; --warn: #f0a33a;
  --radius: 10px; --sidebar: 240px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { line-height: 1.2; }
h1 { font-size: 1.6rem; margin: 0; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; color: var(--gold); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.upper { text-transform: uppercase; }
.call { font-family: var(--mono); font-weight: 700; color: var(--gold); letter-spacing: .5px; }
.warn-text { color: var(--warn); }
.empty { color: var(--muted); padding: 1.5rem; text-align: center; }
.spacer { flex: 1; }
.xirafa { color: #d9b765; }
.pub { color: var(--cyan); }
.req { color: var(--red); }

/* ---------- Botones y chips ---------- */
.btn { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .95rem; border-radius: 8px; border: 1px solid var(--line2);
  background: var(--card2); color: var(--text); font: inherit; font-size: .93rem; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--cyan); text-decoration: none; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #1b1300; font-weight: 700; }
.btn-primary:hover { background: #ffcd55; border-color: #ffcd55; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: #6b2c27; color: var(--red); }
.btn-danger:hover { border-color: var(--red); }
.btn-small { padding: .25rem .6rem; font-size: .82rem; }
button.link { background: none; border: 0; color: var(--muted); padding: 0; font: inherit; cursor: pointer; }
button.link:hover { color: var(--text); }

.chip { display: inline-block; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line2); color: var(--text2); font-size: .9rem; background: var(--bg2); }
.chip:hover { text-decoration: none; border-color: var(--cyan); color: var(--text); }
.chip.active { background: var(--card2); color: #fff; border-color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.chip small { color: var(--muted); margin-left: .2rem; }
.chip-gold { border-left: 3px solid var(--gold); } .chip-cyan { border-left: 3px solid var(--cyan); }
.chip-green { border-left: 3px solid var(--green); } .chip-red { border-left: 3px solid var(--red); }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: .12rem .5rem; border-radius: 5px; background: #1c3343; color: var(--text2); vertical-align: middle; }
.badge-gold { background: rgba(242,189,56,.15); color: var(--gold); }
.badge-cyan { background: rgba(101,197,223,.15); color: var(--cyan); }
.badge-green { background: rgba(95,196,138,.15); color: var(--green); }
.badge-red { background: rgba(239,121,104,.15); color: var(--red); }
.badge-warn { background: rgba(240,163,58,.18); color: var(--warn); }
.tag { font-size: .8rem; color: var(--text2); background: var(--bg2); border: 1px solid var(--line); padding: .05rem .45rem; border-radius: 5px; }

/* ---------- Formularios ---------- */
label { display: block; font-size: .85rem; color: var(--text2); flex: 1; min-width: 0; }
label > input, label > select, label > textarea { display: block; margin-top: .3rem; }
label > small { display: block; margin-top: .25rem; }
input, select, textarea { font: inherit; font-size: .95rem; color: var(--text); background: #0a1822; border: 1px solid var(--line2); border-radius: 7px; padding: .5rem .65rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(101,197,223,.45); border-color: var(--cyan); }
textarea { resize: vertical; line-height: 1.5; }
input[type=checkbox] { width: auto; accent-color: var(--gold); }
input[type=file] { padding: .4rem; }
label.check { display: flex; align-items: center; gap: .5rem; color: var(--text); font-size: .92rem; }
label.check > input { margin: 0; }
.row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .9rem; }
.row.row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.row.row-grid > label.full { grid-column: 1 / -1; }
label.full, textarea.full { width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem .4rem; margin: 0 0 1.2rem; background: var(--card); }
legend { padding: 0 .4rem; color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .6px; text-transform: uppercase; }
fieldset > label, fieldset > textarea { margin-bottom: .9rem; }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
form.inline { display: inline; }

/* ---------- Tablas y tarjetas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.card-flush { padding: 0; overflow-x: auto; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; padding: .6rem .7rem; border-bottom: 1px solid var(--line2); background: var(--bg2); position: sticky; top: 0; }
.table td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover { background: rgba(101,197,223,.05); }
.table-compact td { padding: .35rem .4rem; }
.table td.actions { text-align: right; white-space: nowrap; }
.card > .table th:first-child, .card > .table td:first-child { padding-left: 1rem; }
.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.flash-ok { background: rgba(95,196,138,.1); border-color: rgba(95,196,138,.4); color: #b9ecd0; }
.flash-err { background: rgba(239,121,104,.1); border-color: rgba(239,121,104,.45); color: #ffd0c9; }
.pager { display: flex; gap: .3rem; margin: 1rem 0; flex-wrap: wrap; }
.pager a, .pager span { padding: .3rem .65rem; border-radius: 6px; border: 1px solid var(--line2); font-size: .88rem; }
.pager .cur { background: var(--gold); color: #1b1300; border-color: var(--gold); font-weight: 700; }

/* ---------- Panel (escritorio) ---------- */
body.panel { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; background: linear-gradient(to right, #061019 calc(var(--sidebar) - 1px), var(--line) calc(var(--sidebar) - 1px), var(--line) var(--sidebar), var(--bg) var(--sidebar)); }
.sidebar { position: sticky; top: 0; height: 100vh; background: #061019; border-right: 1px solid var(--line); align-self: start; display: flex; flex-direction: column; padding: 1.1rem .8rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); margin-bottom: 1.4rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: .5px; }
.brand small { display: block; color: var(--muted); font-size: .78rem; }
.sidebar nav { display: flex; flex-direction: column; gap: .2rem; }
.sidebar nav a { color: var(--text2); padding: .55rem .75rem; border-radius: 7px; font-size: .95rem; }
.sidebar nav a:hover { background: var(--card); text-decoration: none; color: #fff; }
.sidebar nav a.active { background: var(--card2); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar nav a.nav-cta { color: var(--gold); font-weight: 700; margin-bottom: .4rem; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; padding: 0 .75rem; color: var(--muted); }
.main { padding: 1.4rem 2rem 3rem; min-width: 0; max-width: 1500px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; gap: 1rem; }
.clock { font-family: var(--mono); color: var(--muted); font-size: .9rem; background: var(--card); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 7px; }

.quick { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: var(--radius); padding: .9rem 1rem; }
.stat b { display: block; font-size: 1.8rem; color: #fff; font-family: var(--mono); }
.stat span { color: var(--muted); font-size: .85rem; }
.stat-warn { border-top-color: var(--warn); }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; align-items: start; }
.grid-wide-left { grid-template-columns: 1.5fr 1fr; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { padding: .6rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.plist li:last-child { border: 0; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .6rem; }
.filters select, .filters input { width: auto; }
.filters input[type=search] { min-width: 280px; }

.type-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hint { color: var(--text2); margin: 0 0 1.2rem; }
.form-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.4rem; align-items: start; }
.form-side { position: sticky; top: 1rem; }
.form-side fieldset > label { margin-bottom: .8rem; }
.publish { border-color: rgba(101,197,223,.35); }
.history ul { padding-left: 1.1rem; margin: .5rem 0; font-size: .85rem; }
.history summary { cursor: pointer; color: var(--muted); font-size: .88rem; }

/* ---------- Login / instalación ---------- */
body.login-page { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.login-box { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.login-box form { display: flex; flex-direction: column; gap: .9rem; }
.login-box h1 { text-align: center; }
.login-box h1 small { display: block; color: var(--gold); font-size: .9rem; font-family: var(--mono); }
.login-logo { width: 110px; height: 110px; margin: 0 auto; border-radius: 50%; }

/* ---------- Sitio público ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.pub-head { border-bottom: 1px solid var(--line); background: #061019; }
.pub-head-inner { display: flex; justify-content: space-between; align-items: center; padding-top: .7rem; padding-bottom: .7rem; }
.pub-head .brand { margin: 0; }
.pub-head nav { display: flex; gap: 1.4rem; }
.pub-head nav a { color: var(--text2); }
.pub-head nav a.active { color: var(--gold); }
body.public main { padding-top: 2rem; padding-bottom: 3rem; min-height: 70vh; }
.hero { display: flex; gap: 2rem; align-items: center; margin-bottom: 2rem; padding: 1.5rem; background: linear-gradient(120deg, var(--bg2), var(--card)); border: 1px solid var(--line); border-radius: 16px; }
.hero-logo { width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; }
.hero h1 { font-size: 3rem; letter-spacing: 4px; font-family: var(--mono); }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; font-weight: 700; margin: 0 0 .3rem; }
.hero-sub { color: var(--text2); margin: .3rem 0; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.tl-date { color: var(--gold); font-weight: 700; }
.tl-date small { display: block; color: var(--muted); font-weight: 400; }
.tl-meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: .4rem; }
.tl-body h2 { margin: .2rem 0 .4rem; font-size: 1.15rem; }
.tl-body h2 a { color: #fff; }
.tl-body p { margin: 0; color: var(--text2); }
.entry-public h1 { margin: .5rem 0 1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; margin: 0 0 1.2rem; }
.facts div { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; }
.facts dt { font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.facts dd { margin: 0; }
.prose { color: var(--text2); font-size: 1.02rem; line-height: 1.7; }
.gallery { display: flex; flex-wrap: wrap; gap: 1rem; }
.thumb img { max-width: 320px; max-height: 240px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.file-link { padding: .5rem .8rem; border: 1px solid var(--line2); border-radius: 8px; }
figure { margin: 0; } figcaption { font-size: .82rem; color: var(--muted); }
.pub-foot { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); text-align: center; font-size: .9rem; }
.pub-foot strong { color: var(--gold); }

/* ---------- v0.2 ---------- */
.btn-block { display: flex; justify-content: center; width: 100%; padding: .7rem; }
.local-login { border-top: 1px solid var(--line); padding-top: .8rem; }
.local-login summary { cursor: pointer; color: var(--muted); font-size: .88rem; margin-bottom: .8rem; }
.gtm-ns { display: none; visibility: hidden; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.project-card { display: flex; flex-direction: column; gap: .5rem; color: var(--text); margin: 0; transition: border-color .15s; }
.project-card:hover { border-color: var(--gold); text-decoration: none; }
.project-card h2 { margin: .2rem 0 0; color: #fff; }
.project-card p { margin: 0; color: var(--text2); }
.project-title { margin: .6rem 0 .8rem; }
.group-title { margin: 1.8rem 0 .8rem; }
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.equip-card { display: flex; gap: 1rem; margin: 0; }
.equip-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex-shrink: 0; }
.equip-card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.equip-card p { margin: .4rem 0 0; color: var(--text2); }
.mini-photo { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.pub-head nav { flex-wrap: wrap; }

/* ---------- v0.3 ---------- */
.grid-even { grid-template-columns: 1fr 1fr; }
.grid-even .card { margin: 0; }
.chart { width: 100%; height: auto; display: block; }
.bar-gold { fill: var(--gold); } .bar-cyan { fill: var(--cyan); } .bar-green { fill: var(--green); } .bar-red { fill: var(--red); }
.chart-val { fill: var(--text); font-size: 13px; font-family: var(--mono); }
.chart-lbl { fill: var(--muted); font-size: 12px; }
.chart-axis { stroke: var(--line2); stroke-width: 1; }
.hbars { display: flex; flex-direction: column; gap: .45rem; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 2.5rem; gap: .6rem; align-items: center; font-size: .9rem; }
.hbar-lbl { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { width: 100%; height: 12px; background: var(--bg2); border-radius: 3px; }
.hbar b { text-align: right; }
.row-qsl { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
fieldset.inner { background: var(--bg2); padding: .8rem 1rem .2rem; }

.grid-dir { grid-template-columns: minmax(0, 2.4fr) minmax(300px, 1fr); }
.src { display: inline-block; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.import-card { margin-top: 1.2rem; }
.import-card .row { align-items: flex-end; flex-wrap: wrap; }
.import-report ul { margin: .3rem 0 .8rem; }

/* Cabecera del panel: "+ Nueva" */
.head-actions { display: flex; align-items: center; gap: .8rem; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 50; min-width: 260px; background: var(--card2); border: 1px solid var(--line2);
  border-radius: 10px; padding: .4rem; box-shadow: 0 12px 30px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.menu-list a { color: var(--text); padding: .5rem .7rem; border-radius: 7px; display: flex; align-items: center; gap: .55rem; }
.menu-list a:hover { background: var(--card); text-decoration: none; }
.menu-quick { flex-direction: column; align-items: flex-start !important; gap: 0 !important; font-weight: 700; color: var(--gold) !important; }
.menu-quick small { font-weight: 400; color: var(--muted); }
.menu-sep { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: .5rem .7rem .2rem; border-top: 1px solid var(--line); margin-top: .3rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot-gold { background: var(--gold); } .dot-cyan { background: var(--cyan); } .dot-green { background: var(--green); } .dot-red { background: var(--red); }

/* Barra de acciones sobre una tabla y paneles laterales */
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }
.toolbar .filters { margin: 0; flex: 1; }
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); max-width: 100vw; padding: 0; border: 0;
  border-left: 1px solid var(--line2); background: var(--card); color: var(--text); box-shadow: -20px 0 40px rgba(0,0,0,.4); }
dialog.drawer::backdrop { background: rgba(3, 8, 13, .65); }
dialog.drawer[open] { animation: drawer-in .18s ease-out; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.drawer-head h2 { margin: 0; }
.drawer-close { background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: .2rem .4rem; }
.drawer-close:hover { color: var(--text); }
.drawer-body { padding: 1.2rem 1.3rem 2rem; }
.drawer-body .row { flex-wrap: wrap; }

/* v0.4: QTH, ayuda de frecuencia, directorio con buscador, guía */
.qth-chip { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qth-chip small { color: var(--muted); margin-left: .2rem; }
.menu-list form { margin: 0; }
.menu-btn { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: .5rem .7rem; border-radius: 7px; cursor: pointer; display: flex; flex-direction: column; }
.menu-btn:hover { background: var(--card); }
.menu-btn small { color: var(--muted); font-size: .78rem; }
.menu-btn.current { box-shadow: inset 3px 0 0 var(--gold); background: var(--card); }
.menu-link { color: var(--cyan) !important; font-size: .9rem; }
.menu-sep-top { border-top: 0; margin-top: 0; }
.input-btn { display: flex; gap: .4rem; align-items: stretch; margin-top: .3rem; }
.input-btn input { margin-top: 0; flex: 1; min-width: 0; }
.dir-pick { display: block; margin-top: .3rem; }
.dir-pick input[type=search] { margin-top: 0; }
input.picked { border-color: var(--green); box-shadow: inset 3px 0 0 var(--green); }
.freq-hint { background: var(--bg2); border: 1px solid var(--line2); border-left: 3px solid var(--cyan); border-radius: 8px; padding: .7rem .9rem; margin: 0 0 .9rem; font-size: .9rem; }
.fh-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.fh-uses, .fh-matches ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--text2); }
.fh-matches { margin-top: .5rem; }
.fh-matches li { margin: .2rem 0; }
.fh-note { margin: .5rem 0 0; font-size: .82rem; color: var(--muted); }
.fh-mhz { font-weight: 700; color: #fff; }
.fh-zone { margin: .45rem 0 0; color: var(--text2); }
.fh-interp { margin: 0 0 .5rem; padding: .4rem .6rem; background: rgba(242,189,56,.1); border-radius: 6px; color: var(--gold); font-size: .88rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; cursor: pointer; text-decoration: underline; }

dialog.modal { width: min(980px, 96vw); height: min(86vh, 900px); max-height: 92vh; padding: 0; border: 1px solid var(--line2); border-radius: 14px;
  background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); display: none; flex-direction: column; overflow: hidden; }
dialog.modal[open] { display: flex; animation: drawer-in .15s ease-out; }
dialog.modal::backdrop { background: rgba(3, 8, 13, .7); }
.guide .drawer-head { gap: 1rem; }
.guide-search { width: auto; flex: 1; max-width: 340px; }
.guide-tabs { display: flex; gap: .3rem; padding: .6rem 1.1rem; border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--bg2); }
.guide-tabs button { background: none; border: 1px solid transparent; color: var(--text2); font: inherit; font-size: .9rem; padding: .4rem .8rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.guide-tabs button.active { border-color: var(--gold); color: #fff; background: var(--card2); }
.guide-body { padding: 1rem 1.4rem 2rem; overflow-y: auto; flex: 1; }
.guide-body h3 { color: var(--gold); font-size: 1rem; margin: 1.2rem 0 .5rem; }
.guide-body h3:first-child { margin-top: .3rem; }
.g-panel { display: none; }
.g-panel.active { display: block; }
.guide.searching .g-panel { display: none; }
.guide.searching .g-panel.has-hits { display: block; }
.guide.searching .guide-tabs button.active { border-color: transparent; background: none; color: var(--text2); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; margin: .8rem 0; }
.ph { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; display: flex; flex-direction: column; }
.ph b { color: var(--gold); font-family: var(--mono); font-size: 1.2rem; }
.ph span { font-weight: 700; }
.ph small { color: var(--muted); }
.spell { background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; padding: .7rem .9rem; margin: .6rem 0; }
.spell-out { margin: .5rem 0 0; font-size: 1.15rem; color: var(--cyan); font-weight: 600; letter-spacing: .3px; }
.rst-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-top: .8rem; }
.steps { padding-left: 1.2rem; }
.steps li { margin: .5rem 0; line-height: 1.55; }
.steps em { color: var(--cyan); font-style: normal; }

/* Registro rápido (pensado para el celular) */
.quick-form { max-width: 560px; display: flex; flex-direction: column; gap: 1rem; }
.quick-form input, .quick-form select, .quick-form textarea { font-size: 1.05rem; padding: .7rem .75rem; }
.quick-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.qt { display: block; position: relative; }
.qt input { position: absolute; opacity: 0; pointer-events: none; }
.qt span { display: block; text-align: center; padding: .75rem .2rem; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: var(--text2); font-weight: 600; cursor: pointer; }
.qt input:checked + span { background: var(--gold); border-color: var(--gold); color: #1b1300; }
.qt input:focus-visible + span { outline: 2px solid var(--cyan); }
.quick-row { margin: 0; }
.btn-big { padding: 1rem; font-size: 1.15rem; }
.photo-btn { background: var(--card); border: 1px dashed var(--line2); border-radius: 10px; padding: .8rem; color: var(--text); }
.more summary { cursor: pointer; color: var(--muted); }
.more > label { margin-top: .8rem; }
.quick-today { max-width: 560px; margin-top: 1.5rem; }
.quick-today li { flex-direction: row; justify-content: space-between; gap: .5rem; }
[hidden] { display: none !important; }

/* v0.4.2: Mi estación pública y texto con formato */
.equip-list { display: flex; flex-direction: column; gap: 1.4rem; }
.equip-row { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 1.8rem; margin: 0; padding: 1.4rem; align-items: start; }
.equip-row.no-photo { grid-template-columns: 1fr; }
.equip-photo { display: block; background: #050c12; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.equip-photo img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; transition: transform .25s; }
.equip-photo:hover img { transform: scale(1.02); }
.equip-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.equip-head h3 { margin: 0; font-size: 1.45rem; color: #fff; }
.equip-model { margin: .2rem 0 0; color: var(--gold); font-weight: 600; }
.equip-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.equip-facts div { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .8rem; }
.equip-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.equip-facts dd { margin: 0; color: var(--text); }
.equip-desc { margin-top: 1rem; }
.equip-use { margin: 1.1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.prose p { margin: 0 0 .8rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { color: var(--gold); font-size: 1.05rem; margin: 1.1rem 0 .5rem; }
.prose ul, .prose ol { margin: 0 0 .8rem; padding-left: 1.3rem; }
.prose li { margin: .25rem 0; }
.prose strong { color: #fff; }
.prose code, .fmt-hint code { font-family: var(--mono); font-size: .88em; background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; }
.prose a { text-decoration: underline; }
.fmt-hint { display: block; margin-top: .35rem; line-height: 1.7; }

/* ---------- Pantallas medianas y móvil ---------- */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .form-cols { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  body.panel { grid-template-columns: minmax(0, 1fr); }
  .sidebar { min-width: 0; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem; }
  .sidebar .brand { margin: 0 .5rem 0 0; }
  .sidebar nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; flex: 1 1 100%; min-width: 0; order: 3; }
  .sidebar nav a { white-space: nowrap; }
  .grid-even { grid-template-columns: 1fr; }
  .page-head { flex-wrap: wrap; }
  .head-actions .clock { display: none; }
  .head-actions { flex-wrap: wrap; }
  .qth-chip { max-width: 140px; }
  .rst-grid { grid-template-columns: 1fr; }
  dialog.modal { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; border: 0; }
  .guide .drawer-head { flex-wrap: wrap; }
  .guide-search { max-width: none; order: 3; flex-basis: 100%; }
  .grid-2 > * { min-width: 0; }
  .card { overflow-x: auto; }
  .row-qsl { grid-template-columns: 1fr 1fr; }
  .row.quick-row { flex-direction: row; }
  .sidebar nav a.nav-cta { margin: 0; }
  .sidebar-foot { margin: 0; flex-direction: row; flex-wrap: wrap; gap: .8rem; }
  .main { padding: 1rem; }
  .grid-2, .grid-wide-left, .grid-dir, .form-cols { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row { flex-direction: column; gap: .7rem; }
  .row.row-grid { grid-template-columns: 1fr; }
  body.panel { background: var(--bg); }
  .filters input[type=search] { min-width: 0; width: 100%; }
  .hero { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 2.2rem; }
  .tl-item { grid-template-columns: 1fr; gap: .3rem; }
  .equip-row { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .pub-head-inner { flex-direction: column; gap: .5rem; }
}
