/* =========================================================================
   BUJÍAS HESCHER — Sistema de diseño "Mostrador"
   -------------------------------------------------------------------------
   El calor se gasta en un solo lugar: la bujía de la foto y la palabra
   «mueve», que se precalientan una vez al cargar. Todo lo demás es interfaz
   de catálogo: neutra, clara u oscura según el sistema, con un único rojo
   que significa «se puede tocar». Decisiones y diagnóstico: REVISION-DISENO.md.

   Reglas del sistema
   - Rojo = acción. Nada que no se pueda tocar va en rojo.
   - El producto siempre sobre negro (fotos y placas técnicas); la interfaz
     sigue la apariencia del sistema.
   - Archivo (semiexpandida) sólo en titulares. La interfaz usa la fuente del
     sistema. Nada por debajo de 13 px ni en mayúsculas, salvo los códigos de
     producto y «BUJÍAS» dentro del logotipo.
   - Contraste calculado: ver la tabla al pie del archivo.
   ========================================================================= */

/* -------------------------------------------------------------- 1. Tokens */
:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-2: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --fill: rgba(118, 124, 135, .12);
  --fill-2: rgba(118, 124, 135, .2);
  /* Fondo de los botones secundarios: más leve que --fill para que el texto rojo
     pase 4,5:1 sobre cualquier superficie, también en hover. */
  --btn-fill: rgba(118, 124, 135, .1);
  --btn-fill-2: rgba(118, 124, 135, .16);
  --field: #f3f4f6;
  --seg-on: #ffffff;

  --label: #121418;
  --label-2: #565e6c;
  --label-3: #626a77;
  --separator: rgba(18, 20, 24, .12);
  --separator-2: rgba(18, 20, 24, .24);

  --accent: #c41e14;
  --accent-fill: #c41e14;
  --accent-fill-2: #a8170f;
  --on-accent: #ffffff;
  --focus: #2456e8;

  --success: #1a6b3c;
  --success-bg: #e9f7ef;
  --danger: #c41e14;
  --danger-bg: #fdecea;

  /* El calor: sólo en la foto del hero, la palabra «mueve» y los filamentos. */
  --glow: #ff8a3d;

  /* Tinta: hero y placas de producto. Oscuros en ambas apariencias. */
  --ink: #07080a;
  --on-ink: #f2f3f5;
  --on-ink-2: #a9b0bc;
  --on-ink-sep: rgba(255, 255, 255, .12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Escala: caption 13 · footnote 15 · body 17 · title3 20 · title2 24–30 · title1 32–48 · display 40–56 */
  --t-caption: .8125rem;
  --t-footnote: .9375rem;
  --t-body: 1.0625rem;
  --t-title3: 1.25rem;
  --t-title2: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
  --t-title1: clamp(2rem, 1.55rem + 1.8vw, 3rem);
  --t-display: clamp(2.5rem, 1.7rem + 2.4vw, 3.5rem);

  --gutter: clamp(1.25rem, .8rem + 1.6vw, 2rem);
  --maxw: 1180px;
  --section-y: clamp(4rem, 2.8rem + 5vw, 7rem);
  --r-control: 10px;
  --r-card: 18px;
  --r-plate: 24px;
  --header-h: 52px;

  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px -8px rgba(0, 0, 0, .22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --bg-2: #141619;
    --surface: #1a1d21;
    --surface-2: #202328;
    --fill: rgba(140, 147, 160, .18);
    --fill-2: rgba(140, 147, 160, .28);
    --btn-fill: rgba(140, 147, 160, .1);
    --btn-fill-2: rgba(140, 147, 160, .14);
    --field: #22262b;
    --seg-on: #3a3e45;

    --label: #f2f3f5;
    --label-2: #a3aab6;
    --label-3: #8c93a0;
    --separator: rgba(255, 255, 255, .12);
    --separator-2: rgba(255, 255, 255, .24);

    --accent: #ff6a5c;
    --accent-fill: #d42a1d;
    --accent-fill-2: #bd2015; /* el hover oscurece: aclararlo bajaría el blanco de 4,5:1 */
    --focus: #6e8eff;

    --success: #4cc27e;
    --success-bg: rgba(76, 194, 126, .12);
    --danger: #ff5c4d;
    --danger-bg: rgba(255, 92, 77, .12);

    --ink: #050607;
    --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 40px -8px rgba(0, 0, 0, .6);
  }
}

@media (prefers-contrast: more) {
  :root { --label-2: #3f4651; --label-3: #4a515d; --separator: rgba(18, 20, 24, .32); --fill: rgba(118, 124, 135, .22); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --label-2: #c9ced7; --label-3: #b4bac5; --separator: rgba(255, 255, 255, .32); }
}

/* ------------------------------------------------------------ 2. Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Los anclajes (#exportacion, #mercado-libre) no quedan tapados por la barra. */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--bg-2); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--focus) 28%, transparent); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  padding: .7rem 1.1rem; background: var(--label); color: var(--bg);
  font-weight: 600; border-radius: 0 0 var(--r-control) var(--r-control);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------------------------------------------------------- 3. Layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2.2rem + 3vw, 4.5rem); }
