/* AHNSA — re-tematiza las páginas de producto con el lenguaje visual del home.
   Se carga DESPUÉS del <style> propio de cada página, así que gana sin tocar el HTML. */

:root {
  --ah-azul: #1878B9;
  --ah-azul-h: #0F4C7A;
  --ah-marino: #0A1E5E;
  --ah-dark1: #111110;
  --ah-light1: #FEFDF9;
  --ah-linea: #E3E9EF;
  --ah-gris: #5b6b7a;
}

/* ---------- ancho y ritmo del home ---------- */
.fam-wrap, .fam-main > section > div { max-width: 90rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .fam-wrap, .fam-main > section > div { padding: 0 1.5rem; } }
.fam-section { padding: 3rem 0; }

/* secciones alternadas como en el home (clara / oscura) */
.fam-section:nth-of-type(odd)  { background: var(--ah-light1); }
.fam-section:nth-of-type(even) { background: #fff; }

/* ---------- HERO: mismo tratamiento que la tarjeta oscura del home ---------- */
.fam-hero {
  background: var(--ah-dark1);
  background-image: radial-gradient(1100px 420px at 88% 12%, rgba(24,120,185,.30), transparent 62%);
  color: #fff;
  padding: 3rem 0 3.25rem;
}
.fam-hero .fam-wrap { max-width: 90rem; }
.fam-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .fam-hero-grid { grid-template-columns: 1fr; } }
.fam-hero h1 {
  font-family: inherit;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  font-weight: 600;
  color: #fff;
  margin: .5rem 0 .75rem;
  text-wrap: balance;
}
.fam-hero .fam-lead { color: #C9D6E4; font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
.fam-hero-img img { border-radius: .5rem; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.fam-breadcrumb, .fam-breadcrumb a { color: #7FC4EC; font-size: .8125rem; text-decoration: none; }
.fam-breadcrumb a:hover { text-decoration: underline; }
.fam-hero-stats { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem;
  color: #9FB4C8; font-size: .8125rem; }
.fam-hero-stats b { color: #fff; }

/* ---------- kickers y títulos como el home ---------- */
.fam-kick {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ah-azul); margin-bottom: .5rem;
}
.fam-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.15; font-weight: 600;
  color: var(--ah-dark1); margin: 0 0 .5rem; letter-spacing: -.01em; text-wrap: balance;
}
.fam-sub { color: var(--ah-gris); font-size: 1rem; line-height: 1.6; max-width: 72ch; margin: 0 0 1.5rem; }

/* ---------- tarjetas: idénticas en espíritu a las del home ---------- */
.fam-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); }
@media (min-width: 1024px) { .fam-grid { gap: 1.5rem; } }
.fam-card {
  background: #fff; border: 1px solid var(--ah-linea); border-radius: .75rem;
  padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.fam-card:hover {
  border-color: var(--ah-azul);
  box-shadow: 0 14px 34px rgba(10,30,94,.10);
  transform: translateY(-2px);
}
.fam-card h3 { font-size: 1.0625rem; font-weight: 600; color: var(--ah-dark1); margin: 0; line-height: 1.3; }
.fam-card p { color: var(--ah-gris); font-size: .875rem; line-height: 1.55; margin: 0; flex: 1; }
.fam-tlink { color: inherit; text-decoration: none; }
.fam-card:hover .fam-tlink { color: var(--ah-azul); }
.fam-link {
  color: var(--ah-azul); font-weight: 600; font-size: .875rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .25rem;
}
.fam-link:hover { color: var(--ah-azul-h); }
.fam-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8125rem; background: #F1F6FB; color: var(--ah-azul-h);
  padding: .0625rem .375rem; border-radius: .25rem;
}

/* ---------- chips de material ---------- */
.fam-chip {
  display: flex; gap: .75rem; align-items: flex-start; background: #fff;
  border: 1px solid var(--ah-linea); border-radius: .75rem; padding: 1rem 1.125rem;
  transition: border-color .18s ease, transform .18s ease;
}
/* 486 de estas fichas son <a> y la regla nunca fijaba color ni subrayado: en
   101 paginas salian con el AZUL POR DEFECTO DEL NAVEGADOR (#0000EE) y
   subrayadas. Medido el 2026-08-12. */
a.fam-chip { color: var(--ah-marino); text-decoration: none; }
a.fam-chip:hover { color: var(--ah-azul); }
a.fam-chip:focus-visible { outline: 2px solid var(--ah-azul); outline-offset: 2px; }
.fam-chip:hover { border-color: var(--ah-azul); transform: translateY(-2px); }
.fam-chip-letter {
  flex: none; width: 2rem; height: 2rem; border-radius: .5rem; display: grid; place-items: center;
  font-weight: 700; font-size: .875rem; color: #fff; background: var(--ah-marino);
}
.fam-chip-cta { color: var(--ah-azul); font-weight: 600; font-size: .8125rem; text-decoration: none; }

/* ---------- marcas ---------- */
.fam-brand {
  display: grid; place-items: center; background: #fff; border: 1px solid var(--ah-linea);
  border-radius: .75rem; padding: 1.25rem; min-height: 5.5rem;
  transition: border-color .18s ease, transform .18s ease;
}
.fam-brand:hover { border-color: var(--ah-azul); transform: translateY(-2px); }
.fam-brand img { max-height: 2.75rem; width: auto; filter: grayscale(1); opacity: .78;
  transition: filter .18s ease, opacity .18s ease; }
.fam-brand:hover img { filter: none; opacity: 1; }

/* ---------- FAQ ---------- */
.fam-faq { background: #fff; border: 1px solid var(--ah-linea); border-radius: .75rem;
  padding: 1rem 1.25rem; margin-bottom: .625rem; }
.fam-faq summary { cursor: pointer; font-weight: 600; color: var(--ah-dark1); font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.fam-faq summary::-webkit-details-marker { display: none; }
.fam-faq summary::after { content: "+"; color: var(--ah-azul); font-size: 1.25rem; font-weight: 400; }
.fam-faq[open] summary::after { content: "\2212"; }
.fam-faq-body { color: var(--ah-gris); font-size: .9375rem; line-height: 1.65; padding-top: .625rem; }

/* ---------- botones idénticos a los del home ---------- */
.fam-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .3125rem .9375rem; min-height: 2.25rem; border-radius: .375rem;
  font-family: inherit; font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.fam-btn-primary { background: var(--ah-azul); color: #fff; }
.fam-btn-primary:hover { background: var(--ah-azul-h); transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(24,120,185,.30); }
.fam-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.fam-btn-ghost:hover { background: rgba(255,255,255,.10); }
.fam-section .fam-btn-ghost { color: var(--ah-azul-h); border-color: #C9E2F3; }
.fam-section .fam-btn-ghost:hover { background: #F4F9FD; border-color: var(--ah-azul); }
.fam-hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* =========================================================================
   HÉROE CON FOTO: la imagen ES el héroe, no una miniatura al lado.
   ========================================================================= */
.fam-hero.fam-hero--foto {
  position: relative;
  /* OJO: nada de isolation:isolate aqui. Con el velo de dos gradientes encima,
     Chrome componia la capa como opaca y el heroe salia negro. Verificado a pixel. */
  min-height: clamp(26rem, 62vh, 40rem);
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
  /* sin z-index negativos: el fondo del heroe se apaga y la foto ocupa su lugar */
  background: #0A0E16;
  background-image: none;
}
.fam-hero--foto .fam-hero-bg { position: absolute; inset: 0; z-index: 0; }
.fam-hero--foto .fam-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: 0; box-shadow: none;
  display: block;
}
/* Doble velo: uno vertical para el texto de abajo y uno lateral para el lado izquierdo.
   Va como elemento REAL hermano de la foto, no como ::after: dentro de un grid con
   isolation el pseudo-elemento no compone sobre la imagen y el heroe salia negro. */
.fam-hero--foto .fam-hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(8,12,20,.94) 0%, rgba(8,12,20,.72) 26%, rgba(8,12,20,.22) 58%, rgba(8,12,20,0) 92%),
    linear-gradient(to right, rgba(8,12,20,.72) 0%, rgba(8,12,20,.28) 42%, rgba(8,12,20,0) 72%);
}
.fam-hero--foto .fam-wrap { position: relative; z-index: 2; width: 100%; padding-top: 4rem; padding-bottom: 3rem; }
.fam-hero--foto .fam-hero-grid { display: block; }
.fam-hero--foto .fam-hero-copy, .fam-hero--foto .fam-hero-grid > div:first-child { max-width: 44rem; }
.fam-hero--foto h1 { font-size: clamp(2.25rem, 5vw, 4rem); text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.fam-hero--foto p, .fam-hero--foto .fam-hero-sub, .fam-hero--foto .fam-lead {
  color: #E6EEF6; font-size: 1.0625rem; line-height: 1.6; max-width: 54ch;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.fam-hero--foto .fam-crumbs, .fam-hero--foto .fam-crumbs a,
.fam-hero--foto .fam-breadcrumb, .fam-hero--foto .fam-breadcrumb a { color: #A8D4F2; }
.fam-hero--foto .fam-kick { color: #7FC4F0; }
@media (max-width: 700px) {
  .fam-hero.fam-hero--foto { min-height: 30rem; }
  .fam-hero--foto .fam-hero-scrim {
    background: linear-gradient(to top, rgba(8,12,20,.96) 0%, rgba(8,12,20,.80) 40%, rgba(8,12,20,.35) 100%);
  }
}

/* =========================================================================
   TARJETAS DE TIPO CON FOTO
   ========================================================================= */
.fam-card { padding: 0; overflow: hidden; }
.fam-card > :not(.fam-card-foto) { margin-left: 1.25rem; margin-right: 1.25rem; }
.fam-card > :not(.fam-card-foto):first-child { margin-top: 1.25rem; }
.fam-card > :last-child { margin-bottom: 1.25rem; }
.fam-card-foto {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  object-fit: cover; background: #0d1420;
  margin: 0 0 1rem; border-bottom: 1px solid var(--ah-linea);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.fam-card:hover .fam-card-foto { transform: scale(1.045); }
.fam-card { will-change: transform; }

/* ---------- cierre de cotización: tarjeta oscura del home ---------- */
.fam-cta, .fam-section:last-of-type.fam-cta {
  background: var(--ah-dark1);
  background-image: radial-gradient(900px 380px at 50% 0%, rgba(24,120,185,.28), transparent 60%);
  color: #fff; text-align: center; padding: 3.5rem 0;
}
.fam-cta h2 { color: #fff; }
.fam-cta .fam-sub { color: #C9D6E4; margin-left: auto; margin-right: auto; }
.fam-cta .fam-hero-ctas { justify-content: center; }

/* =========================================================================
   PAGINAS DE MARCA
   ========================================================================= */
.fam-hero--foto .mk-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.mk-logo {
  display: block; height: auto; max-width: 9.5rem; margin: 0 0 1rem;
  background: #fff; padding: .5rem .75rem; border-radius: .5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.mk-tabla {
  width: 100%; border-collapse: collapse; margin-top: 1.5rem;
  font-size: .9375rem; background: #fff;
  border: 1px solid var(--ah-linea); border-radius: .75rem; overflow: hidden;
}
.mk-tabla caption {
  caption-side: top; text-align: left; padding: 0 0 .625rem;
  font-size: .8125rem; color: var(--ah-gris);
}
.mk-tabla th, .mk-tabla td { padding: .625rem .875rem; text-align: left; border-bottom: 1px solid var(--ah-linea); }
.mk-tabla thead th { background: #F4F9FD; color: var(--ah-azul-h); font-weight: 700; font-size: .8125rem;
  text-transform: uppercase; letter-spacing: .04em; }
.mk-tabla tbody tr:last-child td { border-bottom: 0; }
.mk-tabla .mk-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mk-tabla a { color: var(--ah-azul); text-decoration: none; }
.mk-tabla a:hover { text-decoration: underline; }

/* ---------- cotizar desde cualquier pagina (P0) ----------
   Ver js/ahnsa-cotiza.js. El boton por renglon lo inyecta el JS, asi que estas
   reglas describen algo que no existe en el HTML servido: es a proposito. */
.mk-tabla .cot-th { width: 1%; white-space: nowrap; text-align: right; }
.mk-tabla .cot-td { text-align: right; white-space: nowrap; }
.cot-fila {
  all: unset; cursor: pointer; display: inline-block; white-space: nowrap;
  border: 1px solid var(--ah-linea); border-radius: .4375rem;
  padding: .3125rem .625rem; font-size: .8125rem; font-weight: 700;
  color: var(--ah-azul); background: #fff;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cot-fila:hover { background: #F1F6FB; border-color: var(--ah-azul); }
.cot-fila:focus-visible { outline: 2px solid var(--ah-azul); outline-offset: 2px; }
.cot-fila.ok { color: #1E7A44; border-color: rgba(30,140,70,.55); background: #F2FAF5; }

/* CTA de la pagina: va horneado en el HTML porque el nombre del producto SI es
   contenido, y porque sin JS tiene que seguir habiendo forma de pedirlo. */
.cot-cta {
  margin-top: 1.75rem; padding: 1.25rem 1.375rem;
  background: #fff; border: 1px solid var(--ah-linea);
  border-left: 3px solid var(--ah-azul); border-radius: .75rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
}
.cot-cta-txt { flex: 1 1 16rem; min-width: 0; }
.cot-cta-t { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--ah-dark1); }
.cot-cta-d { margin: .1875rem 0 0; font-size: .875rem; color: var(--ah-gris); }
/* OJO con `white-space: nowrap` aqui: el rotulo de `.cot-wa` NO es fijo, lleva
   el NOMBRE del producto ("Cotizar cortador vertical de carburo de 14.29 mm
   (9/16")"). Medido el 2-sep a 390x844: ese rotulo pide 397 px dentro de un
   `.cot-cta` de 358 y, como no podia partirse, empujaba el DOCUMENTO a 438 px
   -> 39 paginas de /medidas con scroll horizontal en movil. `.cot-cta` ya es
   `flex-wrap: wrap`, asi que el boton cae solo en su renglon: dejandolo partir
   se ajusta al ancho disponible y en escritorio sigue en una sola linea porque
   ahi le sobra sitio. (`.cot-add` ya partia: su `all: unset` de mas abajo
   reponia `white-space: normal`.) */
.cot-wa, .cot-add {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .5rem; padding: .625rem 1.125rem; font-size: .875rem;
  font-weight: 700; text-decoration: none; max-width: 100%; text-align: center;
  transition: background .15s ease, border-color .15s ease;
}
.cot-wa { background: var(--ah-azul); color: #fff; border: 1px solid var(--ah-azul); }
.cot-wa:hover { background: var(--ah-azul-h); border-color: var(--ah-azul-h); text-decoration: none; }
.cot-add {
  all: unset; cursor: pointer; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ah-linea); border-radius: .5rem;
  padding: .625rem 1.125rem; font-size: .875rem; font-weight: 700;
  color: var(--ah-azul); background: #fff;
}
.cot-add:hover { background: #F1F6FB; border-color: var(--ah-azul); }
.cot-add:focus-visible { outline: 2px solid var(--ah-azul); outline-offset: 2px; }
.cot-add.ok { color: #1E7A44; border-color: rgba(30,140,70,.55); background: #F2FAF5; }

/* Aviso de confirmacion. Sube por encima de la barra fija de movil. */
.cot-aviso {
  position: fixed; left: 50%; bottom: 5.5rem; z-index: 1200;
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: .875rem;
  max-width: calc(100vw - 2rem);
  background: var(--ah-marino); color: #fff;
  padding: .75rem 1.125rem; border-radius: .625rem;
  box-shadow: 0 16px 40px rgba(10,30,94,.32);
  font-size: .875rem; font-weight: 600;
  transition: opacity .2s ease, transform .2s ease;
}
.cot-aviso.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cot-aviso a { color: #7FC4EC; text-decoration: none; font-weight: 700; white-space: nowrap; }
.cot-aviso a:hover { text-decoration: underline; }
@media (min-width: 1024px) { .cot-aviso { bottom: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .cot-aviso { transition: opacity .2s ease; } }

/* ---------- filtrar y ordenar la tabla (ver js/ahnsa-filtros.js) ----------
   La tabla era codigo/marca/descripcion sin filtro, sin orden y sin contador.
   En 200 renglones eso obliga a leer los 200. */
.flt-barra {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin: 1.25rem 0 .5rem;
}
.flt-buscar {
  flex: 1 1 20rem; min-width: 0; box-sizing: border-box;
  padding: .625rem .875rem; font-size: .9375rem; font-family: inherit;
  border: 1px solid var(--ah-linea); border-radius: .5rem; background: #fff;
  color: var(--ah-dark1);
}
.flt-buscar:focus { outline: none; border-color: var(--ah-azul);
  box-shadow: 0 0 0 3px rgba(24,120,185,.18); }
.flt-btn {
  all: unset; cursor: pointer; box-sizing: border-box; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .375rem;
  border: 1px solid var(--ah-linea); border-radius: .5rem;
  padding: .625rem 1rem; font-size: .875rem; font-weight: 700;
  color: var(--ah-azul-h); background: #fff;
}
.flt-btn::before { content: "≡"; font-size: 1rem; line-height: 1; }
.flt-btn:hover { background: #F1F6FB; border-color: var(--ah-azul); }
.flt-btn:focus-visible { outline: 2px solid var(--ah-azul); outline-offset: 2px; }
.flt-btn.on { background: var(--ah-azul); border-color: var(--ah-azul); color: #fff; }
.flt-cuenta { font-size: .875rem; color: var(--ah-gris); font-variant-numeric: tabular-nums; }
.flt-barra.on .flt-cuenta { color: var(--ah-azul-h); font-weight: 700; }
.flt-aviso {
  margin: .75rem 0 0; font-size: .875rem; color: var(--ah-gris);
  background: #F4F9FD; border-left: 3px solid var(--ah-azul);
  padding: .625rem .875rem; border-radius: .375rem;
}
.flt-aviso a { color: var(--ah-azul); font-weight: 700; text-decoration: none; }
.flt-aviso a:hover { text-decoration: underline; }

/* encabezados que ordenan */
.mk-tabla th.flt-orden { cursor: pointer; user-select: none; position: relative; }
.mk-tabla th.flt-orden::after { content: " ⇅"; opacity: .38; font-size: .75rem; }
.mk-tabla th.flt-orden:hover { background: #E9F2FA; }
.mk-tabla th.flt-orden[aria-sort="ascending"]::after { content: " ↑"; opacity: 1; }
.mk-tabla th.flt-orden[aria-sort="descending"]::after { content: " ↓"; opacity: 1; }
.mk-tabla th.flt-orden:focus-visible { outline: 2px solid var(--ah-azul); outline-offset: -2px; }

/* panel lateral */
/* z-index medido en el sitio: el nav es 1500 y la barra fija 9990. Con 1300
   el nav se dibujaba ENCIMA del panel y tapaba el titulo "Marca". */
.flt-panel { position: fixed; inset: 0; z-index: 9995; }
.flt-panel[hidden] { display: none; }
.flt-fondo { position: absolute; inset: 0; background: rgba(10,20,40,.55);
  backdrop-filter: blur(2px); animation: flt-fade .18s ease; }
.flt-caja {
  position: absolute; top: 0; right: 0; height: 100%; width: min(23rem, 92vw);
  background: var(--ah-marino); color: #fff; display: flex; flex-direction: column;
  box-shadow: -18px 0 50px rgba(0,0,0,.4); animation: flt-in .22s cubic-bezier(.4,.05,.2,1);
}
@keyframes flt-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes flt-in { from { transform: translateX(100%) } to { transform: none } }
.flt-cabeza { display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.flt-cabeza b { font-size: 1.0625rem; }
.flt-x { all: unset; cursor: pointer; font-size: 1.5rem; line-height: 1;
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; color: #C9D8EA; }
.flt-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.flt-grupo { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 1.5rem; }
.flt-titulo { margin: 0 0 .625rem; font-size: .75rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: #7FC4EC; }
.flt-op { display: flex; align-items: center; gap: .625rem; padding: .4375rem 0;
  cursor: pointer; font-size: .9375rem; }
.flt-op input { accent-color: var(--ah-azul); width: 1.0625rem; height: 1.0625rem;
  flex: none; cursor: pointer; }
.flt-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: #E4ECF4; }
.flt-n { color: #8fa1ae; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.flt-op:hover .flt-nombre { color: #fff; }
.flt-pie { display: flex; gap: .625rem; padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.14); }
.flt-limpiar, .flt-listo {
  all: unset; cursor: pointer; box-sizing: border-box; text-align: center;
  padding: .6875rem 1rem; border-radius: .5rem; font-size: .875rem; font-weight: 700;
}
.flt-limpiar { flex: 0 0 auto; color: #C9D8EA; border: 1px solid rgba(255,255,255,.28); }
.flt-limpiar:hover { background: rgba(255,255,255,.1); color: #fff; }
.flt-listo { flex: 1; background: var(--ah-azul); color: #fff; }
.flt-listo:hover { background: #2A8AD0; }
@media (prefers-reduced-motion: reduce) {
  .flt-caja, .flt-fondo { animation: none; }
}

/* ---------- "Como se lee un codigo <marca>" (ver tools/patch_nomenclatura.py)
   Es lo unico de la ficha de marca que ningun competidor publica, asi que se
   destaca en vez de quedar como un parrafo mas. */
.nom-caja {
  background: #fff; border: 1px solid var(--ah-linea);
  border-left: 3px solid var(--ah-azul); border-radius: .75rem;
  padding: 1.25rem 1.5rem; margin-top: 1rem; max-width: 62rem;
}
.nom-regla { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--ah-dark1); }
.nom-ej, .nom-trampa { margin: .875rem 0 0; font-size: .9375rem; line-height: 1.6;
  color: var(--ah-gris); }
.nom-trampa { padding-top: .875rem; border-top: 1px solid var(--ah-linea); }
.nom-trampa b { color: var(--ah-azul-h); }
.nom-caja code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875rem;
  background: #F1F6FB; color: var(--ah-azul-h); padding: .0625rem .375rem;
  border-radius: .25rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   Mosaico de tipos en /catalogo  (tools/gen_catalogo.py -> ficha_tipo)
   ──────────────────────────────────────────────────────────────────────────
   /catalogo es la pagina a la que se entra a COMPRAR, y hasta el 2026-08-12
   listaba los 54 tipos como enlaces de TEXTO, sin una sola imagen. Un catalogo
   industrial se navega mirando: si no ves la herramienta, no sabes si es la
   tuya. Referencia de forma: la rejilla de categorias de DigiKey -- foto,
   nombre y CUANTOS productos hay.
   ══════════════════════════════════════════════════════════════════════════ */
.ct-rejilla {
  display: grid; gap: .875rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  margin: 0 0 .5rem;
}
.ct-ficha {
  display: flex; flex-direction: column; gap: .375rem;
  background: #fff; border: 1px solid var(--ah-linea);
  border-radius: .75rem; padding: .5rem .5rem .75rem;
  color: var(--ah-marino); text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ct-ficha:hover {
  border-color: var(--ah-azul); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10,30,94,.10);
}
.ct-ficha:focus-visible { outline: 2px solid var(--ah-azul); outline-offset: 2px; }

.ct-foto {
  display: block; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: .5rem; background: #F3F5F8;
}
.ct-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Sin foto: mosaico tipografico, no un hueco gris */
.ct-foto--sin {
  display: grid; place-items: center;
  background: linear-gradient(140deg, #16233A, #0A1E5E);
}
.ct-foto--sin b {
  font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; color: #7FC4EC;
}

.ct-nom {
  font-size: .875rem; font-weight: 600; line-height: 1.25;
  padding: 0 .25rem;
}
.ct-n {
  font-size: .75rem; color: #5E6B7A; padding: 0 .25rem;
  font-variant-numeric: tabular-nums;
}
.ct-fam-n {
  font-size: .8125rem; font-weight: 600; color: #5E6B7A;
  font-variant-numeric: tabular-nums; margin-left: .5rem;
}
@media (max-width: 480px) {
  .ct-rejilla { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .625rem; }
}

/* ── Grados por designacion (tools/enriquece_grados.py) ─────────────────────
   El valor de una ficha de designacion no es repetir la geometria: es decir
   QUE GRADOS existen en ella. Amazon tiene un anuncio del CNMG 432; aqui esta
   el mapa completo. Los datos salen del catalogo extendido del fabricante. */
.gr-sec .gr-marca {
  background: #fff; border: 1px solid var(--ah-linea, #E3E9EF);
  border-radius: .75rem; padding: 1rem 1.125rem; margin-bottom: .75rem;
}
.gr-sec .gr-marca > b { font-size: 1rem; color: var(--ah-marino, #0A1E5E); }
.gr-sec .gr-n {
  margin-left: .5rem; font-size: .8125rem; color: #5E6B7A;
  font-variant-numeric: tabular-nums;
}
.gr-sec .gr-chips { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .625rem; }
.gr-sec .gr-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem; background: #F1F6FB; color: #0F4C7A;
  padding: .1875rem .5rem; border-radius: .25rem; border: 1px solid #DCE8F4;
}
.gr-sec .gr-pie { margin-top: 1rem; font-size: .875rem; }

/* ── Aviso de privacidad ───────────────────────────────────────────────────
   Texto legal que la gente SÍ debe poder leer: medida cómoda, jerarquía clara
   y nada de gris sobre gris. El contraste va a AA como en el resto del sitio. */
.pv-doc { max-width: 46rem; }
.pv-doc h2 { margin: 2rem 0 .5rem; font-size: 1.25rem; color: #0A1E5E; }
.pv-doc p, .pv-doc li { color: #2b3a47; line-height: 1.65; }
.pv-lista { margin: .5rem 0 1rem; padding-left: 1.25rem; }
.pv-lista li { margin-bottom: .5rem; }
.pv-nota { font-size: .9375rem; color: #4a5866; }
.pv-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .875em; background: #F1F6FB; color: #0F4C7A;
  padding: .0625rem .3125rem; border-radius: .25rem;
}
.pv-doc a { color: #0F4C7A; text-decoration: underline; }
.pv-ident {
  background: #F7F9FB; border-left: 3px solid #1878B9;
  padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; border-radius: 0 .5rem .5rem 0;
}
.pv-fecha { margin-top: 2rem; font-size: .875rem; color: #5b6b7a; }

/* --- /sistemas/sujecion-inserto (tools/gen_sujecion.py) -------------------
   Las cuatro fotos de pieza salen con width="768" height="768" y las clases
   `suj-*` NO tenian una sola regla en todo css/: sin CSS la imagen se pinta a
   su atributo, 768 px dentro de un padre de 358, y la pagina media 784 px de
   ancho en un movil de 390 -- el DOBLE del viewport (auditoria 2-sep). Basta
   con dejarla encoger; en escritorio conserva sus 768 px porque ahi caben. */
.suj-foto { max-width: 100%; height: auto; }
