/* ==========================================================================
   GRANMARC — Registro de productos homologados ITF
   Sistema: papel técnico + tinta naval + rojo señal
   ========================================================================== */

:root {
  --paper: #ECE9E2;
  --paper-2: #E3DFD6;
  --paper-3: #D8D3C8;
  --ink: #0E1838;
  --ink-2: #3B4462;
  --muted: #6A7088;
  --brand: #213A8F;
  --red: #E30613;
  --red-ink: #B8050F;
  --line: rgba(14, 24, 56, .16);
  --line-2: rgba(14, 24, 56, .08);

  --night: #0A1230;
  --night-2: #111B42;
  --night-line: rgba(236, 233, 226, .14);

  --pad: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(15px, .95rem + .1vw, 17px);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* grano de papel */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.mono { font-family: var(--f-mono); font-variation-settings: "wdth" 87; letter-spacing: -.01em; }
.small { font-size: .74rem; line-height: 1.5; }
.up { text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 8px 12px; }

em { font-style: italic; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mono); font-variation-settings: "wdth" 87;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  padding: .95em 1.3em;
  border: 1px solid currentColor;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--paper); }
.btn svg { width: 12px; height: 12px; fill: currentColor; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red::before { background: #fff; }
.btn--red:hover { color: var(--red); }
.btn--ghost { color: var(--ink); }

/* ==========================================================================
   Barra superior
   ========================================================================== */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background .4s, color .4s, border-color .4s;
}
.bar.is-dark { background: color-mix(in srgb, var(--night) 84%, transparent); color: var(--paper); border-color: var(--night-line); }
.bar__logo { display: grid; }
.bar__logo img { grid-area: 1 / 1; transition: opacity .4s; }
.bar__logo .lg-w, .bar.is-dark .bar__logo .lg-d { opacity: 0; }
.bar.is-dark .bar__logo .lg-w { opacity: 1; }
.bar__in {
  display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 var(--pad);
}
.bar__logo img { width: 104px; height: auto; }
.bar__doc { font-size: .66rem; color: var(--muted); padding-left: 20px; border-left: 1px solid var(--line); white-space: nowrap; }
.bar.is-dark .bar__doc { color: rgba(236,233,226,.6); border-color: var(--night-line); }
.bar__doc b { font-weight: 500; color: inherit; }
.lang { display: flex; align-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 2px; }
.bar.is-dark .lang { border-color: var(--night-line); }
.lang__opt { display: flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: .64rem; letter-spacing: .06em; text-decoration: none; opacity: .5; transition: opacity .25s, background .25s; }
.lang__opt + .lang__opt { border-left: 1px solid var(--line); }
.bar.is-dark .lang__opt + .lang__opt { border-color: var(--night-line); }
.lang__opt:hover { opacity: 1; }
.lang__opt[aria-current="true"] { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.lang__flag { width: 18px; height: 12px; flex: none; box-shadow: 0 0 0 1px rgba(14,24,56,.18); }
.bar__flag { width: 26px; height: 17px; flex: none; align-self: center; box-shadow: 0 0 0 1px rgba(14,24,56,.18); }
.bar.is-dark .bar__flag { box-shadow: 0 0 0 1px rgba(236,233,226,.28); }
.bar__nav { display: flex; gap: 4px; }
.bar__nav a {
  font-size: .82rem; font-weight: 500; text-decoration: none;
  padding: 6px 10px; position: relative;
  font-variation-settings: "wdth" 88;
}
.bar__nav a i { font-style: normal; font-family: var(--f-mono); font-size: .6rem; margin-right: 5px; opacity: .5; vertical-align: 2px; }
.bar__nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.bar__nav a:hover::after, .bar__nav a.is-on::after { transform: scaleX(1); }
.bar__now { display: none; font-size: .68rem; white-space: nowrap; }
.bar__progress { height: 2px; position: absolute; left: 0; right: 0; bottom: -1px; }
.bar__progress span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.bar__menu { display: none; width: 40px; height: 40px; position: relative; margin-left: 8px; }
.bar__menu span:not(.sr) { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.bar__menu span:nth-child(1) { top: 16px; }
.bar__menu span:nth-child(2) { top: 23px; }
.bar__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.bar__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mnav { display: none; }

@media (max-width: 1100px) {
  .bar__in { gap: 14px; }
  .bar__nav, .bar__doc, .bar__flag { display: none; }
  .bar__now { display: block; }
  .bar__menu { display: block; }
  .mnav {
    display: grid; padding: 0 var(--pad);
    max-height: 0; overflow: hidden; transition: max-height .5s var(--ease);
  }
  .mnav.is-open { max-height: 420px; }
  .mnav a {
    text-decoration: none; padding: 14px 0; border-top: 1px solid var(--line);
    font-size: 1.4rem; font-weight: 700; font-variation-settings: "wdth" 75;
  }
  .bar.is-dark .mnav a { border-color: var(--night-line); }
  .mnav a:last-child { margin-bottom: 12px; }
  .mnav a i { font-style: normal; font-family: var(--f-mono); font-size: .7rem; margin-right: 12px; color: var(--red); vertical-align: 4px; }
}

/* ==========================================================================
   Portada
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 92px var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: var(--gap);
}
.hero__grid {
  position: absolute; inset: 0 var(--pad);
  display: grid; grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
}
.hero__grid i { border-left: 1px solid var(--line-2); }
.hero__grid i:last-child { border-right: 1px solid var(--line-2); }

.hero__meta {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  position: relative;
}
.hero__meta span:first-child { color: var(--red); }

.hero__title {
  grid-column: 1 / 9; grid-row: 2;
  position: relative; z-index: 2;
  margin-top: clamp(28px, 5vw, 64px);
  font-weight: 850;
  font-size: clamp(3.4rem, 10.2vw, 12rem);
  line-height: .8;
  letter-spacing: -.03em;
  text-transform: uppercase;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  white-space: nowrap;
}
.hero__title > span { display: block; }
.hero__l2 { color: var(--brand); margin-top: .04em; }
.hero__l2 em {
  font-weight: 300; text-transform: lowercase; letter-spacing: -.02em;
  font-stretch: 100%; font-variation-settings: "wdth" 100;
  font-size: .36em; vertical-align: 1.25em; color: var(--ink); margin-right: .15em;
}
.hero__title [data-split] { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.hero__title .ch {
  display: inline-block;
  transform: translateY(105%);
  animation: rise .9s var(--ease) forwards;
  animation-delay: calc(var(--k) * 38ms + 120ms);
}
@keyframes rise { to { transform: none; } }

.hero__lede {
  grid-column: 1 / 6; grid-row: 3;
  align-self: start;
  margin-top: clamp(28px, 3.4vw, 52px);
  max-width: 46ch;
  display: grid; gap: 14px;
  position: relative; z-index: 2;
}
.hero__lede p:first-child { font-size: clamp(1rem, .9rem + .35vw, 1.22rem); line-height: 1.45; }
.hero__lede .mono { color: var(--red); }

.hero__fig {
  grid-column: 6 / 11; grid-row: 2 / 4;
  align-self: center; justify-self: end;
  width: min(100%, 420px);
  margin: 40px 0 0;
  position: relative; z-index: 1;
}
.hero__stage { position: relative; aspect-ratio: 744 / 964; }
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(.94);
  transition: opacity .6s var(--ease), transform .9s var(--ease);
  filter: drop-shadow(0 40px 40px rgba(14,24,56,.24));
}
.hero__img.is-on { opacity: 1; transform: none; }
.hero__crop { position: absolute; inset: -24px -40px; pointer-events: none; }
.hero__crop i { position: absolute; width: 20px; height: 20px; border: 0 solid var(--ink); }
.hero__crop i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero__crop i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero__crop i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero__crop i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.hero__callouts { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.co > path { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.4s var(--ease) forwards; animation-delay: calc(900ms + var(--d) * 180ms); }
.co > circle { fill: var(--paper); stroke: var(--red); stroke-width: 4; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s var(--ease) forwards; animation-delay: calc(800ms + var(--d) * 180ms); }
.co > text { font-family: var(--f-mono); font-size: 25px; fill: var(--ink); opacity: 0; animation: fade .6s forwards; animation-delay: calc(1500ms + var(--d) * 180ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }
/* numbered tags + legend: only where the side labels don't fit */
.co__tag { display: none; }
.co__tag circle { fill: var(--red); stroke: var(--paper); stroke-width: 4; }
.co__tag text { font-family: var(--f-mono); font-size: 30px; font-weight: 700; fill: #fff; text-anchor: middle; }
.hero__legend { display: none; }
@media (max-width: 1365px) {
  /* side labels need ~260px right of the figure; below this they'd be clipped */
  .hero__callouts .co > text, .hero__callouts .co > path, .hero__callouts .co > circle { display: none; }
  .co__tag { display: inline; opacity: 0; animation: fade .5s forwards; animation-delay: calc(800ms + var(--d) * 180ms); }
  .hero__legend {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
    list-style: none; margin: 32px 0 0; padding: 0;
    font-size: .68rem; line-height: 1.3;
  }
  .hero__legend li { display: flex; align-items: center; gap: 8px; }
  .hero__legend b {
    flex: none; display: grid; place-items: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--red); color: #fff; font-size: .62rem;
  }
  .hero__fig .hero__legend + figcaption { margin-top: 20px; }
}
@media (min-width: 1101px) and (max-width: 1365px) {
  /* on the left it runs into the intro paragraph at these widths */
  .hero__stage .hero__seal { left: auto; right: -14%; top: 6%; }
}

.hero__fig figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: .66rem; margin-top: 44px; padding-top: 10px; border-top: 1px solid var(--ink);
}
.swatch { display: flex; gap: 6px; }
.swatch button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border: 1px solid var(--line); font-size: .64rem;
  transition: border-color .25s, background .25s;
}
.swatch button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.swatch button.is-on { border-color: var(--ink); background: var(--paper-2); }

.hero__seal {
  position: absolute; z-index: 3;
  left: -18%; top: 58%;
  width: clamp(56px, 5.4vw, 88px);
  transform: rotate(-7deg);
  box-shadow: 0 18px 30px -14px rgba(14,24,56,.45);
  border-radius: 6px;
  animation: seal 1s var(--ease) 1.3s both;
}
@keyframes seal { from { transform: rotate(-30deg) scale(1.6); opacity: 0; } }

.hero__data {
  grid-column: 1 / -1; grid-row: 4;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  margin-top: 36px;
  position: relative; z-index: 2;
  background: var(--paper);
}
.hero__data > div { padding: 16px 16px 24px 0; border-right: 1px solid var(--line); }
.hero__data > div + div { padding-left: 16px; }
.hero__data > div:last-child { border-right: 0; }
.hero__data dt { font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.hero__data dd { font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: .9; font-weight: 750; font-stretch: 70%; font-variation-settings: "wdth" 70; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero__data dd small { font-size: .45em; font-weight: 400; margin-left: 2px; }
.hero__data .dd-code { font-size: clamp(1.1rem, 2vw, 1.7rem); font-variation-settings: "wdth" 80; line-height: 1.15; padding-top: .4em; }
.hero__scroll { display: none; }

@media (max-width: 1100px) {
  .hero__title { font-size: clamp(3rem, 10.6vw, 9rem); grid-column: 1 / -1; }
  .hero__fig { grid-column: 7 / 13; grid-row: 3; width: min(100%, 340px); justify-self: center; }
  .hero__lede { grid-column: 1 / 7; }
}
@media (max-width: 760px) {
  .hero { grid-template-rows: auto auto auto auto auto; padding-top: 80px; }
  .hero__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__title { font-size: clamp(2.6rem, 17.5vw, 7rem); white-space: normal; }
  .hero__l2 em { display: block; font-size: .3em; vertical-align: 0; margin: .3em 0 .1em; }
  .hero__lede { grid-column: 1 / -1; grid-row: 3; }
  .hero__fig { grid-column: 1 / -1; grid-row: 4; width: 100%; margin-top: 56px; }
  .hero__stage { width: min(64%, 300px); margin: 0 auto; }
  .hero__stage .hero__seal { left: auto; right: -28%; top: 4%; width: 52px; }
  .hero__data { grid-row: 5; grid-template-columns: 1fr 1fr; }
  .hero__data > div:nth-child(2) { border-right: 0; }
  .hero__data > div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .hero__data > div:nth-child(4) { border-top: 1px solid var(--line); }
  .swatch button { padding: 10px 12px; }
  .sec--sheets .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec--sheets .tabs button { padding: 12px 8px 14px 0; margin-right: 0; font-size: .64rem; }
  .sec--sheets .tabs button b { font-size: clamp(1.1rem, 5.6vw, 1.4rem); }
}

/* ---------- Cinta ---------- */
.tape {
  background: var(--red); color: #fff;
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--ink);
  transform: rotate(-1.2deg);
  margin: clamp(40px, 6vw, 80px) -20px 0;
  position: relative; z-index: 3;
}
.tape__track { display: inline-flex; gap: 28px; padding: 14px 0; animation: tape 76s linear infinite; }
.tape span { font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.35rem); text-transform: uppercase; font-variation-settings: "wdth" 70; letter-spacing: .01em; }
.tape b { font-weight: 300; opacity: .6; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ==========================================================================
   Secciones
   ========================================================================== */
.sec { padding: clamp(80px, 11vw, 160px) var(--pad) clamp(60px, 8vw, 120px); position: relative; }
.sec__head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  align-items: end;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.sec__num { grid-column: 1 / 2; align-self: start; font-size: .8rem; color: var(--red); }
.sec__title {
  grid-column: 2 / 10;
  font-size: clamp(2.6rem, 7.4vw, 7.2rem);
  line-height: .86; letter-spacing: -.03em;
  font-weight: 820;
  font-variation-settings: "wdth" 66;
  text-transform: uppercase;
}
.sec__title em {
  font-weight: 300; text-transform: none; letter-spacing: -.035em;
  font-variation-settings: "wdth" 100;
  font-size: .78em;
}
.sec__kicker { grid-column: 10 / 13; justify-self: end; font-size: .7rem; color: var(--muted); text-align: right; }
.lead { font-size: clamp(1.15rem, 1rem + .7vw, 1.65rem); line-height: 1.35; letter-spacing: -.01em; font-variation-settings: "wdth" 95; }

@media (max-width: 760px) {
  .sec__num { grid-column: 1 / -1; margin-bottom: 14px; }
  .sec__title { grid-column: 1 / -1; }
  .sec__kicker { grid-column: 1 / -1; justify-self: start; text-align: left; margin-top: 16px; }
}

/* revelado */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 01 Norma ---------- */
.norm { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 56px; }
.norm__text { grid-column: 2 / 9; display: grid; gap: 22px; }
.norm__text p:not(.lead) { max-width: 58ch; color: var(--ink-2); grid-column: 1; }
.steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: s; }
.steps li { padding: 22px 22px 8px 0; border-right: 1px solid var(--line); position: relative; }
.steps li + li { padding-left: 22px; }
.steps li:last-child { border-right: 0; }
.steps li::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--red);
  transition: width 1s var(--ease); transition-delay: calc(var(--i) * 140ms + 200ms);
}
.steps li.is-in::before { width: 100%; }
.steps__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--ink); font-size: .72rem; border-radius: 50%; margin-bottom: 34px; }
.steps h3 { font-size: 1.35rem; font-weight: 760; font-variation-settings: "wdth" 78; letter-spacing: -.01em; margin-bottom: 8px; line-height: 1.1; }
.steps p { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 900px) {
  .norm__text { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3) { padding-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-right: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .steps__n { margin-bottom: 16px; }
}

/* ---------- 02 Índice ---------- */
.sec--index { background: var(--paper-2); }
.idx { border-bottom: 1px solid var(--ink); }
.idx__row a {
  display: grid;
  grid-template-columns: 80px minmax(0, 4.5fr) minmax(0, 4fr) 130px 40px;
  align-items: center; column-gap: var(--gap);
  padding: clamp(18px, 2.4vw, 34px) 0;
  border-top: 1px solid var(--ink);
  text-decoration: none;
  position: relative;
  isolation: isolate;
}
.idx__row a::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1;
  background: var(--ink);
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .55s var(--ease);
}
.idx__row a:hover::before, .idx__row a:focus-visible::before { clip-path: inset(0 0 0 0); }
.idx__row a:hover, .idx__row a:focus-visible { color: var(--paper); }
.idx__n { font-size: .74rem; color: var(--red); }
.idx__name {
  font-size: clamp(2.4rem, 7vw, 6.4rem); line-height: .9;
  font-weight: 820; text-transform: uppercase; letter-spacing: -.03em;
  font-variation-settings: "wdth" 62;
  transition: font-variation-settings .6s var(--ease), letter-spacing .6s var(--ease);
}
.idx__row a:hover .idx__name { font-variation-settings: "wdth" 88; letter-spacing: -.02em; }
.idx__desc { color: inherit; opacity: .78; max-width: 38ch; }
.idx__tag { font-size: .66rem; text-transform: uppercase; border: 1px solid currentColor; padding: 5px 8px; justify-self: start; }
.idx__go { font-size: 1.6rem; transition: transform .45s var(--ease); justify-self: end; }
.idx__row a:hover .idx__go { transform: translateX(6px) rotate(-45deg); color: var(--red); }
.idx__thumb { display: none; }

