
/* ===== norm hub (norma.html) · page components, prefix nh- ===== */

/* hero: breadcrumb and the switcher share a top band; copy and media below */
.nh-top{padding-top:clamp(18px,2.2vw,30px)}
.nh-top .crumbs{margin-bottom:clamp(12px,1.4vw,18px)}
.nh-ph .ph-in{padding-top:clamp(26px,3.2vw,48px)}
.nh-ph .ph-lead{max-width:32ch}
.nh-down:hover svg{transform:translateY(2px)}

/* media: decorative photo with the code number as the page's typographic signature */
.nh-media{container-type:inline-size}
.nh-media::after{background:linear-gradient(180deg,rgba(7,16,28,0) 30%,rgba(7,16,28,.86)),linear-gradient(90deg,rgba(7,16,28,.42),rgba(7,16,28,0) 58%)}
.nh-code{position:absolute;left:clamp(18px,6cqw,36px);bottom:clamp(16px,5.4cqw,34px);z-index:1;display:flex;flex-direction:column;align-items:flex-start;color:#fff;pointer-events:none}
.nh-code small{margin:0 0 clamp(8px,2.2cqw,14px) .1em;font-size:clamp(12px,2.4cqw,15px);font-weight:600;line-height:1;letter-spacing:.08em;color:var(--bone-84)}
.nh-code b{display:flex;font-size:min(31cqw,calc(146cqw / var(--len,4)));font-weight:500;line-height:.8;letter-spacing:-.06em;white-space:nowrap;clip-path:inset(-50% -12% 0 -12%)}
.nh-code b span{display:block;animation:nh-rise 1s var(--ease) both;animation-delay:calc(.12s + var(--k,0) * 65ms)}
@keyframes nh-rise{from{transform:translateY(104%)}}
.nh-media .nh-seal{position:absolute;z-index:2;inset:auto;right:clamp(14px,4.6cqw,30px);top:clamp(14px,4.6cqw,30px);left:auto;bottom:auto;width:clamp(96px,30cqw,190px);height:auto;object-fit:contain;filter:drop-shadow(0 16px 30px rgba(0,0,0,.5));animation:nh-seal-in 1.1s var(--ease) both .25s}
@keyframes nh-seal-in{from{opacity:0;transform:translateY(-10px) scale(.92)}}

/* the seal of the certification: ink scene, seal large, files to share */
/* evidencia: the delivery photo, the certificate card with the seal, the press of the norm, the moments strip */
.nh-evs .head{margin-bottom:clamp(22px,2.6vw,34px)}
.nh-ev{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:auto auto;gap:14px}
.nh-ev-ph{position:relative;grid-row:1/3;margin:0;min-height:420px;border-radius:var(--r);overflow:hidden;background:var(--ink)}
.nh-ev-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.nh-ev-ph:hover img{transform:scale(1.03)}
.nh-ev-cert{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;align-items:start;overflow:hidden}
.nh-ev-cert .h3{margin:0;font-size:clamp(19px,1.5vw,22px);font-weight:600;line-height:1.2;letter-spacing:-.015em;color:#fff}
.nh-ev-cert p{font-size:14.5px;line-height:1.5;color:var(--bone-84)}
.nh-ev-cert > :not(.nh-ev-seal){grid-column:1}
.nh-ev-cert .nh-ev-seal{grid-column:2;grid-row:1/6;align-self:start;width:clamp(96px,9vw,130px);height:auto;filter:drop-shadow(0 16px 28px rgba(0,0,0,.5))}
.nh-ev-cert .chk{gap:8px;margin-top:4px}
.nh-ev-cert .chk li{font-size:14px;color:var(--bone-84)}
.nh-ev-cert .chk li::before{width:20px;height:20px;background-color:rgba(245,241,234,.12);box-shadow:inset 0 0 0 1px rgba(245,241,234,.22)}
.nh-ev-cert .chk li b{color:#fff;font-weight:600}
.nh-ev-cert .tl{margin-top:6px;color:#fff}
.nh-ev-pr{gap:10px}
.nh-ev-pr .h3{margin:0;font-size:17px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.nh-ev-pr p{font-size:14px;line-height:1.5;color:var(--body)}
.nh-ev-pr ul{display:grid;margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.nh-ev-pr li a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:end;padding:10px 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
.nh-ev-pr li a:hover b{text-decoration:underline;text-underline-offset:3px}
.nh-ev-pr small{grid-column:1/-1;font-size:12px;color:var(--mute);font-variant-numeric:tabular-nums}
.nh-ev-pr b{font-size:14.5px;font-weight:500;line-height:1.3;letter-spacing:-.01em}
.nh-ev-pr em{font-style:normal;font-size:12.5px;white-space:nowrap;color:var(--mute)}
.nh-ev-mo{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0 0;padding:0;list-style:none}
.nh-ev-mo figure{position:relative;margin:0;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;background:var(--ink)}
.nh-ev-mo img{width:100%;height:100%;object-fit:cover}
.nh-ev-mo figcaption{position:absolute;left:12px;right:12px;bottom:12px;padding:8px 12px;border-radius:12px;background:rgba(9,16,27,.68);font-size:12.5px;font-weight:600;line-height:1.25;color:#fff}
.nh-ev-mo figcaption small{display:block;margin-top:2px;font-size:11.5px;font-weight:500;color:var(--bone-66)}
@media(max-width:1000px){.nh-ev{grid-template-columns:minmax(0,1fr)}.nh-ev-ph{grid-row:auto;min-height:0;aspect-ratio:16/10}}
@media(max-width:700px){.nh-ev-mo{grid-template-columns:minmax(0,1fr)}.nh-ev-mo figure{aspect-ratio:16/9}.nh-ev-cert{grid-template-columns:minmax(0,1fr)}.nh-ev-cert .nh-ev-seal{grid-column:1;grid-row:auto;width:110px}}
.nh-sello{--c:214,0,12}
.nh-sello .wrap{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,5vw,80px);align-items:center}
.nh-sello-fig{position:relative;margin:0;display:grid;place-items:center;aspect-ratio:1;border-radius:var(--R);background:radial-gradient(80% 60% at 50% 108%,rgba(var(--c),.5),rgba(var(--c),0) 64%),linear-gradient(180deg,#101f33,#07101c);overflow:hidden}
.nh-sello-fig::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 28px),repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 28px);mask-image:radial-gradient(70% 70% at 50% 50%,#000,transparent);-webkit-mask-image:radial-gradient(70% 70% at 50% 50%,#000,transparent)}
.nh-sello-fig img{position:relative;z-index:1;width:min(72%,420px);height:auto;filter:drop-shadow(0 28px 44px rgba(0,0,0,.55))}
.nh-sello-copy .lead{max-width:38ch}
.nh-sello-dl{display:flex;flex-wrap:wrap;gap:10px;margin:clamp(18px,2vw,26px) 0 0}
.nh-sello-dl a{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 18px 0 14px;border:1px solid rgba(255,255,255,.22);border-radius:999px;color:#fff;font-size:14px;font-weight:600;text-decoration:none;transition:background .25s,border-color .25s}
.nh-sello-dl a:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.5)}
.nh-sello-dl a i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgb(var(--c));color:#07101c;font-family:var(--mono);font-size:9.5px;font-weight:700;letter-spacing:.04em;font-style:normal}
.nh-sello-use{display:grid;gap:10px;margin:clamp(20px,2.4vw,30px) 0 0;padding:0;list-style:none}
.nh-sello-use li{position:relative;padding-left:26px;font-size:15.5px;line-height:1.5;color:var(--bone-84)}
.nh-sello-use li::before{content:"";position:absolute;left:0;top:.52em;width:12px;height:12px;border-radius:50%;background:rgb(var(--c));box-shadow:0 0 0 3px rgba(var(--c),.22)}
@media(max-width:820px){.nh-sello .wrap{grid-template-columns:1fr}.nh-sello-fig{max-width:420px;margin:0 auto;width:100%}}

/* what it demonstrates: the official "asks / checks" pair on a line, facts beside it */
.nh-dem{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:clamp(32px,5.4vw,104px);align-items:start}
.nh-pair{--p:clamp(32px,3.2vw,44px);margin:0;padding:4px 0 0 var(--p);font-size:clamp(22px,2.15vw,32px);line-height:1.24;letter-spacing:-.022em;color:var(--body)}
.nh-pair li{position:relative;padding-bottom:clamp(26px,3vw,44px)}
.nh-pair li:last-child{padding-bottom:0}
.nh-pair li::before{content:"";position:absolute;z-index:1;left:calc(var(--p) * -1);top:calc(.62em - 7px);width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 2px var(--ink)}
.nh-pair li:last-child::before{background:var(--red);box-shadow:0 0 0 4px rgba(214,0,12,.18)}
.nh-pair li:not(:last-child)::after{content:"";position:absolute;left:calc(var(--p) * -1 + 6px);top:.62em;bottom:-.62em;width:2px;background:var(--line)}
.nh-pair b{font-weight:500;color:var(--ink)}
.nh-facts > .nh-wide{grid-column:1/-1}
.nh-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.nh-chips li{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;background:var(--mist);font-size:14px;font-weight:500;line-height:1.2;letter-spacing:0;color:var(--ink)}
.facts .nh-go{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
.facts .nh-go:hover{text-decoration:underline;text-underline-offset:4px}
.nh-note{margin-top:16px;max-width:54ch;font-size:13.5px;line-height:1.5;color:var(--mute)}

/* why now: an ink panel with the dates on a line (no paragraph) */
#ahora{padding-top:0}
.nh-now{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"h x" "t t";align-items:end;column-gap:24px;padding:clamp(28px,4vw,64px);border-radius:var(--R);color:#fff;background:radial-gradient(800px 460px at 100% 0%,rgba(214,0,12,.22),transparent 62%),radial-gradient(700px 420px at 0% 100%,rgba(36,54,82,.55),transparent 70%),var(--ink)}
.nh-now h2{color:#fff}
.nh-now > .head{grid-area:h;margin-bottom:clamp(30px,3.6vw,56px)}
.nh-now-x{grid-area:x;margin-bottom:clamp(30px,3.6vw,56px)}
.nh-now-x:empty{display:none}
.nh-now-tl{grid-area:t;min-width:0}
.nh-stat{display:flex;align-items:center;gap:16px;margin:0}
.nh-stat b{font-size:clamp(52px,5vw,76px);font-weight:300;line-height:.9;letter-spacing:-.05em;color:#fff}
.nh-stat span{max-width:20ch;font-size:15px;line-height:1.4;color:var(--bone-84)}
/* dated items share the track equally; "Hoy" without text is a marker placed in time between them */
.nh-tlw{position:relative}
.nh-tlw.has-mk{padding-top:30px}
.nh-tl{display:grid;grid-template-columns:repeat(var(--c,2),minmax(0,1fr));margin:0;padding:0}
.nh-tl > li{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0;padding:42px clamp(18px,2.4vw,36px) 0 0}
.nh-tl > li::before{content:"";position:absolute;left:0;right:0;top:10px;height:2px;background:rgba(245,241,234,.2)}
.nh-tl > li:last-child::before{right:auto;width:14px}
.to-end .nh-tl > li:last-child::before{right:0;width:auto}
.nh-tl > li::after{content:"";position:absolute;left:0;top:4px;width:14px;height:14px;border-radius:50%;background:var(--ink);box-shadow:inset 0 0 0 2px rgba(245,241,234,.75)}
.nh-tl > .is-hot::after{background:var(--red-lt);box-shadow:0 0 0 5px rgba(240,48,59,.25)}
.nh-tl > .is-now::after{left:1px;top:5px;width:12px;height:12px;background:#fff;box-shadow:0 0 0 5px rgba(245,241,234,.16)}
.nh-tl > .nh-mob{display:none}
.nh-d{font-size:clamp(28px,2.7vw,42px);font-weight:300;line-height:1;letter-spacing:-.035em;color:#fff;white-space:nowrap}
.nh-mob .nh-d{font-size:15px;font-weight:600;line-height:1.2;letter-spacing:0}
.nh-tl p{max-width:32ch;font-size:15px;line-height:1.5;color:var(--bone-84)}
.nh-mk{position:absolute;top:0;width:0;height:47px}
.nh-mk b{position:absolute;left:0;top:6px;transform:translateX(-50%);font-size:13px;font-weight:600;line-height:1;white-space:nowrap;color:#fff}
.nh-mk i{position:absolute;left:-6px;top:35px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 0 0 5px rgba(245,241,234,.16)}
.nh-mk::before{content:"";position:absolute;left:-.5px;top:24px;width:1px;height:9px;background:rgba(245,241,234,.5)}

/* process: who audits, who decides, who issues, where it is checked */
.nh-who{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:clamp(40px,4.6vw,68px) 0 0}
.nh-who > div{display:flex;flex-direction:column;gap:10px;padding:18px 20px 20px;border:1px solid var(--hair);border-radius:18px;background:rgba(245,241,234,.04)}
.nh-who dt{display:flex;align-items:center;gap:10px;font-size:14.5px;font-weight:600;line-height:1.25;color:#fff}
.nh-who dt svg{flex:none;width:22px;height:22px;fill:none;stroke:var(--red-lt);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nh-who dd{margin:0;font-size:14px;line-height:1.45;color:var(--bone-84)}
.nh-who a{color:#fff;text-underline-offset:3px}

/* in the world: two figures and the country ranking (emphasis: Latin America in red, the rest gray) */
.nh-w{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(14px,1.6vw,22px);align-items:stretch}
.nh-fig{display:flex;flex-direction:column;justify-content:space-between;gap:clamp(26px,3vw,40px);padding:clamp(24px,2.6vw,38px);border-radius:var(--r);color:#fff;background:radial-gradient(560px 300px at 100% 0%,rgba(214,0,12,.24),transparent 64%),radial-gradient(500px 320px at 0% 100%,rgba(36,54,82,.5),transparent 70%),var(--ink)}
.nh-n{display:flex;flex-direction:column;gap:10px;margin:0}
.nh-n b{font-size:clamp(48px,5.2vw,84px);font-weight:300;line-height:.9;letter-spacing:-.05em;color:#fff;white-space:nowrap}
.nh-n b small{font-size:.5em;font-weight:300;letter-spacing:-.02em}
.nh-n span{display:flex;align-items:baseline;gap:9px;font-size:15.5px;line-height:1.4;color:var(--bone-84)}
.nh-n span i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--red-lt);box-shadow:0 0 0 3px rgba(240,48,59,.25)}
.nh-k{display:block;margin-bottom:12px;font-size:13px;font-weight:500;color:var(--bone-66)}
.nh-dots{display:grid;grid-template-columns:repeat(20,minmax(0,1fr));gap:clamp(4px,.45vw,7px)}
.nh-dots i{aspect-ratio:1;border-radius:50%;background:rgba(245,241,234,.14)}
.nh-dots .on{background:var(--red-lt);box-shadow:0 0 6px rgba(240,48,59,.5);transition:background .35s ease calc(var(--k,0) * 14ms),box-shadow .35s ease calc(var(--k,0) * 14ms)}
.nh-dots .part{background:linear-gradient(90deg,var(--red-lt) calc(var(--f) * 100%),rgba(245,241,234,.14) 0)}
.rv-pre .nh-dots .on{background:rgba(245,241,234,.14);box-shadow:none}
.nh-rank{display:flex;flex-direction:column;padding:clamp(22px,2.4vw,34px);border:1px solid var(--line);border-radius:var(--r);background:#fff}
.nh-rank-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px 24px;margin-bottom:clamp(18px,2vw,26px)}
.nh-legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;line-height:1.3;color:var(--mute)}
.nh-legend li{display:inline-flex;align-items:center;gap:8px}
.nh-legend li::before{content:"";width:16px;height:8px;border-radius:4px;background:#9aa3ae}
.nh-legend .hi::before{background:var(--red)}
.nh-rank .hbars{gap:10px}
.nh-rank .hbar{grid-template-columns:minmax(96px,150px) minmax(0,1fr) 62px;transition:opacity .2s}
.nh-rank .hbars:hover .hbar:not(:hover){opacity:.42}
.nh-reg .hbars{gap:24px}
.nh-reg .hbar{grid-template-columns:minmax(120px,210px) minmax(0,1fr) 62px}
.nh-brk i::before{content:"";position:absolute;z-index:1;top:-4px;bottom:-4px;left:74%;width:7px;background:#fff;transform:skewX(-24deg)}
.nh-rank .src{margin-top:auto;padding-top:18px}

/* training: a separate path for professionals, in its own ink scene */
.nh-fx{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:clamp(28px,4.4vw,80px);align-items:center}
.nh-fx .head{margin-bottom:clamp(22px,2.6vw,36px)}
.nh-fx .fx-inc{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.nh-dp{display:flex;width:100%;max-width:460px;justify-self:end}

/* questions: title beside the list on wide screens */
.nh-faq{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:clamp(24px,4vw,72px);align-items:start}
.nh-faq .head{position:sticky;top:calc(var(--hd) + 96px);margin:0}
.nh-faq .ans a{color:var(--ink);font-weight:600;text-underline-offset:3px}

/* other norms rail */
.nh-more{padding-top:0}

/* closing band: the title carries the norm code, so it runs a step smaller than the home's */
#cierre h2{font-size:clamp(40px,4.6vw,72px)}

@media(max-width:1080px){
  .nh-dem{grid-template-columns:minmax(0,1fr)}
  .nh-w{grid-template-columns:minmax(0,1fr)}
  .nh-who{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .nh-fx{grid-template-columns:minmax(0,1fr)}
  .nh-dp{justify-self:start}
  .nh-faq{grid-template-columns:minmax(0,1fr)}
  .nh-faq .head{position:static;margin-bottom:clamp(24px,4vw,40px)}
}
@media(max-width:820px){
  .nh-now{grid-template-columns:minmax(0,1fr);grid-template-areas:"h" "t" "x"}
  .nh-now-x{margin:34px 0 0}
}
@media(max-width:760px){
  .nh-tlw.has-mk{padding-top:0}
  .nh-mk{display:none}
  .nh-tl{grid-template-columns:minmax(0,1fr)}
  .nh-tl > .nh-mob{display:flex}
  .nh-tl > li{padding:0 0 30px 36px}
  .nh-tl > li:last-child{padding-bottom:0}
  .nh-tl > li::before,.to-end .nh-tl > li:last-child::before{left:6px;right:auto;top:14px;bottom:-14px;width:2px;height:auto}
  .nh-tl > li:last-child::before,.to-end .nh-tl > li:last-child::before{display:none}
  .nh-tl > li::after{top:7px}
  .nh-tl > .is-now::after{top:4px}
}
@media(max-width:620px){
  .nh-who{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:460px){
  .nh-rank .hbar{grid-template-columns:minmax(74px,96px) minmax(0,1fr) 56px}
  .nh-reg .hbar{grid-template-columns:minmax(96px,128px) minmax(0,1fr) 50px}
}

