/* Marquesina Bellavista — aire y humedad
   Paleta tomada del mundo de la marquesina: plástico de invernadero (fondo),
   hoja de cafeto (tinta), aire/humedad (azul) y cereza de café (acento, con moderación). */

:root {
  /* Tema: estilo inspirado en stripe.com (solo el estilo; design/tema.md). */
  --bg: #F6F9FC;
  --paper: #FFFFFF;
  --ink: #0A2540;
  --ink-2: #425466;
  --muted: #697386;
  --line: #E3E8EE;
  --line-soft: #EEF2F6;
  --air: #0570DE;         /* enlaces, aberturas en el plano, serie 1 */
  --air-soft: #E3EFFD;
  --cherry: #DF1B41;      /* café en el plano, serie 2 */
  --cherry-soft: #FDE8EC;
  --accent: #635BFF;      /* relleno con texto blanco: menú activo, pestañas, barra superior */
  --accent-text: #5851EA; /* acento como texto */
  --sun: #E39A12;

  /* sellos de confianza (reservados: solo para confianza) */
  --c-solido: #1A7F4B;
  --c-sugestivo: #A85808;
  --c-pendiente: #697386;
  --c-hipotesis: #A3248E;

  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "Source Code Pro", ui-monospace, Menlo, monospace;

  --sh-1: 0 2px 5px -1px rgb(50 50 93 / 0.25), 0 1px 3px -1px rgb(0 0 0 / 0.3);
  --sh-2: 0 13px 27px -5px rgb(50 50 93 / 0.25), 0 8px 16px -8px rgb(0 0 0 / 0.3);
  --sh-3: 0 50px 100px -20px rgb(50 50 93 / 0.25), 0 30px 60px -30px rgb(0 0 0 / 0.3);

  --measure: 42rem;
  --wide: 70rem;
  --r: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--air); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--air); outline-offset: 2px; border-radius: 4px; }

/* ---------- cabecera y navegación ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #635BFF, #00D4FF 60%, #F6F9FC) 1;
  border-image-slice: 1 0 0 0;
}
.site-head .inner {
  max-width: 1200px; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand {
  font: 600 1.02rem/1.1 var(--f-display); color: var(--ink); text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { flex: none; width: 30px; height: auto; }
.brand-sep { font-style: normal; color: var(--line); font-weight: 400; }
.brand-area { font-weight: 500; color: var(--ink-2); }
.brand small { display: block; font: 400 0.75rem/1.2 var(--f-body); color: var(--muted); letter-spacing: 0; }
@media (max-width: 640px) { .brand-sep, .brand-area { display: none; } }
.nav-toggle {
  margin-left: auto; display: none;
  font: 600 0.9rem var(--f-body); background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; cursor: pointer;
}
.site-nav { margin-left: auto; }
.site-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem; }
.site-nav a {
  display: block; padding: 0.35rem 0.5rem; border-radius: 999px;
  font-size: 0.84rem; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); }
.site-nav a[aria-current="page"] { background: var(--accent); color: #fff; }
@media (max-width: 1220px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 1rem 1rem; }
  .site-nav.open { display: block; }
  .site-nav ol { flex-direction: column; }
  .site-nav a { font-size: 1rem; padding: 0.55rem 0.75rem; }
}

/* ---------- fotos ---------- */
.banner { height: clamp(170px, 26vw, 380px); overflow: hidden; background: var(--line); }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.foto { margin: 2rem 0; max-width: 900px; }
.foto img { display: block; width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--sh-2); }
.foto figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-2); }

