/* ==========================================================================
   DISTRIMAX — Hoja de estilos del sitio público
   Sistema de diseño corporativo: azul profundo + naranja de marca.
   Contrastes verificados contra WCAG 2.1 AA (4.5:1 en texto, 3:1 en UI).
   ========================================================================== */

:root {
  /* Marca */
  --navy-900: #06182b;
  --navy-800: #0b2545;
  --navy-700: #123a63;
  --navy-100: #e8eef6;

  --orange: #f08020;          /* Sólo superficies y elementos decorativos */
  --orange-ink: #a4470a;      /* 5.4:1 sobre blanco — apto para texto */
  --red: #e63329;             /* Rojo de marca: 4.3:1, sólo superficies grandes */
  --red-ink: #d92d24;         /* 4.8:1 sobre blanco — apto para texto y botones */
  --blue: #2e5ca6;

  /* Canales */
  --ml-bg: #ffe600;
  --ml-ink: #2d3277;          /* Combinación oficial de MercadoLibre */
  --wa-bg: #0f7c6c;           /* 4.9:1 con texto blanco */
  --wa-bg-hover: #0b6154;

  /* Neutros */
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #526179;           /* 7.0:1 sobre blanco */
  --line: #dbe3ec;
  --line-soft: #edf1f6;
  --surface: #ffffff;
  --bg: #f6f8fb;

  --ok-bg: #e7f6ed;
  --ok-ink: #14532d;
  --err-bg: #fdecec;
  --err-ink: #991b1b;

  /* Escala de espaciado (base 4px) */
  --s1: .25rem;  --s2: .5rem;   --s3: .75rem;  --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;   --s9: 6rem;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 3px rgba(11, 37, 69, .08);
  --shadow-md: 0 4px 12px rgba(11, 37, 69, .08), 0 2px 4px rgba(11, 37, 69, .04);
  --shadow-lg: 0 12px 32px rgba(11, 37, 69, .12);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------- Fuentes --- */
/* Autoalojada (SIL Open Font License), subset latino: cubre todos los signos del
   castellano. No se le pide nada a Google: ni una petición a terceros.
   Es la única webfont del sitio y se usa sólo en titulares. La bajada del hero
   va con la monoespaciada del sistema: medido, traer JetBrains Mono para una
   línea de 80 caracteres costaba 22 KB, 0,2 s de FCP y 0,3 s de LCP. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--line-soft); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--s3); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 var(--s4); }

a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

ul, ol { margin: 0 0 var(--s4); padding-left: 1.2rem; }

/* Foco visible y consistente en todo el sitio: requisito 2.4.7 de WCAG. */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: var(--s3) var(--s5);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

/* --------------------------------------------------------------- Botones -- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-ink: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: .75rem 1.25rem;
  min-height: 44px;                       /* objetivo táctil accesible */
  background: var(--btn-bg); color: var(--btn-ink);
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; text-align: center; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { color: var(--btn-ink); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { --btn-bg: var(--navy-800); }
.btn-primary:hover { --btn-bg: var(--navy-700); }

.btn-ml { --btn-bg: var(--ml-bg); --btn-ink: var(--ml-ink); }
.btn-ml:hover { --btn-bg: #ffd400; }

.btn-wa { --btn-bg: var(--wa-bg); }
.btn-wa:hover { --btn-bg: var(--wa-bg-hover); }

.btn-ghost {
  --btn-bg: transparent; --btn-ink: var(--navy-800);
  border-color: var(--line);
}
.btn-ghost:hover { --btn-bg: var(--navy-100); }

.btn-ghost-light {
  --btn-bg: transparent; --btn-ink: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, .12); }

.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem .85rem; font-size: .9rem; min-height: 40px; }
.btn-block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 600; color: var(--navy-700); text-decoration: none;
  border-bottom: 2px solid var(--orange); padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- Header -- */
.topbar {
  background: var(--navy-900); color: #cfd9e6;
  font-size: .82rem;
}
.topbar-inner {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  justify-content: space-between; align-items: center;
  padding: .45rem 0;
}
.topbar p { margin: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) 0;
}