/* Fondo agrupado para alternar el ritmo de las secciones. */
.section--alt { background: var(--bg-2); }
.section--line, .section--alt + .section--alt { border-top: 1px solid var(--separator); }

.grid { display: grid; gap: clamp(1rem, .7rem + 1vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--tight { gap: .75rem; }
.actions-end { display: flex; align-items: center; justify-content: flex-end; }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; margin-inline: auto; }

/* ------------------------------------------------------ 4. Tipografía */
.eyebrow {
  display: block; margin: 0 0 .5rem;
  font-size: var(--t-footnote); font-weight: 600; letter-spacing: 0;
  color: var(--label-2);
}

.h-hero, .h-1, .h-2, .cta-band-title {
  font-family: var(--display); font-stretch: 112.5%; font-weight: 700;
  letter-spacing: -.02em; text-wrap: balance;
}
.h-hero { font-size: var(--t-display); line-height: 1.02; }
.h-1 { font-size: var(--t-title1); line-height: 1.06; }
.h-2 { font-size: var(--t-title2); line-height: 1.12; letter-spacing: -.015em; }
.h-3 { font-size: var(--t-title3); line-height: 1.25; }
.h-4 { font-size: var(--t-body); line-height: 1.3; }

.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.5; color: var(--label-2); }
.text-muted { color: var(--label-2); }
.hot { color: inherit; font-weight: 600; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: .02em; }

.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
.section-head.center { text-align: center; }
.section-head p:not(.eyebrow) { margin-top: .75rem; }
.section-head--row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; max-width: none;
}
.section-head--row > div { max-width: 62ch; }

/* --------------------------------------------------------- 5. Botones */
/* Sin modificador, .btn es el botón secundario (fondo gris leve, texto rojo). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.25rem;
  border: 0; border-radius: var(--r-control);
  background: var(--btn-fill); color: var(--accent);
  font-size: var(--t-body); font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { background: var(--btn-fill-2); }
.btn:active { opacity: .8; }
.btn svg { flex: none; }

.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-fill-2); }

.btn-dark { background: var(--label); color: var(--bg); }
.btn-dark:hover { background: var(--label); opacity: .88; }

.btn-sm { min-height: 36px; padding: .4rem .9rem; font-size: var(--t-footnote); }
.btn-lg { min-height: 52px; padding: .75rem 1.75rem; }
.btn-block { width: 100%; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: var(--t-body); font-weight: 500; color: var(--accent); text-decoration: none;
}
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-.04em); }
a.link-arrow:hover { text-decoration: underline; }

/* ------------------------------------------------------ 6. Encabezado */
.site-header { position: sticky; top: 0; z-index: 100; }

/* El material va en un pseudo-elemento: un backdrop-filter en .navbar
   convertiría a la barra en el bloque contenedor del menú móvil (position: fixed). */
.navbar { position: relative; border-bottom: 1px solid var(--separator); }
.navbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
@media (prefers-reduced-transparency: reduce) {
  .navbar::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.navbar-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--label); flex: none; margin-right: auto; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text em {
  font-style: normal; font-size: .625rem; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--label-2); margin: 0 0 .2rem .1em;
}
.brand-text strong { font-family: var(--display); font-stretch: 112.5%; font-size: 1.2rem; font-weight: 800; letter-spacing: .04em; }

