/* ============================================================
   Cotizomatic — «la máquina de cotizar»
   Sistema esmalte retro (2026-08-08, orden de rediseño de los socios;
   supersede el monocromo del 2026-08-05 — ver DESIGN.md y DECISIONS.md).

   El mundo entero sale del render de la máquina Cotiz-O-Matic
   (02_MATERIALES/03_IMAGENES/hero-imagen-look-and-feel.jpeg):
     · crema esmalte   = el panel frontal (lienzo de la página)
     · teal esmalte    = el cuerpo de la máquina (paneles de control)
     · tinta cálida    = el texto grabado
     · rojo medallón   = el «O» del emblema (marcadores, UN acento)
     · cromo           = biseles de placas (filete, luz superior)
     · vidrio ámbar    = el visor interno (SOLO el odómetro y /app)
   La página se compone como hoja de especificaciones / manual de
   instrucciones de mediados de siglo: marcos impresos, FIG. numeradas,
   placas grabadas, tickets que la máquina imprime.
   ============================================================ */

/* ---------- fuentes autohospedadas (ver fonts/LICENCIA.txt) ---------- */
@font-face {
  font-family: "Besley";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/besley-var.woff2") format("woff2");
}
@font-face {
  font-family: "Besley";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/besley-var-italic.woff2") format("woff2");
}
@font-face {
  font-family: "B612 Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/b612mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "B612 Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/b612mono-700.woff2") format("woff2");
}

