/* javiermarcilla.com · dirección C2 "Ficha técnica" */
/* Fuentes alojadas en el sitio: Archivo (variable, ancho 62-125, peso 400-800) y Martian Mono (400-500) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/martian-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/martian-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F2F2EE;
  --ink: #161616;
  --mute: #55554F;
  --line: #D3D3CC;
  --acc: #166534;
  --panel: #E8E8E2;
  --outer: #DEDED7;
  --field: #FFFFFF;
  --fieldline: #85857D;
  --sans: Archivo, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0E0F0E;
  --ink: #ECECE6;
  --mute: #A0A098;
  --line: #2C2D2B;
  --acc: #4ADE80;
  --panel: #161716;
  --outer: #060706;
  --field: #1B1C1A;
  --fieldline: #6E6F69;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--outer); }
body {
  margin: 0 auto;
  max-width: 1560px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Hoja centrada en pantallas anchas: el diseño no pasa de 1560 px y deja un margen con filos a cada lado */
@media (min-width: 1561px) { body { border-inline: 1px solid var(--line); } }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 14px; font: 500 12px/1 var(--mono); }
.skip:focus { left: 8px; color: var(--bg); }
.mono { font-family: var(--mono); }

/* ── Rayos X: etiquetas de las partes de la página ─────────── */
[data-tag] { outline: 1px dashed transparent; outline-offset: -1px; transition: outline-color .35s; }
html[data-xray] [data-tag] { position: relative; }
html[data-xray] [data-tag]:not([data-off]) { outline-color: var(--acc); }
html[data-xray] [data-tag]:not([data-off])::before {
  content: attr(data-tag);
  position: absolute; top: 0; right: 0; z-index: 3;
  font: 500 10px/1 var(--mono);
  background: var(--acc); color: var(--bg);
  padding: 4px 6px; pointer-events: none;
}
html[data-xray="on"] [data-photo] { filter: invert(1) contrast(1.35); }

/* ── Modo Lynx ─────────────────────────────────────────────── */
html[data-lynx] body *:not(.lynx-keep) {
  font-family: var(--mono) !important;
  font-stretch: 100% !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html[data-lynx] img, html[data-lynx] video { opacity: .06 !important; }

/* Transición del tema (círculo que se expande) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ── Estructura ────────────────────────────────────────────── */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side {
  flex: 1 1 340px; max-width: 100%;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow: auto;
}
.main { flex: 999 1 560px; min-width: 0; position: relative; }

.photo { position: relative; flex: 1 1 220px; min-height: 220px; border-radius: 4px; overflow: hidden; background: var(--line); }
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 25%;
  transition: filter .9s cubic-bezier(.7, 0, .2, 1);
}
.photo span {
  position: absolute; left: 10px; bottom: 10px;
  font: 500 10px/1 var(--mono);
  background: var(--bg); color: var(--ink); padding: 5px 7px;
}
.photo video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 25%;
  opacity: 0; pointer-events: none;
  transition: opacity .6s ease, filter .9s cubic-bezier(.7, 0, .2, 1);
}
.photo video.on { opacity: 1; }
.side-title { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.side-title h1 {
  margin: 0; font-weight: 800; font-stretch: 72%;
  font-size: clamp(44px, 4.6vw, 72px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase;
}
.side-title p { margin: 0; font-size: 17px; line-height: 1.4; }

.resp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.resp-btn {
  justify-self: start; display: flex; align-items: center; gap: 8px;
  font: 400 12px/1.4 var(--mono);
  background: none; border: 0; padding: 4px 0; color: var(--ink); cursor: pointer;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--acc) 25%, transparent);
}
.pre {
  margin: 0; padding: 12px; background: var(--ink); color: var(--bg);
  font: 400 11px/1.6 var(--mono); white-space: pre-wrap; overflow: auto;
}
.pre[hidden] { display: none; }

.sidenav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  font: 400 12px/1 var(--mono);
}
.sidenav a { background: var(--panel); padding: 12px; text-decoration: none; }
.sidenav a:hover { background: var(--bg); }