.nav-list { display: flex; align-items: center; gap: .125rem; }
/* El CTA «Contacto» es un .btn: no hereda el estilo de enlace del menú. */
.nav-item > a:not(.btn) {
  display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .65rem;
  font-size: var(--t-footnote); font-weight: 500; color: var(--label-2);
  text-decoration: none; border-radius: 8px; white-space: nowrap;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-item > a:not(.btn):hover { color: var(--label); }
/* aria-current="page" en la página actual, "true" en Productos cuando se está en una ficha. */
.nav-item > a[aria-current]:not(.btn) { color: var(--label); font-weight: 600; }
.nav-item-cta { margin-left: .5rem; }
.nav-caret { transition: transform .2s var(--ease); }

.has-sub { position: relative; }
.nav-sub {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px);
  min-width: 360px; padding: .375rem; z-index: 30;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden;
  transition: opacity .16s var(--ease), transform .2s var(--ease-out), visibility .16s;
}
/* Puente invisible para que el menú no se cierre al cruzar el hueco con el puntero. */
.nav-sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav-sub a {
  display: grid; grid-template-columns: 2.75rem 1fr auto; align-items: center; gap: .75rem;
  min-height: 44px; padding: .35rem .6rem; border-radius: 10px; text-decoration: none;
}
.nav-sub a:hover, .nav-sub a[aria-current] { background: var(--fill); }
.nav-sub a[aria-current] .nav-sub-label { font-weight: 600; }
.nav-code {
  font-family: var(--mono); font-size: var(--t-caption); font-weight: 600;
  text-align: center; padding: .2rem 0; border-radius: 6px;
  background: var(--fill); color: var(--label);
}
.nav-sub-label { font-size: var(--t-footnote); font-weight: 500; color: var(--label); }
.nav-sub-tag { font-size: var(--t-caption); color: var(--label-2); }
.nav-sub-all { border-top: 1px solid var(--separator); margin-top: .375rem; padding-top: .375rem; }
.nav-sub-all a { display: flex; justify-content: center; font-size: var(--t-footnote); font-weight: 500; color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: .25rem; flex: none; }
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .6rem;
  background: none; border: 0; border-radius: var(--r-control);
  color: var(--label-2); font-size: var(--t-caption); font-weight: 600; letter-spacing: .02em;
}
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { background: var(--fill); color: var(--label); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; z-index: 40;
  background: var(--surface); border-radius: 14px; padding: .375rem; box-shadow: var(--shadow-pop);
}
.lang-menu a {
  display: flex; align-items: center; min-height: 40px; padding: 0 .75rem; border-radius: 10px;
  font-size: var(--t-footnote); text-decoration: none; color: var(--label);
}
.lang-menu a:hover { background: var(--fill); }
.lang-menu a[aria-current] { font-weight: 600; }
.lang-menu a[aria-current]::after { content: "✓"; margin-left: auto; color: var(--accent); }
@media (pointer: coarse) { .lang-toggle, .lang-menu a { min-height: 44px; } }

.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; border-radius: var(--r-control); color: var(--label);
}
.nav-toggle-bars { display: grid; gap: 6px; width: 18px; }
.nav-toggle-bars i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease-out); }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.nav-mobile-extra { display: none; }

@media (min-width: 66rem) {
  :root { --header-h: 56px; }
  .nav { margin-left: auto; }
  .brand { margin-right: 0; }
  /* Sólo en escritorio: en mobile el submenú se abre con el toque (.is-expanded). */
  .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-sub:hover .nav-caret, .has-sub:focus-within .nav-caret { transform: rotate(180deg); }
}

@media (max-width: 65.99rem) {
  .nav-toggle { display: grid; }
  /* Menú móvil: hoja a pantalla completa debajo de la barra, que queda visible con el botón de cierre. */
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 120;
    display: flex; flex-direction: column;
    padding: .5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .3s var(--ease-out), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--separator); }
  .nav-item > a:not(.btn) {
    display: flex; justify-content: space-between; min-height: 56px; padding: 0 .25rem; border-radius: 0;
    font-family: var(--display); font-stretch: 112.5%; font-size: 1.375rem; font-weight: 700; color: var(--label);
  }
  .nav-item > a[aria-current]:not(.btn) { color: var(--accent); }
  .nav-item-cta { border-bottom: 0; margin: 1.5rem 0 0; }
  .nav-item-cta .btn { width: 100%; min-height: 50px; font-size: var(--t-body); }

  .nav-sub {
    position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    box-shadow: none; padding: 0 0 .75rem; border-radius: 0; background: none; display: none;
  }
  .nav-sub::before { content: none; }
  .has-sub.is-expanded .nav-sub { display: block; }
  .has-sub.is-expanded .nav-caret { transform: rotate(180deg); }
  .nav-sub a { min-height: 48px; }

  .nav-mobile-extra {
    display: flex; flex-direction: column; gap: .25rem; margin-top: auto; padding-top: 2rem;
    font-size: var(--t-body); color: var(--label-2);
  }
  .nav-mobile-extra a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
}

/* ------------------------------------------------------------- 7. Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
}
.hero-photo { position: absolute; inset: 0; z-index: 0; display: block; }
/* Encuadre bajo: la punta incandescente es la firma, no puede quedar recortada. */
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 24% 74%; background: var(--ink); }