.idx__float {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 300px; height: 300px;
  pointer-events: none;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.6) rotate(-6deg);
  transition: opacity .3s, transform .5s var(--ease);
}
.idx__float.is-on { opacity: 1; }
.idx__float img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.45)); }

@media (max-width: 900px) {
  .idx__row a { grid-template-columns: 1fr 96px; row-gap: 8px; }
  .idx__n { grid-column: 1; grid-row: 1; }
  .idx__name { grid-column: 1; grid-row: 2; }
  .idx__desc { grid-column: 1; grid-row: 3; }
  .idx__tag { grid-column: 1; grid-row: 4; }
  .idx__go { display: none; }
  .idx__thumb { display: block; grid-column: 2; grid-row: 1 / 5; width: 96px; height: 96px; object-fit: contain; }
  .idx__float { display: none; }
}

/* ---------- 03 Ensayo (noche) ---------- */
.sec--lab { background: var(--night); color: var(--paper); }
.sec--lab .sec__head { border-color: var(--paper); }
.sec--lab .sec__kicker, .sec--lab .muted { color: rgba(236,233,226,.55); }
.sec--lab::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
}
.lab { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 40px; position: relative; }
.lab__src { grid-column: 1 / 5; display: grid; gap: 18px; align-content: start; }
.lab__src > p:nth-child(2) { font-size: 1.15rem; line-height: 1.35; }
.lab__how { color: rgba(236,233,226,.72); font-size: .94rem; }
.kv { display: grid; border-top: 1px solid var(--night-line); font-size: .74rem; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--night-line); }
.kv dt { color: rgba(236,233,226,.55); }

