/* ═══════════════════════════════════════════════════════════════
   FREE — páginas de acceso libre (hub de recursos, herramientas,
   editoriales gratuitas). Se apoya en ../platform-home/home.css
   (tokens, .sec, .h2, .btn-h, .link-h, .rv, .ln, .ticker, .close, .paths)
   y en ../design-system. Todo está acotado a .fr dentro de <main class="hm fr">.
   Solo presentación: no toca la lógica de las herramientas.
═══════════════════════════════════════════════════════════════ */

:root {
  --green:   #1E7A4F;
  --green-t: rgba(30, 122, 79, .12);
}
@keyframes ecg { from { stroke-dashoffset: 240; } to { stroke-dashoffset: -1900; } }

.fr { overflow-x: clip; }
.fr :where(ol) { list-style: none; margin: 0; padding: 0; }
.fr :where(figure) { margin: 0; }
.fr :where(table) { border-collapse: collapse; }
.fr :where(input, select, button, textarea) { font-family: inherit; }
.fr .wrap { width: 100%; max-width: var(--container-max, 1280px); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.fr .wrap--read { max-width: 760px; }

/* ── Migas de pan ────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; line-height: 1.3; color: var(--text-3); }
.crumbs li { display: flex; align-items: center; gap: 12px; }
.crumbs li + li::before { content: ''; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
.crumbs a { color: var(--text-2); text-decoration: none; transition: color 200ms; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.on-ink .crumbs, .crumbs--ink { color: var(--on-ink-2); }
.on-ink .crumbs a, .crumbs--ink a { color: var(--on-ink-2); }
.on-ink .crumbs a:hover, .crumbs--ink a:hover { color: #fff; }
.on-ink .crumbs [aria-current], .crumbs--ink [aria-current] { color: #fff; }

.kick { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.kick::before { content: ''; width: 28px; height: 2px; background: currentColor; flex: none; }
.on-ink .kick { color: #F0646F; }

/* ── Portada clara ───────────────────────────────────────────── */
.fh { position: relative; overflow: clip; background: var(--paper); padding: clamp(28px, 3.4vw, 48px) 0 clamp(64px, 8vw, 112px); }
.fh__top { margin-bottom: clamp(32px, 4.4vw, 60px); }
.fh__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.fh__title { margin-top: 20px; font-weight: 800; line-height: .9; letter-spacing: 0; font-size: clamp(52px, 7.2vw, 108px); text-wrap: balance; }
.fh__title em { font-style: normal; color: var(--red); }
.fh__title--m { font-size: clamp(44px, 5.6vw, 84px); line-height: .94; }
.fh__lead { margin-top: clamp(22px, 2.6vw, 34px); max-width: 52ch; }
.fh__cta { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 14px; }
.fh__ecg { position: absolute; inset: auto 0 0 0; height: 70px; width: 100%; pointer-events: none; opacity: .9; }
.fh__ecg path { fill: none; stroke: rgba(13,27,42,.09); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fh__ecg .beat { stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 240 2400; stroke-dashoffset: 240; animation: ecg 6.4s linear infinite; }

.facts { margin-top: clamp(30px, 3.6vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px clamp(28px, 4vw, 56px); }
.fact b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4vw, 56px); line-height: .9; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 8px; font-size: 16px; color: var(--text-3); }

/* Mosaico de herramientas (enlaces reales) */
.mos { display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: auto auto; gap: 14px; }
.mos__t { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: var(--shadow-m); isolation: isolate; }
.mos__t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.mos__t::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,27,42,.86) 0%, rgba(13,27,42,.1) 52%, transparent 70%); z-index: 1; }
.mos__t:hover img { transform: scale(1.06); }
.mos__a { grid-row: 1 / 3; aspect-ratio: 3 / 4.1; }
.mos__b, .mos__c { aspect-ratio: 1 / 1; }
.mos__l { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.mos__l small { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: rgba(240,242,244,.78); }
.mos__l b { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2vw, 30px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.mos__l svg { position: absolute; right: 0; bottom: 2px; width: 22px; height: 22px; transition: transform 300ms var(--ease-out); }
.mos__t:hover .mos__l svg { transform: translateX(4px); }

/* ── Portada oscura (herramientas) ───────────────────────────── */
.hero--page .hero__inner { min-height: clamp(440px, 62svh, 600px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(44px, 5vw, 72px); justify-content: space-between; gap: 40px; }
.hero--page .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--page .hero__title { font-size: clamp(48px, 6.2vw, 92px); }
.hero--page .hero__lead { margin-top: clamp(20px, 2.4vw, 32px); }
.hero--page .meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 6px; font-size: 15px; font-weight: 500; border: 1px solid var(--line-2); color: var(--text-2); background: #fff; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.on-ink .chip { background: rgba(240,242,244,.08); border-color: rgba(240,242,244,.28); color: #fff; }

/* ── Índice de herramientas (filas) ──────────────────────────── */
.idx { border-top: 1px solid var(--line); }
.idx__row { position: relative; isolation: isolate; display: grid; grid-template-columns: 48px minmax(150px, 210px) minmax(0, 1fr) auto; gap: clamp(16px, 2.6vw, 40px); align-items: center; padding: clamp(20px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.idx__row::before { content: ''; position: absolute; inset: 0 -22px; background: var(--mist); border-radius: 8px; transform: scaleY(0); transform-origin: bottom; transition: transform 450ms var(--ease-out); z-index: -1; }
.idx__row:hover::before, .idx__row:focus-visible::before { transform: scaleY(1); }
.idx__n { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--steel); font-variant-numeric: tabular-nums; transition: color 250ms; }
.idx__row:hover .idx__n { color: var(--red); }
.idx__t, .idx__cat, .idx__name, .idx__desc { display: block; }
.idx__img { display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--mist-2); }
.idx__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.idx__row:hover .idx__img img { transform: scale(1.07); }
.idx__cat { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.idx__name { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: 1; text-transform: uppercase; letter-spacing: .005em; transition: transform 450ms var(--ease-out); }
.idx__row:hover .idx__name { transform: translateX(8px); }
.idx__desc { margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: var(--text-2); max-width: 62ch; }
.idx__go { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background-color 250ms, border-color 250ms, color 250ms, transform 450ms var(--ease-out); }
.idx__go svg { width: 22px; height: 22px; }
.idx__row:hover .idx__go { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }


/* ── Herramientas (filas grandes alternadas) ─────────────────── */
.tl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(28px, 3.4vw, 48px) 0; border-top: 1px solid var(--line); }
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl--flip .tl__img { order: 2; }
.tl__img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-m); background: var(--ink-2); }
.tl__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease-out); }
.tl:hover .tl__img img { transform: scale(1.05); }
.tl__n { margin-bottom: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 8vw, 116px); line-height: .8; color: var(--mist-2); font-variant-numeric: tabular-nums; }
.tl__name { margin-top: 8px; font-weight: 800; font-size: clamp(52px, 6.4vw, 92px); line-height: .9; letter-spacing: 0; }
.tl__desc { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 48ch; }
.tl__act { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.more { padding: clamp(36px, 4vw, 56px) 0; }
.more__in { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; justify-content: space-between; }
.more__t { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 60ch; }
.more__t strong { color: var(--ink); }

/* ── Editoriales (tarjetas grandes con foto) ─────────────────── */
.ed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.ed__c { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.ed__img { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--ink-2); box-shadow: var(--shadow-s); position: relative; }
.ed__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.ed__c:hover .ed__img img { transform: scale(1.05); }
.ed__tag { position: absolute; left: 14px; top: 14px; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px 4px; border-radius: 4px; }
.ed__meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; color: var(--text-3); }
.ed__meta b { color: var(--red); font-weight: 600; }
.ed__t { margin-top: 10px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 2.7vw, 40px); line-height: 1; letter-spacing: .005em; text-wrap: balance; }
.ed__d { margin-top: 12px; font-size: 17px; line-height: 1.58; color: var(--text-2); max-width: 54ch; }
.ed__more { margin-top: 18px; align-self: flex-start; }
.ed__c:hover .ed__more { background-size: 100% 2px; }
.ed__c:hover .ed__more svg { transform: translateX(4px); }