.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: inherit; }
.brand-mark { width: 74px; height: 24px; flex: none; }
.brand-text strong { display: block; font-size: 1.1rem; letter-spacing: -.02em; color: var(--navy-800); }
.brand-text strong b { color: var(--orange-ink); }
.brand-text small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .01em; }

.nav { grid-column: 1 / -1; order: 3; border-top: 1px solid var(--line-soft); }
.nav-list {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  list-style: none; margin: 0; padding: var(--s3) 0 0;
}
.nav-list a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: var(--s1) 0; border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--navy-800); border-bottom-color: var(--orange); }
.nav-list a[aria-current="page"] { color: var(--navy-800); border-bottom-color: var(--orange); font-weight: 600; }

.header-cta { white-space: nowrap; }

/* --------------------------------------------------------------- Buscador - */
.search { position: relative; display: flex; }
.search input[type="search"] {
  width: 100%; padding: .7rem 3rem .7rem 1rem;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--bg);
  min-height: 44px;
}
.search input[type="search"]:focus { background: var(--surface); border-color: var(--navy-700); }
.search-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; border: 0; border-radius: 6px; cursor: pointer;
}
.search-btn svg { width: 18px; height: 18px; }
.search-btn:hover { background: var(--navy-700); }

.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 120;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: min(70vh, 460px); overflow-y: auto; padding: var(--s2);
}
.search-results[hidden] { display: none; }
.search-item {
  display: flex; gap: var(--s3); align-items: center;
  padding: var(--s2); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
}
.search-item:hover, .search-item:focus, .search-item[aria-selected="true"] { background: var(--navy-100); }
.search-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.search-item-name { font-weight: 600; font-size: .93rem; line-height: 1.3; }
.search-item-meta { font-size: .8rem; color: var(--muted); }
.search-item-price { margin-left: auto; font-weight: 700; color: var(--navy-800); white-space: nowrap; }
.search-empty { padding: var(--s4); text-align: center; color: var(--muted); font-size: .9rem; }

/* ----------------------------------------------------------- Menú móvil --- */
.burger {
  display: none; width: 44px; height: 44px;
  background: transparent; border: 2px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; padding: 0; place-items: center; gap: 4px;
}
.burger-bar { display: block; width: 20px; height: 2px; background: var(--navy-800); }

.mobile-menu { display: none; border-top: 1px solid var(--line); padding: var(--s4) 0 var(--s5); }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.mobile-menu li + li { border-top: 1px solid var(--line-soft); }
.mobile-menu a { display: block; padding: var(--s3) var(--s4); text-decoration: none; color: var(--ink); font-weight: 500; }
.mobile-menu-ctas { display: grid; gap: var(--s2); padding: 0 var(--s4); }

/* ---------------------------------------------------------------- Splash -- */
/* Cortina de carga de la portada. Se va sola con una animación CSS: no depende
   de JavaScript, así que nunca puede quedar tapando el sitio. */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: var(--s5);
  background: var(--surface);
  /* Corta a propósito: la cortina retrasa el LCP tanto como dure, porque tapa
     el <h1>. 0,55 s de espera + 0,35 s de salida se lee como marca sin costar
     medio segundo de métrica. */
  animation: splash-out .35s var(--ease-out) .55s forwards;
}
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }

.splash-mark {
  display: flex; align-items: center; gap: var(--s3);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2rem); letter-spacing: -.02em;
}
.splash-mark svg { height: 1.55em; width: auto; }
.splash-mark b { color: var(--red-ink); font-weight: 700; }
.splash-bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.splash-bar span {
  display: block; height: 100%; width: 40%; border-radius: 2px;
  background: linear-gradient(90deg, var(--red-ink), var(--orange));
  animation: splash-load 1.2s var(--ease-out) infinite;
}
@keyframes splash-load { from { transform: translateX(-120%); } to { transform: translateX(360%); } }

/* Sin animaciones no tiene sentido mostrar una cortina que no se mueve. */
@media (prefers-reduced-motion: reduce) { .splash { display: none; } }