/* ---------- estructura de página ---------- */
main { max-width: var(--wide); margin: 0 auto; padding: 0 1rem 4rem; }
.prose { max-width: var(--measure); }
.page-head, .hero { position: relative; isolation: isolate; }
.page-head::before, .hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(120deg, rgb(99 91 255 / 0.13) 0%, rgb(0 212 255 / 0.10) 55%, rgb(246 249 252 / 0) 100%);
}
.page-head { padding: 2.5rem 0 1.5rem; display: grid; gap: 1.5rem; }
.page-head .tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.005em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 600; letter-spacing: -0.015em; max-width: 22ch; }
h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 600; margin-top: 3.5rem; max-width: 30ch; }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 2rem; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 38rem; margin: 0; }
p { margin: 0.9rem 0 0; }
ul, ol { padding-left: 1.2rem; }
li + li { margin-top: 0.35rem; }
.num { font-family: var(--f-mono); font-size: 0.92em; letter-spacing: -0.01em; }
section { scroll-margin-top: 5rem; }

/* etiqueta de origen: medido vs simulado */
.origen {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: 600 0.8rem/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.38rem 0.65rem; border-radius: 999px; color: var(--ink-2);
}
.origen::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.origen--sensores { background: var(--paper); box-shadow: var(--sh-1); }
.origen--sensores::before { background: var(--ink); }
.origen--modelo { border: 1.5px dashed var(--muted); }
.origen--modelo::before { border: 1.5px dashed var(--ink-2); }

/* ---------- sellos de confianza ---------- */
.sello {
  display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap;
  font: 700 0.74rem/1 var(--f-body); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.32rem 0.55rem 0.3rem; border-radius: 4px; border: 1.5px solid currentColor;
  vertical-align: 0.12em;
}
.sello::before { font-size: 0.85rem; line-height: 0; }
.sello--solido     { color: var(--c-solido); }
.sello--solido::before { content: "●"; }
.sello--sugestivo  { color: var(--c-sugestivo); }
.sello--sugestivo::before { content: "◐"; }
.sello--confirmar  { color: var(--c-pendiente); border-style: dashed; }
.sello--confirmar::before { content: "○"; }
.sello--sinrespaldo { color: var(--c-pendiente); border-style: dotted; }
.sello--sinrespaldo::before { content: "–"; }
.sello--hipotesis  { color: var(--c-hipotesis); border-style: dashed; }
.sello--hipotesis::before { content: "?"; font-weight: 700; font-size: 0.8rem; }
.sello .q { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: 0.85; }

/* afirmación con sello: la unidad básica del sitio */
.claims { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; max-width: 48rem; }
.claim {
  background: var(--paper); box-shadow: var(--sh-1); border-radius: var(--r);
  padding: 1rem 1.1rem; display: grid; gap: 0.5rem;
}
.claim > .sello { justify-self: start; }
.claim p { margin: 0; }
.claim .claim-text { font-size: 1.08rem; font-weight: 700; line-height: 1.4; }
.claim .claim-more { color: var(--ink-2); font-size: 0.97rem; }
.claim a.ir { font-size: 0.92rem; font-weight: 600; }

/* ---------- figuras ---------- */
.fig { margin: 1.75rem 0 0; max-width: 60rem; }
.fig--wide { max-width: none; }
.fig-frame {
  background: var(--paper); box-shadow: var(--sh-1); border-radius: var(--r);
  padding: 0.75rem; position: relative;
}
.fig-frame img { width: 100%; height: auto; cursor: zoom-in; border-radius: 4px; }
.fig-frame video { width: 100%; height: auto; border-radius: 4px; background: var(--paper); }
.fig-frame .zoom-hint {
  position: absolute; right: 0.9rem; bottom: 0.9rem;
  font: 600 0.75rem var(--f-body); color: var(--ink-2); background: color-mix(in srgb, var(--paper) 88%, transparent);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.55rem; pointer-events: none;
}
figcaption { max-width: var(--measure); margin-top: 0.75rem; font-size: 0.97rem; color: var(--ink-2); }
figcaption .mirar { display: block; color: var(--ink); font-weight: 700; margin-bottom: 0.2rem; }
figcaption .en { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }
figcaption .sello { margin-top: 0.6rem; }