.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-xray {
  flex: 1 1 auto; display: flex; justify-content: space-between; gap: 10px;
  font: 500 12px/1 var(--mono); background: var(--ink); color: var(--bg);
  border: 0; padding: 13px 14px; cursor: pointer;
}
.btn-outline {
  font: 500 12px/1 var(--mono); background: none; color: var(--ink);
  border: 1px solid var(--ink); padding: 12px 14px; cursor: pointer;
}
.side-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 400 11px/1.4 var(--mono); color: var(--mute);
}
.side-foot a { font-size: 13px; color: var(--ink); }
.btn-fx {
  font: inherit; color: var(--mute); background: none;
  border: 1px solid var(--fieldline); padding: 6px 8px; cursor: pointer;
}
.keys { font: 400 11px/1.6 var(--mono); color: var(--mute); }
.keys summary { cursor: pointer; }
.keys dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.keys dd { margin: 0; }
.keys button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.buildlog { margin: 0; font: 400 10px/1 var(--mono); color: var(--mute); min-height: 10px; }

/* ── Botones: transición, hover y pulsado ──────────────────── */
.btn-xray, .btn-outline, .btn-fx, .btn-send, .xpanel-close, .lynxbar button, .nf-back, .browser-link {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .1s ease;
}
.keys summary { transition: color .18s ease; width: fit-content; }
.resp-btn .dot { transition: box-shadow .2s ease; }
.btn-xray:active, .btn-outline:active, .btn-fx:active, .btn-send:active, .xpanel-close:active, .lynxbar button:active { transform: translateY(1px); }
@media (hover: hover) {
  .btn-xray:hover, .btn-send:hover { background: var(--acc); color: var(--bg); }
  .btn-outline:hover { background: var(--ink); color: var(--bg); }
  .btn-fx:hover { color: var(--ink); border-color: var(--ink); }
  .xpanel-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .lynxbar button:hover { background: var(--acc); }
  .keys summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .keys button:hover { color: var(--acc); }
  .resp-btn:hover .dot { box-shadow: 0 0 0 6px color-mix(in oklch, var(--acc) 25%, transparent); }
  .resp-btn:hover { color: var(--acc); }
  .foot button:hover { color: var(--ink); }
}

/* ── Secciones ─────────────────────────────────────────────── */
.sec { padding: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px); border-bottom: 1px solid var(--line); }
.sec-n { margin: 0 0 12px; font: 400 12px/1 var(--mono); color: var(--mute); }
.sec h2 {
  margin: 0 0 8px; font-weight: 800; font-stretch: 72%;
  font-size: clamp(40px, 5vw, 80px); line-height: .92; text-transform: uppercase;
}
.sec-lead { margin: 0 0 32px; color: var(--mute); line-height: 1.55; }
.sec-lead--tight { margin-bottom: 32px; }

.svc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc article {
  background: var(--bg);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px 32px; padding: clamp(20px, 2.4vw, 32px);
}
.svc h3 { margin: 0; font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; }
.svc .id { display: block; font: 400 12px/1 var(--mono); color: var(--acc); margin-bottom: 10px; }
.svc dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; line-height: 1.45; align-content: start; }
.svc dt { font: 400 12px/1.6 var(--mono); color: var(--mute); }
.svc dd { margin: 0; }