/* ------------------------------------------------------------------ Hero -- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: min(76svh, 720px);
  padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
  background: var(--surface); color: var(--ink);
}

/* Capas decorativas. Las tres son puramente ornamentales y van detrás del
   contenido con z-index negativo, así nunca interceptan un clic. */
.hero-glow {
  position: absolute; inset: -20%; z-index: -3; pointer-events: none;
  background:
    radial-gradient(circle 600px at var(--mx, 35%) var(--my, 30%), var(--red) 0%, transparent 55%),
    radial-gradient(circle 700px at calc(var(--mx, 70%) + 12%) calc(var(--my, 60%) + 5%), var(--blue) 0%, transparent 50%),
    radial-gradient(circle 500px at 80% 20%, var(--orange) 0%, transparent 45%),
    radial-gradient(circle 480px at 20% 85%, #f5a623 0%, transparent 42%);
  filter: blur(80px) saturate(125%);
  opacity: .2;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero-circuit {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; opacity: .3;
}
.hero-circuit path { fill: none; stroke: var(--blue); stroke-width: 1.4; opacity: .35; stroke-dasharray: 6 10; }
.hero-circuit circle { fill: var(--blue); animation: node-pulse 3s var(--ease-out) infinite; }
.hero-circuit circle:nth-child(2n) { fill: var(--orange); animation-delay: .8s; }
.hero-circuit circle:nth-child(3n) { animation-delay: 1.5s; }
@keyframes node-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.hero-kicker {
  display: flex; align-items: center; margin: 0 0 var(--s5);
  font-family: var(--font-mono); font-weight: 500;
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--red-ink);
}
/* Las barritas del principio: dibujadas con CSS para no depender de un glifo
   que el subset de la fuente no incluye. */
.hero-kicker::before {
  content: ""; flex: none; width: .9em; height: .62em; margin-right: .6em;
  background: linear-gradient(var(--red-ink) 2px, transparent 2px) 0 0 / 100% 4px repeat;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 6.4rem); line-height: .98; letter-spacing: -.03em;
  text-wrap: balance; max-width: 16ch; margin: 0; color: var(--ink);
}
/* Todas las paradas del degradado superan 3:1 sobre blanco (texto grande). */
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--red-ink), var(--blue) 55%, var(--orange-ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: var(--s5) 0 0; max-width: 46ch;
  font-size: clamp(1rem, .95rem + .4vw, 1.2rem); color: var(--ink-soft);
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { margin: var(--s6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s4); }
.hero .btn { border-radius: 999px; font-family: var(--font-display); }
.btn-red { --btn-bg: var(--red-ink); }
.btn-red:hover { --btn-bg: #c0261e; }
.hero-note {
  margin: var(--s5) 0 0; font-size: .9rem; color: var(--muted);
  display: flex; gap: var(--s2); align-items: center;
}

.hero-stats {
  margin: var(--s7) 0 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.hero-stats > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem; max-width: 170px; }
.hero-stats dt { flex-basis: 100%; order: 2; font-size: .82rem; color: var(--muted); }
.hero-stats dd {
  order: 1; margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.02em; color: var(--ink);
}
.hero-stats .unit { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--red-ink); }

/* ------------------------------------------------- Dos formas de comprar -- */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s6);
  box-shadow: var(--shadow-md);
}
.hero-panel-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-ink); margin-top: 0; }
.channel-list { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s5); }
.channel-list li { border-left: 3px solid var(--orange); padding-left: var(--s4); }
.channel-list h3 { color: var(--navy-800); margin-bottom: var(--s2); font-size: 1.05rem; }
.channel-list p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

@media (min-width: 900px) {
  .channel-list { grid-template-columns: 1fr 1fr; }
}