/* pestañas (animaciones, vistas interactivas) */
.tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.tabs button {
  font: 600 0.88rem var(--f-body); color: var(--ink-2); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.85rem; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
[role="tabpanel"][hidden] { display: none; }

.embed { width: 100%; border: 0; display: block; background: #fafaf8; border-radius: 4px; }
.embed-actions { margin-top: 0.5rem; font-size: 0.9rem; }

/* ---------- detalle técnico ---------- */
details.tecnico {
  margin: 1.5rem 0 0; max-width: 60rem;
  border-radius: var(--r); background: var(--paper); box-shadow: var(--sh-1);
}
details.tecnico > summary {
  cursor: pointer; list-style: none; padding: 0.8rem 1rem;
  font: 600 0.95rem var(--f-display); display: flex; align-items: center; gap: 0.6rem;
}
details.tecnico > summary::-webkit-details-marker { display: none; }
details.tecnico > summary::before {
  content: "+"; font: 600 1.1rem/1 var(--f-mono); width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg); flex: none;
}
details.tecnico[open] > summary::before { content: "−"; }
details.tecnico > summary .sub { font: 400 0.85rem var(--f-body); color: var(--muted); }
details.tecnico > .body { padding: 0 1rem 1.1rem; font-size: 0.97rem; }
details.tecnico .fig { margin-top: 1.1rem; }

/* tablas */
.tabla-wrap { overflow-x: auto; margin-top: 1rem; }
table { border-collapse: collapse; font-size: 0.93rem; min-width: 100%; }
th, td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-weight: 700; color: var(--ink-2); font-size: 0.85rem; border-bottom-color: var(--line); }
td.n, th.n { text-align: right; font-family: var(--f-mono); white-space: nowrap; }