.rig { grid-column: 5 / 13; border: 1px solid var(--night-line); background: linear-gradient(180deg, var(--night-2), var(--night)); }
.rig__top { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--night-line); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.rig__live { display: inline-flex; align-items: center; gap: 8px; color: rgba(236,233,226,.6); }
.rig__live i { width: 7px; height: 7px; border-radius: 50%; background: #3BD16F; box-shadow: 0 0 0 0 rgba(59,209,111,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(59,209,111,0); } 100% { box-shadow: 0 0 0 0 rgba(59,209,111,0); } }

.rig__stage { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; }
.rig__svg { width: 100%; height: auto; color: var(--paper); padding: 8px; }
.rig__beam { stroke: var(--paper); stroke-width: 2; }
.rig__rod { stroke: var(--paper); stroke-width: 2; }
.rig__pivot { fill: var(--night); stroke: var(--paper); stroke-width: 2; }
.rig__pend { transform-origin: 250px 24px; transform: rotate(40deg); }
.rig__fist { fill: var(--red); }
.rig__fistlbl { font-family: var(--f-mono); font-size: 10px; fill: #fff; }
.rig__arc { fill: none; stroke: rgba(236,233,226,.3); stroke-dasharray: 3 5; }
.rig__stand { stroke: rgba(236,233,226,.6); stroke-width: 3; }
.rig__skull { fill: #C9B79C; stroke: rgba(0,0,0,.25); }
.rig__guard { fill: var(--brand); stroke: rgba(255,255,255,.3); opacity: 0; transform: scale(1.15); transform-origin: 330px 260px; transition: opacity .4s, transform .5s var(--ease), fill .3s; }
.rig__guard.is-on { opacity: 1; transform: none; }
.rig__head { transform-origin: 330px 370px; }
.rig__head.is-hit { animation: hit .5s var(--ease); }
.rig__head.is-hit-hard { animation: hitHard .6s var(--ease); }
@keyframes hit { 20% { transform: rotate(3deg); } 55% { transform: rotate(-1deg); } }
@keyframes hitHard { 15% { transform: rotate(12deg) translateX(8px); } 45% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
.rig__sensor { fill: #3BD16F; }
.rig__dim line { stroke: rgba(236,233,226,.35); }
.rig__dim text { font-size: 10px; fill: rgba(236,233,226,.6); font-family: var(--f-mono); }

.rig__read { padding: 16px 20px 16px 8px; display: grid; gap: 6px; }
.rig__val { font-size: clamp(3rem, 6vw, 5.6rem); font-weight: 800; line-height: .9; font-variation-settings: "wdth" 62; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rig__val.is-hot { color: var(--red); }
.rig__meter { height: 6px; background: rgba(236,233,226,.1); margin: 8px 0 6px; overflow: hidden; }
.rig__meter span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--v)); transition: transform .8s var(--ease), background .3s; }
.rig__meter span.is-safe { background: #3BD16F; }
.rig__abs { display: flex; justify-content: space-between; font-size: .72rem; border-top: 1px solid var(--night-line); padding-top: 10px; margin-top: 6px; }
.rig__abs b { font-weight: 500; color: #3BD16F; }

.rig__plot { width: 100%; height: 110px; display: block; border-top: 1px solid var(--night-line); }
.rig__axis { stroke: var(--night-line); }
.rig__curve { fill: none; stroke: #3BD16F; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rig__curve--base { stroke: rgba(227,6,19,.55); stroke-dasharray: 4 4; }
.rig__plotlbl { padding: 0 16px 10px; color: rgba(236,233,226,.45); font-size: .64rem; }

.rig__ctrl { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--night-line); }
.rig__samples { display: flex; flex-wrap: wrap; gap: 6px; }
.rig__samples button {
  font-family: var(--f-mono); font-variation-settings: "wdth" 87; font-size: .68rem;
  padding: 7px 10px; border: 1px solid var(--night-line); color: rgba(236,233,226,.75);
  transition: all .25s;
}
.rig__samples button:hover { border-color: var(--paper); color: var(--paper); }
.rig__samples button[aria-checked="true"] { background: var(--paper); color: var(--night); border-color: var(--paper); }
.rig .btn--red:hover { color: var(--red); }

@media (max-width: 1000px) {
  .lab__src, .rig { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .rig__stage { grid-template-columns: 1fr; }
  .rig__read { padding: 0 16px 16px; }
  .rig__ctrl .btn { width: 100%; justify-content: center; }
}

/* resultados */
.results { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(40px, 5vw, 72px); margin-top: clamp(56px, 8vw, 110px); position: relative; }
.results__big { grid-column: 1 / 6; display: grid; gap: 14px; align-content: start; }
.results__num { display: flex; align-items: center; gap: 14px; font-size: clamp(3rem, 7vw, 6.4rem); font-weight: 820; line-height: .9; font-variation-settings: "wdth" 62; letter-spacing: -.02em; }
.results__num span:first-child { color: var(--red); text-decoration: line-through; text-decoration-thickness: .06em; }
.results__num span:last-child { color: #3BD16F; }
.results__num svg { width: .6em; stroke: var(--paper); stroke-width: 2; fill: none; flex: none; }
.results__big p:last-child { color: rgba(236,233,226,.75); max-width: 40ch; }

.table { grid-column: 6 / 13; font-size: .92rem; }
.table__row {
  display: grid; grid-template-columns: 36px 1.3fr .7fr .8fr 2.2fr; gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--night-line);
}
.table__row--h { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(236,233,226,.5); border-bottom-color: var(--paper); }
.table__row--ref { color: rgba(236,233,226,.5); }
.table__row.is-gm > span:nth-child(2) { font-weight: 650; }
.table__row:not(.is-gm):not(.table__row--h):not(.table__row--ref) { color: rgba(236,233,226,.62); }
.table__bar { position: relative; height: 22px; background: rgba(236,233,226,.06); }
.table__bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--a) * 1%); background: rgba(236,233,226,.22); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.is-gm .table__bar i { background: linear-gradient(90deg, var(--brand), #3F63D8); }
.table.is-in .table__bar i { transform: scaleX(1); }
.table__row:nth-child(4) .table__bar i { transition-delay: .1s; }
.table__row:nth-child(5) .table__bar i { transition-delay: .2s; }
.table__row:nth-child(6) .table__bar i { transition-delay: .3s; }
.table__row:nth-child(7) .table__bar i { transition-delay: .4s; }
.table__bar b { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: .68rem; font-weight: 500; }

.quote { grid-column: 1 / 8; border-left: 2px solid var(--red); padding-left: clamp(18px, 3vw, 36px); }
.quote p { font-size: clamp(1.4rem, 1rem + 1.7vw, 2.6rem); line-height: 1.12; font-weight: 300; letter-spacing: -.02em; font-variation-settings: "wdth" 88; }
.quote em { font-weight: 700; color: #fff; }
.quote cite { display: block; font-style: normal; font-size: .68rem; margin-top: 18px; color: rgba(236,233,226,.5); text-transform: uppercase; letter-spacing: .04em; }

.params { grid-column: 1 / 8; }
.params__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); margin-top: 14px; }
.params__grid div { padding: 14px 12px 16px 0; border-bottom: 1px solid var(--night-line); }
.params__grid dt { font-size: .62rem; color: rgba(236,233,226,.5); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.params__grid dd { font-size: 1.25rem; font-weight: 650; font-variation-settings: "wdth" 80; }

.report { grid-column: 9 / 13; grid-row: span 2; align-self: start; }
.report > a { display: block; position: relative; aspect-ratio: 1 / 1.22; }
.report img { position: absolute; width: 72%; border: 1px solid rgba(0,0,0,.2); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); transition: transform .7s var(--ease); }
.report img:first-child { right: 0; top: 30px; z-index: 2; transform: rotate(3deg); }
.report img:last-child { left: 0; top: 0; transform: rotate(-4deg); filter: brightness(.8); }
.report a:hover img:first-child { transform: rotate(0) translate(8px, -10px); }
.report a:hover img:last-child { transform: rotate(-8deg) translateX(-14px); }
.report figcaption { margin-top: 24px; }
.report figcaption { position: relative; z-index: 3; }
.report figcaption a { color: var(--paper); text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .results__big, .table, .quote, .params, .report { grid-column: 1 / -1; grid-row: auto; }
  .params__grid { grid-template-columns: 1fr 1fr; }
  .report { max-width: 420px; }
}
@media (max-width: 560px) {
  .table__row { grid-template-columns: 1.2fr .7fr 1.8fr; }
  .table__row > span:nth-child(1), .table__row > span:nth-child(4) { display: none; }
}

/* ensayo de guantes */
.gtest { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(36px, 5vw, 64px); margin-top: clamp(64px, 9vw, 120px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--night-line); position: relative; }
.gtest__head { grid-column: 1 / 5; display: grid; gap: 18px; align-content: start; }
.gtest__head h3 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.2rem); font-weight: 820; line-height: .92; text-transform: uppercase; letter-spacing: -.01em; font-variation-settings: "wdth" 66; }
.gtest__head h3 em { font-style: normal; color: #3BD16F; }
.gchart { grid-column: 5 / 13; align-self: start; border: 1px solid var(--night-line); background: linear-gradient(180deg, var(--night-2), var(--night)); padding: 16px 18px 18px; }
.gchart__top { display: flex; justify-content: space-between; gap: 12px; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(236,233,226,.55); padding-bottom: 10px; border-bottom: 1px solid var(--paper); }
.gchart__row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 3fr 64px; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--night-line); font-size: .9rem; }
.gchart__row > span:first-child { font-weight: 600; }
.gchart__track { position: relative; height: 18px; background: rgba(236,233,226,.06); }
.gchart__track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--g) / 350 * 100%); min-width: 3px; background: #3BD16F; transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease); }
.gchart.is-in .gchart__track i { transform: scaleX(1); }
.gchart__row--alt { color: rgba(236,233,226,.7); }
.gchart__row--alt > span:first-child { font-weight: 400; }
.gchart__row--alt .gchart__track i { background: rgba(236,233,226,.4); }
.gchart__row--lim > span:first-child { font-weight: 400; color: rgba(236,233,226,.7); }
.gchart__row--lim .gchart__track i { background: repeating-linear-gradient(135deg, var(--red) 0 6px, #B8050F 6px 12px); transition-delay: .3s; }
.gchart__v { text-align: right; font-family: var(--f-mono); font-size: .8rem; white-space: nowrap; }
.gchart__notes { margin-top: 14px; display: grid; gap: 4px; font-size: .64rem; line-height: 1.5; color: rgba(236,233,226,.55); }
.gtest .quote { grid-column: 1 / 9; }

/* documentación */
.docs { margin-top: clamp(64px, 9vw, 120px); position: relative; }
.docs__list { margin-top: 14px; border-top: 1px solid var(--paper); }
.docs__list a { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--night-line); text-decoration: none; transition: padding .35s var(--ease), background .35s; }
.docs__list a:hover { background: rgba(236,233,226,.05); padding-left: 12px; padding-right: 12px; }
.docs__code { font-size: .7rem; color: #FF5A62; }
.docs__t b { display: block; font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 650; font-variation-settings: "wdth" 85; }
.docs__t span { display: block; font-size: .68rem; color: rgba(236,233,226,.55); margin-top: 4px; }
.docs__dl { font-size: .68rem; border: 1px solid var(--night-line); padding: 8px 12px; white-space: nowrap; transition: background .3s, color .3s; }
.docs__list a:hover .docs__dl { background: var(--paper); color: var(--night); }

@media (max-width: 1000px) {
  .gtest__head, .gchart, .gtest .quote { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .gchart__row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .gchart__track { grid-column: 1 / -1; grid-row: 2; }
  .docs__list a { grid-template-columns: 1fr; gap: 10px; }
  .docs__dl { justify-self: start; }
}

/* fichas: estructura del guante */
.layers { display: grid; gap: 3px; margin: 16px 0 10px; }
.layers li { display: grid; grid-template-columns: 58px 1fr; align-items: stretch; gap: 12px; }
.layers li b { font-weight: 500; font-size: .7rem; align-self: center; color: var(--muted); }
.layers li span { display: flex; align-items: center; min-height: calc(var(--h) * 1.7px); padding: 6px 12px; font-size: .86rem; font-weight: 550; background: #EAD9B4; border-left: 3px solid #C9A86A; }
.layers li.is-air span { background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.55) 0 2px, transparent 3px) 0 0 / 11px 11px, #F2C45E; border-left-color: #D99A1E; }
.spec__block > p.small:not(.muted) { margin-bottom: 12px; }
.gfig { margin-top: 16px; }
.gfig img { width: 100%; height: auto; border: 1px solid var(--line); }
.gfig figcaption { margin-top: 8px; color: var(--muted); }

/* ---------- 04 Fichas ---------- */
.tabs { display: flex; position: relative; border-bottom: 1px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 14px 22px 16px 0; margin-right: 22px; font-size: .72rem; color: var(--muted); white-space: nowrap; transition: color .3s; }
.tabs button b { display: block; font-family: var(--f-sans); font-variation-settings: "wdth" 70; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 780; text-transform: uppercase; color: var(--ink-2); line-height: 1; margin-top: 4px; letter-spacing: -.01em; transition: color .3s; }
.tabs button[aria-selected="true"], .tabs button[aria-selected="true"] b { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--red); }
.tabs__ink { position: absolute; bottom: -1px; left: 0; height: 3px; background: var(--red); transition: transform .5s var(--ease), width .5s var(--ease); }

.sheet { margin-top: 28px; background: #F6F4EF; border: 1px solid var(--line); position: relative; animation: sheetIn .6s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(14px); } }
.sheet::before, .sheet::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--red); }
.sheet::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.sheet::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.sheet__head {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  padding: clamp(18px, 2.5vw, 32px); border-bottom: 1px solid var(--line);
}
.sheet__head .up { color: var(--red); }
.sheet__name { font-size: clamp(3rem, 8vw, 7rem); font-weight: 850; line-height: .82; text-transform: uppercase; letter-spacing: -.035em; font-variation-settings: "wdth" 62; margin: 10px 0 12px; }
.sheet__sub { color: var(--ink-2); max-width: 48ch; }
.sheet__stamp { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border: 1px dashed var(--line); }
.sheet__stamp img { width: 38px; }
.sheet__stamp dl { display: grid; grid-template-columns: auto auto; gap: 2px 12px; }
.sheet__stamp dt { color: var(--muted); }
.sheet__stamp .ok { color: #16833F; font-weight: 500; }
.sheet__stamp .ok::before { content: "● "; }

.sheet__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.gal { border-right: 1px solid var(--line); padding: clamp(18px, 2.5vw, 32px); position: sticky; top: 64px; align-self: start; }
.gal__main {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  background:
    linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 0 / 32px 32px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.gal__main img { max-width: 84%; max-height: 84%; width: auto; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(14,24,56,.2)); transition: opacity .3s, transform .5s var(--ease); }
.gal__main img.is-cover { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; filter: none; }
.gal__main img.is-swap { opacity: 0; transform: scale(.96); }
.gal__fig { position: absolute; left: 10px; top: 10px; font-size: .62rem; color: var(--muted); }
.gal__main img.gal__seal { position: absolute; left: 12px; bottom: 12px; width: clamp(30px, 7.5%, 50px); height: auto; max-width: none; max-height: none; z-index: 1; pointer-events: none; transition: none; filter: drop-shadow(0 4px 8px rgba(14,24,56,.18)); }
.gal__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.gal__thumbs:has(> :nth-child(7)) { grid-template-columns: repeat(4, 1fr); }
.gal__thumbs button { aspect-ratio: 1; border: 1px solid var(--line); padding: 4px; background: var(--paper); transition: border-color .25s; }
.gal__thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumbs button.is-on { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

.spec { display: grid; }
.spec__block { padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.5vw, 32px); border-bottom: 1px solid var(--line); }
.spec__block:last-child { border-bottom: 0; }
.spec__block h4 { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin-bottom: 14px; }
.spec__t th, .spec__t td { text-align: left; padding: 9px 0; border-top: 1px dotted var(--line); vertical-align: top; }
.spec__t th { font-family: var(--f-mono); font-variation-settings: "wdth" 87; font-weight: 400; font-size: .72rem; color: var(--muted); width: 38%; padding-right: 12px; }
.spec__t td { font-weight: 550; }
.perf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 12px; }
.perf--big { grid-template-columns: repeat(3, 1fr); }
.perf__item { background: #F6F4EF; padding: 14px; display: grid; gap: 6px; align-content: start; }
.perf__v { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 820; line-height: .9; font-variation-settings: "wdth" 62; color: var(--brand); letter-spacing: -.02em; }
.perf__v small { font-size: .45em; font-weight: 500; }
.perf__item .small { color: var(--muted); }
.gauge { position: relative; height: 34px; border: 1px solid var(--ink); margin-top: 16px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%); }
.gauge__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--a) * 1%); background: var(--brand); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.sheet:not([hidden]) .gauge.is-in .gauge__fill { transform: scaleX(1); }
.gauge__mark { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--ink); background: #F6F4EF; padding: 2px 6px; }
.sizes { display: grid; border: 1px solid var(--line); }
.sizes > div { display: grid; grid-template-columns: 90px repeat(4, 1fr); }
.sizes > div + div { border-top: 1px solid var(--line); }
.sizes span { padding: 10px; text-align: center; border-left: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.sizes span:first-child { border-left: 0; text-align: left; font-weight: 400; font-size: .7rem; color: var(--muted); }
.sizes > div:first-child span:not(:first-child) { font-size: 1.4rem; font-variation-settings: "wdth" 70; font-weight: 800; }
.checks { display: grid; gap: 0; }
.checks li { padding: 9px 0 9px 30px; border-top: 1px dotted var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px; border: 1px solid var(--ink); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 15px; width: 5px; height: 9px; border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg); }