.channel-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .55rem; border-radius: 999px; margin-bottom: var(--s2);
}
.channel-tag-ml { background: var(--ml-bg); color: var(--ml-ink); }
.channel-tag-wa { background: var(--wa-bg); color: #fff; }

/* -------------------------------------------------------------- Secciones - */
.section { padding: clamp(2.5rem, 1.8rem + 3vw, 4.5rem) 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--navy-800); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #c7d5e5; }

.section-head {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  align-items: end; justify-content: space-between;
  margin-bottom: var(--s6);
}
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-eyebrow {
  margin: 0 0 var(--s2); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--orange-ink);
}
.section-dark .section-eyebrow { color: #ffc48a; }
.section-title { margin: 0; }

.grid { display: grid; gap: var(--s4); }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* Tarjetas anchas: con 6 categorías da 3+3 en escritorio y 2+2+2 en tablet,
   en vez de una fila de 4 y dos huérfanas. */
.grid-categories { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); list-style: none; padding: 0; }
.grid-benefits { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); list-style: none; padding: 0; }

/* ------------------------------------------------------- Tarjeta producto - */
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #c6d3e2; }

.card-media { position: relative; display: block; aspect-ratio: 1; background: var(--line-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute; top: var(--s3); left: var(--s3);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .25rem .6rem; border-radius: 999px;
}
.badge-featured { background: var(--orange); color: #3a1c00; }
.badge-nostock { background: #475569; color: #fff; top: auto; bottom: var(--s3); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s4); gap: var(--s2); }
.card-eyebrow { margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.card-title { margin: 0; font-size: 1rem; line-height: 1.35; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--navy-700); text-decoration: underline; }

.card-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.card-specs li {
  font-size: .78rem; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line-soft);
  padding: .15rem .5rem; border-radius: 999px;
}

.card-price { margin: auto 0 0; padding-top: var(--s2); }
.price { font-size: 1.25rem; font-weight: 700; color: var(--navy-800); }
.price-lg { font-size: 2rem; }
.price-ask { font-size: 1.05rem; color: var(--muted); }
.price-unit { font-size: .85rem; color: var(--muted); }

.card-actions { display: grid; gap: var(--s2); }

/* ------------------------------------------------------ Tarjeta categoría - */
.cat-card {
  display: flex; flex-direction: column; gap: var(--s2); height: 100%;
  padding: var(--s5); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cat-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-icon { font-size: 1.8rem; line-height: 1; }
.cat-name { font-weight: 700; font-size: 1.05rem; color: var(--navy-800); }
.cat-count { font-size: .8rem; color: var(--orange-ink); font-weight: 600; }
.cat-desc { font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------- Beneficios - */
.benefit {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: var(--s5);
}
.section-alt .benefit { background: var(--surface); border-color: var(--line); }
.section-alt .benefit p { color: var(--ink-soft); }
.benefit-icon { font-size: 1.6rem; display: block; margin-bottom: var(--s3); }
.benefit h3 { font-size: 1.05rem; }
.benefit p { margin: 0; font-size: .93rem; }

/* --------------------------------------------------------------- Nosotros - */
.about-grid { display: grid; gap: var(--s7); align-items: start; }
.about-text { color: var(--ink-soft); }
.about-aside {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s5);
}
.about-aside h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.brands-title { margin-top: var(--s5); }

.data-list { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); margin: 0; font-size: .93rem; }
.data-list dt { font-weight: 600; color: var(--muted); }
.data-list dd { margin: 0; color: var(--ink); }

.brand-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.brand-chips a {
  display: inline-block; font-size: .82rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--navy-800);
}
.brand-chips a:hover { border-color: var(--orange); }

/* -------------------------------------------------------------------- FAQ - */
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: var(--s3); }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: var(--s4) var(--s5);
  font-weight: 600; font-size: 1.02rem; color: var(--navy-800);
  list-style: none; display: flex; justify-content: space-between; gap: var(--s4);
  min-height: 44px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--orange-ink); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--bg); }
.faq-answer { padding: 0 var(--s5) var(--s4); color: var(--ink-soft); }
.faq-answer p { margin: 0; }
.faq-more { margin: var(--s5) 0 0; text-align: center; }