/* ---------- plano de la nave (elemento firma) ---------- */
.plano { margin: 0; }
.plano-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plano svg { width: 100%; min-width: 640px; height: auto; }
.plano--mini svg { min-width: 0; }
.plano figcaption { margin-top: 0.4rem; }
.plano .shed { fill: var(--paper); stroke: var(--ink); stroke-width: 6; }
.plano .wall-label { font: 600 30px var(--f-body); fill: var(--muted); }
.plano .end-label { font: 700 30px var(--f-body); fill: var(--ink-2); }
.plano .door { stroke: var(--air); stroke-width: 18; }
.plano .window { stroke: var(--air); stroke-width: 18; stroke-dasharray: 10 6; }
.plano .op-label { font: 700 28px var(--f-body); fill: var(--air); }
.plano .sensor { fill: var(--ink); }
.plano .sensor--muerto { fill: var(--paper); stroke: var(--muted); stroke-width: 4; }
.plano .sensor--ext { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.plano .line-label { font: 600 26px var(--f-mono); fill: var(--muted); }
.plano .coffee { fill: var(--cherry-soft); stroke: var(--cherry); stroke-width: 3; }
.plano .coffee-label { font: 700 26px var(--f-body); fill: var(--cherry); }
.plano .zona { fill: none; stroke: var(--ink); stroke-width: 5; stroke-dasharray: 14 9; }
.plano .zona-fill { fill: color-mix(in srgb, var(--ink) 9%, transparent); }
.plano .zona-label { font: 700 28px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 8px; }
.plano .split { fill: color-mix(in srgb, var(--air) 18%, transparent); }
.plano .split-label { font: 700 26px var(--f-body); fill: var(--air); paint-order: stroke; stroke: var(--paper); stroke-width: 8px; }
.plano .cut { stroke: var(--air); stroke-width: 4; stroke-dasharray: 22 10; }
.plano .fan { fill: #FFBB33; stroke: var(--ink); stroke-width: 3; }
.plano .fan-label { font: 700 26px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 8px; }
.plano .sun { font: 700 26px var(--f-body); fill: var(--ink-2); }
.plano .sun-arrow { stroke: var(--sun); stroke-width: 5; fill: none; marker-end: url(#flecha-sol); }
.plano .compass { stroke: var(--ink); stroke-width: 4; fill: none; }
.plano .compass-n { font: 700 28px var(--f-display); fill: var(--ink); }
.plano a .hit { fill: transparent; }
.plano a:hover .zona, .plano a:focus .zona { stroke-width: 8; }
.plano a:focus { outline: none; }
.plano a:focus-visible .zona { stroke: var(--air); }

.leyenda-plano { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.86rem; color: var(--ink-2); margin-top: 0.6rem; }
.leyenda-plano span { display: inline-flex; align-items: center; gap: 0.4rem; }
.leyenda-plano i { width: 0.8rem; height: 0.8rem; display: inline-block; border-radius: 50%; }

/* ---------- inicio ---------- */
.hero { padding: 2.5rem 0 0.5rem; display: grid; gap: 1.25rem; }
.hero h1 { max-width: 20ch; }
.hero-plano { margin-top: 0.5rem; }
.loom {
  margin-top: 2rem; max-width: 52rem; background: var(--paper);
  box-shadow: var(--sh-3); border-radius: var(--r); overflow: hidden;
}
.loom-frame { position: relative; aspect-ratio: 16 / 9; }
.loom-frame iframe, .loom-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loom-frame video { background: #0A2540; }
.loom-empty { min-height: 9rem; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); }
.loom-empty strong { display: block; font: 600 1.2rem var(--f-display); color: var(--ink); }

.leyenda-sellos { display: grid; gap: 0.6rem; margin-top: 1rem; max-width: 48rem; }
.leyenda-sellos div { display: grid; grid-template-columns: 11rem 1fr; gap: 0.8rem; align-items: start; }
.leyenda-sellos .sello { justify-self: start; }
@media (max-width: 560px) { .leyenda-sellos div { grid-template-columns: 1fr; gap: 0.3rem; } }

.recorrido { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.recorrido a {
  display: block; height: 100%; padding: 0.9rem 1rem; background: var(--paper); box-shadow: var(--sh-1);
  border-radius: var(--r); text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s;
}
.recorrido a:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.recorrido strong { font: 600 1.05rem var(--f-display); display: block; }
.recorrido span { font-size: 0.92rem; color: var(--ink-2); }

/* cruce entre las dos fuentes */
.cruce {
  margin-top: 1.5rem; max-width: 48rem; padding: 1.1rem 1.2rem; border-radius: var(--r);
  background: var(--paper); box-shadow: var(--sh-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.cruce > div { display: grid; gap: 0.4rem; align-content: start; }
.cruce .origen { justify-self: start; }
.cruce .veredicto { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 0.8rem; }
@media (max-width: 640px) { .cruce { grid-template-columns: 1fr; } }

/* borrador */
.borrador {
  margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--r); max-width: 48rem;
  border: 2px dashed var(--c-sugestivo); background: #FFF6EA; color: #6A3A05;
}
.inferencia {
  display: inline-block; font: 700 0.72rem/1 var(--f-body); letter-spacing: 0.04em; text-transform: uppercase;
  color: #6A3A05; background: #FCE7CC; padding: 0.3rem 0.5rem; border-radius: 4px;
}

/* gráficos propios */
.chart { margin-top: 1.5rem; max-width: 46rem; }
.chart h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.chart .chart-sub { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--ink-2); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis text, .chart .tick { font: 400 12px var(--f-mono); fill: var(--muted); }
.chart .grid line { stroke: var(--line-soft); }
.chart .zero { stroke: var(--ink-2); stroke-width: 1; }
.chart .cat { font: 600 13px var(--f-body); fill: var(--ink); }
.chart .val { font: 600 12px var(--f-mono); fill: var(--ink-2); }
.chart .ref { stroke: var(--ink-2); stroke-dasharray: 4 4; stroke-width: 1.2; }
.chart .ref-label { font: 600 12px var(--f-body); fill: var(--ink-2); }
.chart .legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--ink-2); margin-bottom: 0.4rem; }
.chart .legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.chart .legend i { width: 0.75rem; height: 0.75rem; border-radius: 3px; display: inline-block; }
.chart .hit { fill: transparent; cursor: default; }
.chart-tip {
  position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--bg);
  font: 400 0.85rem/1.35 var(--f-body); padding: 0.45rem 0.6rem; border-radius: 6px; max-width: 16rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
}
.chart-tip b { font-weight: 700; }
.chart table { margin-top: 0.5rem; }

/* tabla de pruebas de ventilador */
.pruebas { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 1.25rem; max-width: 52rem; align-items: stretch; }
.pruebas .h { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); align-self: end; padding: 0 0.2rem; }
.pruebas .dia { font: 600 0.95rem var(--f-display); align-self: center; padding-right: 0.4rem; }
.pruebas .dia small { display: block; font: 400 0.8rem var(--f-body); color: var(--muted); }
.prueba { background: var(--paper); box-shadow: var(--sh-1); border-radius: var(--r); padding: 0.7rem 0.8rem; display: grid; gap: 0.35rem; align-content: start; }
.prueba.si { box-shadow: inset 0 0 0 2px var(--c-solido), var(--sh-1); }
.prueba .t { font-weight: 700; }
.prueba .d { font-size: 0.86rem; color: var(--ink-2); }
@media (max-width: 640px) {
  .pruebas { grid-template-columns: 1fr; }
  .pruebas .h { display: none; }
  .prueba .entrada-m { display: inline; }
}
.prueba .entrada-m { display: none; font-size: 0.82rem; color: var(--muted); }

/* lista de experimentos */
.exp { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.8rem; max-width: 48rem; }
.exp li { background: var(--paper); box-shadow: var(--sh-1); border-radius: var(--r); padding: 1rem 1.1rem; margin: 0; }
.exp h3 { margin: 0; font-size: 1.1rem; }
.exp .resuelve { margin-top: 0.5rem; font-size: 0.92rem; color: var(--ink-2); }
.exp .resuelve b { color: var(--ink); }

/* pie */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.pager a { text-decoration: none; display: grid; gap: 0.1rem; max-width: 48%; }
.pager a small { color: var(--muted); font-size: 0.8rem; }
.pager a span { font: 600 1.05rem var(--f-display); color: var(--ink); }
.pager .next { text-align: right; margin-left: auto; }
.site-foot { max-width: var(--wide); margin: 0 auto; padding: 1.5rem 1rem 3rem; font-size: 0.85rem; color: var(--muted); }
.site-foot p { margin: 0 0 0.4rem; }
.site-foot .credito { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; }
.site-foot .credito img { width: 16px; height: auto; }
.site-foot a { color: var(--ink-2); }

/* visor ampliado */
dialog.visor {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(18 24 21 / 0.96);
}
dialog.visor::backdrop { background: rgb(18 24 21 / 0.96); }
.visor-scroll { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; padding: 3.5rem 1rem 1rem; }
.visor-scroll img { max-width: none; width: min(1800px, 160vw); height: auto; background: #fff; border-radius: 4px; }
@media (min-width: 900px) { .visor-scroll img { width: auto; max-width: 96vw; max-height: 88dvh; } .visor.grande .visor-scroll img { max-width: none; max-height: none; width: 1800px; } }
.visor-bar { position: fixed; top: 0.6rem; right: 0.8rem; display: flex; gap: 0.4rem; z-index: 2; }
.visor-bar button {
  font: 600 0.9rem var(--f-body); background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-head, .pager, .zoom-hint, .tabs { display: none; }
  details.tecnico { border: 0; }
  body { background: #fff; }
}

.rec {
  display: inline-block; justify-self: start; font: 700 0.72rem/1 var(--f-body); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--bg); background: var(--ink-2); padding: 0.3rem 0.5rem; border-radius: 4px;
}
.claim > .inferencia { justify-self: start; }

.site-nav li, .claims > li, .recorrido > li, .exp > li { margin-top: 0; }
.leyenda-sellos .inferencia { justify-self: start; }