/* Velo: la copy vive sobre el negro de la derecha (contraste verificado en tools/make_hero.py). */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(5, 6, 7, .05) 0%, rgba(5, 6, 7, .3) 30%, rgba(5, 6, 7, .82) 47%, rgba(5, 6, 7, .94) 58%, var(--ink) 74%),
    linear-gradient(to top, rgba(5, 6, 7, .7) 0%, transparent 24%);
}
.hero-inner { position: relative; z-index: 2; display: grid; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-copy { max-width: 36rem; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .hero-line { display: block; }
.hero .fire { color: var(--glow); text-shadow: 0 0 28px rgba(255, 122, 24, .35); }
.hero-lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.5; color: var(--on-ink-2); max-width: 42ch; }
.hero-alt { margin-top: 1.25rem; font-size: var(--t-footnote); }
.hero-alt a { color: var(--on-ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.hero-alt a:hover { text-decoration-color: currentColor; }

@media (min-width: 62rem) {
  .hero { min-height: min(86vh, 820px); display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-copy { grid-column: 2; }
}
@media (max-width: 61.99rem) {
  .hero-photo { position: relative; height: min(58vw, 340px); }
  .hero-photo img { object-position: 30% 46%; }
  .hero::after {
    inset: 0 0 auto; height: min(58vw, 340px);
    background: linear-gradient(to top, var(--ink) 2%, rgba(5, 6, 7, .1) 55%, rgba(5, 6, 7, .4) 100%);
  }
  .hero-inner { padding-block: 0 clamp(2.5rem, 2rem + 3vw, 3.5rem); margin-top: -2rem; }
  .hero-copy { max-width: none; }
}

/* Franja de datos: una ficha técnica, no una lluvia de cifras. */
.spec-band { border-bottom: 1px solid var(--separator); }
.spec-strip { display: flex; flex-wrap: wrap; }
.spec-strip > div { flex: 1 1 10rem; padding: 1.1rem 0; border-top: 1px solid var(--separator); }
.spec-strip > div:nth-child(-n + 2) { border-top: 0; }
.spec-strip dt { font-size: var(--t-caption); color: var(--label-2); }
.spec-strip dd { font-size: var(--t-body); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 52rem) {
  .spec-strip { flex-wrap: nowrap; }
  .spec-strip > div { flex: 1; padding: 1.4rem 1.25rem; border-top: 0; border-left: 1px solid var(--separator); }
  .spec-strip > div:first-child { padding-left: 0; border-left: 0; }
}

/* -------------------------------------------------- 8. Buscador y campos */
.finder {
  background: var(--surface); color: var(--label);
  border-radius: 20px; box-shadow: 0 0 0 1px var(--separator), 0 12px 32px -18px rgba(0, 0, 0, .25);
  container-type: inline-size;
}
.finder--tinted { background: var(--bg-2); }
.finder--hero { margin-top: 1.75rem; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }

/* Pestañas como control segmentado. */
.finder-tabs {
  display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--fill);
  margin: clamp(1rem, .8rem + .8vw, 1.5rem) clamp(1rem, .8rem + .8vw, 1.5rem) 0;
}
.finder--hero .finder-tabs { margin: .75rem .75rem 0; }
.finder-tab {
  flex: 1 1 0; min-height: 36px; padding: .35rem .5rem; border: 0; border-radius: 9px;
  background: transparent; color: var(--label);
  font-size: var(--t-footnote); font-weight: 500; line-height: 1.2;
  transition: background-color .15s var(--ease);
}
.finder-tab:hover { background: var(--fill); }
.finder-tab[aria-selected="true"] { background: var(--seg-on); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .05); }
@media (pointer: coarse) { .finder-tab { min-height: 44px; } }

.finder-panel { padding: clamp(1rem, .8rem + .8vw, 1.5rem); }
.finder--hero .finder-panel { padding: 1rem 1rem 1.15rem; }
.finder-row { display: grid; gap: .75rem; grid-template-columns: 1fr; align-items: end; }
@container (min-width: 36rem) {
  .finder-row { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .finder-row--2 { grid-template-columns: 12rem minmax(0, 1fr) auto; }
}
@container (min-width: 27rem) {
  .finder--hero .finder-row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto; }
}

.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > label { font-size: var(--t-footnote); font-weight: 600; color: var(--label); }
.finder .field > label { font-size: var(--t-caption); color: var(--label-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem;
  background: var(--field); color: var(--label);
  border: 1px solid var(--separator); border-radius: var(--r-control);
  font-size: var(--t-body); line-height: 1.3;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--label-3); opacity: 1; }
.field select {
  appearance: none; padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a919e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background-color: var(--surface); border-color: var(--focus);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent);
}
.field input:disabled, .field select:disabled { opacity: .5; cursor: not-allowed; }
.field textarea { resize: vertical; min-height: 140px; }
.field-hint { font-size: var(--t-caption); color: var(--label-2); }
.field-error { font-size: var(--t-caption); font-weight: 600; color: var(--danger); }
.field-error::before { content: "⚠︎ "; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--danger); }

.finder-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--separator); }
.legend-chip { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--t-footnote); color: var(--label-2); }
.legend-chip b {
  font-family: var(--mono); font-size: var(--t-caption); font-weight: 600;
  padding: .15rem .45rem; border-radius: 6px; background: var(--fill); color: var(--label);
}
.finder-note, .notice {
  display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.25rem; padding: .85rem 1rem;
  background: var(--fill); border-radius: 12px; font-size: var(--t-footnote); color: var(--label);
}
/* Aviso de texto corrido (los <noscript> de formularios y buscador): sin flex, para que los enlaces fluyan. */
.notice { display: block; }
.finder-note svg { flex: none; margin-top: 1px; }

