/* ==========================================================================
   TERMOPAR S.R.L. — Catálogo web 2025/2026
   Colores corporativos (tarjeta 2025): gris pizarra #252f36 y amarillo #dbb52c;
   formas inclinadas, etiquetas en paralelogramo y tipografía geométrica.
   ========================================================================== */

/* ---------- Fuentes (auto-alojadas, OFL) ---------- */
@font-face { font-family: "Questrial"; src: url("../fonts/questrial-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --dark: #252f36;
  --dark-2: #1c2429;
  --dark-3: #131a1e;
  --gray: #6b7378;
  --gray-2: #a2a9ad;
  --light: #cfd3d6;
  --paper: #f2f3f4;
  --paper-2: #e6e9eb;
  --white: #fff;
  --accent: #dbb52c;
  --accent-d: #c49d1c;
  --accent-l: #ecd47a;
  --accent-ink: #735a00; /* texto dorado legible sobre fondos claros */
  --ink: #1f272c;
  --muted: #5d666b;
  --wa: #1f9d55;

  --f-body: "Century Gothic", "CenturyGothic", "Questrial", "AppleGothic", system-ui, sans-serif;
  --f-accent: "Jost", "Century Gothic", "Questrial", system-ui, sans-serif;

  --skew: -18deg;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(19, 26, 30, .08), 0 8px 24px rgba(19, 26, 30, .08);
  --shadow-lg: 0 18px 40px rgba(19, 26, 30, .18);
  --wrap: 1240px;
  --header-h: 108px;
  /* Margen lateral del contenido. Es una variable para que las piezas que
     necesitan alinearse con el contenedor (franja del eslogan, portada…)
     sigan el mismo valor en cada tamaño de pantalla. */
  --gutter: 20px;
  /* Alto real de la barra de categorías; la barra de filtro por tipo se
     pega justo debajo usando esta medida (antes era un 53 px fijo que se
     desalineaba al crecer los enlaces en pantallas táctiles). */
  --catnav-h: 53px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--dark-3); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
/* El max() respeta la zona segura de los móviles con muesca cuando se usan
   en horizontal: el texto nunca queda debajo del recorte de la pantalla. */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn { --bg: var(--dark); --fg: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.5em; color: var(--fg); font-family: var(--f-accent); font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 1.1; isolation: isolate; transition: transform .2s var(--ease), color .2s; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); transform: skewX(var(--skew)); border-radius: 2px; transition: background .2s, box-shadow .2s; }
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:hover::before { box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn--accent { --bg: var(--accent); --fg: var(--dark-3); }
.btn--accent:hover::before { background: var(--accent-d); }
.btn--dark:hover::before { background: var(--dark-3); }
.btn--light { --bg: #fff; --fg: var(--dark); }
.btn--wa { --bg: var(--wa); --fg: #fff; }
.btn--wa:hover::before { background: #17854a; }
.btn--ghost { --bg: transparent; --fg: var(--dark); }
.btn--ghost::before { border: 1.5px solid var(--light); }
.btn--sm { font-size: .85rem; padding: .62em 1.15em; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--f-accent); font-weight: 600; font-size: .92rem; color: var(--dark); }
.link-arrow .icon { transition: transform .2s var(--ease); color: var(--accent-ink); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--accent-l); }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark-3); color: #d6dadd; font-size: .8rem; }
.topbar__in { display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-height: 34px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item:first-child { margin-right: auto; }
.topbar__item .icon { width: 14px; height: 14px; color: var(--accent); }
.topbar a:hover { color: #fff; }
.topbar__wa { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--paper-2); }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: auto; height: 88px; }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list > li > a { display: block; padding: 10px 12px; font-size: .98rem; color: var(--dark); position: relative; white-space: nowrap; }
.nav__list > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--accent); transform: scaleX(0) skewX(var(--skew)); transform-origin: left; transition: transform .25s var(--ease); }
.nav__list > li > a:hover::after, .nav__list > li > a[aria-current="page"]::after { transform: scaleX(1) skewX(var(--skew)); }
.nav__list > li > a[aria-current="page"] { color: var(--ink); }
.nav__caret { display: grid; place-items: center; width: 24px; height: 32px; margin-left: -8px; color: var(--gray); }
.nav__caret .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav__has-mega:hover .nav__caret .icon, .nav__caret[aria-expanded="true"] .icon { transform: rotate(180deg); }

.mega { position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px); width: min(880px, 92vw); background: #fff; box-shadow: var(--shadow-lg); padding: 18px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.nav__has-mega:hover .mega, .nav__has-mega:focus-within .mega, .mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega__link { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); line-height: 1.25; }
.mega__link:hover { background: var(--paper); color: inherit; }
.mega__link strong { display: block; font-weight: 400; font-size: .95rem; color: var(--dark); }
.mega__link small { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.mega__icon { width: 26px; height: 26px; color: var(--accent-ink); margin-top: 2px; }

.header__tools { display: flex; align-items: center; gap: 12px; }
.search { position: relative; display: flex; align-items: center; }
.search input { width: 210px; height: 40px; padding: 0 40px 0 14px; background: var(--paper); border: 1.5px solid transparent; border-radius: 999px; transition: width .25s var(--ease), border-color .2s, background .2s; }
.search input:focus { outline: none; width: 260px; background: #fff; border-color: var(--accent); }
.search button { position: absolute; right: 4px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--dark); }
.search__results { position: absolute; top: calc(100% + 8px); right: 0; width: min(420px, 92vw); max-height: 70vh; max-height: 70dvh; overflow: auto; background: #fff; box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent); z-index: 60; }
.sr-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--paper-2); }
.sr-item img { width: 64px; height: 48px; object-fit: contain; background: var(--paper); }
.sr-item strong { display: block; font-weight: 400; color: var(--dark); line-height: 1.25; }
.sr-item small { color: var(--muted); font-size: .76rem; }
.sr-item mark { background: rgba(219,181,44,.35); color: inherit; }
.sr-item[aria-selected="true"], .sr-item:hover { background: var(--paper); color: inherit; }
.sr-all { display: block; padding: 10px 12px; font-family: var(--f-accent); font-weight: 600; font-size: .88rem; text-align: center; color: var(--accent-ink); }
.sr-none { padding: 14px; color: var(--muted); font-size: .9rem; }

.quote-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; color: #fff; font-family: var(--f-accent); font-weight: 600; font-size: .9rem; isolation: isolate; }
.quote-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dark); transform: skewX(var(--skew)); }
.quote-btn:hover { color: #fff; }
.quote-btn:hover::before { background: var(--dark-3); }
.quote-btn .icon { width: 18px; height: 18px; color: var(--accent); }
.quote-btn__count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--dark-3); font-size: .75rem; display: grid; place-items: center; }
.quote-btn__count.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span:first-child, .burger span:first-child::before, .burger span:first-child::after { position: absolute; left: 10px; width: 24px; height: 2.5px; background: var(--dark); transition: transform .25s var(--ease), opacity .2s; }
.burger span:first-child { top: 21px; }
.burger span:first-child::before, .burger span:first-child::after { content: ""; left: 0; }
.burger span:first-child::before { top: -8px; }
.burger span:first-child::after { top: 8px; }
.burger[aria-expanded="true"] span:first-child { background: transparent; }
.burger[aria-expanded="true"] span:first-child::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:first-child::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Títulos de sección ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--flush { padding-top: 36px; }
.section--tint { background: var(--paper); }
.section--dark { background: var(--dark); color: #fff; }
.shead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.shead__text { margin: 0; color: var(--muted); max-width: 420px; }
.stitle { position: relative; font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--dark); padding-bottom: 12px; }
.stitle span { color: var(--gray); }
.stitle::after { content: ""; position: absolute; left: 0; bottom: 0; width: 84px; height: 6px; background: var(--accent); transform: skewX(var(--skew)); transform-origin: left; }
.stitle--light { color: #fff; }
.stitle--light span { color: var(--accent-l); }

/* Etiqueta naranja (títulos de producto como en el catálogo) */
.tab { position: relative; display: inline-block; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--dark-3); padding: .28em 1.1em .3em .9em; isolation: isolate; line-height: 1.2; }
.tab::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-d); transform: skewX(var(--skew)); }
.tab a { color: inherit; }
.tab a:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tab--lg { font-size: clamp(1.45rem, 3vw, 2rem); }
.label { font-family: var(--f-accent); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); margin: 0 0 10px; }
.label--spaced { margin-top: 48px; }
.eyebrow { font-family: var(--f-accent); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }

/* Cabecera de página (barra oscura + subtítulo naranja) */
.phead { position: relative; background: var(--paper); overflow: hidden; padding: 26px 0 34px; }
.phead::before { content: ""; position: absolute; top: 0; bottom: 0; right: -6%; width: 42%; background: linear-gradient(90deg, var(--light), var(--paper-2)); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); opacity: .7; }
.phead::after { content: ""; position: absolute; top: 0; bottom: 0; right: 30%; width: 120px; background: repeating-linear-gradient(90deg, rgba(107,115,120,.12) 0 18px, transparent 18px 30px); transform: skewX(var(--skew)); }
.phead .wrap { position: relative; z-index: 1; }
.phead--right .ptitle { margin-left: auto; text-align: right; align-items: flex-end; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--gray-2); }
.crumbs a:hover { color: var(--accent-ink); }
.ptitle { display: flex; flex-direction: column; align-items: flex-start; width: fit-content; max-width: 100%; }
.ptitle__num { font-size: .95rem; color: #fff; background: var(--dark); padding: 2px 16px; margin-bottom: 8px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); position: relative; }
.ptitle__main { position: relative; color: #fff; font-size: clamp(1.7rem, 4.4vw, 2.9rem); padding: .2em 1.4em .22em .8em; isolation: isolate; }
.ptitle__main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dark); clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 100%, 0 100%); }
.phead--right .ptitle__main { padding: .2em .8em .22em 1.4em; }
.phead--right .ptitle__main::before { clip-path: polygon(.7em 0, 100% 0, 100% 100%, 0 100%); }
.ptitle__tag { position: relative; margin: 0; color: var(--dark-3); font-size: .95rem; padding: .15em 1.6em .15em 1em; align-self: flex-end; isolation: isolate; }
.phead--right .ptitle__tag { align-self: flex-start; padding: .15em 1em .15em 1.6em; }
.ptitle__tag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-d); clip-path: polygon(0 0, 100% 0, calc(100% - .6em) 100%, 0 100%); }
.phead--right .ptitle__tag::before { clip-path: polygon(.6em 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- PORTADA ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 0; min-height: 560px; }
.hero__copy { position: relative; z-index: 2; align-self: center; padding-block: 24px 64px; }
.hero__year { font-size: clamp(3.4rem, 8.4vw, 7.2rem); line-height: .9; letter-spacing: -.03em; margin: 0 0 14px; color: #fff; font-weight: 400; white-space: nowrap; }
.hero__title { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; margin-bottom: 18px; }
.hero__title span { display: block; padding-left: 1.4em; }
.hero__lead { color: #d5d9dc; max-width: 520px; font-size: 1.04rem; }
.hero__search { display: flex; gap: 10px; max-width: 560px; margin: 24px 0 22px; }
.hero__search input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; background: #fff; color: var(--ink); clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }
.hero__search input:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.hero__search .btn { height: 52px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__meta { color: var(--gray-2); font-size: .92rem; }
.hero__meta strong { color: var(--accent); font-weight: 400; font-size: 1.15rem; }

.hero__art { position: relative; min-height: 520px; }
.hero__strip { position: absolute; left: 0; top: 40px; bottom: 0; width: 30%; display: grid; grid-template-rows: repeat(5, 1fr); gap: 3px; z-index: 2; }
.hero__strip img { width: 100%; height: 100%; object-fit: cover; }
.hero__coil { position: absolute; left: 31%; top: 40px; width: 62%; z-index: 1; }
.hero__coil img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.hero__stripes { position: absolute; right: -40px; top: 150px; width: 58%; height: 240px; opacity: .85; background: linear-gradient(90deg, #56606a 0 16%, transparent 16% 20%, #8a9196 20% 36%, transparent 36% 40%, #b0b6ba 40% 56%, transparent 56% 60%, #d2d6d9 60% 76%, transparent 76% 80%, #eceff1 80%); clip-path: polygon(22% 0, 100% 0, 100% 100%, 50% 100%); transform: skewX(0); z-index: 0; }
.hero__art::after { content: ""; position: absolute; left: 31%; right: -40px; bottom: 0; height: 190px; background:
  linear-gradient(135deg, transparent 0 18%, rgba(219,181,44,.85) 18% 34%, transparent 34% 44%, rgba(236,212,122,.7) 44% 58%, transparent 58%),
  linear-gradient(0deg, #979ea3, #cdd2d5); filter: blur(10px); opacity: .9; z-index: 0; }
.hero__band { position: relative; z-index: 3; background: var(--accent); }
.hero__band::before { content: ""; position: absolute; left: 0; top: -18px; height: 18px; width: 38%; background: repeating-linear-gradient(115deg, var(--accent) 0 10px, #e8c95a 10px 16px, #f3e3a6 16px 20px); clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%); }

/* ---------- Índice de categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 18px; counter-reset: cat; }
.cat a { position: relative; display: grid; grid-template-rows: 170px auto; height: 100%; background: #fff; border: 1px solid var(--paper-2); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.cat a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.cat a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.cat a:hover::after { transform: scaleX(1); }
.cat__media { display: grid; place-items: center; height: 170px; min-height: 0; overflow: hidden; padding: 14px; background: radial-gradient(circle at 50% 60%, #fff 0, var(--paper) 70%); }
.cat__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.cat a:hover .cat__media img { transform: scale(1.05); }
.cat__body { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 18px; }
.cat__page { position: absolute; top: -14px; right: 16px; font-size: .75rem; color: #fff; background: var(--dark); padding: 3px 14px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.cat__name { font-weight: 400; font-size: 1.18rem; color: var(--dark); line-height: 1.25; }
.cat__tag { font-size: .84rem; color: var(--muted); }
.cat__count { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--f-accent); font-weight: 600; font-size: .85rem; color: var(--accent-ink); }

/* ---------- Banda de presentación ---------- */
.about-band { position: relative; background: var(--dark); color: #eee; overflow: hidden; padding-top: clamp(48px, 7vw, 80px); }
.about-band__shape { position: absolute; inset: 0 auto 0 0; width: 46%; background: var(--accent); clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%); }
.about-band__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding-bottom: 48px; }
.about-band__logo img { width: 100%; max-width: 460px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.35)); }
.about-band__text p { text-align: justify; hyphens: auto; }
.slogan-bar { position: relative; margin: 0; }
.slogan-bar span { position: relative; display: inline-block; font-size: clamp(1.25rem, 2.6vw, 1.8rem); color: var(--dark); padding: .35em 3em .35em max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); isolation: isolate; }
.slogan-bar span::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); clip-path: polygon(0 0, 100% 0, calc(100% - 1.2em) 100%, 0 100%); }
.slogan-bar--big { margin-top: 40px; }

/* ---------- Tarjetas de producto ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--paper-2); transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 16px; background: radial-gradient(circle at 50% 55%, #fff 0, var(--paper) 75%); overflow: hidden; }
.card__media::after { content: ""; position: absolute; right: -30px; top: 0; bottom: 0; width: 70px; background: repeating-linear-gradient(90deg, rgba(107,115,120,.08) 0 10px, transparent 10px 16px); transform: skewX(var(--skew)); }
.card__media img { position: absolute; z-index: 1; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; border-top: 4px solid var(--dark); }
.card__cat { font-size: .74rem; color: var(--accent-ink); font-family: var(--f-accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card__title { font-size: 1.06rem; line-height: 1.3; margin: 4px 0 12px; color: var(--dark); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card__actions { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

/* Botón agregar a cotización */
.qt { position: relative; z-index: 2; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; font-family: var(--f-accent); font-weight: 600; font-size: .9rem; color: var(--dark); isolation: isolate; }
.qt::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1.5px solid var(--dark); transform: skewX(var(--skew)); transition: background .2s, border-color .2s; }
.qt:hover::before { background: var(--paper); }
.qt > span { display: inline-flex; align-items: center; gap: 6px; }
.qt .icon { width: 15px; height: 15px; }
.qt__done { display: none !important; }
.qt[aria-pressed="true"] { color: var(--dark-3); }
.qt[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); }
.qt[aria-pressed="true"] .qt__add { display: none; }
.qt[aria-pressed="true"] .qt__done { display: inline-flex !important; }
.qt--sm { height: 32px; padding: 0 12px; font-size: .8rem; }

/* ---------- Especificaciones (etiquetas del catálogo) ---------- */
.specs { margin: 0; display: grid; gap: 5px; }
.specs__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: stretch; gap: 0; }
.specs dt, .specs dd { position: relative; margin: 0; padding: 4px 14px; font-size: .88rem; line-height: 1.4; isolation: isolate; }
.specs dt { color: #fff; text-align: right; font-family: var(--f-accent); font-weight: 400; }
.specs dt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dark); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.specs dd { color: var(--dark-3); padding-left: 16px; }
.specs dd::before { content: ""; position: absolute; inset: 0 0 0 -6px; z-index: -1; background: var(--accent); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.specs--compact dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Navegación de categorías ---------- */
.catnav { position: sticky; top: calc(var(--header-h) + 1px); z-index: 20; background: #fff; border-bottom: 1px solid var(--paper-2); }
.catnav__list { display: flex; flex: 1; min-width: 0; scroll-behavior: smooth; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.catnav__in { position: relative; display: flex; align-items: center; gap: 6px; }
.catnav__arrow { position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: #fff; box-shadow: 0 2px 8px rgba(19,26,30,.2); transition: background .2s, opacity .2s, transform .2s var(--ease); }
.catnav__arrow .icon { width: 16px; height: 16px; }
.catnav__arrow:hover { background: var(--accent); color: var(--dark-3); transform: scale(1.08); }
.catnav__arrow:disabled { opacity: .25; cursor: default; background: var(--gray-2); transform: none; }
.catnav__in::before, .catnav__in::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36px; pointer-events: none; z-index: 1; transition: opacity .2s; }
.catnav__in::before { left: 40px; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.catnav__in::after { right: 40px; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.catnav__in.at-start::before, .catnav__in.at-end::after { opacity: 0; }
.catnav__list::-webkit-scrollbar { display: none; }
.catnav a { display: block; white-space: nowrap; padding: 6px 14px; font-size: .86rem; color: var(--muted); border-radius: 999px; }
.catnav a:hover { color: var(--dark); background: var(--paper); }
.catnav a[aria-current="page"] { background: var(--dark); color: #fff; }

/* ---------- Hoja de categoría (estilo página del catálogo) ---------- */
.sheet { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 40px; padding-block: 36px 72px; }
.sheet--right { grid-template-columns: minmax(0, 1fr) 170px; }
.sheet--right .sheet__photos { order: 2; }
.sheet__photos-in { display: grid; gap: 3px; }
.sheet__photo { display: block; overflow: hidden; background: var(--dark); }
.sheet__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.sheet__count { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.group-title { position: relative; margin: 34px 0 6px; font-size: 1.3rem; color: var(--dark); display: flex; align-items: center; gap: 16px; }
.group-title::after { content: ""; flex: 1; height: 2px; background: var(--dark); }
.group-title span { padding-left: 14px; border-left: 6px solid var(--accent); }

.item { position: relative; padding: 26px 0 30px; border-bottom: 1px solid var(--paper-2); }
.item__head { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.item__head::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--dark); z-index: -1; }
.item__head .tab { margin-left: 10px; }
.item__brands { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; padding: 4px 10px; }
.item__brands img { height: 34px; width: auto; }
.item__brands--start { justify-content: flex-start; padding-left: 0; margin: 16px 0 6px; }
.item__brands--start img { height: 44px; }
.item__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.item--alt .item__info { order: 2; }
.item--alt .item__head { flex-direction: row-reverse; }
.item--alt .item__head .tab { margin: 0 10px 0 0; }
.item__desc { color: #46505a; }
.item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.item__media { position: relative; display: grid; place-items: center; min-height: 240px; padding: 10px; }
.item__media::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(ellipse at center, var(--paper) 0, rgba(242,243,244,0) 70%); z-index: -1; }
.item__media img { width: 100%; max-height: 360px; object-fit: contain; transition: transform .45s var(--ease); }
.item__media:hover img { transform: scale(1.04); }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }
.pager__link { display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--paper); max-width: 48%; }
.pager__link small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--f-accent); font-weight: 600; }
.pager__link span { line-height: 1.25; }
.pager__link .icon { color: var(--accent-ink); width: 20px; height: 20px; }
.pager__link:hover { background: var(--dark); color: #fff; }
.pager__link:hover small { color: var(--gray-2); }
.pager__link--next { text-align: right; margin-left: auto; }
.pager--product { margin-block: 0 56px; }

/* ---------- Ficha de producto ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 40px 48px; }
.product__gallery { min-width: 0; }
.product__photo { position: relative; display: grid; place-items: center; width: 100%; min-height: 380px; padding: 28px; background: radial-gradient(circle at 50% 50%, #fff 0, var(--paper) 72%); overflow: hidden; }
.product__photo::before { content: ""; position: absolute; top: 0; bottom: 0; right: 8%; width: 140px; background: repeating-linear-gradient(90deg, rgba(107,115,120,.08) 0 20px, transparent 20px 32px); transform: skewX(var(--skew)); }
.product__photo img { position: relative; width: 100%; max-height: 520px; object-fit: contain; }
.product__apps { margin-top: 18px; }
.product__apps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.product__apps-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: opacity .2s; }
.product__apps-row button:hover img { opacity: .8; }
.product__desc { font-size: 1.08rem; color: #46505a; margin: 14px 0 26px; }
.product__info .specs__row { grid-template-columns: 130px minmax(0, 1fr); }
.product__info .specs dt, .product__info .specs dd { font-size: .95rem; padding-block: 6px; }
.note { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: .9rem; color: var(--wa); }
.product__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.product__cta .qt { height: 46px; padding: 0 22px; }
.product__cta .btn { height: 46px; }
.product__tools { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.product__tools a, .product__tools button { display: inline-flex; gap: 6px; align-items: center; }
.product__tools a:hover, .product__tools button:hover { color: var(--accent-ink); }
.product__page { margin-top: 18px; font-size: .8rem; color: var(--gray-2); }

.dropdown { position: relative; }
.dropdown__menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; box-shadow: var(--shadow-lg); border-top: 4px solid var(--wa); z-index: 10; }
.dropdown__menu a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--paper-2); }
.dropdown__menu a:hover { background: var(--paper); color: inherit; }
.dropdown__menu strong { font-weight: 400; }
.dropdown__menu span { color: var(--wa); font-family: var(--f-accent); font-weight: 600; }

/* ---------- Catálogo completo / filtros ---------- */
.catalog { padding-block: 32px 72px; }
.filters { position: sticky; top: calc(var(--header-h) + 1px); z-index: 20; background: rgba(255,255,255,.97); padding: 12px 0; margin-bottom: 8px; border-bottom: 1px solid var(--paper-2); }
.filters__search { position: relative; max-width: 420px; margin-bottom: 12px; }
.filters__search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.filters__search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1.5px solid var(--light); border-radius: 999px; background: #fff; }
.filters__search input:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .84rem; border: 1.5px solid var(--light); border-radius: 999px; color: var(--dark); background: #fff; transition: background .2s, color .2s, border-color .2s; }
.chip span { font-size: .72rem; color: var(--muted); }
.chip:hover { border-color: var(--dark); }
.chip[aria-pressed="true"] { background: var(--dark); color: #fff; border-color: var(--dark); }
.chip[aria-pressed="true"] span { color: var(--accent-l); }
.catalog__status { color: var(--muted); font-size: .9rem; margin: 12px 0 16px; }
.card.is-hidden { display: none; }

.empty { padding: 36px; text-align: center; background: var(--paper); }
.empty p { color: var(--muted); }
.big-search { display: flex; gap: 12px; max-width: 720px; margin: 0 0 34px; }
.big-search input { flex: 1; min-width: 0; height: 54px; padding: 0 18px; border: 2px solid var(--light); background: #fff; }
.big-search input:focus { outline: none; border-color: var(--accent); }
.big-search .btn { height: 54px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 14px; background: var(--paper); font-size: .9rem; }
.tags a:hover { background: var(--dark); color: #fff; }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 14px; }
.logos li a { display: grid; place-items: center; height: 96px; padding: 14px 18px; background: #fff; border: 1px solid var(--paper-2); transition: box-shadow .2s, transform .2s var(--ease); }
.logos li a:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.logos img { max-height: 62px; width: auto; object-fit: contain; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.brand-grid a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--paper-2); transition: box-shadow .2s, transform .2s var(--ease); }
.brand-grid a:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; }
.brand-grid__logo { display: grid; place-items: center; height: 140px; padding: 20px; }
.brand-grid__logo img { max-height: 90px; width: auto; }
.brand-grid__meta { padding: 12px 16px; border-top: 4px solid var(--accent); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.brand-grid__meta strong { font-weight: 400; color: var(--dark); }
.brand-grid__meta small { color: var(--muted); font-size: .78rem; }
.brand-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 24px 28px; background: var(--paper); margin-bottom: 32px; }
.brand-hero img { max-height: 90px; width: auto; background: #fff; padding: 12px 18px; }
.brand-hero p { margin: 0; max-width: 560px; color: #46505a; }

.clients-band { padding-bottom: 56px; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__track { display: flex; gap: 14px; padding-right: 14px; }
.marquee__track li { position: relative; display: grid; place-items: center; width: 170px; height: 96px; padding: 12px 16px; background: #fff; }
.marquee__track img { max-height: 70px; width: auto; object-fit: contain; }
/* Mientras los logos se descargan: franja detenida y casillas con un
   degradado suave en lugar de rectángulos blancos vacíos. */
.marquee.is-holding { animation-play-state: paused; }
.marquee.is-holding .marquee__track li::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--paper) 30%, var(--paper-2) 50%, var(--paper) 70%) 0 0 / 300% 100%;
  animation: logo-skeleton 1.3s ease-in-out infinite;
}
@keyframes logo-skeleton { to { background-position: -150% 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 14px; }
.client-grid li { display: grid; place-items: center; height: 110px; padding: 14px; background: #fff; border: 1px solid var(--paper-2); }
.client-grid img { max-height: 78px; width: auto; object-fit: contain; filter: grayscale(.15); transition: filter .2s, transform .2s; }
.client-grid li:hover img { filter: none; transform: scale(1.05); }
.lead-center { text-align: center; max-width: 720px; margin: 0 auto 32px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Contacto rápido ---------- */
.contact-band { background: linear-gradient(90deg, var(--paper) 0 60%, var(--light) 60%); }
.contact-band__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center; }
.seller-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seller-cards li { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; box-shadow: var(--shadow); }
.seller-cards__name { font-size: 1.05rem; color: var(--dark); }

/* ---------- Empresa ---------- */
.about { position: relative; padding-top: 48px; overflow: hidden; }
.about__orange { position: absolute; left: 0; right: 0; top: 0; height: 280px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 40%, 72% 100%, 30% 100%, 0 60%); }
.about .wrap { position: relative; }
.about__logo { display: grid; place-items: center; margin-bottom: 28px; }
.about__logo img { width: min(560px, 90%); filter: drop-shadow(0 12px 22px rgba(0,0,0,.25)); }
.about__card { max-width: 900px; background: var(--dark); color: #f0f2f3; padding: clamp(24px, 4vw, 44px); font-size: 1.05rem; clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%); }
.about__card p { text-align: justify; hyphens: auto; }
.about__card p:last-child { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats li { padding: 22px; border-left: 6px solid var(--accent); background: var(--paper); }
.stats strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; color: var(--dark); line-height: 1; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Contacto ---------- */
.contact { padding-block: 40px 72px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; box-shadow: var(--shadow-lg); }
.contact__dark { position: relative; background: var(--dark); color: #fff; padding: clamp(24px, 4vw, 44px); overflow: hidden; }
.contact__dark::after { content: ""; position: absolute; right: 0; bottom: 0; width: 45%; height: 60px; background: var(--accent); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.contact__h { font-size: 1.7rem; margin-bottom: 20px; }
.contact__sellers li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.3); font-size: 1.15rem; }
.contact__sellers a { display: inline-flex; gap: 8px; align-items: center; color: #e2e6e9; }
.contact__sellers a:hover { color: var(--accent-l); }
.contact__addr { margin: 24px 0 20px; color: #d3d7da; font-size: .94rem; }
.contact__addr p { display: flex; gap: 10px; margin-bottom: 8px; }
.contact__addr .icon { color: var(--accent); margin-top: 4px; }
.contact__addr a:hover { color: #fff; }
.contact__dark .btn { margin-bottom: 60px; }
.contact__form { background: #fff; padding: clamp(24px, 4vw, 44px); }
.contact__form form { margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; color: var(--dark); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--light); background: var(--paper); border-radius: 2px; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field small { color: #c0392b; font-size: .82rem; }
.field--error input, .field--error textarea { border-color: #c0392b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; }
.alert--ok { background: #e7f6ed; color: #17663a; }
.alert--warn { background: #fbf4da; color: #6e5500; }

/* ---------- Cotización ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 72px; }
.quote__items { display: grid; gap: 10px; }
.qitem { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 10px 14px 10px 10px; background: #fff; border: 1px solid var(--paper-2); animation: fadeUp .3s var(--ease); }
.qitem__img img { width: 110px; height: 82px; object-fit: contain; background: var(--paper); }
.qitem__name { font-size: 1.02rem; color: var(--dark); line-height: 1.3; }
.qitem__qty { display: flex; align-items: center; border: 1.5px solid var(--light); }
.qitem__qty button { width: 34px; height: 36px; font-size: 1.1rem; color: var(--dark); }
.qitem__qty button:hover { background: var(--paper); }
.qitem__qty input { width: 48px; height: 36px; text-align: center; border: 0; border-inline: 1.5px solid var(--light); -moz-appearance: textfield; }
.qitem__qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qitem__rm { width: 36px; height: 36px; display: grid; place-items: center; color: var(--gray); }
.qitem__rm:hover { color: #c0392b; }
.quote__side { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); padding: 24px; }
.quote__side .tab { margin-bottom: 18px; }
.quote__sellers { display: grid; gap: 10px; margin-bottom: 14px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 404 ---------- */
.notfound { padding-block: 80px 100px; text-align: center; background: linear-gradient(180deg, var(--paper), #fff); }
.notfound__code { font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: var(--light); margin: 0; }
.notfound p { color: var(--muted); margin-top: 18px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 22px; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--dark); color: #d2d6d9; overflow: hidden; margin-top: 0; }
.footer__shape { position: absolute; right: 0; top: 0; width: 40%; height: 100%; background: var(--dark-2); clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 56px 36px; }
.footer__logo { display: inline-block; background: var(--light); padding: 12px 28px; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); margin-bottom: 16px; }
.footer__logo img { width: 260px; }
.footer__slogan { font-size: 1.1rem; color: #fff; }
.footer address { font-size: .9rem; line-height: 1.9; }
.footer address .icon { display: inline-block; vertical-align: -2px; color: var(--accent); margin-right: 4px; }
.footer a:hover { color: var(--accent-l); }
.footer__title { font-size: 1.15rem; color: #fff; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 3px solid var(--accent); display: inline-block; }
.sellers li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.sellers span { color: #fff; }
.sellers a { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }
.footer__cats { columns: 2; column-gap: 20px; font-size: .88rem; }
.footer__cats li { padding: 3px 0; break-inside: avoid; }
.footer__legal { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 16px; font-size: .8rem; color: var(--gray-2); border-top: 1px solid rgba(255,255,255,.1); }
.strip { position: relative; z-index: 1; background: var(--accent); overflow: hidden; }
.strip__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.strip span { padding: 6px 40px; font-family: var(--f-accent); font-style: italic; font-weight: 700; font-size: .72rem; letter-spacing: .02em; color: var(--dark-3); white-space: nowrap; }

.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(31,157,85,.4); transition: transform .2s var(--ease); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); color: #fff; }

.toast { position: fixed; left: 50%; width: max-content; max-width: calc(100vw - 32px); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 90; background: var(--dark-3); color: #fff; padding: 12px 20px; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); border-left: 5px solid var(--accent); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--accent-l); text-decoration: underline; pointer-events: auto; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(19,26,30,.94); padding: 60px 20px; animation: fade .2s; }
.lb img { max-width: min(1100px, 100%); max-height: 100%; object-fit: contain; background: radial-gradient(circle, #fff 0, #e6e9eb 80%); padding: 12px; }
.lb--photo img { background: none; padding: 0; }
.lb__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); }
.lb__btn:hover { background: var(--accent); color: var(--dark-3); }
.lb__btn .icon { width: 24px; height: 24px; }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Animación de aparición ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1439px) {
  .header__in { gap: 16px; }
  .search input { width: 150px; }
  .search input:focus { width: 200px; }
  .nav__list > li > a { padding-inline: 8px; font-size: .94rem; }
  .nav__list { gap: 0; }
}

@media (max-width: 1179px) {
  :root { --header-h: 88px; }
  .brand img { height: 70px; }
  .burger { display: block; }
  .quote-btn__label { display: none; }
  .nav { position: fixed; inset: calc(var(--header-h) + 1px) 0 0 auto; width: min(420px, 100%); background: #fff; margin: 0; padding: 12px 20px 40px; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; z-index: 55; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--paper-2); }
  .nav__list > li > a { flex: 1; padding: 14px 4px; font-size: 1.05rem; }
  .nav__list > li > a::after { left: 4px; right: auto; width: 40px; bottom: 8px; }
  .nav__caret { width: 44px; height: 44px; margin: 0; }
  .mega { position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 10px; opacity: 1; visibility: visible; display: none; }
  .nav__has-mega:hover .mega { transform: none; }
  .mega.is-open { display: block; transform: none; }
  .mega__grid { grid-template-columns: 1fr; }
  .mega__link { padding: 8px 6px; }
  .mega::before { display: none; }
  .header__tools { margin-left: auto; }
  .search input { width: 44px; padding: 0; color: transparent; background: transparent; cursor: pointer; }
  .search input::placeholder { color: transparent; }
  .search button { right: 5px; pointer-events: none; }
  .search.is-open { position: absolute; left: 12px; right: 12px; top: 13px; z-index: 5; }
  .search.is-open input { width: 100%; padding: 0 40px 0 14px; color: var(--ink); background: #fff; border-color: var(--accent); cursor: text; }
  .search.is-open input::placeholder { color: var(--gray); }
  .search.is-open .search__results { left: 0; right: 0; width: auto; }

}


@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__copy { padding-bottom: 32px; }
  .hero__art { min-height: 300px; margin-inline: calc(var(--gutter) * -1); }
  .hero__strip { top: 0; width: 30%; }
  .hero__coil { top: 0; width: 60%; }
  .hero__stripes { top: 120px; height: 150px; }
  .hero__art::after { height: 110px; }

  .about-band__grid { grid-template-columns: 1fr; gap: 24px; }
  .about-band__shape { width: 100%; height: 220px; clip-path: polygon(0 0, 100% 0, 100% 45%, 0 100%); }
  .about-band__logo { display: grid; place-items: center; }

  .sheet, .sheet--right { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sheet--right .sheet__photos { order: 0; }
  .sheet__photos-in { position: static; grid-auto-flow: column; grid-auto-columns: 38%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .sheet__photos-in::-webkit-scrollbar { display: none; }
  .sheet__photo { scroll-snap-align: start; }
  .catnav { top: calc(var(--header-h) + 1px); }

  .product { grid-template-columns: minmax(0, 1fr); }
  .product__photo { min-height: 280px; }
  .contact-band { background: var(--paper); }
  .contact-band__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .header__in { gap: 10px; }
  .brand img { height: 58px; }
  .header__tools { gap: 4px; }
  .quote-btn { padding: 0 10px; gap: 5px; }
  .topbar__in { gap: 14px; }
  .topbar__item:first-child { display: none; }
  .topbar__in { justify-content: space-between; }
  .item__grid { grid-template-columns: 1fr; gap: 12px; }
  .item--alt .item__info { order: 0; }
  .item__media { order: -1; min-height: 0; }
  .item--alt .item__head { flex-direction: row; }
  .item--alt .item__head .tab { margin: 0 0 0 10px; }
  .specs__row, .product__info .specs__row { grid-template-columns: 104px minmax(0, 1fr); }
  .specs dt, .specs dd { font-size: .82rem; padding-inline: 10px; }
  .hero__search { flex-direction: column; }
  .hero__search input { flex: none; }
  .hero__search .btn { align-self: flex-start; }
  .seller-cards { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__body { padding: 10px 12px 12px; }
  .card__title { font-size: .95rem; }
  .card__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat a { grid-template-rows: 120px auto; }
  .cat__media { height: 120px; }
  .cat__body { padding: 14px 12px; }
  .cat__name { font-size: 1rem; }
  .cat__tag { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__cats { columns: 2; }
  .qitem { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img name rm" "img qty qty"; gap: 8px 12px; }
  .qitem__img { grid-area: img; }
  .qitem__img img { width: 76px; height: 64px; }
  .qitem__name { grid-area: name; font-size: .95rem; }
  .qitem__qty { grid-area: qty; justify-self: start; }
  .qitem__rm { grid-area: rm; }
  .pager { flex-direction: column; }
  .pager__link { max-width: 100%; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .logos li a { height: 72px; padding: 8px; }
  .logos img { max-height: 44px; }
  .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .client-grid li { height: 80px; padding: 8px; }
  .product__apps-row { grid-template-columns: repeat(2, 1fr); }
  .big-search { flex-direction: column; }
  .wa-float { width: 52px; height: 52px; }
  .phead::after { display: none; }
}

@media (max-width: 380px) {
  .brand img { height: 48px; }
  .header__tools { gap: 0; }
  .grid-cards, .cats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Impresión (ficha de producto) ---------- */
@media print {
  .topbar, .header, .footer, .wa-float, .catnav, .pager, .product__cta, .product__tools, .section--tint, .toast { display: none !important; }
  .phead { background: none; padding: 0 0 12px; }
  .phead::before, .phead::after, .crumbs { display: none; }
  .product { grid-template-columns: 1fr 1fr; padding: 0; }
  .specs dt, .specs dd, .ptitle__main, .ptitle__tag, .tab { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 12px; }
}

/* ==========================================================================
   Catálogo 2025/2026 — Sensores de temperatura, tablas de modelos y guías técnicas
   ========================================================================== */

/* ---------- Insignias de tipo (colores ANSI MC 96.1) ---------- */
.tc { --b: #fff; --i: var(--dark); display: inline-grid; place-items: center; min-width: 2em; height: 1.75em; padding: 0 .45em; border-radius: 3px; background: var(--b); color: var(--i); font-family: var(--f-accent); font-weight: 600; font-size: .85rem; line-height: 1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); white-space: nowrap; }
.tc--k { --b: #f6d110; --i: #231f1f; }
.tc--j { --b: #1c1a1a; --i: #fff; }
.tc--t { --b: #1f5fbf; --i: #fff; }
.tc--e { --b: #d21fb8; --i: #fff; }
.tc--n { --b: #f07a14; --i: #231f1f; }
.tc--r, .tc--s { --b: #2e9a5e; --i: #fff; }
.tc--b { --b: #8c8888; --i: #fff; }
.tc--pt100 { --b: #fff; --i: var(--dark); box-shadow: inset 0 0 0 1.5px var(--dark); }
.tc--ntc { --b: var(--paper-2); --i: var(--dark); }
.tcs { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; }
.tcs--sm .tc { font-size: .75rem; }

/* ---------- Introducción de categoría ---------- */
.cintro { padding-block: 34px 8px; }
.cintro__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; }
.cintro__lead { font-size: 1.12rem; color: #46505a; border-left: 6px solid var(--accent); padding-left: 18px; }
.cintro__diagram { width: min(420px, 100%); margin: 8px 0 18px; }
.cintro__cover { position: relative; overflow: hidden; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); max-height: 320px; }
.cintro__cover img { width: 100%; height: 100%; object-fit: cover; }
.gnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gnav a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; background: var(--paper); font-size: .88rem; color: var(--dark); border-left: 4px solid var(--accent); }
.gnav a span { font-size: .75rem; color: var(--muted); }
.gnav a:hover { background: var(--dark); color: #fff; }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.guide-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--dark); color: #eee; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.guide-card::after { content: ""; position: absolute; right: -20px; top: 0; bottom: 0; width: 34%; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 16px, transparent 16px 28px); transform: skewX(var(--skew)); }
.guide-card:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-card__kicker { font-family: var(--f-accent); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.guide-card strong { font-weight: 400; font-size: 1.5rem; color: #fff; }
.guide-card__types { display: flex; flex-wrap: wrap; gap: 4px; }
.guide-card__text { color: #ccd1d4; font-size: .92rem; }
.guide-card .link-arrow { color: #fff; margin-top: 4px; }
.guide-card--rtd { background: linear-gradient(120deg, var(--dark) 60%, #46505a); }

/* ---------- Barra de filtro por tipo ---------- */
.typebar { position: sticky; top: calc(var(--header-h) + var(--catnav-h)); z-index: 19; background: rgba(255,255,255,.97); border-block: 1px solid var(--paper-2); margin-top: 26px; }
.typebar__in { display: flex; align-items: center; gap: 10px 14px; padding-block: 8px; }
.typebar__label { font-family: var(--f-accent); font-weight: 600; font-size: .82rem; color: var(--dark); white-space: nowrap; }
.typebar__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.typebar__chips::-webkit-scrollbar { display: none; }
.typebar__status { margin-left: auto; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.tchip { flex: none; display: inline-grid; place-items: center; min-width: 44px; height: 36px; padding: 0 8px; border: 1.5px solid var(--light); border-radius: 6px; background: #fff; font-size: .85rem; color: var(--dark); transition: border-color .15s, box-shadow .15s; }
.tchip:hover { border-color: var(--dark); }
.tchip[aria-pressed="true"] { border-color: var(--accent-ink); box-shadow: 0 0 0 2px var(--accent); }
.item.is-filtered { display: none; }
.group-head.is-filtered { display: none; }
.vt tr.is-match { box-shadow: inset 5px 0 0 var(--accent); }
.vt tr.is-match td, .vt tr.is-match th { background: #fbf5dd; }
.vt tr.is-dim { opacity: .38; }

/* ---------- Subgrupos ---------- */
.group-head { margin: 38px 0 6px; scroll-margin-top: calc(var(--header-h) + 130px); }
.group-head .group-title { margin: 0; }
.group-desc { margin: 10px 0 0; color: var(--muted); max-width: 760px; font-size: .95rem; }

/* ---------- Tabla de modelos (encabezado naranja, estilo catálogo) ---------- */
.vt-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--paper-2); background: #fff; }
.vt-wrap:focus-visible { outline-offset: -3px; }
.vt { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.35; }
.vt thead th { background: var(--accent); color: var(--dark-3); font-family: var(--f-accent); font-weight: 600; font-size: .8rem; text-align: center; padding: 8px 10px; border-right: 1px solid rgba(255,255,255,.45); vertical-align: middle; }
.vt thead tr:first-child th:first-child { background: var(--dark); color: #fff; }
.vt tbody th, .vt tbody td { padding: 7px 10px; text-align: center; border-bottom: 1px solid var(--paper-2); vertical-align: middle; }
.vt tbody th { font-weight: 400; white-space: nowrap; background: var(--paper); }
.vt tbody tr:nth-child(even) td { background: #f8f9fa; }
.vt tbody tr:hover td, .vt tbody tr:hover th { background: #fbf5dd; }
.vt--text tbody td { text-align: left; }
.vt--text tbody td:nth-child(2) small { display: block; min-width: 150px; }
.vt small { color: var(--muted); }
.nowrap { white-space: nowrap; }
.item--table .item__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.item--table .item__media { min-height: 200px; }
.item--table .item__media img { max-height: 260px; }
.item--table .vt-wrap { margin-top: 16px; }
.models { margin-bottom: 40px; }
.models .stitle { margin-bottom: 20px; }
.models__note { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.guide-inline { margin-bottom: 40px; }
.guide-inline__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 22px; background: var(--paper); border-left: 6px solid var(--accent); }
.guide-inline__in p { margin: 0; flex: 1 1 320px; }

/* ---------- Guías técnicas ---------- */
.guide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; padding-block: 36px 72px; }
.gtoc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.gtoc ol { counter-reset: toc; border-left: 2px solid var(--paper-2); }
.gtoc li a { position: relative; display: block; padding: 6px 0 6px 16px; font-size: .9rem; color: var(--muted); }
.gtoc li a:hover, .gtoc li a.is-active { color: var(--dark); }
.gtoc li a.is-active::before { content: ""; position: absolute; left: -2px; top: 4px; bottom: 4px; width: 3px; background: var(--accent); }
.gtoc__other { display: block; margin-top: 16px; padding: 12px 14px; background: var(--dark); color: #fff; font-size: .92rem; line-height: 1.3; }
.gtoc__other small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-family: var(--f-accent); font-weight: 600; }
.gtoc__other:hover { background: var(--dark-3); color: #fff; }
.gtoc__other .icon { display: inline; vertical-align: -3px; width: 14px; height: 14px; }
.gsec { padding-bottom: 48px; margin-bottom: 44px; border-bottom: 1px solid var(--paper-2); scroll-margin-top: calc(var(--header-h) + 24px); }
.gsec:last-child { border-bottom: 0; }
.gsec__title { position: relative; display: inline-block; font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--dark); padding: .15em 1.2em .15em .7em; margin-bottom: 18px; background: linear-gradient(90deg, var(--light), var(--paper-2)); clip-path: polygon(0 0, 100% 0, calc(100% - .6em) 100%, 0 100%); }
.gsec__sub { font-size: 1.1rem; color: var(--dark); margin: 26px 0 12px; padding-left: 12px; border-left: 5px solid var(--accent); }
.gsec__intro { color: #46505a; max-width: 820px; }
.gdef { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.gdef p { color: #38424a; }
.gdef__fig { margin: 0; padding: 18px; background: var(--paper); }
.gdef__fig img { margin-inline: auto; }
.gdef__fig figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); text-align: center; }
.gnote, .gnotes { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.gnotes { padding-left: 20px; list-style: decimal; }
.gnotes li { margin-bottom: 6px; }
.gcta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* Selector de tipos */
.tsel__tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.tsel__tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 10px; background: var(--b); color: var(--i); border-radius: 4px 4px 0 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); opacity: .72; transition: opacity .15s, transform .15s; }
.tsel__tab strong { font-size: 1.7rem; font-weight: 400; line-height: 1; }
.tsel__tab small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--f-accent); font-weight: 600; }
.tsel__tab:hover { opacity: 1; }
.tsel__tab[aria-selected="true"] { opacity: 1; transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 6px 0 var(--dark); }
.js .tsel__panel[data-hidden] { display: none; }
.tsel__panel + .tsel__panel { margin-top: 14px; }
.js .tsel__panel + .tsel__panel { margin-top: 0; }
.tpanel { border: 1px solid var(--paper-2); border-top: 6px solid var(--dark); background: #fff; padding: 22px 24px; }
.tpanel__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.tpanel__letter { display: grid; place-items: center; width: 64px; height: 64px; background: var(--b); color: var(--i); font-size: 2.3rem; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.tpanel__head h3 { font-size: 1.45rem; color: var(--dark); }
.tpanel__head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.tfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.tfacts div { padding: 10px 12px; background: var(--paper); }
.tfacts dt { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--f-accent); font-weight: 600; }
.tfacts dd { margin: 4px 0 0; color: var(--dark); line-height: 1.35; }
.tfacts strong { font-weight: 400; font-size: 1.05rem; }
.tpanel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tnote { padding: 12px 16px; border-left: 5px solid; }
.tnote h4 { display: flex; gap: 6px; align-items: center; font-size: .92rem; font-family: var(--f-accent); font-weight: 600; margin-bottom: 4px; }
.tnote p { margin: 0; font-size: .92rem; }
.tnote--ok { border-color: var(--wa); background: #eef8f2; }
.tnote--ok h4 { color: #17663a; }
.tnote--warn { border-color: var(--accent-ink); background: #fbf5dd; }
.tnote--warn h4 { color: #6e5500; }
.tpanel__wires { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tpanel__wires > div { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed var(--light); }
.tpanel__wires .label { margin: 0; }
.tpanel__prods { margin-top: 16px; }
.tpanel__prods ul { display: flex; flex-wrap: wrap; gap: 6px; }
.tpanel__prods a { display: inline-block; padding: 5px 12px; background: var(--paper); font-size: .86rem; }
.tpanel__prods a:hover { background: var(--dark); color: #fff; }

/* Muestra de cable */
.wire { position: relative; display: inline-block; width: 92px; height: 28px; vertical-align: middle; }
.wire__jacket { position: absolute; left: 0; top: 5px; width: 46px; height: 18px; border-radius: 9px 3px 3px 9px; background: var(--j); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.2); }
.wire__lead { position: absolute; left: 40px; height: 7px; width: 48px; background: var(--p); border-radius: 0 4px 4px 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.wire__lead--p { top: 3px; transform: rotate(-8deg); transform-origin: left center; }
.wire__lead--n { top: 18px; background: var(--n); transform: rotate(8deg); transform-origin: left center; }
.wire__lead i { position: absolute; right: -12px; top: -6px; font-style: normal; font-size: .72rem; color: var(--muted); font-family: var(--f-accent); font-weight: 600; }
.wire--none { width: auto; height: auto; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* Gráfico de rangos */
.rchart { margin: 10px 0 0; padding: 18px 18px 10px; background: #fff; border: 1px solid var(--paper-2); }
.rchart__plot { position: relative; padding-left: 56px; padding-right: 120px; }
.rchart__row { position: relative; display: flex; align-items: center; height: 36px; }
.rchart__label { position: absolute; left: -56px; width: 44px; display: flex; justify-content: flex-end; }
.rchart__track { position: relative; flex: 1; height: 100%; }
.rchart__grids { position: absolute; left: 56px; right: 120px; top: 0; bottom: 0; }
.rchart__grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--paper-2); }
.rchart__grid--zero { background: var(--gray-2); }
.rchart__bar { position: absolute; top: 12px; height: 12px; background: var(--accent); border-radius: 4px; outline-offset: 3px; transition: background .15s; }
.rchart__bar:hover, .rchart__bar:focus-visible { background: var(--accent-d); }
.rchart__val { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.rchart__axis { position: relative; height: 22px; margin-left: 56px; margin-right: 120px; border-top: 1px solid var(--light); }
.rchart__axis span { position: absolute; top: 4px; transform: translateX(-50%); font-size: .74rem; color: var(--muted); }
.rchart figcaption { margin-top: 6px; font-size: .8rem; color: var(--muted); }

/* Tooltip genérico */
.tolbars { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 30; padding: 6px 10px; background: var(--dark-3); color: #fff; font-size: .78rem; line-height: 1.3; white-space: nowrap; border-radius: 3px; box-shadow: var(--shadow); pointer-events: none; }

/* Tabla de colores */
.ctable td, .ctable th { padding: 8px; }
.ctable tbody td:nth-child(4), .ctable tbody td:nth-child(5) { font-size: .8rem; max-width: 150px; }
.ccode { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--b); color: var(--i); font-size: 1.3rem; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* Tabla AWG */
.awg td.awg__hot { background: color-mix(in srgb, var(--accent) calc(var(--h) * 55%), #fff) !important; font-weight: 400; color: var(--dark-3); }
.awg td.awg__na { color: var(--gray-2); }
.awg tbody th .tc { margin: 1px; }

/* Uniones */
.junctions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.junction { padding: 18px; background: #fff; border: 1px solid var(--paper-2); border-top: 5px solid var(--dark); }
.junction__img { display: grid; place-items: center; height: 90px; margin-bottom: 12px; background: var(--paper); }
.junction__img img { width: 80%; max-width: 230px; }
.junction h3 { font-size: 1.12rem; color: var(--dark); margin-bottom: 6px; }
.junction p { font-size: .92rem; color: #46505a; margin-bottom: 0; }
.meter { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px !important; padding: 6px 0; border-block: 1px dashed var(--paper-2); }
.meter__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--f-accent); font-weight: 600; }
.meter__bars { display: inline-flex; gap: 3px; }
.meter__bars i { width: 18px; height: 8px; background: var(--paper-2); transform: skewX(var(--skew)); }
.meter__bars i.on { background: var(--accent); }

/* Tubos */
.tubes__temp { min-width: 170px; }
.tubes__temp strong { font-weight: 400; color: var(--dark); }
.tubes__bar { display: block; height: 6px; margin-top: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.tubes__bar i { display: block; height: 100%; background: linear-gradient(90deg, #ecd47a, var(--accent-d)); border-radius: 3px; }
.dash li { position: relative; padding-left: 14px; }
.dash li::before { content: "–"; position: absolute; left: 0; color: var(--accent-ink); }

/* RTD */
.rtdt tr.is-ref td, .rtdt tr.is-ref th { background: #fbf5dd !important; }
.tolbars { min-width: 160px; }
.tolbar { display: block; height: 6px; border-radius: 3px; margin: 3px 0; }
.tolbar--a { background: var(--dark); }
.tolbar--b { background: var(--accent); }
.legend { display: flex; gap: 18px; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .tolbar { width: 22px; margin: 0; }
.circuits { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
.circuits__fig { margin: 0; padding: 14px; background: var(--paper); }
.circuits__list { display: grid; gap: 12px; }
.junction--row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; align-items: start; border-top-width: 1px; border-left: 5px solid var(--accent); }
.circuits__n { display: grid; place-items: center; height: 70px; background: var(--dark); color: #fff; font-size: 2rem; line-height: 1; }
.circuits__n small { font-size: .7rem; color: var(--accent); }

/* Banda de guía en inicio */
.guide-band { position: relative; background: var(--dark); color: #eee; overflow: hidden; }
.guide-band::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 38%; background: var(--accent); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.guide-band__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.guide-band p { color: #d3d7da; max-width: 560px; }
.guide-band__types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 360px; justify-self: end; }
.guide-band__types a { display: grid; place-items: center; aspect-ratio: 1; background: var(--b); color: var(--i); font-size: 2rem; box-shadow: inset 0 0 0 2px var(--dark), 0 6px 14px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.guide-band__types a:hover { transform: translateY(-4px) rotate(-2deg); color: var(--i); }
.guide-band__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media (max-width: 1023px) {
  .cintro__grid, .gdef, .guide-band__grid { grid-template-columns: minmax(0, 1fr); }
  .cintro__cover { max-height: 220px; clip-path: none; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gtoc { position: static; }
  .gtoc ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .gtoc li a { padding: 5px 12px; background: var(--paper); font-size: .82rem; }
  .gtoc__other { display: none; }
  .tfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .typebar { top: calc(var(--header-h) + var(--catnav-h)); }
  .guide-band::before { width: 100%; height: 40%; top: auto; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); }
  .guide-band__types { justify-self: start; }
}
@media (max-width: 720px) {
  .guide-cards { grid-template-columns: 1fr; }
  .item--table .item__grid { grid-template-columns: 1fr; }
  .tsel__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tsel__tab[aria-selected="true"] { transform: none; box-shadow: inset 0 0 0 3px var(--dark); }
  .tpanel { padding: 16px; }
  .tpanel__cols, .tpanel__wires { grid-template-columns: 1fr; }
  .junctions { grid-template-columns: 1fr; }
  .circuits { grid-template-columns: 1fr; }
  .circuits__fig img { max-width: 160px; margin-inline: auto; }
  .typebar__status { display: none; }
  .rchart__val { display: none; }
  .rchart__plot { padding-right: 16px; }
  .rchart__grids { right: 16px; }
  .rchart__axis { margin-right: 16px; }
  .vt { font-size: .8rem; }
  .vt:not(.vt--text) tbody td, .vt:not(.vt--text) thead th { white-space: nowrap; }
  .ctable tbody td:nth-child(4), .ctable tbody td:nth-child(5) { white-space: normal; min-width: 130px; }
}

.vt-hint { display: none; align-items: center; justify-content: flex-end; gap: 6px; margin: 10px 0 4px; font-size: .78rem; color: var(--muted); }
.vt-hint .icon { color: var(--accent-ink); animation: nudge 1.4s ease-in-out infinite; }
.vt-hint.is-on { display: flex; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ==========================================================================
   RESPONSIVE — AJUSTE FINO PARA TODO TIPO DE PANTALLA
   --------------------------------------------------------------------------
   Esta capa se apoya en los cortes que ya existían más arriba (1439, 1179,
   1023, 720 y 380 px) y añade lo que faltaba:

     1. Márgenes laterales proporcionales al ancho de pantalla.
     2. Franja intermedia 721–1023 px (tablet vertical) con rejillas que se
        acomodan solas en lugar de columnas fijas.
     3. Monitores grandes: el contenido deja de ser una franja estrecha.
     4. Pantallas bajas (móvil en horizontal, ventanas pequeñas).
     5. Pantallas táctiles: botones y enlaces con área de toque cómoda.
     6. Dispositivos sin ratón: sin estados "hover" que se quedan pegados.
     7. Portada, tablas y detalles en teléfonos pequeños.

   Va antes del bloque de escala de escritorio para no pisarlo.
   ========================================================================== */

/* ---------- 1. Márgenes laterales ---------- */
@media (max-width: 720px) { :root { --gutter: 16px; } }
@media (max-width: 400px) { :root { --gutter: 14px; } }

/* ---------- 2. Tablet vertical y franja intermedia (≤1023 px) ----------
   Las rejillas que antes tenían un número fijo de columnas ahora calculan
   cuántas caben. Así 768, 820, 900 o 1000 px dejan de ser "casos raros". */
@media (max-width: 1023px) {
  .seller-cards { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
  .guide-cards { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
  .junctions { grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); }
  .tpanel__wires { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
  .tpanel__cols { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
  .circuits { grid-template-columns: clamp(110px, 22%, 180px) minmax(0, 1fr); gap: 18px; }

  /* Ocho pestañas de tipo no entran cómodas por debajo de 1024 px. */
  .tsel__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tsel__tab[aria-selected="true"] { transform: none; box-shadow: inset 0 0 0 3px var(--dark); }

  .item__grid { gap: 22px; }
  .item__media { min-height: 200px; }
  .brand-hero { padding: 20px 22px; gap: 18px 28px; }
  .contact__dark .btn { margin-bottom: 24px; }
  .quote__side { position: static; }
  .lb { padding: 48px 12px; }
  .lb__prev { left: 6px; }
  .lb__next { right: 6px; }
}

/* Las tablas anchas y los carruseles no deben "robar" el gesto de volver
   atrás del navegador al llegar a su extremo. */
.vt-wrap, .chips, .catnav__list, .typebar__chips, .sheet__photos-in, .search__results {
  overscroll-behavior-x: contain;
}

/* ---------- 3. Monitores grandes ----------
   Con --ui-scale la maqueta se reduce en escritorio; a partir de 1600 px esa
   reducción se suaviza y el contenido se quedaba en una columna estrecha
   rodeada de vacío. Aquí el contenedor acompaña al tamaño de la pantalla.
   Para volver atrás basta con borrar estas tres líneas. */
@media screen and (min-width: 1600px) { :root { --wrap: 1340px; } }
@media screen and (min-width: 1900px) { :root { --wrap: 1440px; } }
@media screen and (min-width: 2300px) { :root { --wrap: 1560px; } }

/* ---------- 4. Teléfono acostado ----------
   En un teléfono en horizontal la barra superior + la cabecera se comían un
   tercio de la pantalla antes de mostrar contenido.

   IMPORTANTE: las tres condiciones son necesarias. Con solo el alto, una
   ventana de escritorio corta (por ejemplo 1365 × 600 px, un portátil con la
   barra de marcadores abierta) entraba aquí y perdía la barra superior y el
   tamaño del logotipo. El ancho máximo de 940 px deja fuera el escritorio y
   las tablets, y cubre hasta el teléfono acostado más grande
   (iPhone Pro Max = 932 × 430 px). */
@media (max-width: 940px) and (max-height: 560px) and (orientation: landscape) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .brand img { height: 46px; }
  .hero__grid { min-height: 0; padding-top: 16px; }
  .hero__copy { padding-block: 12px 28px; }
  .hero__art { min-height: 200px; }
  .hero__year { margin-bottom: 8px; }
  .section { padding-block: clamp(32px, 5vw, 88px); }
  .nav { padding-block: 8px 24px; }
  .quote__side, .gtoc { position: static; }
  .lb { padding: 14px 62px; }
  .notfound { padding-block: 44px 56px; }
}

/* ---------- 5. Pantallas táctiles: área de toque ----------
   Los enlaces pequeños (chips, categorías, índice de guías) quedaban por
   debajo de los 40 px recomendados para el dedo. */
@media (pointer: coarse) {
  :root { --catnav-h: 61px; }
  .catnav a { padding-block: 10px; }
  .catnav__arrow { width: 40px; height: 40px; }
  .catnav__in::before { left: 46px; }
  .catnav__in::after { right: 46px; }
  .chip, .tags a, .gnav a, .tpanel__prods a { display: inline-flex; align-items: center; min-height: 40px; }
  .tchip { min-height: 42px; }
  .gtoc li a { padding: 9px 14px; }
  .topbar__item { padding-block: 5px; }
  .nav__caret { width: 48px; height: 48px; }
  .mega__link { padding-block: 12px; }
  .crumbs a { display: inline-block; padding-block: 7px; }
  .btn--sm { padding-block: .9em; }
  .qitem__qty button { width: 42px; height: 42px; }
  .qitem__qty input { height: 42px; }
  .qitem__rm { width: 42px; height: 42px; }
  .lb__btn { width: 54px; height: 54px; }
  .product__tools a, .product__tools button { min-height: 40px; }
  .sellers a, .contact__sellers a { min-height: 38px; }
  .footer__cats li { padding: 7px 0; }
  .qt--sm { height: 38px; }
  .sr-item { padding-block: 12px; }
}

/* ---------- 6. Dispositivos sin ratón ----------
   Al tocar una tarjeta el navegador deja el estado :hover "pegado" hasta que
   se toca otra cosa; sin ratón esos efectos sobran. */
@media (hover: none) {
  .card:hover, .cat a:hover, .brand-grid a:hover, .logos li a:hover,
  .guide-card:hover, .btn:hover, .wa-float:hover, .catnav__arrow:hover,
  .pager__link:hover, .guide-band__types a:hover { transform: none; }
  .card:hover .card__media img, .cat a:hover .cat__media img,
  .item__media:hover img, .client-grid li:hover img { transform: none; }
  .cat a:hover::after { transform: scaleX(0); }
  .btn:hover::before { box-shadow: none; }
  [data-tip]:hover::after { content: none; }
  .nav__has-mega:hover .mega { opacity: 0; visibility: hidden; }
  .nav__has-mega .mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

/* ---------- 7. Portada en teléfonos ----------
   La tira vertical mostraba 5 fotos de 55 px de alto: no se distinguía nada.
   Con 3 fotos la composición vuelve a leerse. */
@media (max-width: 720px) {
  .hero__art { min-height: 250px; }
  .hero__strip { width: 36%; grid-template-rows: repeat(3, 1fr); }
  .hero__strip img:nth-child(n + 4) { display: none; }
  .hero__coil { left: 38%; width: 58%; }
  .hero__stripes { top: 96px; height: 130px; }
  .hero__art::after { left: 38%; height: 96px; }
  .hero__title { font-size: clamp(1.75rem, 8.2vw, 3.2rem); }
  .hero__title span { padding-left: .9em; }
  .hero__lead { font-size: 1rem; }
  .hero__search .btn { align-self: stretch; }
  /* Se recupera lo que el bloque de ≤1023 px ajusta para tablet. */
  .circuits { grid-template-columns: 1fr; }
  .item__grid { gap: 12px; }
  .item__media { min-height: 0; }
  .shead { margin-bottom: 22px; }
  .group-title { font-size: 1.12rem; gap: 10px; }
  .gsec { padding-bottom: 32px; margin-bottom: 28px; }
  .brand-hero { padding: 18px; gap: 14px 20px; }
  .brand-hero img { max-height: 64px; }
  .contact__h { font-size: 1.4rem; }
  .about__card { clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); }
  .about__card p, .about-band__text p { text-align: left; }
}

/* ---------- 8. Teléfonos pequeños (≤400 px) ---------- */
@media (max-width: 400px) {
  .hero__year { font-size: clamp(2.7rem, 13vw, 7.2rem); }
  .footer__cats { columns: 1; }
  .topbar { font-size: .76rem; }
  .topbar__in { gap: 10px; }
  .product__cta { gap: 10px; }
  .product__cta .btn, .product__cta .qt, .notfound__actions .btn { width: 100%; }
  .qitem { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .qitem__img img { width: 64px; height: 56px; }
  .specs dt, .specs dd { font-size: .8rem; padding-inline: 8px; }
  .logos, .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gnav a, .tags a { font-size: .84rem; }
  .pager__link { padding: 12px 14px; }
}

/* ---------- 9. Impresión: que las tablas no se corten ---------- */
@media print {
  .vt-wrap { overflow: visible !important; border: 0; }
  .vt { font-size: 10px; }
  .vt-hint, .typebar, .quote__side { display: none !important; }
  .item, .gsec, .tpanel { break-inside: avoid; }
}

/* ==========================================================================
   Escala de interfaz en escritorio (densidad)
   --------------------------------------------------------------------------
   En pantallas anchas la maqueta se dibujaba demasiado grande: el usuario
   tenía que bajar el zoom del navegador al 80 % para ver la portada completa.
   Aquí se aplica esa misma reducción por CSS, de forma proporcional (tipos,
   espacios, imágenes y contenedores bajan todos igual), solo a partir de
   1200 px. Móvil y tablet quedan exactamente como estaban.
   Para ajustar la densidad, cambiar únicamente --ui-scale (1 = sin reducir).

   La condición «pointer: fine» limita la reducción a equipos con ratón o
   lápiz. Antes, una tablet grande en horizontal (iPad Pro = 1366 px) también
   se reducía al 80 % y dejaba botones de 32 px, imposibles de tocar; ahora
   esas pantallas se ven a tamaño completo. Todos los navegadores de
   escritorio actuales declaran «pointer: fine».
   ========================================================================== */
@media screen and (min-width: 1200px) and (pointer: fine) {
  :root { --ui-scale: .8; }
  body { zoom: var(--ui-scale); }

  /* Al escalar, el ancho útil de maquetación crece (1350 px reales ≈ 1687 px
     de maqueta), así que la cabecera vuelve a tener sitio para el menú y el
     buscador completos: se anulan los apretones del breakpoint de 1439 px. */
  .header__in { gap: 24px; }
  .nav__list { gap: 4px; }
  .nav__list > li > a { padding-inline: 12px; font-size: .98rem; }
  .search input { width: 210px; }
  .search input:focus { width: 260px; }

  /* 100vw sigue midiendo píxeles reales de pantalla: se corrige para que la
     franja del eslogan siga alineada con el contenedor. */
  .slogan-bar span {
    padding-left: max(var(--gutter), calc((100vw / var(--ui-scale) - var(--wrap)) / 2 + var(--gutter)));
  }

  /* El botón flotante de WhatsApp se mantiene a tamaño real (área táctil). */
  .wa-float { zoom: calc(1 / var(--ui-scale)); }

  /* <html> no se escala: el margen de los anclajes se ajusta a la altura
     real de la cabecera para que los títulos no queden tapados. */
  html { scroll-padding-top: calc((var(--header-h) + 16px) * var(--ui-scale)); }
}

/* En monitores grandes la reducción se suaviza por tramos: ahí la maqueta
   nunca se sintió apretada y no conviene dejar el contenido demasiado
   angosto. Solo hay que tocar el valor de --ui-scale de cada tramo. */
@media screen and (min-width: 1600px) and (pointer: fine) { :root { --ui-scale: .86; } }
@media screen and (min-width: 1900px) and (pointer: fine) { :root { --ui-scale: .92; } }
@media screen and (min-width: 2300px) and (pointer: fine) { :root { --ui-scale: 1; } }