.faq-page { display: grid; gap: var(--s6); padding: var(--s7) 0; }
.faq-aside {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s5); align-self: start;
  display: grid; gap: var(--s3);
}
.faq-aside h2 { font-size: 1.1rem; margin: 0; }
.faq-aside p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ------------------------------------------------- Texto de categoría (SEO) - */
.category-copy { border-top: 1px solid var(--line); padding: var(--s7) 0; }
.category-copy-inner { display: grid; gap: var(--s6); }
.category-copy-text { max-width: 72ch; }
.category-copy-text h2 { font-size: 1.35rem; margin: 0 0 var(--s4); }
.category-copy-text p { color: var(--ink-soft); margin: 0 0 var(--s4); }
.category-copy-faq h3 { font-size: 1.05rem; margin: 0 0 var(--s4); }
@media (min-width: 960px) {
  .category-copy-inner { grid-template-columns: 3fr 2fr; align-items: start; }
}

/* --------------------------------------------------------------- Contacto - */
.contact-grid { display: grid; gap: var(--s6); align-items: start; }
.contact-page { padding-bottom: var(--s8); }
.contact-points { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.contact-points li { padding-left: 1.75rem; position: relative; color: var(--ink-soft); }
.contact-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--wa-bg); font-weight: 700;
}
.contact-channels { display: grid; gap: var(--s4); margin-bottom: var(--s5); }
.channel-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s5);
}
.channel-card h2 { font-size: 1.1rem; }
.channel-card p { font-size: .93rem; color: var(--ink-soft); }
.contact-data { background: var(--bg); border-radius: var(--radius); padding: var(--s5); }
.contact-data h2 { font-size: 1.1rem; }

/* ------------------------------------------------------------ Formulario -- */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.form-context {
  background: var(--navy-100); border-radius: var(--radius-sm);
  padding: var(--s3) var(--s4); font-size: .93rem; margin-bottom: var(--s4);
}
.form-grid { display: grid; gap: var(--s4); }
.field { display: grid; gap: var(--s2); }
.field-full { grid-column: 1 / -1; }

label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: var(--err-ink); }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="number"], input[type="password"], input[type="url"], select, textarea {
  width: 100%; padding: .7rem .9rem; min-height: 44px;
  font: inherit; color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(18, 58, 99, .12);
  outline: none;
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err-ink); }

.field-hint { margin: 0; font-size: .84rem; color: var(--muted); }
.field-error { margin: 0; font-size: .86rem; color: var(--err-ink); font-weight: 600; }

/* Honeypot: fuera de la vista pero accesible para el DOM que leen los bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  align-items: center; justify-content: space-between; margin-top: var(--s5);
}
.form-legal { margin: 0; font-size: .82rem; color: var(--muted); max-width: 46ch; }

.alert { border-radius: var(--radius-sm); padding: var(--s4); margin-bottom: var(--s5); font-size: .95rem; }
.alert-success { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid #a7d8bb; }
.alert-error { background: var(--err-bg); color: var(--err-ink); border: 1px solid #f0b4b4; }
.alert ul { margin: var(--s2) 0 0; }
.alert a { color: inherit; }

/* ----------------------------------------------------------- Migas y head - */
.breadcrumbs { background: var(--bg); border-bottom: 1px solid var(--line); font-size: .86rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: var(--s3) 0; }
.breadcrumbs li { display: flex; gap: var(--s2); align-items: center; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-800); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.breadcrumbs .sep { color: #9aa8bb; }

.page-head { padding: var(--s7) 0 var(--s5); }
.page-intro { font-size: 1.05rem; color: var(--ink-soft); max-width: 68ch; }
.result-count { margin: 0; font-size: .9rem; color: var(--muted); font-weight: 600; }

/* --------------------------------------------------------------- Catálogo - */
.catalog-layout { display: grid; gap: var(--s6); padding-bottom: var(--s8); align-items: start; }

.filters {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s5);
}
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s4); }
.filters-head h2 { margin: 0; font-size: 1.1rem; }
.filters-clear { font-size: .85rem; font-weight: 600; color: var(--orange-ink); }
.filters-toggle { display: none; width: 100%; margin-bottom: var(--s4); }