/* ---------------------------------------------------------- 9. Tarjetas */
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 0 0 1px var(--separator);
  transition: box-shadow .2s var(--ease);
}
.card:hover { box-shadow: 0 0 0 1px var(--separator-2), 0 10px 28px -16px rgba(0, 0, 0, .35); }
.card-title a:focus-visible, .post-body h3 a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible), .post-card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-title { font-size: var(--t-title3); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-text { color: var(--label-2); font-size: var(--t-footnote); line-height: 1.45; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.card-foot .link-arrow { font-size: var(--t-footnote); }

.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.card-media svg { width: 62%; height: auto; }

.card-code {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  font-family: var(--mono); font-size: var(--t-caption); font-weight: 600; letter-spacing: .04em; line-height: 1;
  padding: .35rem .5rem; border-radius: 6px; background: rgba(5, 6, 7, .74); color: #fff;
}
.card-badge {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  font-size: var(--t-caption); font-weight: 600; line-height: 1;
  padding: .35rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #121418;
}

.card--feature .card-title { font-size: var(--t-title2); font-family: var(--display); font-stretch: 112.5%; font-weight: 700; letter-spacing: -.015em; }
.card--feature .card-body { padding: 1.35rem 1.5rem 1.6rem; }
.card--feature .card-text { font-size: var(--t-body); }
.card--tinted { background: var(--fill); box-shadow: none; }
.card-media--wide { aspect-ratio: 16 / 7; }
.card-body--center { justify-content: center; }
.card--flat:hover { box-shadow: 0 0 0 1px var(--separator); }

/* Líneas de la home, agrupadas por combustible. */
.group-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem;
  margin: clamp(2.25rem, 1.8rem + 1.5vw, 3rem) 0 1rem; font-size: var(--t-title3);
}
.section-head + .group-title { margin-top: 0; }
.group-title span { font-size: var(--t-footnote); font-weight: 400; color: var(--label-2); }
.lines--diesel { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.lines--nafta { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.lines--nafta .card-title { font-size: var(--t-body); }

/* Beneficios: tarjeta neutra. La numeración sólo queda donde es una secuencia. */
.benefit {
  position: relative; height: 100%; padding: clamp(1.25rem, 1rem + .8vw, 1.6rem);
  background: var(--surface); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--separator);
}
.benefit-num { display: block; margin-bottom: .6rem; font-size: var(--t-caption); font-weight: 600; color: var(--label-2); font-variant-numeric: tabular-nums; }
.benefit h3 { font-size: var(--t-title3); margin-bottom: .4rem; }
.benefit p { color: var(--label-2); font-size: var(--t-footnote); }
/* Variante sobre tinta: redefine los tokens de texto, así tablas y párrafos internos se adaptan solos. */
.benefit--inverse {
  background: var(--ink); color: var(--on-ink); box-shadow: none;
  --label: var(--on-ink); --label-2: var(--on-ink-2); --separator: var(--on-ink-sep);
}

.icon-tile {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); box-shadow: 0 0 0 1px var(--separator); color: var(--label); margin-bottom: 1rem;
}
.icon-tile img { width: 28px; height: 28px; background: none; }

.feature-list { display: grid; gap: clamp(1.25rem, 1rem + .8vw, 1.75rem); align-content: start; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.feature-list .icon-tile { margin: 0; }
.feature-list h3 { font-size: var(--t-body); margin-bottom: .2rem; }
.feature-list p { color: var(--label-2); font-size: var(--t-footnote); }

/* Lista agrupada con filas tocables: canales de compra. */
.channel-list { background: var(--surface); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--separator); overflow: hidden; }
.channel-list li { position: relative; }
.channel-list li + li::before { content: ""; position: absolute; top: 0; left: 4.75rem; right: 0; border-top: 1px solid var(--separator); }
.channel {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 1rem;
  min-height: 76px; padding: 1rem 1.25rem; text-decoration: none;
  transition: background-color .15s var(--ease);
}
.channel:hover { background: var(--surface-2); }
.channel .icon-tile { margin: 0; background: var(--bg-2); box-shadow: none; }
.channel-text strong { display: block; font-size: var(--t-body); }
.channel-text > span { display: block; font-size: var(--t-footnote); color: var(--label-2); margin-top: .1rem; }
.channel-action { font-size: var(--t-footnote); font-weight: 500; color: var(--accent); white-space: nowrap; }
.channel-action:not(:has(span))::after { content: " ›"; }
@media (max-width: 40rem) {
  .channel { grid-template-columns: 44px 1fr; }
  .channel-action { grid-column: 2; }
}

/* ----------------------------------------------------- 10. Cifras */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px; background: var(--separator); border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 0 0 1px var(--separator);
}
.stat { background: var(--surface); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
/* `>` a propósito: «.stat span» alcanzaría también a un <span> dentro de la cifra y la dejaría en 15 px. */
.stat b { display: block; font-family: var(--display); font-stretch: 112.5%; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: .5rem; font-size: var(--t-footnote); color: var(--label-2); }

/* -------------------------------------------------------- 11. Línea de tiempo */
.timeline { position: relative; display: grid; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: var(--separator-2); }
.timeline li { position: relative; padding: 0 0 2rem 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--label-2);
}
.timeline .yr { display: block; font-family: var(--mono); font-size: var(--t-caption); font-weight: 600; color: var(--label-2); margin-bottom: .2rem; }
.timeline h3 { font-size: var(--t-title3); margin-bottom: .25rem; }
.timeline p { color: var(--label-2); font-size: var(--t-footnote); }