@media (max-width: 1000px) {
  .sheet__head { grid-template-columns: 1fr auto; }
  .sheet__body { grid-template-columns: 1fr; }
  .gal { position: static; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .sheet__head { grid-template-columns: 1fr; }
  .sheet__stamp { justify-self: start; }
  .perf, .perf--big { grid-template-columns: 1fr 1fr; }
  .sizes > div { grid-template-columns: 70px repeat(4, 1fr); }
  .sizes span { padding: 8px 4px; font-size: .85rem; }
}

/* comparativa */
.cmp { margin-top: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 28px; }
.cmp__head { grid-column: 1 / 5; display: grid; gap: 14px; align-content: start; }
.cmp__head .up { color: var(--red); }
.cmp__head h3 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: .92; font-weight: 820; text-transform: uppercase; font-variation-settings: "wdth" 66; letter-spacing: -.02em; }
.cmp__head h3 em { display: block; font-weight: 300; text-transform: none; font-variation-settings: "wdth" 100; font-size: .8em; }
.cmp__grid { grid-column: 6 / 13; border-top: 1px solid var(--ink); }
.cmp__row { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cmp__row--h span { font-size: clamp(1.1rem, 1.9vw, 1.6rem); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 66; }
.cmp__row [role="rowheader"] { font-size: .7rem; color: var(--muted); }
.cmp__row .yes { color: #16833F; font-weight: 600; }
@media (max-width: 900px) { .cmp__head, .cmp__grid { grid-column: 1 / -1; } }
@media (max-width: 620px) {
  .cmp__grid { overflow-x: auto; }
  .cmp__row { min-width: 560px; font-size: .9rem; }
}

/* ---------- 05 Dobok ---------- */
.sec--dobok { background: #F6F4EF; border-top: 1px solid var(--line); }
.dobok__intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.dobok__intro .lead { grid-column: 2 / 9; }
.dobok__label { grid-column: 10 / 13; }
.dobok__label img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.dobok__label figcaption { margin-top: 8px; color: var(--muted); font-size: .64rem; }

.grade { margin-top: clamp(40px, 6vw, 80px); }
.grade > p { color: var(--red); margin-bottom: 14px; }
.grade__list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.grade__list li { display: grid; gap: 4px; padding: 18px 18px 18px 0; border-right: 1px solid var(--line); }
.grade__list li + li { padding-left: 18px; }
.grade__list li:last-child { border-right: 0; }
.grade__list b { font-weight: 750; font-variation-settings: "wdth" 80; font-size: 1.1rem; }
.grade__list span:last-child { color: var(--muted); font-size: .9rem; }
.grade__sw { width: 56px; height: 64px; border: 1px solid var(--ink); background: #fff; margin-bottom: 10px; position: relative; overflow: hidden; }
.grade__sw::before, .grade__sw::after { content: ""; position: absolute; background: var(--ink); }
.grade__sw--danes::before { left: 0; right: 0; bottom: 0; height: 7px; }
.grade__sw--4dan::before { left: 0; right: 0; bottom: 0; height: 7px; }
.grade__sw--4dan::after { top: 0; bottom: 0; left: 8px; width: 6px; }
.grade__sw--master::before { top: 0; bottom: 0; left: 8px; width: 3px; box-shadow: 7px 0 0 var(--ink); }
.grade__sw--master::after { left: 0; right: 0; bottom: 0; height: 7px; }
@media (max-width: 900px) {
  .dobok__intro .lead { grid-column: 1 / -1; }
  .dobok__label { grid-column: 1 / 7; }
  .grade__list { grid-template-columns: 1fr 1fr; }
  .grade__list li:nth-child(2) { border-right: 0; }
  .grade__list li:nth-child(3) { padding-left: 0; }
  .grade__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .dobok__label { grid-column: 1 / -1; } }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: clamp(40px, 6vw, 72px) 0 20px; }
.filters button { font-size: .7rem; padding: 8px 12px; border: 1px solid var(--line); transition: all .25s; }
.filters button:hover { border-color: var(--ink); }
.filters button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters sup { font-size: .6em; color: var(--red); }

.doboks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.dk { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: opacity .4s, transform .4s var(--ease); }
.dk.is-out { display: none; }
.dk button { display: grid; width: 100%; text-align: left; padding: 16px; gap: 14px; height: 100%; align-content: start; }
.dk__img { position: relative; aspect-ratio: 600 / 484; overflow: hidden; background: #fff; }
.dk__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .5s; }
.dk__img img + img { position: absolute; inset: 0; opacity: 0; }
.dk button:hover .dk__img img:first-child { transform: scale(1.04); }
.dk button:hover .dk__img img + img { opacity: 1; }
.dk__code { display: flex; justify-content: space-between; font-size: .64rem; color: var(--muted); }
.dk__code b { color: var(--red); font-weight: 500; }
.dk__name { font-size: 1.35rem; font-weight: 780; line-height: 1.05; font-variation-settings: "wdth" 75; letter-spacing: -.01em; }
.dk__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dk__tags span { font-family: var(--f-mono); font-variation-settings: "wdth" 87; font-size: .6rem; border: 1px solid var(--line); padding: 3px 6px; text-transform: uppercase; }
.dk__tags span.oz { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 900px) { .doboks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .doboks { grid-template-columns: 1fr 1fr; }
  .dk button { padding: 10px; gap: 10px; }
  .dk__name { font-size: 1rem; }
  .dk__tags span:not(.oz) { display: none; }
}

/* diálogo */
.dlg { border: 0; padding: 0; max-width: min(1080px, calc(100vw - 24px)); width: 100%; background: #F6F4EF; color: var(--ink); max-height: calc(100svh - 24px); }
.dlg::backdrop { background: rgba(10,18,48,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgIn .45s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px); } }
.dlg__in { display: grid; grid-template-columns: 1.1fr 1fr; position: relative; }
.dlg__x { position: absolute; right: 0; top: 0; width: 48px; height: 48px; background: var(--ink); color: var(--paper); z-index: 2; font-size: 1rem; }
.dlg__x:hover { background: var(--red); }
.dlg__gal { background: #fff; border-right: 1px solid var(--line); }
.dlg__gal > img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.dlg__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.dlg__thumbs button { background: #fff; aspect-ratio: 1; padding: 0; opacity: .55; transition: opacity .25s; }
.dlg__thumbs button.is-on, .dlg__thumbs button:hover { opacity: 1; }
.dlg__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dlg__info { padding: clamp(20px, 3vw, 40px); display: grid; gap: 16px; align-content: start; }
.dlg__info .up { color: var(--red); }
.dlg__info h3 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 820; line-height: .92; text-transform: uppercase; font-variation-settings: "wdth" 64; letter-spacing: -.02em; padding-right: 40px; }
@media (max-width: 760px) {
  .dlg__in { grid-template-columns: 1fr; }
  .dlg__gal { border-right: 0; }
  .dlg { overflow-y: auto; }
}

/* ---------- 06 Verificar ---------- */
.verify { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.verify__seal { grid-column: 1 / 4; position: sticky; top: 100px; }
.verify__seal img { width: min(78%, 170px); margin-left: 12px; transform: rotate(-4deg); box-shadow: 0 30px 50px -24px rgba(14,24,56,.5); border-radius: 10px; }
.verify__list { grid-column: 5 / 13; border-top: 1px solid var(--ink); }
.verify__list li { display: grid; grid-template-columns: 90px 1fr; gap: var(--gap); padding: clamp(20px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.verify__list li > span { font-size: .78rem; color: var(--red); padding-top: 6px; }
.verify__list h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 780; line-height: 1; letter-spacing: -.015em; font-variation-settings: "wdth" 72; margin-bottom: 10px; }
.verify__list p { color: var(--ink-2); max-width: 54ch; }
@media (max-width: 900px) {
  .verify__seal { grid-column: 1 / -1; position: static; }
  .verify__seal img { width: 110px; }
  .verify__list { grid-column: 1 / -1; }
  .verify__list li { grid-template-columns: 60px 1fr; }
}

/* ==========================================================================
   Pie
   ========================================================================== */
.foot { background: var(--night); color: var(--paper); padding: clamp(60px, 8vw, 110px) var(--pad) 28px; overflow: hidden; }
.foot__top { display: grid; gap: clamp(40px, 6vw, 80px); }
.foot__logo { display: block; width: min(100%, 980px); height: auto; margin-inline: auto; }
.foot__brand { display: grid; gap: clamp(18px, 2.6vw, 30px); }
.foot__claim { max-width: 72ch; margin-inline: auto; text-align: center; text-wrap: balance; color: rgba(236,233,226,.72); font-size: clamp(.95rem, 1.5vw, 1.15rem); line-height: 1.55; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); border-top: 1px solid var(--night-line); padding-top: 24px; }
.foot__cols .up { color: rgba(236,233,226,.5); margin-bottom: 10px; }
.foot__cols a { text-underline-offset: 4px; }
.foot__cols a:hover { color: var(--red); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--night-line); color: rgba(236,233,226,.5); font-size: .64rem; }
.foot__bottom a { color: var(--paper); text-decoration: none; }
@media (max-width: 760px) { .foot__cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   Movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .tape__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Impresión: una ficha técnica por hoja
   ========================================================================== */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 10pt; }
  body::before, .bar, .hero, .tape, .sec:not(.sec--sheets), .foot, .tabs, .cmp, .gal__thumbs, .sec--sheets .sec__head { display: none !important; }
  .sec--sheets { padding: 0; }
  body.print-one .sheet:not(.is-printing) { display: none !important; }
  .sheet { display: block !important; border: 1px solid #999; margin: 0; background: #fff; animation: none; page-break-after: always; }
  .sheet[hidden] { display: none !important; }
  .sheet__body { grid-template-columns: 5fr 7fr; }
  .gal { position: static; }
  .gauge__fill { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .sheet__head::after { content: "GRANMARC · Registro de productos homologados ITF · gran-marc.com.ar"; grid-column: 1 / -1; font-family: var(--f-mono); font-size: 7pt; color: #666; }
}

@media (max-width: 520px) { .bar__now { display: none !important; } }