.filters-form { display: grid; gap: var(--s5); }
.filter-group { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.filter-group legend, .filter-label {
  font-weight: 700; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); padding: 0; margin-bottom: var(--s1);
}
.filter-options { display: grid; gap: var(--s1); max-height: 260px; overflow-y: auto; }
.filter-option { display: flex; gap: var(--s2); align-items: center; font-weight: 400; font-size: .93rem; cursor: pointer; padding: .2rem 0; }
.filter-option input { width: 18px; height: 18px; min-height: 0; accent-color: var(--navy-800); flex: none; }
.filter-option em { color: var(--muted); font-style: normal; font-size: .85rem; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

.catalog-results { min-width: 0; }

.empty-state {
  text-align: center; padding: var(--s8) var(--s5);
  background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state h2 { font-size: 1.3rem; }
.empty-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }

/* ------------------------------------------------------------ Paginación -- */
.pagination { margin-top: var(--s6); display: grid; gap: var(--s3); justify-items: center; }
.pagination-summary { margin: 0; font-size: .88rem; color: var(--muted); }
.pagination ul { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--s3);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface);
}
.page-link:hover { border-color: var(--navy-700); color: var(--navy-800); }
.page-link.is-current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.page-link.is-disabled { color: #9aa8bb; background: var(--bg); cursor: not-allowed; }
.page-gap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); color: var(--muted); }

/* -------------------------------------------------------- Ficha producto -- */
.product-detail { display: grid; gap: var(--s6); padding: var(--s6) 0 var(--s8); align-items: start; }
.product-gallery { position: relative; }
.product-gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.stock-flag {
  margin: var(--s3) 0 0; font-size: .88rem; font-weight: 600;
  padding: var(--s2) var(--s3); border-radius: var(--radius-sm); text-align: center;
}
.stock-flag-in { background: var(--ok-bg); color: var(--ok-ink); }
.stock-flag-out { background: #fef3c7; color: #854d0e; }

.product-eyebrow { margin: 0 0 var(--s2); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.product-eyebrow a { color: var(--orange-ink); text-decoration: none; font-weight: 700; }
.product-title { margin-bottom: var(--s3); }
.product-lead { font-size: 1.08rem; color: var(--ink-soft); }
.product-price { margin: var(--s5) 0; padding: var(--s4) 0; border-block: 1px solid var(--line); }
.price-note { margin: var(--s2) 0 0; font-size: .84rem; color: var(--muted); }
.product-actions { display: grid; gap: var(--s3); margin-bottom: var(--s6); }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: var(--s6); font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; background: var(--bg); }

.product-description h2 { font-size: 1.2rem; }
.product-description p { color: var(--ink-soft); }

.product-help {
  background: var(--bg); border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s5);
}
.product-help h2 { font-size: 1.05rem; }
.product-help p { font-size: .93rem; color: var(--ink-soft); }

/* --------------------------------------------------------- Cómo comprar --- */
.how-grid { display: grid; gap: var(--s5); padding-bottom: var(--s7); }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6); }
.how-steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: var(--s4); margin-bottom: var(--s5); }
.how-steps li { counter-increment: step; padding-left: 3rem; position: relative; }
.how-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; border-radius: 50%; font-weight: 700; font-size: .9rem;
}
.how-steps h3 { font-size: 1rem; margin-bottom: var(--s1); }
.how-steps p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* ------------------------------------------------------------- Nosotros --- */
.about-page { display: grid; gap: var(--s6); padding-bottom: var(--s8); align-items: start; }
.about-body p { color: var(--ink-soft); }
.check-list { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.check-list li { padding-left: 1.75rem; position: relative; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--wa-bg); font-weight: 700; }
.about-side { background: var(--bg); border-radius: var(--radius); padding: var(--s5); display: grid; gap: var(--s4); }
.stat-block { text-align: center; }
.stat-num { margin: 0; font-size: 2.2rem; font-weight: 700; color: var(--navy-800); line-height: 1; }
.stat-label { margin: var(--s1) 0 0; font-size: .85rem; color: var(--muted); }
.side-links { list-style: none; padding: 0; display: grid; gap: var(--s2); margin: 0; }
.side-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.side-links a:hover { color: var(--navy-700); text-decoration: underline; }