/* --------------------------------------------------- 12. Especificaciones */
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-footnote); }
.spec-table caption { text-align: left; font-weight: 600; margin-bottom: .75rem; color: var(--label-2); }
.spec-table th, .spec-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--separator); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 400; color: var(--label-2); }
.spec-table td { font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table--card { background: var(--surface); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--separator); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.checklist li { position: relative; padding-left: 2rem; }
.checklist li + li { margin-top: .9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--fill);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: calc(.2em + 6px); width: 8px; height: 4.5px;
  border-left: 2px solid var(--label); border-bottom: 2px solid var(--label);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------- 13. Acordeón */
.accordion { border-top: 1px solid var(--separator); }
.accordion details { border-bottom: 1px solid var(--separator); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 56px; padding: 1rem 0; cursor: pointer; list-style: none;
  font-size: var(--t-body); font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: var(--label-2); transition: transform .2s var(--ease);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.accordion details[open] summary::after { transform: rotate(180deg); }
.accordion .acc-body { padding-bottom: 1.25rem; color: var(--label-2); max-width: 72ch; }
.accordion .acc-body > * + * { margin-top: .8rem; }

/* ------------------------------------------------------ 14. Descargas */
.dl-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  min-height: 72px; padding: .9rem 1.15rem; background: var(--surface);
  border-radius: 14px; box-shadow: 0 0 0 1px var(--separator);
  text-decoration: none; transition: background-color .15s var(--ease);
}
.dl-item:hover { background: var(--surface-2); }
.dl-icon {
  width: 40px; height: 48px; border-radius: 6px; display: grid; place-items: center;
  background: var(--fill); color: var(--label); font-family: var(--mono); font-size: var(--t-caption); font-weight: 600;
}
.dl-icon--file { background: none; }
.dl-icon--file img { width: 40px; height: 40px; display: block; background: none; }
.dl-meta strong { display: block; font-size: var(--t-body); }
.dl-meta span { display: block; font-size: var(--t-caption); color: var(--label-2); margin-top: .15rem; }
.dl-arrow { color: var(--accent); font-weight: 600; font-size: 1.15rem; }

/* --------------------------------------------------------- 15. Resultados */
.results { margin-top: 1.5rem; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.results-count { font-size: var(--t-footnote); font-weight: 600; color: var(--label-2); }
.result-label { font-size: var(--t-caption); color: var(--label-2); }
.result-empty { padding: 2.5rem 1.5rem; text-align: center; border-radius: var(--r-card); background: var(--bg-2); color: var(--label-2); }

/* ------------------------------------------------------- 16. Franja CTA */
.cta-band { background: var(--bg); border-top: 1px solid var(--separator); padding-block: clamp(3rem, 2.2rem + 3vw, 4.5rem); }
.cta-band-inner { display: grid; gap: 1.5rem 2rem; align-items: center; }
@media (min-width: 52rem) { .cta-band-inner { grid-template-columns: 1fr auto; } }
.cta-band-title { font-size: var(--t-title2); line-height: 1.12; }
.cta-band-text { margin-top: .6rem; color: var(--label-2); max-width: 52ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --------------------------------------------------------- 17. Migas */
.breadcrumb { background: var(--bg-2); font-size: var(--t-caption); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-block: .9rem 0; color: var(--label-2); }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--label-3); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--label); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--label); font-weight: 500; }

/* ------------------------------------------------------ 18. Page header */
.page-hero { position: relative; background: var(--bg-2); color: var(--label); padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) clamp(3rem, 2.2rem + 3.5vw, 5rem); }
.page-hero--tall { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.page-hero-inner { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 58rem) { .page-hero-inner { grid-template-columns: 1.45fr .8fr; } }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 1rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Filas de ficha técnica: etiqueta a la izquierda, valor a la derecha (el valor va primero en el HTML). */
.page-hero-aside {
  display: flex; flex-direction: column; padding: .25rem 1.25rem;
  background: var(--surface); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--separator);
}
.hero-chip { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; margin: 0; }
.hero-chip + .hero-chip { border-top: 1px solid var(--separator); }
.hero-chip b { font-size: var(--t-body); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hero-chip span { font-size: var(--t-footnote); color: var(--label-2); }

/* -------------------------------------------------------- 19. Producto */
.product-hero { display: grid; gap: clamp(2rem, 1.2rem + 3.5vw, 4rem); align-items: center; }
@media (min-width: 58rem) { .product-hero { grid-template-columns: .95fr 1.05fr; } }
.product-visual {
  position: relative; border-radius: var(--r-plate); overflow: hidden; padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  background: radial-gradient(120% 100% at 30% 20%, #1c222d, var(--ink));
  box-shadow: inset 0 0 0 1px var(--on-ink-sep);
}
.product-visual svg { width: 100%; height: auto; }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px;
  background: var(--fill); font-size: var(--t-caption); font-weight: 500; color: var(--label);
}
.pill--hot { font-weight: 600; }

.split { display: grid; gap: clamp(2rem, 1.2rem + 3.5vw, 4.5rem); align-items: start; }
@media (min-width: 58rem) { .split { grid-template-columns: 1fr 1fr; } }
.split--center { align-items: center; }
.split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 57.99rem) { .split--sticky > :first-child { position: static; } }
.split-intro .lead { margin-top: .75rem; }