.guest { background: #F4EFE6 !important; color: #13324B; align-items: center; }
.guest .guest-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.guest .id { color: #13324B; margin: 0; }
.guest img { width: min(100%, 260px); height: auto; aspect-ratio: 531 / 140; display: block; }
.guest .guest-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.5; }
.guest .guest-body p { margin: 0; }
.guest a { color: #13324B; font-weight: 700; }
.guest a:hover { color: #13324B; text-decoration-thickness: 2px; }

.tbl-wrap { overflow-x: auto; }
.brands { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.brands caption { text-align: left; font: 400 12px/1.5 var(--mono); color: var(--mute); padding-bottom: 12px; }
.brands thead tr { font: 400 11px/1 var(--mono); color: var(--mute); text-align: left; }
.brands th[scope="col"] { padding: 10px 12px; font-weight: 400; border-bottom: 1px solid var(--ink); }
.brands th[scope="col"]:first-child { padding-left: 12px; }
.brands th[scope="col"]:last-child { padding-right: 12px; text-align: right; }
.brands tbody tr { position: relative; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.brands tbody tr:hover, .brands tbody tr:focus-within { background: var(--panel); }
.brands td.go a::after { content: ''; position: absolute; inset: 0; }
.brands td.go a:hover { color: var(--acc); }
.brands tbody tr:hover td.go a, .brands tbody tr:focus-within td.go a { color: var(--acc); text-decoration: underline; }
.brands tbody th { padding: 18px 12px 18px 12px; text-align: left; font-weight: 700; font-size: clamp(20px, 2vw, 26px); white-space: nowrap; }
.brands tbody th span { display: flex; align-items: center; gap: 12px; }
.brand-name { margin: 0; font: inherit; letter-spacing: inherit; }
.chip { width: 28px; height: 28px; flex: none; border-radius: 6px; display: grid; place-items: center; background: #fff; }
.chip img { object-fit: contain; display: block; }
.chip--paper { background: #F4EFE6; }
.brands td { padding: 18px 12px; line-height: 1.45; color: var(--mute); }
.brands td.go { padding: 18px 12px 18px 12px; text-align: right; font: 400 12px/1 var(--mono); white-space: nowrap; color: var(--ink); }

.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.about .big { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; max-width: 36ch; text-wrap: pretty; }
.about .small { margin: 0; color: var(--mute); line-height: 1.6; max-width: 60ch; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; border-bottom: 0; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; width: 100%; max-width: 760px; min-width: 0; }
.form label { display: grid; gap: 8px; font: 400 12px/1 var(--mono); min-width: 0; }
.form .wide { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; min-width: 0; box-sizing: border-box;
  font: 400 16px var(--sans); padding: 14px;
  background: var(--field); color: var(--ink);
  border: 1px solid var(--fieldline); border-radius: 0;
}
.form textarea { resize: vertical; }
.form .actions { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-send { font: 500 13px/1 var(--mono); background: var(--ink); color: var(--bg); border: 0; padding: 16px 22px; cursor: pointer; }
.btn-send[disabled] { opacity: .6; cursor: progress; }
.form .alt { font: 400 13px/1 var(--mono); }
.form .status { margin: 0; font: 400 12px/1.4 var(--mono); color: var(--acc); }
.form .status.err { color: #B91C1C; }
html[data-theme="dark"] .form .status.err { color: #F87171; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px clamp(20px, 3vw, 48px); border-top: 1px solid var(--line); font: 400 11px/1.4 var(--mono); color: var(--mute); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot .pre-light { margin: 0; padding: 12px; border: 1px dashed var(--fieldline); color: var(--ink); white-space: pre-wrap; }
.foot .pre-light[hidden] { display: none; }

/* ── Panel de Rayos X (superpuesto, no desplaza nada) ──────── */
.xpanel {
  position: fixed; right: max(clamp(12px, 2vw, 24px), calc((100vw - 1560px) / 2 + 24px)); bottom: clamp(12px, 2vw, 24px); z-index: 30;
  width: min(440px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--acc); padding: 18px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; font: 400 12px/1.5 var(--mono);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.xpanel[hidden] { display: none; }
.xpanel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--acc); }
.xpanel-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.xpanel-head p { margin: 0; }
.xpanel-close { white-space: nowrap; font: 500 11px/1 var(--mono); background: none; border: 1px solid var(--fieldline); color: var(--ink); padding: 6px 8px; cursor: pointer; }
.xgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.xgrid > div { display: grid; gap: 4px; align-content: start; }
.xgrid span.k { color: var(--mute); }
.xgrid strong { font: 800 28px/1 var(--sans); font-stretch: 80%; }
.xgrid .small strong { font: 700 20px/1 var(--sans); }
.xgrid .rate { justify-self: start; border: 1px solid currentColor; padding: 2px 6px; font-size: 10px; }
.xsplit { padding-top: 14px; border-top: 1px solid var(--line); }
.xoutline { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.xoutline .t { color: var(--acc); }
.lynxbar {
  margin: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 48px) 0; padding: 16px; border: 1px dashed var(--ink);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 12px/1.5 var(--mono);
}
.lynxbar[hidden] { display: none; }
.lynxbar button { font: inherit; background: var(--ink); color: var(--bg); border: 0; padding: 8px 12px; cursor: pointer; }

@media (max-width: 900px) {
  .side { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .photo { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Páginas legales y 404 ─────────────────────────────────── */
.lg-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px clamp(20px, 3vw, 48px); background: var(--panel); border-bottom: 1px solid var(--line);
  font: 400 12px/1 var(--mono);
}
.lg-top a { text-decoration: none; }
.lg-crumb { color: var(--mute); }
.lg-top .left { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.lg-top .btn-outline { padding: 10px 12px; }
.l-wrap { max-width: 880px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) clamp(20px, 3vw, 48px) 72px; }
.l-article { max-width: 44rem; }
.l-h1 {
  margin: 0 0 40px; font-weight: 800; font-stretch: 72%; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 80px); line-height: .92; letter-spacing: -.01em;
}
.l-block { margin-bottom: 40px; }
.l-h2 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
.l-p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; }
.l-p strong, .l-list li strong { font-weight: 700; }
.l-p a, .l-list li a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.l-p a:hover, .l-list li a:hover { text-decoration-thickness: 2px; }
.l-list { list-style: none; padding: 0; margin: 0 0 14px; }
.l-list li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 16px; line-height: 1.65; }
.l-list li::before { content: ''; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; background: var(--acc); }
.l-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; display: block; overflow-x: auto; }
.l-table th { padding: 12px 24px 12px 0; text-align: left; font: 400 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.l-table td { padding: 12px 24px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; line-height: 1.5; }
.l-table td.l-td-label { font: 400 12px/1.5 var(--mono); color: var(--mute); white-space: nowrap; width: 11rem; }
.l-table td.l-td-val { color: var(--ink); }
.l-article code { font: 400 .9em var(--mono); background: var(--panel); padding: 1px 6px; }
.browser-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.browser-link { font: 400 12px/1 var(--mono); color: var(--ink); border: 1px solid var(--fieldline); padding: 10px 14px; text-decoration: none; }
.browser-link:hover { background: var(--ink); color: var(--bg); }

.nf { min-height: 100vh; display: grid; place-items: center; padding: clamp(24px, 5vw, 64px) clamp(20px, 3vw, 48px); }
.nf-box { width: min(100%, 520px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.nf-num { font-weight: 800; font-stretch: 72%; font-size: clamp(120px, 22vw, 220px); line-height: .8; letter-spacing: -.02em; margin: 0; }
.nf .wa { background: var(--panel); border: 1px solid var(--line); }
.nf .wa-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 400 12px/1.3 var(--mono); }
.nf .wa-head b { font-weight: 500; display: block; }
.nf .wa-head span { color: var(--mute); }
.nf .wa-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: 14px; }
.nf .wa-body { padding: 16px; }
.nf .wa-bubble { background: var(--bg); border: 1px solid var(--line); border-radius: 0 12px 12px 12px; padding: 12px 14px; max-width: 38ch; }
.nf .wa-bubble p { margin: 0 0 6px; font-size: 15px; line-height: 1.45; }
.nf .wa-time { display: flex; justify-content: flex-end; align-items: center; gap: 6px; font: 400 11px/1 var(--mono); color: var(--mute); }
.nf .lead { margin: 0; color: var(--mute); line-height: 1.6; max-width: 36ch; }
.nf-back { justify-self: start; text-decoration: none; font: 500 13px/1 var(--mono); background: var(--ink); color: var(--bg); padding: 16px 22px; }
.nf-back:hover { color: var(--bg); background: var(--acc); }
html[data-theme="dark"] .nf-back:hover { color: #0E0F0E; }
.nf-foot { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font: 400 11px/1.4 var(--mono); color: var(--mute); }

/* ── Easter egg: imprimir convierte la web en una ficha técnica ── */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  :root, html[data-theme="dark"] {
    --bg: #fff; --ink: #000; --mute: #333; --line: #999; --panel: #fff; --acc: #000; --field: #fff; --fieldline: #666;
    color-scheme: light;
  }
  html { font-size: 10.5pt; background: #fff; }
  body { background: #fff; color: #000; max-width: none; border: 0; }
  .print-only { display: block; }
  .skip, .tools, .keys, .buildlog, .side-foot, .sidenav, .resp-btn, .xpanel, .lynxbar,
  .lg-top .btn-outline, .form label, .form .btn-send, .form .status, .hp, .foot nav button, .nf-foot .btn-outline { display: none !important; }
  .shell { display: block; min-height: 0; }
  /* La entrada animada no debe afectar al papel, ni a medias */
  [data-build], .photo, .photo img { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; animation: none !important; }
  .photo video { display: none !important; }
  [data-tag] { outline: 0 !important; }
  [data-tag]::before { content: none !important; }
  .side { position: static; height: auto; overflow: visible; background: #fff; border: 0; border-bottom: 1.5pt solid #000; padding: 0 0 12pt; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 14pt; }
  .photo { flex: none; width: 34mm; min-height: 0; aspect-ratio: 3 / 4; }
  .side-title { flex: 1 1 60mm; }
  .side-title h1 { font-size: 34pt; }
  .side-title p { font-size: 11pt; }
  .resp { flex: 1 1 100%; }
  #cabeceras[hidden] { display: block; }
  .pre { background: #fff; color: #000; border: 1pt dashed #000; font-size: 8.5pt; }
  .main { min-width: 0; }
  .sec { padding: 12pt 2px 12pt 0; border-bottom: 1pt solid #999; }
  .sec h2, .sec-n { break-after: avoid; }
  .sec h2 { font-size: 24pt; }
  .svc { background: none; border: 0; }
  .svc article { border: 1pt solid #999; border-top-width: 0; break-inside: avoid; }
  .svc article:first-child { border-top-width: 1pt; }
  .brands tr { break-inside: avoid; }
  .sec.about, .sec.contact { display: block; }
  .sec.about > p, .sec.contact > * { margin-bottom: 10pt; }
  .guest { background: #fff !important; border-top: 1pt solid #13324B; }
  .brands { min-width: 0; }
  .tbl-wrap { overflow: visible; }
  .brands td.go a::after { content: none; }
  .brands tbody tr { cursor: auto; }
  .sec-lead a::after { content: " (" attr(href) ")"; font-size: 9pt; }
  a, a:hover { color: #000; }
  .chip { border: 1pt solid #999; }
  .foot { border-top: 1pt solid #000; padding: 8pt 0; }
  .print-head { padding-bottom: 12pt; margin-bottom: 14pt; border-bottom: 3pt double #000; font: 500 9pt/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; gap: 12pt; flex-wrap: wrap; }
  .print-foot { margin-top: 14pt; font: 400 8.5pt/1.5 var(--mono); text-align: center; color: #333; }
  .lg-top { background: #fff; border: 0; padding: 0 0 8pt; }
  .l-wrap { padding: 12pt 0; }
  .nf { min-height: 0; padding: 0; }
}

/* Panel de Rayos X: modo compacto (por defecto en móvil) y página con aire debajo */
html[data-xray="on"] body { padding-bottom: var(--xp-h, 0px); }
.xpanel.min [data-more] { display: none; }
.xpanel.min { gap: 10px; padding: 12px 14px; }
.xpanel.min .xgrid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.xpanel.min .xgrid strong { font-size: 22px; }
.xpanel.min .xgrid .rate { font-size: 9px; padding: 1px 4px; }
@media (max-width: 900px) {
  .xpanel { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; max-height: 48vh; padding: 12px 14px; gap: 10px; }
  .xpanel-head { align-items: flex-start; }
  .xpanel-head p { font-size: 11px; }
  .xpanel-close { padding: 9px 10px; }
}

/* Botón de apagar Rayos X dentro del panel: el mismo rótulo que el de la barra lateral y bien visible */
.xpanel-off { background: var(--ink); color: var(--bg); border-color: var(--ink); display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.xpanel-off strong { font: inherit; font-weight: 500; }
@media (hover: hover) { .xpanel-off:hover { background: var(--acc); border-color: var(--acc); color: var(--bg); } }
@media (max-width: 900px) { .xpanel-close { min-height: 40px; } }

/* Panel de Rayos X: categorías con más contexto */
.xgrid .rate.top { background: var(--acc); color: var(--bg); border-color: var(--acc); }
.xgrid .rate.warn { color: #92400E; }
.xgrid .rate.bad { color: #B91C1C; }
html[data-theme="dark"] .xgrid .rate.warn { color: #FBBF24; }
html[data-theme="dark"] .xgrid .rate.bad { color: #F87171; }
.xgrid .lim { color: var(--mute); font-size: 10px; line-height: 1.3; white-space: nowrap; }
.xpanel.min .lim { display: none; }
.xnote { margin: 0; color: var(--mute); font-size: 11px; line-height: 1.5; }