/* --------------------------------------------------------------- Banda CTA */
.cta-band { background: var(--navy-800); color: #fff; padding: var(--s7) 0; }
.cta-band-inner { display: grid; gap: var(--s5); align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--s2); }
.cta-band p { color: #c7d5e5; margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* --------------------------------------------------------------- Footer --- */
.site-footer { background: var(--navy-900); color: #b9c9dc; padding: var(--s7) 0 var(--s5); }
.footer-grid { display: grid; gap: var(--s6); }
.footer-brand .brand-mark { width: 92px; height: 30px; margin-bottom: var(--s4); }
.footer-tagline { font-size: .92rem; max-width: 40ch; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: var(--s3); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--s2); margin: 0; }
.site-footer a { color: #cfdcea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* Los botones conservan su propio color: el gris del pie no llega a 4.5:1 sobre el verde */
.site-footer .btn, .site-footer .btn:hover { color: var(--btn-ink); text-decoration: none; }
.footer-social { list-style: none; padding: 0; display: flex; gap: var(--s4); margin: var(--s4) 0 0; }
.footer-contact { font-style: normal; font-size: .92rem; margin-bottom: var(--s4); }
.footer-contact p { margin: 0 0 var(--s2); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: var(--s6); padding-top: var(--s4);
  display: grid; gap: var(--s2); font-size: .82rem; color: #94a7bd;
}
.footer-bottom p { margin: 0; }
.footer-legal { max-width: 70ch; }
.footer-credit { grid-column: 1 / -1; padding-top: var(--s2); color: #7d90a6; }
.footer-credit a { color: #b8c6d6; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: #fff; }

/* ------------------------------------------------------- WhatsApp flotante */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: .8rem 1.1rem; min-height: 52px;
  background: var(--wa-bg); color: #fff;
  border-radius: 999px; box-shadow: var(--shadow-lg);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, background .15s ease;
}
.wa-float:hover { background: var(--wa-bg-hover); color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; flex: none; }

/* En escritorio arranca compacto y despliega la etiqueta al pasar el cursor o
   al recibir foco: un botón fijo con texto tapa permanentemente la esquina
   inferior derecha, justo donde caen los botones de la última tarjeta. */
.wa-float-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width .25s ease, opacity .2s ease, margin-left .25s ease;
}
.wa-float:hover .wa-float-text,
.wa-float:focus-visible .wa-float-text {
  max-width: 14rem;
  opacity: 1;
  margin-left: var(--s1);
}

/* ------------------------------------------------------------- Error page - */
.error-page { padding: var(--s9) 0; text-align: center; }
.error-code { font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 800; color: var(--navy-100); margin: 0; line-height: 1; }
.error-message { font-size: 1.05rem; color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }
.error-ref { font-size: .85rem; color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s5); }

/* =========================================================== Media queries */
@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto auto; }
  .search { grid-column: 1 / -1; order: 4; }
  .header-cta { display: none; }
  .nav { display: none; }
  .burger { display: grid; }
  .mobile-menu:not([hidden]) { display: block; }

  .filters-toggle { display: flex; }
  .filters-form { display: none; }
  .filters-form.is-open { display: grid; }

  .wa-float-text { display: none; }
  .wa-float { padding: .9rem; border-radius: 50%; }
}

@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .contact-channels { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: auto 1fr; align-items: center; }
}

@media (min-width: 901px) {
  .about-grid { grid-template-columns: 1.4fr .6fr; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; }
  .catalog-layout { grid-template-columns: 280px 1fr; }
  .product-detail { grid-template-columns: .95fr 1.05fr; }
  .faq-page { grid-template-columns: 1.6fr .4fr; }
  .about-page { grid-template-columns: 1.5fr .5fr; }
  .cta-band-inner { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr 1fr; }
  .mobile-menu { display: none !important; }
}

/* --------------------------------------------------------------- Impresión */
@media print {
  .topbar, .site-header, .site-footer, .wa-float, .cta-band, .filters, .card-actions { display: none !important; }
  body { color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