:root {
  /* Lienzo — taller de día (default): crema esmalte del panel frontal */
  --bg: #f5eedf;
  --bg-dim: #eee5d1;
  --fg: #26221a;
  --muted: #6b6455;
  --hairline: rgba(38, 34, 26, 0.28);
  --hairline-soft: rgba(38, 34, 26, 0.14);
  --header-bg: rgba(245, 238, 223, 0.88);
  --btn-bg: #26221a;
  --btn-fg: #f7f1e2;
  --btn-hover: #38321f;
  --btn-borde: #16130d;

  /* Rojo medallón: EL acento. Marcadores numerados, un énfasis, enlaces. */
  --accent: #a63122;
  --accent-strong: #8e281e;
  --focus: #a63122;

  /* Teal esmalte: el cuerpo de la máquina. Paneles, nunca texto. */
  --teal: #86b6ae;
  --teal-borde: #5d8d85;
  --teal-tinta: #24352f;        /* tinta sobre teal claro */
  --teal-tinta-suave: #2e403a;  /* hints: 4.8:1 sobre --teal (medido, no estimado) */
  --teal-wash: #e2ede8;         /* baño pálido (columna destacada de la tabla) */
  --teal-piso: #2f5a54;         /* el piso del footer */

  /* Placa crema con bisel cromado */
  --placa-bg: linear-gradient(180deg, #fbf6ea 0%, #f1e8d6 100%);
  --placa-borde: #b4ab97;
  --placa-luz: rgba(255, 255, 255, 0.75);

  /* Material: instrumento (fijo, no cambia con el tema) — el visor ámbar */
  --machine-bg: linear-gradient(170deg, #241d12 0%, #1a140b 55%, #15100a 100%);
  --machine-fg: #f3ecdc;
  --machine-muted: #b3a78f;
  --machine-line: rgba(243, 236, 220, 0.17);
  --machine-line-soft: rgba(243, 236, 220, 0.08);
  --accent-machine: #f2a93b;    /* ámbar del visor */
  --ambar: #f2a93b;

  /* Material: papel (fijo) — lo que la máquina imprime */
  --paper: #fffcf3;
  --paper-ink: #26221a;
  --paper-muted: #6b6455;
  --paper-line: #e0d6bf;

  /* Semáforo — SOLO dentro de mockups del producto y /app */
  --ok: #2e7d4f;

  /* Tipos: Besley (Clarendon de placas de maquinaria) + B612 Mono (instrumentos) */
  --font-serif: "Besley", "Iowan Old Style", Georgia, serif;
  --font-sans: var(--font-serif);
  --font-mono: "B612 Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* Capas */
  --z-ticket: 10;
  --z-header: 100;

  color-scheme: light;
}

/* Lienzo — taller de noche: carbón cálido (jamás azul-pizarra) */
:root[data-theme="dark"] {
  --bg: #1c1712;
  --bg-dim: #241e16;
  --fg: #efe7d6;
  --muted: #a89d8a;
  --hairline: rgba(239, 231, 214, 0.26);
  --hairline-soft: rgba(239, 231, 214, 0.13);
  --header-bg: rgba(28, 23, 18, 0.88);
  --btn-bg: #efe7d6;
  --btn-fg: #26221a;
  --btn-hover: #ddd2ba;
  --btn-borde: #0f0c08;
  --accent: #d0563f;
  --accent-strong: #de6b52;
  --focus: #d0563f;
  --teal: #446b64;
  --teal-borde: #6fa094;
  --teal-tinta: #f2f7f4;
  --teal-tinta-suave: #e3ece8;  /* hints: 4.9:1 sobre --teal oscuro (medido) */
  --teal-wash: #263832;
  --teal-piso: #14211f;
  --placa-bg: linear-gradient(180deg, #2a241b 0%, #241e16 100%);
  --placa-borde: #4d4536;
  --placa-luz: rgba(239, 231, 214, 0.12);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1712;
    --bg-dim: #241e16;
    --fg: #efe7d6;
    --muted: #a89d8a;
    --hairline: rgba(239, 231, 214, 0.26);
    --hairline-soft: rgba(239, 231, 214, 0.13);
    --header-bg: rgba(28, 23, 18, 0.88);
    --btn-bg: #efe7d6;
    --btn-fg: #26221a;
    --btn-hover: #ddd2ba;
    --btn-borde: #0f0c08;
    --accent: #d0563f;
    --accent-strong: #de6b52;
    --focus: #d0563f;
    --teal: #446b64;
    --teal-borde: #6fa094;
    --teal-tinta: #f2f7f4;
    --teal-tinta-suave: #e3ece8;  /* hints: 4.9:1 sobre --teal oscuro (medido) */
    --teal-wash: #263832;
    --teal-piso: #14211f;
    --placa-bg: linear-gradient(180deg, #2a241b 0%, #241e16 100%);
    --placa-borde: #4d4536;
    --placa-luz: rgba(239, 231, 214, 0.12);
    color-scheme: dark;
  }
}

::selection { background: var(--teal); color: #26221a; }

/* ---------- reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grano de sustrato: papel impreso, detrás de todo, apenas perceptible. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- tipografía ---------- */
.display {
  font-size: clamp(2.6rem, 5.2vw, 4.35rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.display .acento { font-style: italic; font-weight: 700; color: var(--accent); }
.h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.005em;
}
.h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

section { padding-block: clamp(4.25rem, 9vw, 7.5rem); }
.band-dim { background: var(--bg-dim); }

.section-head { max-width: 40rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; font-size: 1.125rem; }

/* ---------- header: el riel superior ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 64px;
}
.logo { display: flex; align-items: center; color: var(--fg); text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.5rem); }
.site-nav a {
  text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  transition: color 150ms var(--ease-out);
}
.site-nav a:hover { color: var(--fg); }
.nav-links { display: contents; }
@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* Interruptor de tema: palanca de máquina (DÍA/NOCHE), no sol y luna. */
.theme-toggle {
  position: relative;
  width: 46px; height: 24px; padding: 0;
  background: var(--bg-dim);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle .perilla {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fdfdfb 0%, #d9d5c9 45%, #8f8a7c 100%);
  border: 1px solid rgba(38, 34, 26, 0.4);
  transition: transform 200ms var(--ease-out);
}
:root[data-theme="dark"] .theme-toggle .perilla { transform: translateX(22px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .perilla { transform: translateX(22px); }
}

/* ---------- botones: botón de máquina (placa de tinta con luz arriba) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.6rem; border-radius: 9px;
  border: 1px solid var(--btn-borde); cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out),
              border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out),
              transform 120ms var(--ease-out);
}
@media (max-width: 430px) {
  .btn { font-size: 0.9375rem; padding: 0.72rem 1.1rem; }
  .site-header .wrap { gap: 0.6rem; }
  .site-nav { gap: 0.6rem; }
}
.btn-solid {
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 0 rgba(38, 34, 26, 0.22);
}
.btn-solid:hover { background: var(--btn-hover); }
.btn-solid:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 rgba(38, 34, 26, 0);
}
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { font-size: 0.875rem; padding: 0.5rem 1.05rem; }

/* enlace secundario del hero: no es un segundo botón (nada de par sólido+fantasma) */
.link-calc {
  font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted);
  text-decoration: none; padding: 0.5rem 0.25rem;
  transition: color 150ms var(--ease-out);
}
.link-calc:hover { color: var(--accent); }

/* ---------- marco de figura: la hoja de especificaciones ---------- */
.fig-frame {
  border: 1.5px solid var(--fg);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.fig-rail {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 1rem;
  border-bottom: 1.5px solid var(--fg);
  font-family: var(--font-mono); font-size: 0.71875rem; letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--bg-dim);
  white-space: nowrap;
}
.fig-rail .fig-id { color: var(--fg); font-weight: 700; }
.fig-rail .fig-id .rojo { color: var(--accent); }
@media (max-width: 480px) {
  .fig-rail .fig-meta { display: none; }
}

/* la lámina: la máquina anotada */
.fig-lamina { position: relative; }
.fig-lamina img { width: 100%; height: auto; display: block; }

/* marcadores numerados (aria-hidden; la leyenda lleva el significado) */
.callout {
  position: absolute; z-index: 2;
  width: 24px; height: 24px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  background: var(--accent);
  color: #f7f1e2;
  border: 2px solid rgba(247, 241, 226, 0.92);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(20, 15, 8, 0.35);
}
@media (max-width: 720px) {
  .callout { display: none; }
}

/* leyenda al pie del marco */
.fig-leyenda {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem;
  padding: 0.6rem 1rem 0.65rem;
  border-top: 1.5px solid var(--fg);
  background: var(--bg-dim);
  font-family: var(--font-mono); font-size: 0.71875rem; letter-spacing: 0.02em;
  color: var(--fg);
}
.fig-leyenda .li { display: inline-flex; align-items: center; gap: 0.4rem; }
.fig-leyenda .n {
  width: 15px; height: 15px; flex: none;
  display: inline-grid; place-items: center;
  background: var(--accent); color: #f7f1e2;
  border-radius: 50%;
  font-size: 0.59375rem; font-weight: 700; line-height: 1;
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4.5rem, 9vw, 7.5rem); }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 4.25rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
}
.hero-h1 { display: block; }
.hero-h1 .h1-q {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.9rem;
  letter-spacing: 0;
}
.hero-h1 .display { display: block; }
.hero-copy .sub {
  margin-top: 1.5rem; max-width: 33rem;
  font-size: clamp(1.1rem, 1.7vw, 1.25rem); line-height: 1.62; color: var(--muted);
}
.hero-cta { margin-top: 2.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.hero-micro { margin-top: 1.1rem; color: var(--muted); }
.hero-fig { max-width: 460px; margin-inline: auto; width: 100%; }

/* ---------- material: instrumento (visor oscuro con ámbar) ---------- */
.machine-window {
  background: var(--machine-bg);
  color: var(--machine-fg);
  border: 1px solid #453b28;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(243, 236, 220, 0.08);
  overflow: hidden;
}
.machine-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--machine-line-soft);
  color: var(--machine-muted);
}
.machine-body { padding: 1.1rem 1.1rem 1.25rem; }

.sheet-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--machine-line-soft);
  font-size: 0.9375rem;
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row .label { color: var(--machine-muted); }
.sheet-row .value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sheet-row.is-result { font-size: 1.0625rem; }
.sheet-row.is-result .value { color: var(--machine-fg); font-weight: 700; }
.sheet-divider { border: 0; border-top: 1px solid var(--machine-line); margin: 0.6rem 0; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.45rem; }
.dot-ok { background: var(--ok); }

/* ---------- material: papel (tickets que imprime la máquina) ---------- */
.paper-sheet {
  background: var(--paper); color: var(--paper-ink);
  border: 1px solid var(--paper-line); border-radius: 10px;
  padding: 1.35rem 1.5rem 1.5rem;
}
.paper-sheet .sheet-row { border-bottom-color: #efe8d5; }
.paper-sheet .sheet-row .label { color: var(--paper-muted); }
.paper-sheet .sheet-row.is-result .value { color: var(--paper-ink); }

.ticket {
  background: var(--paper); color: var(--paper-ink);
  border: 1px solid var(--paper-line); border-top: 2px dashed #c3b989;
  border-radius: 3px 3px 10px 10px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 10px 22px -18px rgba(38, 30, 15, 0.5);
}
.ticket blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; font-weight: 500; }
.ticket .consecuencia { margin-top: 0.85rem; color: var(--paper-muted); font-size: 0.9375rem; }
.ticket .folio {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.02em;
  color: var(--paper-muted); margin-bottom: 0.7rem;
}

.problema-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.problema-cierre {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 700;
  max-width: 34rem;
}

/* ---------- método: la secuencia de operación ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem;
  padding: 1.75rem 0; border-top: 1px solid var(--hairline-soft);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--hairline-soft); }
/* el número del paso comparte geometría con los marcadores de la FIG. 1 */
.step-num {
  font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 700;
  color: #f7f1e2; background: var(--accent);
  border-radius: 50%;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--muted); max-width: 44rem; }

/* ---------- mini-calculadora: panel de esmalte teal ---------- */
.calc-panel {
  position: relative;
  background: var(--teal);
  color: var(--teal-tinta);
  border: 1.5px solid var(--fg);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  max-width: 640px;
}
/* tornillos cromados: el único ornamento, y solo aquí (los trae la máquina real) */
.calc-panel::before, .calc-panel::after {
  content: ""; position: absolute; top: 12px; width: 8px; height: 8px;
  border-radius: 50%; border: 1px solid rgba(38, 34, 26, 0.45);
  background: radial-gradient(circle at 35% 30%, #fdfdfb 0%, #cfcabb 55%, #7d7869 100%);
}
.calc-panel::before { left: 12px; }
.calc-panel::after { right: 12px; }
.calc-panel :focus-visible { outline-color: var(--fg); }

.calc-fields { display: grid; gap: 1.2rem; margin-top: 0.25rem; }
.field label { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.45rem; }
.field .hint {
  display: block; font-weight: 400; color: var(--teal-tinta-suave);
  font-size: 0.8125rem; margin-top: 0.2rem;
}
.field input {
  width: 100%; font: inherit; font-family: var(--font-mono); font-size: 1.0625rem;
  color: #26221a; background: #fffcf3;
  border: 1px solid rgba(38, 34, 26, 0.4); border-radius: 8px;
  padding: 0.7rem 0.9rem;
}
.calc-actions { margin-top: 1.4rem; }
/* dentro del panel teal el botón sigue siendo tinta sobre crema, en ambos temas */
.calc-panel .btn-solid { background: #26221a; color: #f7f1e2; border-color: #16130d; }
.calc-panel .btn-solid:hover { background: #38321f; }

/* el odómetro es el visor ámbar de la máquina */
.odometer {
  margin-top: 1.6rem;
  background: var(--machine-bg);
  border: 1px solid #453b28;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(243, 236, 220, 0.07);
  padding: 1.1rem 1.25rem 1.15rem;
}
.odometer .reading {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: clamp(2.1rem, 6vw, 3rem); font-weight: 700; line-height: 1.1;
  color: var(--ambar);
  text-shadow: 0 0 18px rgba(242, 169, 59, 0.32);
}
.odometer .caption { margin-top: 0.3rem; color: var(--machine-muted); font-size: 0.9375rem; }

.calc-ticket { margin-top: 1.5rem; max-width: 640px; }
.calc-ticket .h3 { margin-bottom: 0.5rem; }
.calc-ticket ul { margin: 0.5rem 0 1rem; padding-left: 1.1rem; color: var(--paper-muted); }
.calc-ticket li { margin: 0.2rem 0; }
.ticket .btn-solid { background: #26221a; color: #f7f1e2; border-color: #16130d; }
.ticket .btn-solid:hover { background: #38321f; }

/* dispensado del ticket */
@media (prefers-reduced-motion: no-preference) {
  .dispense {
    transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out),
                filter 300ms var(--ease-out);
  }
  .dispense.is-hidden { opacity: 0; transform: translateY(-10px); filter: blur(2px); }
}
.dispense.is-hidden { visibility: hidden; height: 0; overflow: hidden; margin: 0; padding: 0; border: 0; }

/* ---------- qué incluye: la lista de partes ---------- */
.manifest { border-top: 1px solid var(--hairline); counter-reset: parte; }
.manifest-row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.2rem 2rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--hairline-soft);
  counter-increment: parte;
}
@media (min-width: 720px) {
  .manifest-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
.manifest-row dt { font-weight: 700; display: flex; gap: 0.75rem; align-items: baseline; }
.manifest-row dt::before {
  content: counter(parte, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.71875rem; font-weight: 400;
  color: var(--muted);
}
.manifest-row dd { margin: 0; color: var(--muted); }
.spec-line { margin-top: 1.75rem; color: var(--muted); }

/* ---------- para quién: dos columnas tonales, sin borde ---------- */
.quien-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: stretch;
}
.quien-col { background: var(--bg-dim); border-radius: 12px; padding: 1.75rem; }
.band-dim .quien-col { background: var(--bg); }
.quien-col ul { margin: 0.9rem 0 0; padding-left: 1.15rem; }
.quien-col li { margin: 0.45rem 0; color: var(--muted); }
.quien-col li::marker { color: var(--fg); }

/* ---------- comparativa: tabla de especificaciones ---------- */
.compare-scroll { overflow-x: auto; }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.9375rem; }
.compare th, .compare td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--hairline-soft); }
.compare thead th { font-weight: 700; }
.compare thead th:first-child { width: 34%; }
.compare tbody th { font-weight: 600; color: var(--muted); }
.compare .col-us { background: var(--teal-wash); font-weight: 600; }
.compare .si { color: var(--fg); }
.compare .no { color: var(--muted); }

/* ---------- garantía: placa grabada ---------- */
.garantia-box { max-width: 46rem; }
.placa-sello {
  display: inline-block;
  background: var(--placa-bg);
  border: 1px solid var(--placa-borde);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 var(--placa-luz), 0 1px 0 rgba(38, 34, 26, 0.1);
  padding: 0.5rem 1.1rem;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-shadow: 0 1px 0 var(--placa-luz);
  margin-bottom: 1.4rem;
}
.garantia-box .promesa { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 600; line-height: 1.45; }
.garantia-box .metodo { margin-top: 1.25rem; color: var(--muted); }

/* ---------- precio: LA placa (una sola, con bisel cromado) ---------- */
.precio-panel {
  background: var(--placa-bg);
  color: var(--fg);
  border: 1px solid var(--placa-borde);
  border-radius: 14px;
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--placa-borde),
              inset 0 1px 0 var(--placa-luz), 0 2px 6px -4px rgba(38, 34, 26, 0.35);
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 560px;
}
.precio-panel .mono.muted { color: var(--muted); }
.precio-tag { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.75rem; }
.precio-antes {
  font-family: var(--font-mono); font-size: 1.25rem; color: var(--muted);
  text-decoration: line-through; text-decoration-thickness: 2px;
}
.precio-ahora {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 700; line-height: 1;
}
.precio-usd { color: var(--muted); font-size: 1rem; font-weight: 400; }
.precio-lista { list-style: none; margin: 1.6rem 0; padding: 0; }
.precio-lista li {
  padding: 0.55rem 0; border-top: 1px solid var(--hairline-soft);
  display: flex; gap: 0.75rem; align-items: baseline; font-size: 0.9375rem;
}
.precio-lista li::before { content: "→"; font-family: var(--font-mono); color: var(--muted); }
.precio-nota { margin-top: 1rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--hairline-soft); }
.faq details:last-child { border-bottom: 1px solid var(--hairline-soft); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-strong); }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.15rem; color: var(--muted);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 1.25rem; color: var(--muted); max-width: 40rem; }
.faq .faq-body a, .support-card a:not(.btn), .legal-page a:not(.btn) {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.faq .faq-body a:hover, .support-card a:not(.btn):hover, .legal-page a:not(.btn):hover {
  color: var(--accent-strong);
}

/* ---------- footer: el cuerpo teal de la máquina, con el emblema al pie ---------- */
.site-footer {
  background: var(--teal-piso);
  color: #e9f0ec;
  padding-block: 3.25rem 0;
  overflow: hidden;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: #cfdcd7; text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { color: #ffffff; }
.footer-legal { margin-top: 1.75rem; color: #c9d7d2; font-size: 0.8125rem; max-width: 52rem; line-height: 1.7; }
/* el emblema cromado, grande, pegado al borde inferior (sin hueco debajo) */
.footer-emblema {
  display: block;
  width: min(680px, 84vw);
  height: auto;
  margin: 2.75rem auto -1.5%;
}

/* ---------- reveals: visibles por defecto; JS solo agrega .is-pre si puede animar ---------- */
@media (prefers-reduced-motion: no-preference) {
  .will-reveal {
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  }
  .will-reveal.is-pre { opacity: 0; transform: translateY(14px); }
}

/* ---------- páginas de soporte ---------- */
.support-page { min-height: 70vh; display: grid; place-items: center; padding-block: 5rem; }
.support-card { max-width: 34rem; }
.support-card .h2 { margin-bottom: 1rem; }
.support-card p { color: var(--muted); margin-bottom: 1rem; }
.support-card p strong { color: var(--fg); }

.legal-page { padding-block: 4rem 6rem; }
.legal-page article { max-width: 44rem; }
.legal-page h2 { margin: 2.5rem 0 0.75rem; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page p strong { color: var(--fg); }