/* ── Para qué sirven (banda oscura) ──────────────────────────── */
.ctx__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.ctx__l { position: sticky; top: 100px; }
.ctx__l .lead { margin-top: 24px; max-width: 36ch; }
.ctx__list { border-top: 1px solid rgba(240,242,244,.18); counter-reset: c; }
.ctx__i { counter-increment: c; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; padding: clamp(20px, 2.2vw, 28px) 0; border-bottom: 1px solid rgba(240,242,244,.18); }
.ctx__i::before { content: counter(c, decimal-leading-zero); grid-row: 1 / 3; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #F0646F; line-height: 1.1; }
.ctx__i h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.ctx__i p { font-size: 17px; line-height: 1.58; color: var(--on-ink-2); max-width: 58ch; }
.ctx__note { margin-top: 24px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 8px; background: rgba(232,150,12,.1); border: 1px solid rgba(232,150,12,.4); color: #F6D9A4; font-size: 16px; line-height: 1.55; }
.ctx__note svg { width: 22px; height: 22px; flex: none; color: var(--amber); margin-top: 1px; }
.ctx__note strong { color: #fff; }

/* ── Aviso educativo (claro) ─────────────────────────────────── */
.note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 8px; background: var(--mist); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.note svg { width: 22px; height: 22px; flex: none; color: var(--amber-ink); margin-top: 1px; }
.note strong { color: var(--ink); }

/* ═══ ARTÍCULOS ════════════════════════════════════════════════ */
.rbar { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 9999; background: transparent; pointer-events: none; }
.rbar i { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.ah { position: relative; background: var(--paper); padding: clamp(28px, 3.4vw, 48px) 0 clamp(40px, 5vw, 72px); overflow: clip; }
.ah__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5.6vw, 88px); align-items: center; margin-top: clamp(28px, 3.6vw, 52px); }
.ah__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 16px; color: var(--text-3); }
.ah__tags b { font-weight: 600; color: var(--red); }
.ah__title { margin-top: 18px; font-weight: 800; line-height: .94; letter-spacing: 0; font-size: clamp(38px, 4.7vw, 68px); text-wrap: balance; }
.ah__title em { font-style: normal; color: var(--red); }
.ah__dek { margin-top: 24px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.58; color: var(--text-2); max-width: 56ch; }
.ah__meta { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15.5px; color: var(--text-3); }
.ah__meta strong { color: var(--ink); font-weight: 600; }
.ah__meta .rt { white-space: nowrap; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.ah__meta .rt svg { width: 18px; height: 18px; color: var(--red); }
.ah__fig { position: relative; }
.ah__fig::before { content: ''; position: absolute; inset: 18px -14px -14px 18px; border: 2px solid var(--red); border-radius: 10px; z-index: 0; opacity: .85; }
.ah__img { position: relative; z-index: 1; aspect-ratio: 4 / 4.2; border-radius: 10px; overflow: hidden; background: var(--ink-2); box-shadow: var(--shadow-m); }
.ah__img img { width: 100%; height: 100%; object-fit: cover; }
.ah__fig figcaption { position: relative; z-index: 1; margin-top: 14px; font-size: 14.5px; color: var(--text-3); }

.artx { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.artx__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.art-toc { display: none; }
.art-body { counter-reset: sec; max-width: 720px; }
.art-body > p, .art-body p { margin-top: 1.15em; font-size: clamp(18px, 1.35vw, 19.5px); line-height: 1.74; color: #1B2A3B; }
.art-body > p:first-child { margin-top: 0; font-size: clamp(20px, 1.6vw, 22px); line-height: 1.6; color: var(--ink); }
.art-body strong { color: var(--ink); font-weight: 600; }
.art-body em { font-style: italic; }
.art-body a { color: var(--red); text-underline-offset: 3px; }
.art-body h2 { counter-increment: sec; margin-top: clamp(48px, 5.4vw, 76px); font-weight: 800; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; letter-spacing: .005em; text-wrap: balance; scroll-margin-top: 90px; }
.art-body h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 12px; font-weight: 700; font-size: 18px; letter-spacing: .14em; color: var(--red); }
.art-body h3 { margin-top: 36px; font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: .01em; }
.art-body h2 + p { margin-top: 20px; }
.art-body ul:not([class]), .art-body ol:not([class]) { margin: 1.15em 0 0; padding-left: 1.3em; font-size: 18px; line-height: 1.7; color: #1B2A3B; }
.art-body ul:not([class]) { list-style: square; }
.art-body ol:not([class]) { list-style: decimal; }
.art-body li::marker { color: var(--red); }
.art-body li + li { margin-top: .4em; }

.art-key-box { margin-top: 30px; padding: 22px 26px 24px; background: var(--mist); border-radius: 8px; border-left: 4px solid var(--red); }
.art-key-box--amber { border-left-color: var(--amber); background: #FBF4E6; }
.art-key-box--cyan { border-left-color: var(--ink); }
.art-body .art-key-box-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.art-body .art-key-box ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.art-body .art-key-box li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.55; color: #1B2A3B; margin: 0; }
.art-body .art-key-box li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.art-body .art-key-box--amber li::before { background: var(--amber); }
.art-body .art-key-box--cyan li::before { background: var(--ink); }

.art-pull { margin: clamp(40px, 5vw, 64px) 0 0; padding-top: 22px; border-top: 3px solid var(--ink); }
.art-pull p { margin: 0 !important; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 46px) !important; line-height: 1 !important; letter-spacing: .005em; color: var(--ink) !important; text-wrap: balance; }
.art-pull p::before { content: '“'; color: var(--red); margin-right: .06em; }
.art-pull p::after { content: '”'; color: var(--red); margin-left: .04em; }
.art-pull cite { display: block; margin-top: 16px; font-style: normal; font-size: 15.5px; color: var(--text-3); }

.art-ev-row { margin-top: 18px; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 6px 20px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.art-ev-row + .art-ev-row { margin-top: 0; }
.art-ev-tag { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 2px 12px 0; border-radius: 4px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; justify-self: start; }
.art-ev-tag--evidencia { background: var(--ink); color: #fff; }
.art-ev-tag--recomendacion { background: var(--red); color: #fff; }
.art-ev-tag--practica { background: rgba(232,150,12,.2); color: #7A4700; }
.art-ev-tag--incertidumbre { background: transparent; color: var(--text-2); border: 1.5px dashed var(--steel); }
.art-ev-text { font-size: 17px; line-height: 1.6; color: #1B2A3B; }

.art-takeaway { margin-top: clamp(48px, 5.4vw, 76px); padding: clamp(28px, 3.4vw, 44px); background: var(--ink); color: var(--on-ink); border-radius: 10px; counter-reset: t; position: relative; overflow: hidden; }
.art-takeaway::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(204,41,54,.4), transparent 70%); pointer-events: none; }
.art-body .art-takeaway-title { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3vw, 42px); line-height: 1; text-transform: uppercase; letter-spacing: .005em; color: #fff; }
.art-body .art-takeaway ol { position: relative; margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.art-body .art-takeaway li { counter-increment: t; position: relative; display: block; padding: 16px 0 16px 58px; border-top: 1px solid rgba(240,242,244,.16); font-size: 17px; line-height: 1.58; color: var(--on-ink-2); margin: 0; }
.art-body .art-takeaway li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; color: #F0646F; }
.art-body .art-takeaway li strong { color: #fff; font-weight: 600; }
.art-body .art-takeaway-body { position: relative; margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--on-ink-2); }
.art-body .art-takeaway-body p { margin-top: 14px; color: var(--on-ink-2); font-size: 17px; line-height: 1.65; }
.art-body .art-takeaway-body p:first-child { margin-top: 0; }
.art-body .art-takeaway-body strong { color: #fff; }

.art-after { max-width: 720px; }
.art-disclaimer { margin-top: 36px; display: flex; gap: 14px; padding: 16px 20px; border-radius: 8px; background: var(--mist); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.art-disclaimer::before { content: 'i'; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.art-refs { margin-top: 36px; }
.art-refs-title { font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.art-refs ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.art-refs li { counter-increment: r; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.art-refs li::before { content: counter(r); font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }

.art-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 36px; padding: clamp(26px, 3vw, 38px); border-radius: 10px; background: var(--mist); border: 1px solid var(--line); }
.art-cta__label { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.art-cta__title { margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 2.8vw, 40px); line-height: 1; text-transform: uppercase; }
.art-cta__body { margin-top: 10px; font-size: 17px; color: var(--text-2); max-width: 40ch; }
.art-cta__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 6px; background: var(--red); color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .07em; text-transform: uppercase; box-shadow: 0 1px 2px rgba(13,27,42,.12), 0 8px 20px rgba(204,41,54,.22); transition: transform 260ms var(--ease-out), background-color 200ms; }
.art-cta__btn:hover { background: var(--red-d); transform: translateY(-2px); }

/* ═══ HERRAMIENTAS DE FORMULARIO (Humo / Calor) ════════════════
   Mismas clases que usa el JS de cada herramienta (se-* / hi-*):
   solo se reestilizan, no se renombran.                          */
.ft { padding-block: clamp(44px, 5.4vw, 80px) clamp(64px, 7vw, 104px); background: var(--paper); }
.ft__wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ft__form { counter-reset: s; min-width: 0; }
.ft__out { position: sticky; top: 84px; min-width: 0; }
.ft__ph { padding: clamp(26px, 3vw, 40px); border-radius: 10px; background: var(--mist); border: 1px dashed var(--line-2); }
.ft__ph svg { width: 100%; height: 64px; display: block; margin-bottom: 18px; }
.ft__ph svg path { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ft__ph svg .beat { stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 240 2400; stroke-dashoffset: 240; animation: ecg 6.4s linear infinite; }
.ft__ph h2 { font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.ft__ph p { margin-top: 10px; font-size: 17px; line-height: 1.58; color: var(--text-2); max-width: 40ch; }
.ft__out:has(.is-visible) .ft__ph { display: none; }
.ft__note { margin-top: 18px; }

.se-section { counter-increment: s; padding: clamp(22px, 2.4vw, 30px) 0; border-top: 1px solid var(--line); }
.hi-section { counter-increment: s; padding: clamp(22px, 2.4vw, 30px) 0; border-top: 1px solid var(--line); }
.se-section:first-child { border-top: 0; padding-top: 0; }
.hi-section:first-child { border-top: 0; padding-top: 0; }
.se-section-title { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); margin-bottom: 18px; }
.hi-section-title { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); margin-bottom: 18px; }
.se-section-title::before { content: counter(s, decimal-leading-zero); font-weight: 700; font-size: 18px; letter-spacing: .1em; color: var(--red); }
.hi-section-title::before { content: counter(s, decimal-leading-zero); font-weight: 700; font-size: 18px; letter-spacing: .1em; color: var(--red); }
.se-divider { display: none; }
.hi-divider { display: none; }
.se-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.se-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hi-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.se-field--full { grid-column: 1 / -1; }
.hi-field--full { grid-column: 1 / -1; }
.se-label { font-size: 15px; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.hi-label { font-size: 15px; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.se-label .se-key { color: var(--red); }
.hi-label .hi-key { color: var(--red); }
.ft select, .ft input[type=number] { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--line-2); background-color: #fff; color: var(--ink); font-size: 16px; appearance: none; -webkit-appearance: none; transition: border-color 200ms, box-shadow 200ms; }
.ft select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' fill='none' stroke='%230D1B2A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.ft select:hover, .ft input[type=number]:hover { border-color: var(--steel); }
.ft select:focus, .ft input[type=number]:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,41,54,.16); }
.ft input::placeholder { color: var(--text-3); opacity: .85; }

.se-check-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.se-check-item { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 14px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-size: 16px; line-height: 1.3; cursor: pointer; user-select: none; transition: border-color 200ms, background-color 200ms, transform 250ms var(--ease-out); }
.se-check-item:hover { border-color: var(--ink); transform: translateY(-1px); }
.se-check-item input[type=checkbox] { display: none; }
.se-check-mark { width: 20px; height: 20px; flex: none; border-radius: 4px; border: 1.5px solid var(--steel); display: grid; place-items: center; transition: background-color 200ms, border-color 200ms; }
.se-check-item.is-active { border-color: var(--red); background: rgba(204,41,54,.06); font-weight: 500; }
.se-check-item.is-active .se-check-mark { background: var(--red); border-color: var(--red); }
.se-check-item.is-active .se-check-mark::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }

.hi-toggle-group { display: flex; flex-wrap: wrap; gap: 10px; }
.hi-toggle { min-height: 46px; padding: 0 18px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; user-select: none; transition: border-color 200ms, background-color 200ms, color 200ms, transform 250ms var(--ease-out); }
.hi-toggle:hover { border-color: var(--ink); transform: translateY(-1px); }
.hi-toggle.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.hi-mental-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hi-mental-btn { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; min-height: 78px; padding: 12px 14px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; cursor: pointer; user-select: none; transition: border-color 200ms, background-color 200ms, color 200ms, transform 250ms var(--ease-out); }
.hi-mental-btn span { font-family: var(--font-body); font-weight: 400; font-size: 14.5px; line-height: 1.3; text-transform: none; letter-spacing: 0; color: var(--text-3); }
.hi-mental-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.hi-mental-btn.is-active--normal { background: var(--green-t); border-color: var(--green); color: var(--green); }
.hi-mental-btn.is-active--altered { background: rgba(232,150,12,.16); border-color: var(--amber); color: #7A4700; }
.hi-mental-btn.is-active--critical { background: var(--red); border-color: var(--red); color: #fff; }
.hi-mental-btn.is-active--normal span, .hi-mental-btn.is-active--altered span { color: var(--text-2); }
.hi-mental-btn.is-active--critical span { color: rgba(255,255,255,.88); }
.hi-key-flag { margin-left: 10px; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--red); }

.se-eval-btn { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 26px; border: 1.5px solid var(--red); border-radius: 6px; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; box-shadow: 0 1px 2px rgba(13,27,42,.12), 0 8px 20px rgba(204,41,54,.22); transition: transform 260ms var(--ease-out), background-color 200ms, box-shadow 260ms; }
.hi-eval-btn { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 26px; border: 1.5px solid var(--red); border-radius: 6px; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; box-shadow: 0 1px 2px rgba(13,27,42,.12), 0 8px 20px rgba(204,41,54,.22); transition: transform 260ms var(--ease-out), background-color 200ms, box-shadow 260ms; }
.se-eval-btn:hover { background: var(--red-d); border-color: var(--red-d); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(13,27,42,.14), 0 14px 28px rgba(204,41,54,.3); }
.hi-eval-btn:hover { background: var(--red-d); border-color: var(--red-d); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(13,27,42,.14), 0 14px 28px rgba(204,41,54,.3); }
.se-eval-btn:active { transform: scale(.98); }
.hi-eval-btn:active { transform: scale(.98); }
.se-reset-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: background-color 200ms, color 200ms; }
.hi-reset-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: background-color 200ms, color 200ms; }
.se-reset-btn:hover { background: var(--ink); color: #fff; }
.hi-reset-btn:hover { background: var(--ink); color: #fff; }

.se-result { display: none; }
.hi-result { display: none; }
.se-result.is-visible { display: block; animation: rin 600ms var(--ease-out); }
.hi-result.is-visible { display: block; animation: rin 600ms var(--ease-out); }
@keyframes rin { from { opacity: 0; transform: translateY(14px); } }
.se-result .se-divider { display: none; }
.hi-result .hi-divider { display: none; }
.se-priority { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 8px; margin-bottom: 14px; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.se-priority > span:first-child { font-size: 14px; animation: ping2 2.2s ease-out infinite; border-radius: 50%; }
@keyframes ping2 { 50% { opacity: .35; } }
.se-priority--alerta_maxima { background: var(--red); color: #fff; }
.se-priority--alta { background: var(--amber); color: var(--ink); }
.se-priority--evaluar { background: var(--ink); color: #fff; }
.se-suspects { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.se-suspect-tag { padding: 6px 12px 5px; border-radius: 4px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.se-suspect-tag--co { background: rgba(204,41,54,.12); color: var(--red-d); border: 1px solid rgba(204,41,54,.4); }
.se-suspect-tag--hcn { background: rgba(232,150,12,.18); color: #7A4700; border: 1px solid rgba(232,150,12,.55); }
.se-suspect-tag--other { background: var(--mist); color: var(--text-2); border: 1px solid var(--line-2); }

.hi-classif-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 8px; margin-bottom: 14px; }
.hi-classif-card--heat_stress { background: var(--ink); color: #fff; }
.hi-classif-card--heat_exhaustion { background: var(--amber); color: var(--ink); }
.hi-classif-card--heat_stroke { background: var(--red); color: #fff; }
.hi-classif-label { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.hi-classif-sublabel { margin-top: 8px; font-size: 15.5px; line-height: 1.4; opacity: .9; }

.se-block { margin-bottom: 12px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.hi-block { margin-bottom: 12px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.se-block-header { padding: 10px 16px 8px; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.hi-block-header { padding: 10px 16px 8px; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.se-block--flag .se-block-header { background: rgba(204,41,54,.12); color: var(--red-d); }
.hi-block--flag .hi-block-header { background: rgba(204,41,54,.12); color: var(--red-d); }
.se-block--warn .se-block-header { background: rgba(232,150,12,.2); color: #7A4700; }
.hi-block--warn .hi-block-header { background: rgba(232,150,12,.2); color: #7A4700; }
.se-block--find .se-block-header { background: var(--mist); color: var(--ink); }
.hi-block--find .hi-block-header { background: var(--mist); color: var(--ink); }
.se-block--act .se-block-header { background: var(--green-t); color: var(--green); }
.hi-block--act .hi-block-header { background: var(--green-t); color: var(--green); }
.se-block-body { padding: 14px 16px 16px; }
.hi-block-body { padding: 14px 16px 16px; }
.se-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.se-list li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.5; color: #1B2A3B; }
.hi-list li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.5; color: #1B2A3B; }
.se-list li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; background: var(--steel); transform: rotate(45deg); }
.hi-list li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; background: var(--steel); transform: rotate(45deg); }
.se-block--flag .se-list li::before { background: var(--red); }
.hi-block--flag .hi-list li::before { background: var(--red); }
.se-block--warn .se-list li::before { background: var(--amber); }
.hi-block--warn .hi-list li::before { background: var(--amber); }
.se-block--act .se-list li::before { background: var(--green); }
.hi-block--act .hi-list li::before { background: var(--green); }
.se-why { margin-top: 16px; padding: 18px 20px; border-radius: 8px; background: var(--mist); border-left: 4px solid var(--red); }
.hi-why { margin-top: 16px; padding: 18px 20px; border-radius: 8px; background: var(--mist); border-left: 4px solid var(--red); }
.se-why-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin-bottom: 8px; }
.hi-why-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin-bottom: 8px; }
.se-why p { font-size: 16px; line-height: 1.62; color: var(--text-2); }
.hi-why p { font-size: 16px; line-height: 1.62; color: var(--text-2); }
.ft__reset { margin-top: 20px; display: flex; justify-content: flex-end; }

/* ═══ SIMULADORES (RCP / DEA / Shock): marco nuevo, mecanismo intacto ═══ */
.simband { background: var(--ink); color: var(--on-ink); position: relative; }
.simhead { padding-top: clamp(48px, 6vw, 88px); }
.simhead .h2 { color: #fff; }
.simhead .lead { margin-top: 18px; color: var(--on-ink-2); }

/* Pasos / cómo funciona (secciones explicativas nuevas) */
.steps { counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.step { counter-increment: st; padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 28px) clamp(22px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--line); }
.step::before { content: counter(st, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--red); margin-bottom: 12px; }
.step h3 { font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: .01em; }
.step p { margin-top: 10px; font-size: 16.5px; line-height: 1.58; color: var(--text-2); }
.sec--ink .steps, .sec--ink .step { border-color: rgba(240,242,244,.18); }
.sec--ink .step p { color: var(--on-ink-2); }
.sec--ink .step::before { color: #F0646F; }
.sec--ink .step h3 { color: #fff; }

.refs { max-width: 860px; }
.refs ol { counter-reset: r; border-top: 2px solid var(--ink); }
.refs li { counter-increment: r; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.refs li::before { content: counter(r); font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }
.refs a { color: var(--ink); text-underline-offset: 3px; }
.refs a:hover { color: var(--red); }

/* ═══ Responsive ═══════════════════════════════════════════════ */
@media (min-width: 1160px) {
  .artx__in { grid-template-columns: minmax(0, 720px) 260px; justify-content: space-between; align-items: start; }
  .art-toc { display: block; position: sticky; top: 96px; }
  .art-toc[hidden] { display: none; }
}
.art-toc__t { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.art-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: tc; }
.art-toc li { counter-increment: tc; }
.art-toc a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.35; color: var(--text-2); text-decoration: none; transition: color 200ms, padding-left 300ms var(--ease-out); }
.art-toc a::before { content: counter(tc, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--steel); }
.art-toc a:hover { color: var(--ink); padding-left: 6px; }
.art-toc a.is-on { color: var(--ink); font-weight: 600; }
.art-toc a.is-on::before { color: var(--red); }

@media (max-width: 1100px) {
  .ft__wrap { grid-template-columns: minmax(0, 1fr); }
  .ft__out { position: static; }
  .ctx__l { position: static; }
}
@media (max-width: 960px) {
  .fh__grid, .ah__grid, .ctx__grid, .ed, .tl { grid-template-columns: minmax(0, 1fr); }
  .tl--flip .tl__img { order: 0; }
  .mos { max-width: 560px; }
  .ah__fig { max-width: 440px; }
  .ah__img { aspect-ratio: 4 / 3.2; }
  .idx__row { grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) auto; }
  .idx__n { display: none; }
}
@media (max-width: 640px) {
  .idx__row { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
  .idx__go { display: none; }
  .idx__img { aspect-ratio: 1 / 1; }
  .idx__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; }
  .idx__row::before { inset: 0 -12px; }
  .fh__cta .btn-h { width: 100%; }
  .se-grid, .se-check-cols { grid-template-columns: minmax(0, 1fr); }
  .hi-grid, .se-check-cols { grid-template-columns: minmax(0, 1fr); }
  .art-ev-row { grid-template-columns: minmax(0, 1fr); }
  .ah__meta .rt { margin-left: 0; }
  .ah__fig::before { inset: 12px -8px -8px 12px; }
  .mos__l small { font-size: 14px; }
  .art-cta .art-cta__btn { width: 100%; justify-content: center; }
  .hero--page .hero__inner { min-height: 0; }
}
/* (bloque reduced-motion retirado) */

/* ═══ SIMULADORES — secciones del marco (prefijo sm-) ═══════════ */
.fr--sim { background: var(--paper); color: var(--text); font-family: var(--font-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.fr--sim .sec--ink { color: var(--on-ink); }

/* Portada */
.sm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero--page .hero__sub { margin-top: clamp(18px, 2vw, 26px); font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; text-transform: uppercase; color: #fff; }
.hero--page .hero__sub + .hero__lead { margin-top: 14px; }
.sm-hero__act { margin-top: clamp(22px, 2.6vw, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.on-ink .facts { border-top-color: rgba(240,242,244,.2); }
.on-ink .fact b { color: #fff; }
.on-ink .fact span { color: var(--on-ink-2); }
.sm-spec { display: grid; grid-template-columns: 1fr 1fr; background: rgba(13,27,42,.78); border: 1px solid rgba(240,242,244,.18); border-radius: 8px; overflow: hidden; }
.sm-spec__h { grid-column: 1 / -1; padding: 14px 20px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-2); border-bottom: 1px solid rgba(240,242,244,.18); }
.sm-spec__i { position: relative; padding: 18px 20px 20px; border-right: 1px solid rgba(240,242,244,.14); border-bottom: 1px solid rgba(240,242,244,.14); }
.sm-spec__i:nth-child(even) { border-right: 0; }
.sm-spec__i:nth-last-child(-n+2) { border-bottom: 0; }
.sm-spec__l { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-2); }
.sm-spec__v { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; text-transform: uppercase; color: #fff; font-variant-numeric: tabular-nums; }
.sm-spec__n { margin-top: 8px; font-size: 15.5px; line-height: 1.4; color: var(--on-ink-2); }
.sm-spec__i[data-c]::before { content: ''; position: absolute; left: 20px; top: 0; width: 34px; height: 4px; background: var(--c); }
.sm-spec__i[data-c="g"] { --c: #3DB27A; }
.sm-spec__i[data-c="a"] { --c: var(--amber); }
.sm-spec__i[data-c="r"] { --c: #E03A48; }
.sm-spec__i[data-c="d"] { --c: #fff; }

/* Cabecera de sección + lectura */
.sm-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.sm-prose p { font-size: 17.5px; line-height: 1.68; color: var(--text-2); }
.sm-prose p + p { margin-top: 1.05em; }
.sm-prose strong { color: var(--ink); }
.sm-prose h3, .sm-h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); margin-bottom: 12px; }
.sm-prose * + h3 { margin-top: 1.6em; }
.sm-callout { margin-top: 24px; padding: 18px 22px; border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; background: var(--mist); font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.sm-callout strong { color: var(--ink); }
.sm-callout--amber { border-left-color: var(--amber); background: rgba(232,150,12,.09); }
.sm-prose .sm-callout:first-child { margin-top: 0; }
.sm-src { margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.sm-fine { margin-top: 18px; font-size: 15.5px; line-height: 1.55; color: var(--text-3); }

/* Variables (RCP) */
.sm-vars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.sm-var { padding-top: 22px; border-top: 2px solid var(--ink); }
.sm-var__n { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sm-var__name { margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; }
.sm-var__range { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 3.6vw, 52px); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.sm-var__d { margin-top: 16px; font-size: 16.5px; line-height: 1.62; color: var(--text-2); }
.sm-var__s { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--text-3); }

/* Zonas del índice (RCP) */
.sm-zones { border-top: 2px solid var(--ink); }
.sm-zone { --c: var(--green); display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 22px; align-items: center; padding: 20px 0 20px 20px; border-bottom: 1px solid var(--line); position: relative; }
.sm-zone::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 3px; background: var(--c); }
.sm-zone--a { --c: var(--amber); }
.sm-zone--r { --c: var(--red); }
.sm-zone__r { font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sm-zone__l { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.sm-zone__d { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.sm-zones + .note { margin-top: 22px; }

/* Cifras (RCP contexto) */
.sm-cstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(18px, 2.4vw, 36px); border-top: 2px solid var(--ink); }
.sm-cstat { padding: 22px clamp(14px, 1.6vw, 24px) 24px 0; border-bottom: 1px solid var(--line); }
.sm-cstat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 3.4vw, 50px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.sm-cstat span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--text-2); }

/* Video enmarcado (RCP) */
.sm-media { margin-top: clamp(36px, 4.6vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.sm-media__f { position: relative; border-radius: 8px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; box-shadow: var(--shadow-m); }
.sm-media__f video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm-media__tag { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sm-media__tag span { color: var(--text-3); }
.sm-media__c { margin-top: 12px; font-size: 17px; line-height: 1.62; color: var(--text-2); }

/* Banda de cita (DEA / Shock) */
.sm-qband { position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: #fff; padding: clamp(80px, 11vw, 160px) 0; }
.sm-qband__bg { position: absolute; inset: 0; z-index: -2; }
.sm-qband__bg img, .sm-qband__bg video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.sm-qband::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,27,42,.94) 0%, rgba(13,27,42,.72) 55%, rgba(13,27,42,.45) 100%); }
.sm-qband__l { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .16em; text-transform: uppercase; color: #F0646F; }
.sm-qband__q { margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.6vw, 82px); line-height: .94; text-transform: uppercase; text-wrap: balance; }
.sm-qband__q em { font-style: normal; color: #F0646F; }
.sm-qband__s { margin-top: clamp(20px, 2.6vw, 32px); max-width: 58ch; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.62; color: var(--on-ink-2); }
.sm-qband__src { display: block; margin-top: 18px; font-size: 15.5px; color: rgba(240,242,244,.7); }

/* Ritmos (DEA) */
.sm-rhy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.sm-rhy__i { padding: 20px 22px 22px; border: 1px solid var(--line-2); border-top: 4px solid var(--red); border-radius: 8px; background: #fff; }
.sm-rhy__i--no { border-top-color: var(--steel); }
.sm-rhy__l { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-d); }
.sm-rhy__i--no .sm-rhy__l { color: var(--text-2); }
.sm-rhy__v { margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.sm-rhy__n { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* Tabla ATLS (Shock) */
.sm-tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; -webkit-overflow-scrolling: touch; }
.sm-tbl { width: 100%; min-width: 820px; font-size: 16px; text-align: left; }
.sm-tbl th { padding: 14px 16px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sm-tbl td { padding: 15px 16px; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.sm-tbl tbody tr:nth-child(even) { background: var(--mist); }
.sm-tbl td.sm-cls { font-family: var(--font-display); font-weight: 800; font-size: 21px; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.sm-cls::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; background: var(--c); }
.sm-cls--1 { --c: var(--green); } .sm-cls--2 { --c: var(--amber); } .sm-cls--3 { --c: var(--red); } .sm-cls--4 { --c: var(--ink); }

/* Lista de límites */
.sm-lims { max-width: 880px; border-top: 2px solid var(--ink); }
.sm-lims li { position: relative; padding: 15px 0 15px 34px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--text-2); }
.sm-lims li::before { content: ''; position: absolute; left: 4px; top: 25px; width: 14px; height: 2px; background: var(--red); }

/* Fuentes */
.sm-rc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(28px, 3.4vw, 44px); }
.sm-rc__i { padding-top: 18px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sm-rc__o { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.sm-rc__t { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.sm-rc__d { font-size: 16px; line-height: 1.58; color: var(--text-2); }
.sm-rc__i .link-h { margin-top: auto; padding-top: 6px; }
.sm-rc__i .link-h svg { width: 15px; height: 15px; }
.sm-rc--links .sm-rc__i { gap: 8px; }
.sm-rc--links .link-h { font-size: 17px; margin-top: 4px; }

@media (max-width: 960px) {
  .sm-hero__grid, .sm-split, .sm-media { grid-template-columns: minmax(0, 1fr); }
  .sm-vars, .sm-rc { grid-template-columns: minmax(0, 1fr); }
  .sm-var { padding-bottom: 6px; }
}
@media (max-width: 640px) {
  .sm-rhy { grid-template-columns: minmax(0, 1fr); }
  .sm-zone { grid-template-columns: minmax(0, 1fr); padding-left: 20px; }
  .sm-spec__v { font-size: 26px; }
  .sm-qband__q { max-width: none; }
  .sm-hero__act .btn-h { width: 100%; justify-content: center; }
}

.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 44px); }
.steps--3 .step { padding-right: 0; }
.fr--sim .close__t { font-size: clamp(40px, 5.2vw, 72px); }
@media (max-width: 960px) { .steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps--3 { grid-template-columns: minmax(0, 1fr); } }

/* ═══ Podcast / Experiencias ═══════════════════════════════════ */
.epi { border-top: 2px solid var(--ink); }
.epi__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding: clamp(24px, 2.8vw, 38px) 0; border-bottom: 1px solid var(--line); }
.epi__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 5vw, 68px); line-height: .9; color: var(--red); font-variant-numeric: tabular-nums; }
.epi__t { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.epi__d { margin-top: 10px; max-width: 64ch; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.epi__cover { width: 100%; max-width: 580px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-m); }
.epi__cover img { width: 100%; height: 100%; object-fit: cover; }
a.step { display: block; color: inherit; text-decoration: none; }
a.step h3 { transition: color 200ms; }
a.step:hover h3 { color: var(--red); }
.step .chip { margin-bottom: 14px; min-height: 28px; font-size: 14px; }
.xp__cta { margin-top: clamp(28px, 3.4vw, 44px); display: flex; flex-wrap: wrap; gap: 14px; }
.xp__all { margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 760px) {
  .epi__row { grid-template-columns: 56px minmax(0, 1fr); }
  .epi__go { grid-column: 2; }
  .epi__cover { max-width: 300px; }
  .xp__cta .btn-h { width: 100%; justify-content: center; }
}

/* ajustes de legibilidad sobre fotos/video claros */
.fr--sim .hero__shade { background: linear-gradient(90deg, rgba(13,27,42,.92) 0%, rgba(13,27,42,.78) 48%, rgba(13,27,42,.4) 100%), linear-gradient(0deg, rgba(13,27,42,.7) 0%, transparent 45%); }
.sm-qband__q { max-width: 20em; font-size: clamp(36px, 4.8vw, 70px); }
.sm-tbl { min-width: 900px; }
.sm-tbl td:not(:nth-child(5)):not(:nth-child(8)) { white-space: nowrap; }

/* Movimiento: el sitio ya no se apaga con el ajuste «reducir movimiento» del teléfono (muchos Android lo activan con el ahorro de batería y dejaba todo estático). Las animaciones son suaves (fundidos y desplazamientos cortos). */