/* ------------------------------------------------------ 20. Distribuidores */
.dist-card {
  display: flex; flex-direction: column; gap: .85rem; height: 100%; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--surface); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--separator);
}
.dist-card h3 { font-size: var(--t-title3); }
.dist-card ul { color: var(--label-2); font-size: var(--t-footnote); }
.dist-card ul li { padding-left: 1.1rem; position: relative; }
.dist-card ul li + li { margin-top: .4rem; }
.dist-card ul li::before { content: "–"; position: absolute; left: 0; color: var(--label-3); }

.map-frame {
  border-radius: var(--r-card); overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--separator);
  aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--label-2);
}
.map-frame-title { font-size: var(--t-title3); font-weight: 600; color: var(--label); }

/* ------------------------------------------------------- 21. Novedades */
.post-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 0 0 1px var(--separator);
  transition: box-shadow .2s var(--ease);
}
.post-card:hover { box-shadow: 0 0 0 1px var(--separator-2), 0 10px 28px -16px rgba(0, 0, 0, .35); }
.post-media { aspect-ratio: 16 / 9; background: var(--ink); position: relative; overflow: hidden; }
.post-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-media--feature { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
.post-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--t-caption); color: var(--label-2); }
.post-meta .tag { color: var(--label); font-weight: 600; }
.post-meta .tag + span::before { content: "·"; margin-right: .5rem; color: var(--label-3); }
.post-body h3 { font-size: var(--t-body); line-height: 1.3; }
.post-body h3 a { text-decoration: none; }
.post-body h3 a::after { content: ""; position: absolute; inset: 0; }
.post-body p { color: var(--label-2); font-size: var(--t-footnote); flex: 1; }

/* ---------------------------------------------------------- 22. Formularios */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .field-full { grid-column: 1 / -1; } }
.form-note { font-size: var(--t-caption); color: var(--label-2); }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px; font-size: var(--t-footnote); font-weight: 500; }
.form-status[data-state="ok"] { background: var(--success-bg); color: var(--success); }
.form-status[data-state="ok"]::before { content: "✓ "; font-weight: 700; }
.form-status[data-state="error"] { background: var(--danger-bg); color: var(--danger); }
.form-status[data-state="error"]::before { content: "⚠︎ "; }

.contact-tile {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 1rem;
  min-height: 72px; padding: .9rem 1.15rem; border-radius: 14px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--separator);
  text-decoration: none; transition: background-color .15s var(--ease);
}
.contact-tile:hover { background: var(--surface-2); }
.contact-tile .icon-tile { margin: 0; background: var(--bg-2); box-shadow: none; }
.contact-tile strong { display: block; font-size: var(--t-body); }
.contact-tile strong + span { display: block; font-size: var(--t-footnote); color: var(--label-2); margin-top: .1rem; }

/* ------------------------------------------------------------ 23. Footer */
.site-footer { background: var(--bg-2); color: var(--label-2); padding-block: clamp(3rem, 2.4rem + 2.5vw, 4.5rem) 2rem; font-size: var(--t-footnote); }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-tagline { line-height: 1.5; max-width: 36ch; }
.footer-tagline strong { display: block; color: var(--label); font-size: var(--t-body); margin-bottom: .35rem; }
.footer-hash { margin-top: 1rem; font-family: var(--display); font-stretch: 112.5%; font-weight: 700; font-size: var(--t-title3); color: var(--label); }
.footer-title { font-size: var(--t-footnote); font-weight: 600; color: var(--label); margin-bottom: .75rem; }
.footer-col ul li + li { margin-top: .5rem; }
.footer-col a { color: var(--label-2); text-decoration: none; }
.footer-col a:hover { color: var(--label); text-decoration: underline; }
@media (pointer: coarse) {
  .footer-col ul:not(.social) a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-col ul:not(.social) li + li { margin-top: 0; }
}
.footer-address { margin-top: .85rem; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.social li + li { margin-top: 0 !important; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--fill); color: var(--label); transition: background-color .15s var(--ease);
}
.social a:hover { background: var(--fill-2); color: var(--label); }

.footer-certs { display: grid; gap: 1.25rem 2.5rem; align-items: center; margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--separator); }
@media (min-width: 58rem) { .footer-certs { grid-template-columns: auto 1fr; } }
.cert-chip { display: flex; flex-direction: column; gap: .1rem; padding: .85rem 1.1rem; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--separator); }
.cert-chip-label { font-size: var(--t-caption); color: var(--label-2); }
.cert-chip strong { color: var(--label); font-size: var(--t-body); }
.cert-chip-meta { font-size: var(--t-caption); color: var(--label-2); }
.cert-fairs-title { font-size: var(--t-caption); color: var(--label-2); margin-bottom: .4rem; }
.cert-fairs { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; color: var(--label); }
.cert-fairs li { display: flex; align-items: center; gap: .5rem; }

.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--separator); font-size: var(--t-caption);
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-legal a { color: var(--label-2); text-decoration: none; }
.footer-legal a:hover { color: var(--label); text-decoration: underline; }

/* --------------------------------------------------------- 24. WhatsApp */
/* #1fa855 en lugar de #25d366: el ícono blanco pasa de 1,98:1 a 3,09:1 (mínimo 3:1 para gráficos). */
.wa-float {
  position: fixed; z-index: 90;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #1fa855; color: #fff; box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .45);
}
.wa-float:hover { background: #1b964c; }
body.nav-open .wa-float { display: none; }

/* -------------------------------------------- 25. Precalentamiento (firma) */
/* Una sola vez, al cargar: la foto pasa de fría a incandescente y «mueve» toma
   temperatura junto con ella. Es lo que hace una bujía en los primeros segundos. */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: preheat-photo 2s var(--ease-out) .1s both; }
  .hero .fire { animation: preheat-word 2s var(--ease-out) .1s both; }
  .filament-live { animation: preheat-stroke 1.8s var(--ease-out) .3s both; }
}
@keyframes preheat-photo { from { filter: brightness(.4) saturate(0); } }
@keyframes preheat-word { from { color: var(--on-ink-2); text-shadow: 0 0 0 rgba(255, 122, 24, 0); } }
@keyframes preheat-stroke { from { stroke: #4d586b; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------ 26. Impresión */
@media print {
  .site-header, .wa-float, .cta-band, .breadcrumb { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .page-hero, .section--alt { background: #fff !important; color: #000 !important; }
  /* Lo que vive sobre tinta (hero, tarjetas inversas) toma sus colores de estos tokens. */
  :root { --on-ink: #000; --on-ink-2: #333; --on-ink-sep: rgba(0, 0, 0, .2); }
  .benefit--inverse { background: #fff !important; box-shadow: 0 0 0 1px #000; }
  .hero::after, .hero-photo { display: none; }
}

/* ------------------------------------------------------------ 27. Utilidades */
/* Ajustes puntuales de ritmo. Llevan !important porque reemplazan a estilos
   inline: tienen que ganarle a la regla del componente, como lo hacía el inline. */
.mt-xs { margin-top: .5rem !important; }
.mt-s { margin-top: 1rem !important; }
.mt-m { margin-top: 1.75rem !important; }
.mt-l { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem) !important; }
.mt-auto { margin-top: auto !important; }
.mb-xs { margin-bottom: .4rem !important; }
.mb-s { margin-bottom: 1rem !important; }
.mb-l { margin-bottom: 2rem !important; }
.pt-0 { padding-top: 0 !important; }
.self-center { align-self: center; }
.text-footnote { font-size: var(--t-footnote) !important; }
.text-caption { font-size: var(--t-caption) !important; }

/* -------------------------------------------------------------------------
   Contraste (WCAG 2.x, calculado sobre los hex de arriba; los rgba, compuestos
   sobre la superficie indicada). Peor caso de cada par.
   Claro   label-2 #565e6c / bg #fff ............... 6,54:1   / bg-2 #f3f4f6 ...... 5,94:1
           label-3 #626a77 / field #f3f4f6 ......... 4,96:1   (placeholders)
           accent #c41e14 / bg #fff ................ 5,93:1   / bg-2 .............. 5,39:1
           accent / btn-fill sobre bg-2 ............ 4,84:1   hover btn-fill-2 .... 4,52:1
           blanco / accent-fill #c41e14 ............ 5,93:1   hover #a8170f ....... 7,51:1
   Oscuro  label-2 #a3aab6 / bg #0b0c0e ............ 8,37:1   / surface ........... 7,23:1
           label-3 #8c93a0 / field #22262b ......... 4,92:1
           accent #ff6a5c / bg ..................... 6,96:1   / surface-2 ......... 5,60:1
           accent / btn-fill sobre surface-2 ....... 4,84:1   hover btn-fill-2 .... 4,52:1
           blanco / accent-fill #d42a1d ............ 5,06:1   hover #bd2015 ....... 6,21:1
   Tinta   on-ink-2 #a9b0bc / ink #07080a .......... 9,18:1   (#050607 en oscuro: 9,29:1)
           glow #ff8a3d / ink #07080a .............. 8,54:1   (#050607 en oscuro: 8,65:1)
   WhatsApp  blanco / #1fa855 (ícono, mínimo 3:1) .. 3,09:1
   ------------------------------------------------------------------------- */
