/* CLAVE Analítica · sistema v3 (tokens de la etapa 1). Compartido por todas las páginas. */
:root {
  --navy: #1F2542; --navy-deep: #141830; --red: #EF4536; --orange: #F7A44A;
  --grad: linear-gradient(90deg, var(--red), var(--orange));
  --on-navy: #F3F4FA; --on-navy-soft: #B9BEDA; --navy-line: #353C66; --navy-panel: #1A1F3D; --warn-on-navy: #FF8A78;
  --paper: #F5F6FA; --surface: #FFFFFF; --line: #D8DBE8; --ink: #141830; --ink-soft: #4E5470; --accent-ink: #B92D1B;
  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 40px; --s7: 64px; --s8: 104px;
  --r-s: 4px; --r-m: 10px; --r-l: 18px; --r-pill: 999px;
  --t-fast: 180ms; --t-state: 480ms; --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0D1022; --surface: #131730; --line: #2B3158; --ink: #EEF0F8; --ink-soft: #A7ADCB; --accent-ink: #FF9A7A; color-scheme: dark } }
:root[data-theme="dark"] {
  --paper: #0D1022; --surface: #131730; --line: #2B3158; --ink: #EEF0F8; --ink-soft: #A7ADCB; --accent-ink: #FF9A7A; color-scheme: dark }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-text); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; border: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .xd { font-family: var(--f-display); font-stretch: 125%; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--navy-deep); padding: var(--s2) var(--s4); z-index: 20; }
.skip:focus { left: 0; }

/* bands */
.band { padding-block: var(--s8); }
.band--surface { background: var(--surface); }
.band--navy { background: var(--navy-deep); color: var(--on-navy); }
.band__head { display: grid; gap: var(--s4); max-width: 44rem; margin-bottom: var(--s7); }
.band__head .label { color: var(--accent-ink); }
.band--navy .band__head .label { color: var(--orange); }
.band h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.lead { color: var(--ink-soft); font-size: 1.0625rem; max-width: 38em; }
.band--navy .lead { color: var(--on-navy-soft); }

/* buttons */
.btn { display: inline-block; padding: 0.9rem 1.5rem; border: 0; border-radius: var(--r-pill); background: var(--grad); color: var(--navy-deep); font: 600 1rem var(--f-text); text-decoration: none; cursor: pointer;
       transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgb(239 69 54 / 0.35); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.link { font-weight: 600; color: var(--accent-ink); text-underline-offset: 3px; }
.mail { font-size: 0.95rem; user-select: all; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }

/* top bar */
.hero { background: var(--navy-deep); color: var(--on-navy); }
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s4); }
.brand { display: flex; align-items: center; gap: var(--s3); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.brand span { font-weight: 600; color: var(--on-navy-soft); }

/* hero */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s7); align-items: center; padding-block: var(--s6) var(--s8); }
.hero h1 { font-size: clamp(1.9rem, 1.1rem + 3.3vw, 3.75rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: var(--s5); max-width: 34em; font-size: 1.125rem; color: var(--on-navy-soft); }
.hero .cta-row { margin-top: var(--s6); }
.hero .mail { color: var(--on-navy-soft); }
.hero--page .hero__grid { grid-template-columns: minmax(0, 1fr); padding-block: var(--s6) var(--s7); }
.hero--page h1 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.9rem); max-width: 22em; }

/* the rules switch */
.rules { background: var(--navy-panel); border: 1px solid var(--navy-line); border-radius: var(--r-l); padding: var(--s5); display: grid; gap: var(--s5); min-width: 0; }
.rules__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.rules__head .label { color: var(--on-navy-soft); }
.sw { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--on-navy); border-radius: var(--r-pill); white-space: nowrap; }
.sw:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.sw__track { width: 52px; height: 30px; border-radius: var(--r-pill); background: var(--navy-line); padding: 3px; transition: background var(--t-state) var(--ease); }
.sw__knob { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--on-navy); transition: transform var(--t-state) var(--ease); }
.rules.is-on .sw__track { background: var(--grad); }
.rules.is-on .sw__knob { transform: translateX(22px); }
.q { justify-self: end; max-width: 90%; background: var(--navy-line); padding: 0.55rem 0.9rem; border-radius: var(--r-m) var(--r-m) var(--r-s) var(--r-m); font-size: 0.95rem; }
.files { display: flex; flex-wrap: wrap; gap: var(--s2); min-height: 5.2rem; align-content: center; }
.files li { font-size: 0.8rem; padding: 0.3rem 0.6rem; border-radius: var(--r-s); border: 1px solid var(--navy-line); color: var(--on-navy-soft);
            transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)); transition: transform var(--t-state) var(--ease), opacity var(--t-state) var(--ease), border-color var(--t-state), color var(--t-state); }
.rules.is-on .files li { transform: none; opacity: 0.5; text-decoration: line-through; }
.rules.is-on .files li.src { opacity: 1; text-decoration: none; color: var(--on-navy); border-color: var(--orange); }
.files li.src b { font-weight: 500; opacity: 0; transition: opacity var(--t-state) var(--ease); }
.rules.is-on .files li.src b { opacity: 1; }
.ans { display: grid; border-top: 1px solid var(--navy-line); padding-top: var(--s5); }
.ans > div { grid-area: 1 / 1; display: grid; gap: var(--s3); align-content: start; transition: opacity var(--t-state) var(--ease), transform var(--t-state) var(--ease); }
.ans .num { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.tags li { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-soft); }
.rules .tags li { border-color: var(--navy-line); color: var(--on-navy-soft); }
.rules .ans__on .tags li { border-color: var(--orange); color: var(--orange); }
.rules .ans__off .tags li { border-color: var(--warn-on-navy); color: var(--warn-on-navy); }
.rules:not(.is-on) .ans__on, .rules.is-on .ans__off { opacity: 0; transform: translateY(8px); visibility: hidden; }

/* problem: what we hear, and the before/after pairs */
.hear { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.quotes { display: grid; }
.quotes li { padding-block: var(--s4); border-top: 1px solid var(--line); font-size: 1.0625rem; }
.quotes li:last-child { border-bottom: 1px solid var(--line); }
.turn { margin-top: var(--s5); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.pairs { display: grid; gap: var(--s3); }
.pairs__head, .pairs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.pairs__head { padding-bottom: var(--s2); color: var(--ink-soft); }
.pairs__head span:last-child { color: var(--accent-ink); }
.pairs li { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); font-size: 0.95rem; }
.pairs li > span:first-child { color: var(--ink-soft); }
.pairs li > span:last-child { font-weight: 600; padding-left: var(--s4); border-left: 2px solid var(--orange); }

/* services */
.svc { display: grid; }
.svc > li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--s4) var(--s7); padding-block: var(--s6); border-top: 1px solid var(--line); scroll-margin-top: var(--s5); }
.svc > li:last-child { border-bottom: 1px solid var(--line); }
.svc__pain { color: var(--ink-soft); font-size: 0.95rem; }
.svc__pain .label { display: block; color: var(--accent-ink); margin-bottom: var(--s2); }
.svc h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.svc__body { display: grid; gap: var(--s4); min-width: 0; }
.svc__body > p { max-width: 40em; }
details.how { border-top: 1px dashed var(--line); padding-top: var(--s3); }
details.how summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); list-style: none; display: inline-flex; align-items: center; gap: var(--s2); padding-block: var(--s1); }
details.how summary::-webkit-details-marker { display: none; }
details.how summary::after { content: "+"; font-size: 1.1rem; line-height: 1; transition: transform var(--t-fast) var(--ease); }
details.how[open] summary::after { transform: rotate(45deg); }
.how__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s4) var(--s5); margin-top: var(--s4); }
.how__list dt { font-weight: 600; }
.how__list dd { color: var(--ink-soft); font-size: 0.95rem; }
.how__note { margin-top: var(--s4); font-size: 0.95rem; color: var(--ink-soft); max-width: 44em; }

/* program timeline */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--line); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); transition: transform var(--t-fast) linear; }
.steps li { padding: var(--s5) var(--s5) var(--s2) 0; display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.steps li + li { padding-left: var(--s5); border-left: 1px solid var(--line); }
.steps .label { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }
.steps .out { margin-top: var(--s2); padding-top: var(--s3); border-top: 1px dashed var(--line); color: var(--ink); font-weight: 500; }
.steps .out .label { display: block; color: var(--ink-soft); font-weight: 600; margin-bottom: 2px; }
.after { margin-top: var(--s7); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--s5) var(--s7); }
.after h3 { font-size: 1.15rem; font-weight: 800; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3) var(--s5); }
.checks li { padding-left: 1.5rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.8rem; height: 0.4rem; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.note { margin-top: var(--s5); font-size: 0.9rem; color: var(--ink-soft); max-width: 46em; }

/* generic grid of items separated by hairlines */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.cells > li { background: var(--surface); padding: var(--s5); display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.band--surface .cells > li { background: var(--paper); }
.cells h3 { font-size: 1rem; font-weight: 800; line-height: 1.25; }
.cells p { color: var(--ink-soft); font-size: 0.95rem; }
.cells .label { color: var(--accent-ink); }
.indep { margin-top: var(--s7); padding: var(--s5) var(--s6); border-radius: var(--r-l); background: var(--navy-deep); color: var(--on-navy); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--s4) var(--s7); align-items: center; }
.indep h3 { font-size: 1.2rem; font-weight: 800; }
.indep p { color: var(--on-navy-soft); }
.sectors { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.sectors .label { color: var(--ink-soft); margin-right: var(--s2); }

/* who leads */
.who { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--s6) var(--s7); align-items: start; }
.who__id { display: grid; gap: var(--s4); justify-items: start; }
.who__id img { width: 144px; height: 144px; border-radius: var(--r-l); object-fit: cover; }
.who__id h3 { font-size: 1.3rem; font-weight: 800; }
.who__id p { color: var(--ink-soft); }
.who__body { display: grid; gap: var(--s5); min-width: 0; }
.who__body > p { max-width: 42em; }
.who__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.who__cols h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s3); }
.who__cols ul { display: grid; gap: var(--s3); font-size: 0.95rem; }
.who__cols b { font-weight: 600; }
.who__cols li span { color: var(--ink-soft); }

/* closing */
.close { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--s6) var(--s7); }
.behind { display: grid; gap: var(--s2); margin-top: var(--s4); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.15rem; color: var(--on-navy-soft); }
.behind li { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.start { display: grid; gap: var(--s5); min-width: 0; }
.start legend { font-weight: 600; margin-bottom: var(--s3); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chips span { display: block; padding: 0.5rem 0.9rem; border-radius: var(--r-pill); border: 1px solid var(--navy-line); color: var(--on-navy-soft); font-size: 0.9rem; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.chips input:checked + span { background: var(--on-navy); color: var(--navy-deep); border-color: var(--on-navy); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.start__cta { padding-top: var(--s5); border-top: 1px solid var(--navy-line); display: grid; gap: var(--s3); }
.start__cta p { color: var(--on-navy-soft); font-size: 0.9rem; }
.start__cta .mail { color: var(--on-navy); }

/* forms (contact form, ready to connect) */
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s5); }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: var(--s1); font-size: 0.9rem; font-weight: 600; }
.form input, .form select, .form textarea { font: 400 1rem var(--f-text); padding: 0.7rem 0.8rem; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.form textarea { min-height: 7rem; resize: vertical; }

/* footer */
.foot { background: var(--navy-deep); color: var(--on-navy-soft); border-top: 1px solid var(--navy-line); padding-block: var(--s6); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4) var(--s6); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.foot a { color: var(--on-navy-soft); text-decoration: none; }
.foot a:hover { color: var(--on-navy); }

@media (max-width: 860px) {
  .band { padding-block: var(--s7); }
  .band__head { margin-bottom: var(--s6); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-block: var(--s5) var(--s7); }
  .hear, .svc > li, .after, .who, .who__cols, .close, .indep, .form { grid-template-columns: minmax(0, 1fr); }
  .hear { gap: var(--s6); }
  .svc > li { padding-block: var(--s5); }
  .indep { padding: var(--s5); }
  .cells { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 3px solid var(--line); }
  .steps::before { left: -3px; top: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--red), var(--orange)); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
  .steps li, .steps li + li { padding: 0 0 var(--s5) var(--s5); border-left: 0; }
  .after { margin-top: var(--s6); }
}
@media (min-width: 861px) and (max-width: 1080px) { .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- navigation: sticky bar, mobile menu, section buttons, footer ---------- */
html { scroll-padding-top: 96px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--navy-deep); }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy-deep); color: var(--on-navy); border-bottom: 1px solid transparent; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.bar.is-stuck { border-bottom-color: var(--navy-line); box-shadow: 0 8px 24px rgb(8 10 24 / 0.35); }
.bar .top { padding-block: var(--s3); position: relative; }
.menu { all: unset; box-sizing: border-box; display: none; align-items: center; gap: var(--s2); cursor: pointer; font: 600 0.9rem var(--f-text); color: var(--on-navy); padding: 0.5rem 0.8rem; border: 1px solid var(--navy-line); border-radius: var(--r-pill); }
.menu:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.menu__ico { display: grid; gap: 3px; width: 16px; }
.menu__ico i { height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast); }
.btn--ghost { background: none; color: var(--on-navy); box-shadow: inset 0 0 0 1px var(--navy-line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--on-navy); }
.btn--line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line span { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.btn--line:hover span { transform: translateX(4px); }
.next { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); }
.foot { padding-block: var(--s7) var(--s5); }
.foot .wrap.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.foot__brand { display: grid; gap: var(--s4); justify-items: start; align-content: start; }
.foot__brand .brand { color: var(--on-navy); }
.foot__grid nav { display: grid; gap: var(--s2); align-content: start; }
.foot__grid h2 { font-family: var(--f-text); font-stretch: normal; color: var(--on-navy); margin-bottom: var(--s2); }
.foot .wrap.foot__base { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--navy-line); font-size: 0.85rem; }
.dock { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: grid; gap: var(--s2); padding: 6px; border-radius: var(--r-pill);
        background: var(--navy-deep); border: 1px solid var(--navy-line); box-shadow: 0 8px 24px rgb(8 10 24 / 0.35); }
.dock button { all: unset; box-sizing: border-box; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--on-navy); transition: background var(--t-fast), color var(--t-fast); }
.dock button:hover { background: var(--navy-line); }
.dock button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.dock button:disabled { opacity: 0.35; cursor: default; background: none; }
.dock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock .ico-sun, .is-dark .dock .ico-moon { display: none; }
.is-dark .dock .ico-sun { display: block; }
@media (max-width: 980px) {
  .foot .wrap.foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}
.dock { gap: 2px; }
.dock #goNext { margin-bottom: 4px; }
.dock #goMid, .dock #themeBtn { box-shadow: 0 -1px 0 var(--navy-line); border-radius: 0 0 50% 50% / 0 0 50% 50%; border-radius: 50%; }
@media (max-width: 860px) { .brand img { height: 46px; } .brand { font-size: 1.05rem; } html { scroll-padding-top: 82px; } .dock button { width: 38px; height: 38px; } }

/* ---------- support pages ---------- */
.jump { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.svc__h { font-size: 1.3rem; font-weight: 800; line-height: 1.2; letter-spacing: 0; }
.how__list--open { margin-top: var(--s2); padding-top: var(--s4); border-top: 1px dashed var(--line); }
.cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.after > p { max-width: 44em; }
.who__name { font-size: 1.3rem; font-weight: 800; letter-spacing: 0; }
.who__h { font-family: var(--f-text); font-stretch: normal; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s3); }
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--s6) var(--s7); align-items: start; }
.contact h2 { font-size: 1.3rem; }
.contact__side { display: grid; gap: var(--s4); justify-items: start; }
.contact__mail { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.05rem, 0.8rem + 1vw, 1.5rem); overflow-wrap: anywhere; }
.contact__dl { display: grid; gap: var(--s4); margin-top: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--line); }
.contact__dl dt { color: var(--ink-soft); margin-bottom: 2px; }
.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s5); }
.form__note { flex: 1 1 260px; font-size: 0.85rem; color: var(--ink-soft); }
.form__err { color: var(--accent-ink); font-weight: 600; font-size: 0.9rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.prose { max-width: 46rem; display: grid; gap: var(--s4); }
.prose h2 { font-size: 1.15rem; margin-top: var(--s4); letter-spacing: 0; }
.prose ul { display: grid; gap: var(--s3); padding-left: 1.2rem; list-style: disc; }
.prose .label { color: var(--ink-soft); }
.draft { padding: var(--s4); border-radius: var(--r-m); border: 1px solid var(--orange); background: color-mix(in oklab, var(--orange) 12%, var(--surface)); }
@media (max-width: 860px) { .cells--2, .contact { grid-template-columns: minmax(0, 1fr); } }
.foot a.btn { color: var(--navy-deep); }
.foot a.btn:hover { color: var(--navy-deep); }
[tabindex="-1"]:focus { outline: none; }
section[id], header[id], .svc > li { scroll-margin-top: 0; }

/* ---------- generative hero ---------- */
/* Hero generativo: capa decorativa detras del texto + control compacto. */
.hero--gen { position: relative; overflow: hidden; overflow: clip; }
.hero--gen > .wrap { position: relative; z-index: 1; }
.gen-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero--gen .hero__grid { align-items: center; padding-block: var(--s7) var(--s8); }
.stage { display: grid; gap: var(--s4); min-width: 0; }
.stage__ctl { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s4) var(--s3) var(--s5); border-radius: var(--r-l);
              background: color-mix(in oklab, var(--navy-panel) 88%, transparent); border: 1px solid var(--navy-line); backdrop-filter: blur(6px); }
.stage__txt { display: grid; min-width: 0; }
.stage__txt .label { color: var(--on-navy-soft); grid-area: 1 / 1; }
.stage__txt p { grid-area: 2 / 1; font-weight: 600; font-size: 0.95rem; transition: opacity var(--t-state) var(--ease); }
.stage:not(.is-on) .stage__on, .stage.is-on .stage__off { opacity: 0; visibility: hidden; }
.stage.is-on .sw__track { background: var(--grad); }
.stage.is-on .sw__knob { transform: translateX(22px); }
.gen { position: relative; height: clamp(300px, 33vw, 440px); }
.gen__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--t-state) var(--ease); }
.stage.is-on .gen__img--off, .stage:not(.is-on) .gen__img--on { opacity: 0; }
.gen.is-live .gen__img { visibility: hidden; }
.stage__key { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 0.78rem; color: var(--on-navy-soft); transition: opacity var(--t-state) var(--ease); }
.stage__key li { display: inline-flex; align-items: center; gap: var(--s2); }
.key--ver::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.key--rule::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--grad); }
.stage:not(.is-on) .key--ver, .stage:not(.is-on) .key--rule { opacity: 0.35; }
@media (max-width: 860px) {
  .hero--gen .hero__grid { padding-block: var(--s5) var(--s6); }
  .gen { height: 300px; }
  .stage__ctl { padding-left: var(--s4); }
}
@media (max-width: 860px) { .stage__ctl { flex-direction: row-reverse; justify-content: flex-end; gap: var(--s4); } .stage__ctl .sw { flex-direction: row-reverse; } .stage__key { padding-right: 56px; } }

/* ---------- dual focus: Datos + IA ---------- */
.stage .stage__act { opacity: 0; visibility: hidden; }
.stage.is-on.is-act .stage__act { opacity: 1; visibility: visible; }
.stage.is-on.is-act .stage__on { opacity: 0; visibility: hidden; }
.key--out::before { content: ""; width: 12px; height: 11px; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 3px 5px no-repeat, linear-gradient(var(--orange), var(--orange)) 4.5px 100% / 3px 8px no-repeat, linear-gradient(var(--orange), var(--orange)) 9px 100% / 3px 11px no-repeat; }
.stage:not(.is-act) .key--out { opacity: 0.35; }
.grp + .grp { margin-top: var(--s7); }
.grp__head { display: flex; align-items: center; gap: var(--s5); padding-bottom: var(--s4); }
.grp__tag { flex: none; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); background: var(--navy-deep); color: var(--on-navy); border: 1px solid var(--navy-line); }
.grp--ia .grp__tag, .sys__half--ia .grp__tag { background: var(--grad); color: var(--navy-deep); border-color: transparent; }
.grp--puente .grp__tag { background: none; color: var(--ink); border: 1.5px solid var(--ink); }
.grp__h { font-size: 1.2rem; font-weight: 800; letter-spacing: 0; }
.grp__head p { color: var(--ink-soft); font-size: 0.95rem; }
.sys { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s4) var(--s5); align-items: stretch; }
.sys__half { display: grid; gap: var(--s3); align-content: start; justify-items: start; padding: var(--s5); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.band:not(.band--surface) .sys__half { background: var(--surface); }
.sys__half--ia { border-color: var(--orange); }
.sys__half h3 { font-size: 1.2rem; font-weight: 800; }
.sys__half dl { display: grid; gap: var(--s3); }
.sys__half dt { font-weight: 600; }
.sys__half dd { color: var(--ink-soft); font-size: 0.95rem; }
.sys__link { display: grid; gap: var(--s2); align-content: center; justify-items: center; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); max-width: 9.5rem; }
.sys__link svg { width: 120px; height: 34px; }
.sys svg { fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sys__down { grid-column: 1 / -1; display: grid; justify-items: center; }
.sys__down svg { width: 34px; height: 44px; }
.sys__out { grid-column: 1 / -1; justify-self: center; max-width: 40rem; text-align: center; padding: var(--s4) var(--s6); border-radius: var(--r-l); background: var(--navy-deep); color: var(--on-navy); border: 1px solid var(--navy-line); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.05rem; line-height: 1.35; }
.sys__out .label { display: block; font-family: var(--f-text); font-stretch: normal; color: var(--orange); margin-bottom: var(--s2); }
.duo { display: grid; gap: var(--s3); margin-top: var(--s2); }
.duo dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.duo dd { font-size: 0.95rem; }
.duo__ia { padding-top: var(--s3); border-top: 1px dashed var(--line); }
.duo__ia dt { color: var(--accent-ink); }
.foot__sig { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; color: var(--on-navy); }
@media (max-width: 860px) {
  .sys { grid-template-columns: minmax(0, 1fr); }
  .sys__link { max-width: none; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
  .sys__link svg { transform: rotate(90deg); width: 64px; }
  .grp__head { align-items: flex-start; flex-direction: column; gap: var(--s3); }
  .grp + .grp { margin-top: var(--s6); }
  .sys__out { padding: var(--s4) var(--s5); }
}
/* animated connections: Datos -> IA -> Resultado (only while visible; static final state otherwise) */
.sys svg .sys__dot { fill: var(--orange); stroke: none; opacity: 0; }
.sys__link svg { width: 150px; height: 43px; }
@media (prefers-reduced-motion: no-preference) {
  .sys.is-live { --loop: 6s; }
  .sys.is-live svg { stroke-width: 3; overflow: visible; }
  .sys.is-live .sys__half--datos { animation: sysA var(--loop) ease-in-out infinite; }
  .sys.is-live .sys__half--ia { animation: sysB var(--loop) ease-in-out infinite; }
  .sys.is-live .sys__fwd path:first-child, .sys.is-live .sys__bak path:first-child, .sys.is-live .sys__dn path:first-child { stroke-dasharray: 9 7; animation: sysMarch 0.7s linear infinite; }
  .sys.is-live .sys__fwd, .sys.is-live .sys__bak, .sys.is-live .sys__dn { stroke: var(--accent-ink); }
  .sys.is-live .sys__dot { filter: drop-shadow(0 0 5px var(--orange)); }
  .sys.is-live .sys__fwd, .sys.is-live .sys__bak, .sys.is-live .sys__dn { opacity: 1; animation: sysGlow 1.8s ease-in-out infinite; }
  .sys.is-live .sys__bak { animation-delay: -0.6s; }
  .sys.is-live .sys__dn { animation-delay: -1.2s; }
  .sys.is-live .sys__fwd .sys__dot { animation: sysFlowX 2.4s linear infinite; }
  .sys.is-live .sys__bak .sys__dot { animation: sysFlowXb 2.4s linear infinite; }
  .sys.is-live .sys__dn .sys__dot { animation: sysFlowY 2.4s linear infinite; }
  .sys.is-live .sys__dot.d2 { animation-delay: -0.8s; }
  .sys.is-live .sys__dot.d3 { animation-delay: -1.6s; }
  .sys.is-live .sys__out { animation: sysOut var(--loop) ease-in-out infinite; }
  .sys.is-paused *, .sys.is-paused { animation-play-state: paused !important; }
}
@keyframes sysMarch { to { stroke-dashoffset: -16; } }
@keyframes sysA { 0%, 28%, 100% { transform: none; box-shadow: 0 0 0 0 transparent; } 4%, 16% { transform: scale(1.025); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-ink) 35%, transparent), 0 10px 30px color-mix(in srgb, var(--accent-ink) 25%, transparent); border-color: var(--accent-ink); } }
@keyframes sysB { 0%, 34%, 60%, 100% { transform: none; box-shadow: 0 0 0 0 transparent; } 40%, 52% { transform: scale(1.025); box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 45%, transparent), 0 10px 30px color-mix(in srgb, var(--orange) 30%, transparent); } }
@keyframes sysHot1 { 0%, 10% { opacity: 0.35; } 16%, 34% { opacity: 1; } 44%, 100% { opacity: 0.45; } }
@keyframes sysHot2 { 0%, 46% { opacity: 0.35; } 52%, 68% { opacity: 1; } 78%, 100% { opacity: 0.45; } }
@keyframes sysHot3 { 0%, 60% { opacity: 0.35; } 66%, 84% { opacity: 1; } 92%, 100% { opacity: 0.45; } }
@keyframes sysDotX { 0%, 14% { opacity: 0; transform: translateX(0) scale(1); } 18% { opacity: 1; transform: translateX(0) scale(1.6); } 34% { opacity: 1; transform: translateX(100px) scale(1.6); } 38%, 100% { opacity: 0; transform: translateX(100px) scale(1); } }
@keyframes sysDotXb { 0%, 48% { opacity: 0; transform: translateX(0) scale(1); } 52% { opacity: 1; transform: translateX(0) scale(1.6); } 68% { opacity: 1; transform: translateX(-100px) scale(1.6); } 72%, 100% { opacity: 0; transform: translateX(-100px) scale(1); } }
@keyframes sysDotY { 0%, 62% { opacity: 0; transform: translateY(0) scale(1); } 66% { opacity: 1; transform: translateY(0) scale(1.6); } 82% { opacity: 1; transform: translateY(34px) scale(1.6); } 86%, 100% { opacity: 0; transform: translateY(34px) scale(1); } }
@keyframes sysOut { 0%, 78%, 100% { transform: none; box-shadow: 0 0 0 0 transparent; border-color: var(--navy-line); } 86%, 94% { transform: scale(1.04); box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 50%, transparent), 0 12px 36px color-mix(in srgb, var(--orange) 35%, transparent); border-color: var(--orange); } }
/* typing on scroll */
.tw-off { color: transparent; }
.tw-live::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -0.12em; background: var(--orange); animation: twBlink 0.9s steps(1) infinite; }
.tw-head { opacity: 0.25; transition: opacity var(--t-base, 480ms) ease; }
.tw-head.is-on { opacity: 1; }
@keyframes twBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tw-live::after { animation: none; } }
/* hero hover legend */
.gen-tip { position: fixed; left: 0; top: 0; z-index: 40; max-width: 15rem; pointer-events: none; display: grid; gap: 2px; padding: 0.55rem 0.75rem; border-radius: var(--r-m); background: #F5F6FA; color: #141830; border-left: 3px solid #F7A44A; box-shadow: 0 8px 24px rgba(8, 10, 24, 0.35); font-size: 0.8rem; line-height: 1.35; }
.gen-tip b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: #141830; }
.gen-tip[data-kind="ver"] b, .gen-tip[data-kind="out"] b { color: #B92D1B; }
.gen-tip span { color: #3A4060; }
.gen-tip[hidden] { display: none; }
/* hero narration bubbles */
.gen-say { position: absolute; left: 0; top: 0; z-index: 6; width: min(15.5rem, calc(100% - 16px)); pointer-events: none; display: grid; gap: 2px; padding: 0.7rem 0.9rem; border-radius: var(--r-m); background: #F5F6FA; color: #141830; box-shadow: 0 10px 30px rgba(8, 10, 24, 0.45); --tail: 50%; }
.gen-say::after { content: ""; position: absolute; left: var(--tail); bottom: -6px; width: 12px; height: 12px; background: #F5F6FA; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.gen-say__n { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #B92D1B; }
.gen-say b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 0.95rem; line-height: 1.25; }
.gen-say p { font-size: 0.8rem; line-height: 1.4; color: #3A4060; }
.gen-say[hidden] { display: none; }
.gen-say.is-swap { animation: saySwap 420ms cubic-bezier(.2, .8, .2, 1); }
@keyframes saySwap { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
@media (max-width: 860px) { .gen-say { width: min(14rem, calc(100% - 16px)); padding: 0.55rem 0.7rem; } .gen-say b { font-size: 0.85rem; } .gen-say p { font-size: 0.74rem; } }
@keyframes sysGlow { 0%, 100% { filter: drop-shadow(0 0 1px color-mix(in srgb, var(--orange) 40%, transparent)); } 50% { filter: drop-shadow(0 0 6px var(--orange)); } }
@keyframes sysFlowX { 0% { opacity: 0; transform: translateX(0) scale(1.4); } 12%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(100px) scale(1.4); } }
@keyframes sysFlowXb { 0% { opacity: 0; transform: translateX(0) scale(1.4); } 12%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(-100px) scale(1.4); } }
@keyframes sysFlowY { 0% { opacity: 0; transform: translateY(0) scale(1.4); } 12%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(34px) scale(1.4); } }
/* flux conduits: a constant stream of light between the halves (SMIL, so it also runs where CSS transforms on SVG do not) */
.sys__link svg { width: 168px; height: 61px; overflow: visible; }
.sys__down svg { width: 40px; height: 64px; overflow: visible; }
.sys svg .sys__pipe { stroke: color-mix(in srgb, var(--accent-ink) 22%, transparent); stroke-width: 9; }
.sys svg .sys__head { stroke: var(--accent-ink); stroke-width: 3; }
.sys svg .sys__streak { stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.sys svg .sys__spark { fill: #fff; stroke: var(--orange); stroke-width: 2.5; }
@media (prefers-reduced-motion: reduce) { .sys .sys__fx { display: none; } }
@media (max-width: 860px) { .sys__link svg { width: 64px; height: 23px; } .sys__down svg { width: 28px; height: 44px; } }

/* El enfoque, rediseño: panel nocturno con tres nodos unidos por conductos de flujo */
.band--night { background: radial-gradient(60rem 28rem at 88% 0%, rgba(239, 69, 54, 0.16), transparent 60%), radial-gradient(48rem 26rem at 0% 100%, rgba(247, 164, 74, 0.12), transparent 60%), var(--navy-deep); color: var(--on-navy); position: relative; overflow: hidden; }
.band--night::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(243, 244, 250, 0.09) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.band--night > .wrap { position: relative; }
.band--night h2, .band--night h3 { color: var(--on-navy); }
.band--night .label { color: var(--orange); }
.band--night .lead { color: rgba(243, 244, 250, 0.78); }
.flux { display: grid; grid-template-columns: minmax(0, 1fr) 11rem minmax(0, 1fr) 8rem minmax(0, 0.95fr); align-items: stretch; gap: 0; margin-top: var(--s6); }
.node { position: relative; display: grid; align-content: start; justify-items: start; gap: var(--s3); padding: var(--s5); border-radius: var(--r-l); border: 1px solid var(--navy-line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)); backdrop-filter: blur(6px); min-width: 0; }
.node__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.node__ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; border: 1px solid var(--navy-line); background: rgba(255, 255, 255, 0.05); }
.node__ic svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--on-navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node--ia .node__ic svg, .node--out .node__ic svg { stroke: var(--orange); }
.node__no { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(243, 244, 250, 0.28); }
.node .grp__tag { background: none; color: var(--on-navy); border: 1px solid rgba(243, 244, 250, 0.4); }
.node--ia .grp__tag { background: var(--grad); color: var(--navy-deep); border-color: transparent; }
.node h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.node--out h3 { font-size: 1.1rem; }
.node__steps { display: grid; gap: var(--s4); }
.node__steps li { display: grid; gap: 2px; font-size: 0.95rem; color: rgba(243, 244, 250, 0.78); padding-left: var(--s4); border-left: 2px solid var(--navy-line); }
.node--ia .node__steps li { border-color: var(--orange); }
.node__steps b { color: var(--on-navy); font-size: 1rem; }
.node--ia { border-color: rgba(247, 164, 74, 0.55); }
.node--out { border-color: rgba(247, 164, 74, 0.8); background: linear-gradient(160deg, rgba(247, 164, 74, 0.16), rgba(239, 69, 54, 0.06)); }
.conduit { display: grid; align-content: center; justify-items: center; gap: var(--s2); text-align: center; font-size: 0.74rem; font-weight: 600; color: rgba(243, 244, 250, 0.7); }
.conduit svg { width: 100%; max-width: 9.5rem; height: auto; overflow: visible; }
.flux svg .sys__pipe { stroke: rgba(247, 164, 74, 0.2); stroke-width: 9; fill: none; stroke-linecap: round; }
.flux svg .sys__head { stroke: var(--orange); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flux svg .sys__streak { stroke: var(--orange); stroke-width: 4; stroke-linecap: round; fill: none; }
.flux svg .sys__spark { fill: #fff; stroke: var(--orange); stroke-width: 2.5; }
@media (prefers-reduced-motion: no-preference) {
  .flux.is-live .node--datos { animation: nodeA 6s ease-in-out infinite; }
  .flux.is-live .node--ia { animation: nodeB 6s ease-in-out infinite; }
  .flux.is-live .node--out { animation: nodeC 6s ease-in-out infinite; }
  .flux.is-paused .node { animation-play-state: paused; }
}
@keyframes nodeA { 0%, 34%, 100% { box-shadow: 0 0 0 0 transparent; } 8%, 24% { box-shadow: 0 0 0 1px rgba(243, 244, 250, 0.5), 0 0 38px rgba(243, 244, 250, 0.16); } }
@keyframes nodeB { 0%, 38%, 68%, 100% { box-shadow: 0 0 0 0 transparent; } 46%, 60% { box-shadow: 0 0 0 1px rgba(247, 164, 74, 0.8), 0 0 44px rgba(247, 164, 74, 0.28); } }
@keyframes nodeC { 0%, 72%, 100% { box-shadow: 0 0 0 0 transparent; } 80%, 94% { box-shadow: 0 0 0 1px rgba(247, 164, 74, 1), 0 0 52px rgba(239, 69, 54, 0.32); } }
@media (max-width: 1040px) {
  .flux { grid-template-columns: minmax(0, 1fr); }
  .conduit { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: var(--s3) 0; }
  .conduit svg { transform: rotate(90deg); width: 70px; max-width: 70px; margin: 36px 0; }
  .conduit--one span { grid-column: 3; }
  .conduit--one svg { grid-column: 2; grid-row: 1; }
  .conduit--one span { grid-row: 1; }
}
.node--out { align-content: center; }

/* El enfoque v3: datos que viajan en binario y toman forma; enlace punteado; resultado abajo */
@media (min-width: 1041px) { .flux { grid-template-columns: minmax(0, 1fr) 18rem minmax(0, 1fr); } .conduit--down { grid-column: 3; } .conduit svg { max-width: 16.5rem; } .conduit { font-size: 0.82rem; } .conduit--down svg { width: 56px; } .conduit--down { min-height: 8rem; } }
.conduit--down { align-content: center; justify-items: center; padding: 0; min-height: 5.8rem; position: relative; }
.conduit--down svg { width: 40px; height: auto; max-width: none; transform: none; margin: 0; }
.conduit--down span { position: absolute; left: 50%; top: 50%; transform: translateY(-50%); margin-left: 1.6rem; white-space: nowrap; }
.node--out { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s5); justify-items: start; }
.node--out h3 { font-size: 1.2rem; max-width: 40rem; margin-top: var(--s1, 4px); }
.node--out .label { display: block; margin-bottom: var(--s2); }
.flux svg .sys__pipe { stroke: rgba(247, 164, 74, 0.85); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 7; fill: none; }
.flux svg .sys__p text { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.flux svg .sys__p rect { fill: var(--orange); }
@media (max-width: 1040px) {
  .conduit--down { grid-column: 1; min-height: 5.8rem; padding: 0; }
  .conduit--down span { position: absolute; left: 50%; top: 50%; transform: translateY(-50%); margin-left: 1.6rem; grid-column: auto; grid-row: auto; }
  .conduit--down { grid-template-columns: minmax(0, 1fr); }
  .conduit--down svg { transform: none; width: 40px; margin: 0; }
  .node--out { grid-template-columns: auto minmax(0, 1fr); }
  .node--out .node__no { display: none; }
}

/* logo: bigger, spins on its axis, and answers with a joke on hover */
.bar .brand { font-size: 1.45rem; perspective: 600px; }
.bar .brand img { height: 74px; transform-style: preserve-3d; }
@media (max-width: 860px) { .bar .brand img { height: 56px; } .bar .brand { font-size: 1.1rem; } }
@media (prefers-reduced-motion: no-preference) {
  .bar .brand img { animation: logoSpin 7s cubic-bezier(.45, 0, .2, 1) infinite; }
  .bar .brand:hover img, .bar .brand:focus-visible img { animation: logoSpinFast 1.1s linear infinite; }
}
@keyframes logoSpin { 0%, 62% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
@keyframes logoSpinFast { to { transform: rotateY(360deg); } }
.logo-say { position: fixed; left: 0; top: 0; z-index: 45; max-width: min(19rem, calc(100vw - 24px)); pointer-events: none; padding: 0.7rem 0.9rem; border-radius: var(--r-m); background: #F5F6FA; color: #141830; box-shadow: 0 10px 30px rgba(8, 10, 24, 0.45); font-size: 0.86rem; line-height: 1.4; font-weight: 600; --tail: 30px; }
.logo-say::before { content: ""; position: absolute; left: var(--tail); top: -6px; width: 12px; height: 12px; background: #F5F6FA; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.logo-say[hidden] { display: none; }
.logo-say.is-in { animation: logoSay 320ms cubic-bezier(.2, .8, .2, 1); }
@keyframes logoSay { from { opacity: 0; transform: var(--at) translateY(-6px) scale(0.96); } to { opacity: 1; } }

/* email dialog: the CTA never leaves the page */
.maildlg { width: min(30rem, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s6); background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgba(8, 10, 24, 0.45); }
.maildlg::backdrop { background: rgba(10, 12, 28, 0.62); backdrop-filter: blur(3px); }
.maildlg h2 { font-size: 1.3rem; margin-top: var(--s2); }
.maildlg__addr { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.05rem, 4.6vw, 1.45rem); margin: var(--s2) 0 var(--s4); overflow-wrap: anywhere; user-select: all; }
.maildlg__row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.maildlg__msg { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.maildlg__msg[hidden] { display: none; }
.maildlg__msg textarea { width: 100%; font: inherit; font-size: 0.9rem; padding: var(--s3); border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); color: var(--ink); resize: vertical; }
.maildlg__note { min-height: 1.4em; margin-top: var(--s3); font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); }
.maildlg__alt { margin-top: var(--s2); font-size: 0.9rem; color: var(--ink-soft); }
.maildlg__x { position: absolute; right: var(--s3); top: var(--s3); }
.maildlg__x button { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }

/* hero, second pass: ambient light, staged entrance, phase rail, framed stage, scroll cue */
.hero__fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__fx i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.hero__fx i:first-child { width: 46rem; height: 30rem; right: -10rem; top: -12rem; background: radial-gradient(closest-side, rgba(239, 69, 54, 0.42), transparent); }
.hero__fx i:last-child { width: 40rem; height: 28rem; left: -14rem; bottom: -14rem; background: radial-gradient(closest-side, rgba(247, 164, 74, 0.26), transparent); }
.hero__fx::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(243, 244, 250, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 244, 250, 0.045) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70rem 40rem at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70rem 40rem at 70% 40%, #000 20%, transparent 75%); }
.hero__fx::after { content: ""; position: absolute; inset: 0; background: radial-gradient(22rem circle at var(--mx, 70%) var(--my, 30%), rgba(247, 164, 74, 0.13), transparent 70%); opacity: 0; transition: opacity 400ms ease; }
.hero--gen.is-lit .hero__fx::after { opacity: 1; }
.hero--gen h1 { font-size: clamp(2.1rem, 1.1rem + 3.9vw, 4.4rem); letter-spacing: -0.03em; }
.hero--gen h1 em { background-size: 220% 100%; background-image: linear-gradient(100deg, #EF4536 0%, #F7A44A 38%, #FFE1B8 50%, #F7A44A 62%, #EF4536 100%); background-position: 100% 0; }
.hero__tags { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--navy-line); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-navy-soft); }
.hero__tags li { display: inline-flex; align-items: center; gap: var(--s2); }
.hero__tags li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--orange); transform: rotate(45deg); }
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(243, 244, 250, 0.42); counter-reset: ph; }
.phases li { counter-increment: ph; display: grid; gap: 6px; padding-top: 8px; border-top: 2px solid rgba(243, 244, 250, 0.16); transition: color 300ms ease, border-color 300ms ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phases li::before { content: "0" counter(ph); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 0.72rem; letter-spacing: 0; }
.stage[data-phase="chaos"] .phases li:nth-child(-n+1), .stage[data-phase="wave"] .phases li:nth-child(-n+2), .stage[data-phase="ordered"] .phases li:nth-child(-n+3), .stage[data-phase="ia"] .phases li:nth-child(-n+4), .stage[data-phase="result"] .phases li:nth-child(-n+5) { border-color: var(--orange); color: rgba(243, 244, 250, 0.75); }
.stage[data-phase="chaos"] .phases li:nth-child(1), .stage[data-phase="wave"] .phases li:nth-child(2), .stage[data-phase="ordered"] .phases li:nth-child(3), .stage[data-phase="ia"] .phases li:nth-child(4), .stage[data-phase="result"] .phases li:nth-child(5) { color: #fff; border-image: var(--grad) 1; }
.stage:not([data-phase]) .phases { visibility: hidden; }
.hero--gen .gen { position: relative; }
.hero--gen .gen::before { content: ""; position: absolute; inset: -10px; pointer-events: none; border-radius: 4px; background:
  linear-gradient(var(--on-navy-soft), var(--on-navy-soft)) 0 0 / 18px 1px no-repeat, linear-gradient(var(--on-navy-soft), var(--on-navy-soft)) 0 0 / 1px 18px no-repeat,
  linear-gradient(var(--on-navy-soft), var(--on-navy-soft)) 100% 0 / 18px 1px no-repeat, linear-gradient(var(--on-navy-soft), var(--on-navy-soft)) 100% 0 / 1px 18px no-repeat,
  linear-gradient(var(--on-navy-soft), var(--on-navy-soft)) 0 100% / 18px 1px no-repeat, linear-gradient(var(--on-navy-soft), var(--on-navy-soft)) 0 100% / 1px 18px no-repeat,
  linear-gradient(var(--on-navy-soft), var(--on-navy-soft)) 100% 100% / 18px 1px no-repeat, linear-gradient(var(--on-navy-soft), var(--on-navy-soft)) 100% 100% / 1px 18px no-repeat; opacity: 0.55; }
.hero__cue { display: inline-flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy-soft); text-decoration: none; }
.hero__cue:hover { color: var(--on-navy); }
.hero__cue i { position: relative; width: 1px; height: 34px; background: rgba(243, 244, 250, 0.25); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .hero__fx i:first-child { animation: fxA 18s ease-in-out infinite alternate; }
  .hero__fx i:last-child { animation: fxB 22s ease-in-out infinite alternate; }
  .hero--gen h1 em { animation: sheen 7s ease-in-out 1.4s infinite; }
  .hero--gen .hero__copy > * { animation: heroIn 900ms cubic-bezier(.2, .8, .2, 1) both; }
  .hero--gen .hero__copy > :nth-child(2) { animation-delay: 140ms; }
  .hero--gen .hero__copy > :nth-child(3) { animation-delay: 260ms; }
  .hero--gen .hero__copy > :nth-child(4) { animation-delay: 380ms; }
  .hero--gen .stage { animation: heroFade 1000ms ease 200ms both; }
  .hero__cue i::after { animation: cue 2.2s cubic-bezier(.6, 0, .3, 1) infinite; }
}
@keyframes fxA { to { transform: translate(-6rem, 5rem) scale(1.15); } }
@keyframes fxB { to { transform: translate(7rem, -4rem) scale(1.1); } }
@keyframes sheen { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cue { 0% { top: -40%; } 100% { top: 100%; } }
@media (max-width: 860px) { .phases { font-size: 0.6rem; gap: 4px; } .hero__tags { gap: var(--s2) var(--s4); font-size: 0.74rem; } .hero__cue { display: none; } }

/* first-visit guide */
.tour { position: fixed; inset: 0; z-index: 60; }
.tour__hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8, 10, 24, 0.74), 0 0 0 2px var(--orange), 0 0 28px rgba(247, 164, 74, 0.55); transition: left 320ms cubic-bezier(.2, .8, .2, 1), top 320ms cubic-bezier(.2, .8, .2, 1), width 320ms cubic-bezier(.2, .8, .2, 1), height 320ms cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.tour__card { position: fixed; width: min(22rem, calc(100vw - 24px)); padding: var(--s5); border-radius: var(--r-l); background: #F5F6FA; color: #141830; box-shadow: 0 24px 70px rgba(8, 10, 24, 0.55); display: grid; gap: var(--s2); }
.tour__card .label { color: #B92D1B; }
.tour__card h2 { font-size: 1.15rem; line-height: 1.25; color: #141830; }
.tour__card p { font-size: 0.92rem; line-height: 1.5; color: #3A4060; }
.tour__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); flex-wrap: wrap; }
.tour__dots { display: inline-flex; gap: 5px; }
.tour__dots i { width: 6px; height: 6px; border-radius: 50%; background: #C5C9DD; }
.tour__dots i.is-on { width: 18px; border-radius: 3px; background: #EF4536; }
.tour__btns { display: inline-flex; align-items: center; gap: var(--s2); }
.tour__skip, .tour__prev { all: unset; cursor: pointer; padding: 0.45rem 0.6rem; border-radius: var(--r-m); font-size: 0.86rem; font-weight: 600; color: #4E5470; }
.tour__skip:hover, .tour__prev:hover { color: #141830; background: rgba(20, 24, 48, 0.07); }
.tour__skip:focus-visible, .tour__prev:focus-visible { outline: 2px solid #EF4536; outline-offset: 1px; }
.tour__prev[hidden] { display: none; }
.tour__card.is-in { animation: tourIn 300ms cubic-bezier(.2, .8, .2, 1); }
@keyframes tourIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tour__hole { transition: none; } .tour__card.is-in { animation: none; } }

/* Clavi: the site guide built from the CA mark */
.clavi { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35; opacity: 0; transform: translateY(140%); transition: transform 700ms cubic-bezier(.2, .9, .3, 1.2), opacity 300ms ease; }
.clavi.is-in { opacity: 1; transform: none; }
.clavi.is-in.is-peek { transform: translateX(-62%); }
.clavi__body { all: unset; box-sizing: border-box; position: relative; display: block; width: 78px; padding: 12px 16px 10px; border-radius: 26px; cursor: pointer; background: var(--navy-deep); border: 1px solid var(--navy-line); box-shadow: 0 12px 34px rgba(8, 10, 24, 0.45); }
.clavi__body:hover { border-color: var(--orange); }
.clavi__body:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.clavi__body img { display: block; width: 100%; height: auto; }
.clavi__eye { position: absolute; top: 25.5%; width: 13px; height: 15px; margin: -7px 0 0 -6.5px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--navy-deep); transition: transform 120ms ease; }
.clavi__eye--l { left: 41%; } .clavi__eye--r { left: 62%; }
.clavi__eye i { width: 6px; height: 6px; border-radius: 50%; background: #141830; transition: transform 90ms linear; }
.clavi.is-blink .clavi__eye { transform: scaleY(0.12); }
.clavi__hide { all: unset; position: absolute; right: -8px; top: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--navy-deep); color: var(--on-navy); border: 1px solid var(--navy-line); font-size: 0.9rem; line-height: 1; opacity: 0; transition: opacity 160ms ease; }
.clavi:hover .clavi__hide, .clavi__hide:focus-visible, .clavi.is-open .clavi__hide { opacity: 1; }
.clavi__hide:focus-visible { outline: 2px solid var(--orange); }
.clavi.is-peek .clavi__hide { display: none; }
.clavi__bubble { position: absolute; left: calc(100% + 14px); bottom: 34px; width: max-content; max-width: min(17rem, calc(100vw - 130px)); padding: 0.65rem 0.85rem; border-radius: var(--r-m); background: #F5F6FA; color: #141830; font-size: 0.86rem; font-weight: 600; line-height: 1.4; box-shadow: 0 10px 30px rgba(8, 10, 24, 0.4); }
.clavi__bubble::before { content: ""; position: absolute; left: -5px; bottom: 16px; width: 12px; height: 12px; background: #F5F6FA; transform: rotate(45deg); border-radius: 2px; }
.clavi__bubble[hidden] { display: none; }
.clavi__chat { position: absolute; left: 0; bottom: calc(100% + 12px); width: min(23rem, calc(100vw - 32px)); max-height: min(32rem, calc(100vh - 210px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; border-radius: var(--r-l); overflow: hidden; background: #F5F6FA; color: #141830; box-shadow: 0 24px 70px rgba(8, 10, 24, 0.5); border: 1px solid rgba(20, 24, 48, 0.12); }
.clavi__chat[hidden] { display: none; }
.clavi__chat header { display: flex; align-items: baseline; gap: 8px; padding: 0.7rem 0.9rem; background: #141830; color: #F3F4FA; }
.clavi__chat header b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; }
.clavi__chat header span { font-size: 0.78rem; color: rgba(243, 244, 250, 0.7); flex: 1; }
.clavi__x { all: unset; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 1.2rem; color: #F3F4FA; align-self: center; }
.clavi__x:hover { background: rgba(243, 244, 250, 0.14); } .clavi__x:focus-visible { outline: 2px solid #F7A44A; }
.clavi__log { overflow-y: auto; padding: 0.8rem; display: grid; gap: 0.55rem; align-content: start; min-height: 7rem; }
.clavi__msg { max-width: 92%; padding: 0.55rem 0.75rem; border-radius: 14px; font-size: 0.86rem; line-height: 1.45; display: grid; gap: 4px; }
.clavi__msg--bot { background: #fff; border: 1px solid rgba(20, 24, 48, 0.1); justify-self: start; border-bottom-left-radius: 4px; }
.clavi__msg--me { background: #141830; color: #F3F4FA; justify-self: end; border-bottom-right-radius: 4px; }
.clavi__msg b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 0.86rem; }
.clavi__msg p { color: #3A4060; } .clavi__msg--me p { color: inherit; }
.clavi__msg a { color: #B92D1B; font-weight: 600; text-underline-offset: 2px; }
.clavi__more { font-size: 0.8rem; }
.clavi__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0.8rem 0.6rem; }
.clavi__chips button { all: unset; cursor: pointer; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid rgba(20, 24, 48, 0.2); font-size: 0.76rem; font-weight: 600; color: #141830; background: #fff; }
.clavi__chips button:hover { border-color: #EF4536; } .clavi__chips button:focus-visible { outline: 2px solid #EF4536; outline-offset: 1px; }
.clavi__form { display: flex; gap: 6px; padding: 0 0.8rem; }
.clavi__form input { flex: 1; min-width: 0; font: inherit; font-size: 0.9rem; padding: 0.55rem 0.75rem; border-radius: 12px; border: 1px solid rgba(20, 24, 48, 0.22); background: #fff; color: #141830; }
.clavi__form input:focus-visible { outline: 2px solid #EF4536; outline-offset: 1px; }
.clavi__form button { all: unset; cursor: pointer; width: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #141830; font-weight: 800; }
.clavi__form button:focus-visible { outline: 2px solid #141830; outline-offset: 2px; }
.clavi__note { padding: 0.5rem 0.9rem 0.7rem; font-size: 0.7rem; color: #4E5470; }
@media (prefers-reduced-motion: no-preference) {
  .clavi.is-in:not(.is-peek) .clavi__body { animation: claviBob 4.5s ease-in-out infinite; }
  .clavi.is-hop .clavi__body { animation: claviHop 600ms cubic-bezier(.3, 1.6, .5, 1); }
  .clavi__bubble.is-in { animation: claviSay 300ms cubic-bezier(.2, .8, .2, 1); }
}
@keyframes claviBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-1.5deg); } }
@keyframes claviHop { 0% { transform: translateY(0); } 40% { transform: translateY(-14px) rotate(4deg); } 100% { transform: translateY(0); } }
@keyframes claviSay { from { opacity: 0; transform: translateX(-8px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .clavi { transition: none; } }
@media (max-width: 860px) { .clavi__body { width: 62px; padding: 9px 13px 8px; border-radius: 21px; } .clavi__eye { width: 11px; height: 12px; margin: -6px 0 0 -5.5px; } .clavi__eye i { width: 5px; height: 5px; } .clavi__bubble { bottom: 22px; font-size: 0.8rem; } .clavi__chat { max-height: calc(100vh - 170px); } }
@media print { .clavi { display: none; } }

/* casos de éxito: expedientes con nombre reservado, ubicados en el espectro Datos - IA */
.casex { display: grid; gap: var(--s6); margin-top: var(--s6); }
.casex__map { position: relative; padding: var(--s5) var(--s5) var(--s4); border-radius: var(--r-l); background: var(--navy-deep); color: var(--on-navy); overflow: hidden; }
.casex__map::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(243, 244, 250, 0.1) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.casex__axis { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s4); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.casex__axis span:last-child { color: var(--orange); }
.casex__axis i { height: 1px; background: linear-gradient(90deg, rgba(243, 244, 250, 0.35), var(--orange)); }
.casex__track { position: relative; height: 13.5rem; margin: var(--s2) 3.2rem 0; }
.casex__track::before { content: ""; position: absolute; left: -3.2rem; right: -3.2rem; top: 50%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, rgba(243, 244, 250, 0.5), #F7A44A 60%, #EF4536); }
.casex__node { all: unset; box-sizing: border-box; position: absolute; left: var(--x); top: 50%; width: 7.6rem; margin-left: -3.8rem; display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer; color: rgba(243, 244, 250, 0.72); font-size: 0.8rem; font-weight: 600; line-height: 1.25; }
.casex__node--up { transform: translateY(calc(-100% + 9px)); }
.casex__node--dn { transform: translateY(-9px); }
.casex__node--up { grid-template-rows: auto auto; } .casex__node--up span { order: -1; }
.casex__node b { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--navy-deep); border: 2px solid rgba(243, 244, 250, 0.7); font-size: 0; transition: transform 200ms ease, border-color 200ms ease, background 200ms ease; }
.casex__node--up b { margin-top: 2.4rem; } .casex__node--dn b { margin-bottom: 2.4rem; }
.casex__node b::after { content: ""; position: absolute; left: 50%; width: 1px; height: 2.2rem; background: rgba(243, 244, 250, 0.3); }
.casex__node--up b::after { bottom: 100%; margin-bottom: 4px; } .casex__node--dn b::after { top: 100%; margin-top: 4px; }
.casex__node span { padding: 0.3rem 0.6rem; border-radius: 8px; border: 1px solid transparent; }
.casex__node:hover { color: #fff; } .casex__node:hover b { transform: scale(1.25); border-color: var(--orange); }
.casex__node:focus-visible span { outline: 2px solid var(--orange); outline-offset: 2px; }
.casex__node[aria-selected="true"] { color: #fff; }
.casex__node[aria-selected="true"] b { background: var(--orange); border-color: #fff; transform: scale(1.35); box-shadow: 0 0 0 6px rgba(247, 164, 74, 0.25), 0 0 24px rgba(247, 164, 74, 0.7); }
.casex__node[aria-selected="true"] span { border-color: rgba(247, 164, 74, 0.7); background: rgba(247, 164, 74, 0.12); }
.casex__hint { position: relative; font-size: 0.8rem; color: rgba(243, 244, 250, 0.62); max-width: 46rem; }
.casex__files { display: grid; gap: var(--s5); }
.file { position: relative; display: grid; gap: var(--s3); padding: var(--s6); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.file::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.file__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.file__no { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.file__seal { padding: 0.25rem 0.7rem; border: 1.5px solid var(--accent-ink); border-radius: 4px; color: var(--accent-ink); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transform: rotate(-2deg); }
.file h3 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); line-height: 1.15; }
.file__client { display: flex; align-items: center; gap: var(--s3); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.redact { position: relative; display: inline-block; width: min(15rem, 55%); height: 1.25rem; border-radius: 3px; background: var(--ink); overflow: hidden; }
.redact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%); transform: translateX(-100%); }
.file__what { font-size: 1.08rem; line-height: 1.55; max-width: 46rem; }
.file__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s5); margin-top: var(--s3); padding-top: var(--s4); border-top: 1px dashed var(--line); }
.file__meta dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.file__meta dd { font-weight: 600; } .file__meta ul { display: grid; gap: 2px; } .file__meta a { color: var(--accent-ink); }
.casex__nav { display: none; align-items: center; justify-content: center; gap: var(--s4); font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.casex__nav button { all: unset; cursor: pointer; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 1.1rem; }
.casex__nav button:hover { border-color: var(--accent-ink); } .casex__nav button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
/* with script: one file at a time */
.casex.is-js .file[hidden] { display: none; }
.casex.is-js .casex__nav { display: flex; }
.casex:not(.is-js) .casex__map { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .casex.is-js .file.is-open { animation: fileIn 520ms cubic-bezier(.2, .8, .2, 1); }
  .casex.is-js .file.is-open .redact { animation: redactIn 700ms cubic-bezier(.2, .8, .2, 1) 120ms both; }
  .casex.is-js .file.is-open .redact::after { animation: redactScan 2.8s ease-in-out 900ms infinite; }
  .casex.is-js .file.is-open .file__seal { animation: sealIn 420ms cubic-bezier(.3, 1.7, .5, 1) 380ms both; }
}
@keyframes fileIn { from { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@keyframes redactIn { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes redactScan { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes sealIn { from { opacity: 0; transform: rotate(-2deg) scale(1.7); } to { opacity: 1; transform: rotate(-2deg) scale(1); } }
@media (max-width: 860px) {
  .casex__map { padding: var(--s4); }
  .casex__track { height: auto; margin: var(--s4) 0 var(--s3); display: grid; gap: 4px; padding-left: 26px; }
  .casex__track::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; background: linear-gradient(180deg, rgba(243, 244, 250, 0.5), #F7A44A 60%, #EF4536); }
  .casex__node, .casex__node--up, .casex__node--dn { position: relative; left: auto; top: auto; width: auto; margin: 0; transform: none; display: flex; align-items: center; justify-items: start; text-align: left; gap: 10px; padding: 4px 0; }
  .casex__node b { position: absolute; left: -26px; margin: 0 !important; } .casex__node b::after { display: none; }
  .casex__node--up span { order: 0; }
  .casex__axis { grid-template-columns: 1fr; gap: 0; } .casex__axis i { display: none; } .casex__axis span:last-child { display: none; }
  .casex__axis span:first-child::after { content: " \2193  IA"; color: var(--orange); }
  .file { padding: var(--s5); }
}
/* six menu items: tighten the bar between the mobile breakpoint and wide screens so it stays on one line */

/* casos: automatic rotation */
.casex__nav { position: relative; flex-wrap: wrap; padding-bottom: 10px; }
.casex__nav .casex__auto { width: auto; height: 2.6rem; padding: 0 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.casex__prog { position: absolute; left: 50%; bottom: 0; width: 11rem; height: 3px; margin-left: -5.5rem; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.casex.is-auto .casex__node[aria-selected="true"] b { animation: cxPulse 1.6s ease-in-out infinite; }
@keyframes cxPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(247, 164, 74, 0.25), 0 0 24px rgba(247, 164, 74, 0.7); } 50% { box-shadow: 0 0 0 11px rgba(247, 164, 74, 0.12), 0 0 34px rgba(247, 164, 74, 0.95); } }
.casex.is-js .casex__files { align-content: start; }

/* casos: the Datos - IA line is a slider */
.casex__axis { grid-template-columns: 6rem minmax(0, 1fr) 6rem; gap: 0; font-size: 1.15rem; letter-spacing: 0.06em; }
.casex__axis span:last-child { text-align: right; }
.casex__track { margin: var(--s2) 6rem 0; }
.casex__track::before { left: -1.5rem; right: -1.5rem; }
.casex__slider { position: relative; height: 2.6rem; cursor: grab; touch-action: none; outline: none; --fill: 5%; }
.casex__slider.is-drag { cursor: grabbing; }
.casex__rail { position: absolute; left: -1.5rem; right: -1.5rem; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: rgba(243, 244, 250, 0.16); overflow: hidden; }
.casex__rail::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(1.5rem + var(--fill) * (100% - 3rem) / 100%); background: linear-gradient(90deg, rgba(243, 244, 250, 0.7), #F7A44A 70%, #EF4536); }
.casex__tick { position: absolute; top: 50%; width: 2px; height: 12px; margin: -6px 0 0 -1px; background: rgba(243, 244, 250, 0.45); border-radius: 1px; pointer-events: none; }
.casex__thumb { position: absolute; top: 50%; left: 5%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: 0 0 0 6px rgba(247, 164, 74, 0.22), 0 4px 14px rgba(8, 10, 24, 0.5); transition: left 650ms cubic-bezier(.2, .8, .2, 1); display: grid; place-items: center; }
.casex__thumb::before { content: ""; width: 10px; height: 10px; border-left: 2px solid #141830; border-right: 2px solid #141830; box-sizing: border-box; }
.casex__slider:hover .casex__thumb, .casex__slider.is-drag .casex__thumb { box-shadow: 0 0 0 9px rgba(247, 164, 74, 0.28), 0 0 26px rgba(247, 164, 74, 0.8); }
.casex__slider:focus-visible .casex__thumb { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .casex__thumb { transition: none; } }
@media (max-width: 860px) { .casex__slider { display: none; } .casex__axis { grid-template-columns: 1fr; font-size: 1rem; } .casex__track { margin: var(--s4) 0 var(--s3); } .casex__track::before { left: 8px; right: auto; } }
.casex__axis .casex__rail { height: 6px; background: rgba(243, 244, 250, 0.16); }
.casex__axis .casex__tick { height: 12px; width: 2px; background: rgba(243, 244, 250, 0.45); }

/* equipo: capacidades sin foto */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); counter-reset: cap; }
.caps__i { counter-increment: cap; position: relative; display: grid; align-content: start; gap: var(--s2); padding: var(--s5); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); transition: transform 240ms cubic-bezier(.2, .8, .2, 1), border-color 240ms ease, box-shadow 240ms ease; }
.caps__i::after { content: "0" counter(cap); position: absolute; right: var(--s4); top: var(--s4); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.1rem; color: transparent; -webkit-text-stroke: 1px var(--line); }
.caps__i:hover { transform: translateY(-3px); border-color: var(--accent-ink); box-shadow: 0 14px 30px rgba(20, 24, 48, 0.1); }
.caps__tag { justify-self: start; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink-soft); }
.caps__i--seguridad .caps__tag { color: var(--accent-ink); border-color: var(--accent-ink); }
.caps__i--ia .caps__tag { background: var(--grad); color: #141830; border-color: transparent; }
.caps__i--datos .caps__tag { background: var(--navy-deep); color: #F3F4FA; border-color: transparent; }
.caps__i h3 { font-size: 1.02rem; line-height: 1.3; padding-right: 2rem; }
.caps__i p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.who2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s7); align-items: start; }
.who2__lead { display: grid; gap: var(--s3); justify-items: start; }
.who2__lead h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.who2__role { color: var(--ink-soft); font-weight: 600; }
.who2__certs { display: grid; gap: var(--s3); padding: var(--s5); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); }
.who2__certs ul { display: grid; gap: var(--s3); font-size: 0.95rem; margin-bottom: var(--s4); }
.who2__certs li span { color: var(--ink-soft); }
.vendors { display: flex !important; flex-wrap: wrap; gap: var(--s2) !important; }
.vendors li { display: grid; padding: 0.45rem 0.8rem; border-radius: var(--r-m); border: 1px solid var(--line); font-size: 0.82rem; line-height: 1.25; }
.vendors b { font-weight: 700; } .vendors span { font-size: 0.74rem; }
@media (max-width: 1100px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .caps { grid-template-columns: minmax(0, 1fr); } .who2 { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }

/* footer: brand band on glass with a moving loupe */
.lens { position: relative; margin-bottom: var(--s7); padding: var(--s6) 0; overflow: hidden; isolation: isolate; }
.lens__glow { position: absolute; inset: 0; z-index: -1; }
.lens__glow i { position: absolute; top: 50%; width: 24rem; height: 9rem; margin-top: -4.5rem; border-radius: 50%; filter: blur(60px); opacity: 0.38; }
.lens__glow i:nth-child(1) { left: 6%; background: #EF4536; }
.lens__glow i:nth-child(2) { left: 40%; background: #F7A44A; opacity: 0.3; }
.lens__glow i:nth-child(3) { left: 72%; background: #5B6BD6; opacity: 0.32; }
.lens__glass { position: relative; display: grid; gap: var(--s3); padding: var(--s4) 0 var(--s5); background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border-block: 1px solid rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 20px 60px rgba(0, 0, 0, 0.35); }
.lens__glass::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.14) 48%, transparent 58%); background-size: 260% 100%; pointer-events: none; }
.lens__label { justify-self: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243, 244, 250, 0.7); }
.lens__view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lens__track { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 5rem); width: max-content; padding: var(--s3) 0; will-change: transform; }
.lens__i { --f: 0.4; display: grid; justify-items: center; gap: 4px; min-width: 9rem; opacity: calc(0.3 + 0.7 * var(--f)); filter: blur(calc((1 - var(--f)) * 2.4px)); transform: scale(calc(0.86 + 0.26 * var(--f))); }
.lens__i b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.25rem, 0.9rem + 1.2vw, 1.9rem); letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.lens__i span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; color: #F7A44A; white-space: nowrap; opacity: var(--f); }
.lens__loupe { position: absolute; top: 2.1rem; bottom: 0.6rem; left: var(--lx, 50%); width: 15rem; margin-left: -7.5rem; border-radius: 22px; pointer-events: none; background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 60%); border: 1px solid rgba(255, 255, 255, 0.32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 24px rgba(247, 164, 74, 0.18), 0 10px 30px rgba(0, 0, 0, 0.3); transition: left 600ms cubic-bezier(.2, .8, .2, 1); }
.lens.is-follow .lens__loupe { transition: left 120ms linear; }
@media (prefers-reduced-motion: no-preference) {
  .lens__glow i:nth-child(1) { animation: lensA 16s ease-in-out infinite alternate; }
  .lens__glow i:nth-child(2) { animation: lensB 21s ease-in-out infinite alternate; }
  .lens__glow i:nth-child(3) { animation: lensA 19s ease-in-out infinite alternate-reverse; }
  .lens__glass::before { animation: lensSheen 9s ease-in-out infinite; }
}
@keyframes lensA { to { transform: translateX(18rem) scale(1.15); } }
@keyframes lensB { to { transform: translateX(-16rem) scale(0.9); } }
@keyframes lensSheen { 0%, 40% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@media (prefers-reduced-motion: reduce) { .lens__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: var(--s4); } .lens__i { --f: 1; } .lens__loupe { display: none; } .lens__view { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 860px) { .lens__loupe { width: 11rem; margin-left: -5.5rem; } .lens__i { min-width: 7rem; } }

/* IA responsable */
.iar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s7); align-items: start; }
.iar__intro { display: grid; gap: var(--s4); align-content: start; }
.iar__intro .lead { max-width: 34rem; }
.seal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: center; margin-top: var(--s4); padding: var(--s5); border-radius: var(--r-l); background: var(--navy-deep); color: #F3F4FA; box-shadow: 0 18px 40px rgba(20, 24, 48, 0.18); }
.seal__ring { position: relative; width: 118px; height: 118px; display: grid; place-items: center; }
.seal__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal__ring text { font-family: var(--f-text); font-size: 10px; font-weight: 700; fill: #F7A44A; }
.seal__ring::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(247, 164, 74, 0.2), 0 0 28px rgba(239, 69, 54, 0.45); }
.seal__ring b { position: relative; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; color: #141830; }
.seal__txt { display: grid; gap: 6px; }
.seal__txt .label { color: #F7A44A; }
.seal__txt h3 { font-size: 1.1rem; line-height: 1.25; color: #fff; }
.seal__txt p { font-size: 0.86rem; color: rgba(243, 244, 250, 0.75); }
.iar__path { display: grid; gap: var(--s4); padding: var(--s6); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--paper); }
.iar__h { font-size: 1.3rem; }
.iar__sub { color: var(--ink-soft); }
.iar__kind { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.iar__kind li { display: grid; gap: 2px; padding: var(--s3); border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
.iar__kind b { font-size: 0.95rem; } .iar__kind span { font-size: 0.78rem; color: var(--ink-soft); }
.iar__steps { display: grid; gap: var(--s3); counter-reset: iar; margin: var(--s2) 0 var(--s3); }
.iar__steps li { counter-increment: iar; position: relative; display: grid; gap: 2px; padding-left: 3rem; min-height: 2.2rem; }
.iar__steps li::before { content: counter(iar); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--accent-ink); color: var(--accent-ink); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 0.9rem; }
.iar__steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.3rem; bottom: calc(-1 * var(--s3)); width: 1.5px; background: var(--line); }
.iar__steps b { font-size: 0.98rem; } .iar__steps span { font-size: 0.9rem; color: var(--ink-soft); }
.iar__path .btn { justify-self: start; }
@media (prefers-reduced-motion: no-preference) { .seal__ring svg { animation: sealSpin 28s linear infinite; } }
@keyframes sealSpin { to { transform: rotate(360deg); } }
@media (max-width: 960px) { .iar { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }
@media (max-width: 560px) { .iar__kind { grid-template-columns: minmax(0, 1fr); } .seal { grid-template-columns: minmax(0, 1fr); justify-items: start; } .iar__path { padding: var(--s5); } }
.iar__intro > .label { color: var(--accent-ink); }
.lens__i--own b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vendors .vendors__own { border-color: var(--accent-ink); background: rgba(239, 69, 54, 0.05); }

/* platforms: crossed glass tapes over the seam between two sections, mid-page */
.xband { position: relative; z-index: 3; height: 19rem; margin: -6.5rem 0 -5rem; overflow: hidden; pointer-events: none; }
.xband__tape { position: absolute; left: -10%; width: 120%; top: 50%; height: 2.6rem; margin-top: -1.3rem; display: flex; align-items: center; overflow: hidden; background: var(--grad); transform: rotate(5.5deg); box-shadow: 0 10px 30px rgba(239, 69, 54, 0.25); }
.xband__tape span { flex: none; padding-right: 0; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; color: #141830; white-space: nowrap; }
.xband .lens { position: absolute; left: -6%; width: 112%; top: 50%; margin: 0; padding: 0; transform: translateY(-50%) rotate(-2.6deg); pointer-events: auto; overflow: visible; }
.xband .lens__glass { background: linear-gradient(180deg, rgba(20, 24, 48, 0.82), rgba(20, 24, 48, 0.7)); border-block: 1px solid rgba(255, 255, 255, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 24px 60px rgba(20, 24, 48, 0.35); padding: var(--s3) 0 var(--s4); }
.xband .lens__glow { overflow: hidden; }
.xband .lens__loupe { top: 1.9rem; }
.lens__i--own img { display: block; height: clamp(1.25rem, 0.9rem + 1.2vw, 1.9rem); width: auto; }
.vendors__own img { display: block; height: 14px; width: auto; margin: 2px 0 3px; }
.is-dark .vendors__own img { filter: brightness(0) invert(1); }
@media (prefers-reduced-motion: no-preference) {
  .xband__tape span { animation: tapeRun 38s linear infinite; }
}
@keyframes tapeRun { to { transform: translateX(-100%); } }
@media (max-width: 860px) { .xband { height: 16rem; margin: -5rem 0 -4rem; } .xband__tape { top: 80%; } .xband .lens { transform: translateY(-50%) rotate(-4deg); } .xband__tape { transform: rotate(9deg); } }
.lens__i span { white-space: normal; max-width: 13rem; text-align: center; line-height: 1.35; }

/* ===== inclusive reading settings ===== */
.a11y-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 0.75rem 0 0.55rem; border-radius: 999px; cursor: pointer; color: var(--on-navy); border: 1px solid var(--navy-line); font: 600 0.82rem var(--f-text); flex: none; position: relative; }
.a11y-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.a11y-btn svg .f, .a11y__ic svg .f, .foot__a11y svg .f { fill: currentColor; stroke: none; }
.a11y-btn:hover { border-color: var(--orange); color: #fff; }
.a11y-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.a11y-btn.is-on { border-color: var(--orange); background: rgba(247, 164, 74, 0.14); }
.a11y-btn.is-on::after { content: ""; position: absolute; right: 4px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.a11y-btn.is-new::before { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--orange); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { html:not(.a11y-calm) .a11y-btn.is-new::before { animation: a11yPing 2.4s ease-out 1.5s 3; } }
@keyframes a11yPing { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@media (min-width: 981px) and (max-width: 1240px) { .a11y-btn span { display: none; } .a11y-btn { padding: 0 0.45rem; } }
@media (max-width: 420px) { .a11y-btn span { display: none; } .a11y-btn { padding: 0 0.45rem; } }
.a11y { position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right, 0px)); top: 92px; width: min(30rem, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow: auto; padding: var(--s5); border-radius: var(--r-l); background: #F5F6FA; color: #141830; box-shadow: 0 30px 80px rgba(8, 10, 24, 0.5); border: 1px solid rgba(20, 24, 48, 0.12); display: grid; gap: var(--s4); }
.a11y[hidden] { display: none; }
.a11y__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: start; }
.a11y__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #141830; }
.a11y__ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.a11y__head h2 { font-size: 1.15rem; color: #141830; } .a11y__head p { font-size: 0.82rem; color: #4E5470; }
.a11y__x { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: #141830; border: 1px solid rgba(20, 24, 48, 0.18); }
.a11y__x:focus-visible, .a11y__size button:focus-visible, .a11y__tile:focus-visible, .a11y__reset:focus-visible { outline: 3px solid #EF4536; outline-offset: 2px; }
.a11y__size { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-m); background: #fff; border: 1px solid rgba(20, 24, 48, 0.12); font-size: 0.86rem; font-weight: 600; }
.a11y__size div { display: flex; gap: 4px; }
.a11y__size button { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #141830; border: 1px solid rgba(20, 24, 48, 0.16); }
.a11y__size button[aria-pressed="true"] { background: #141830; color: #fff; border-color: #141830; }
.a11y__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.a11y__tile { all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: grid; align-content: start; gap: 4px; padding: var(--s3); border-radius: var(--r-m); background: #fff; border: 1.5px solid rgba(20, 24, 48, 0.12); min-height: 9.5rem; }
.a11y__tile:hover { border-color: #EF4536; }
.a11y__tile[aria-pressed="true"] { border-color: #EF4536; box-shadow: inset 0 0 0 1px #EF4536; background: #FFF7F1; }
.a11y__tile > b { font-size: 0.92rem; color: #141830; } .a11y__d { font-size: 0.76rem; line-height: 1.4; color: #4E5470; }
.a11y__sw { position: absolute; right: 10px; top: 10px; width: 30px; height: 18px; border-radius: 999px; background: #C9CCDB; }
.a11y__sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 160ms ease; }
.a11y__tile[aria-pressed="true"] .a11y__sw { background: #EF4536; } .a11y__tile[aria-pressed="true"] .a11y__sw::after { left: 14px; }
.a11y__pv { display: grid; place-items: center start; height: 2.6rem; margin-bottom: 2px; }
.pv { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.4rem; padding: 0 0.5rem; border-radius: 8px; font-size: 1.15rem; font-weight: 700; background: #EEF0F6; color: #141830; }
.pv--read { font-family: "Atkinson Hyperlegible", Verdana, sans-serif; letter-spacing: 0.08em; }
.pv--contrast { background: #000; color: #FFE600; }
.pv--calm { grid-auto-flow: column; gap: 5px; } .pv--calm i { width: 5px; height: 16px; border-radius: 2px; background: #141830; }
.pv--ruler { width: 3.4rem; background: linear-gradient(#141830 0 30%, #FFF2C9 30% 70%, #141830 70%); } .pv--ruler i { display: none; }
.pv--links { font-size: 0.9rem; text-decoration: underline; text-decoration-thickness: 2px; color: #B92D1B; background: #FFE9C7; }
.pv--voice { grid-auto-flow: column; gap: 3px; align-items: center; } .pv--voice i { width: 4px; border-radius: 2px; background: #EF4536; height: 10px; } .pv--voice i:nth-child(2) { height: 20px; } .pv--voice i:nth-child(3) { height: 14px; } .pv--voice i:nth-child(4) { height: 22px; }
html.a11y-speaking .pv--voice i { animation: vbar 0.9s ease-in-out infinite alternate; } .pv--voice i:nth-child(2) { animation-delay: -0.3s; } .pv--voice i:nth-child(3) { animation-delay: -0.6s; }
@keyframes vbar { to { transform: scaleY(0.4); } }
.a11y__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: end; padding-top: var(--s3); border-top: 1px solid rgba(20, 24, 48, 0.12); font-size: 0.78rem; color: #4E5470; }
.a11y__foot b { color: #141830; } .a11y__foot a { color: #B92D1B; font-weight: 600; }
.a11y__reset { all: unset; cursor: pointer; padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid rgba(20, 24, 48, 0.25); font-size: 0.8rem; font-weight: 600; color: #141830; white-space: nowrap; }
.foot__a11y { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--on-navy-soft); font-size: 0.86rem; }
.foot__a11y svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.foot__a11y:hover { color: #fff; } .foot__a11y:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 560px) { .a11y { top: 76px; padding: var(--s4); } .a11y__grid { grid-template-columns: minmax(0, 1fr); } .a11y__tile { min-height: 0; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s3); } .a11y__pv { grid-row: span 2; margin: 0; } .a11y__foot { grid-template-columns: minmax(0, 1fr); } }

/* 1. text size */
html.a11y-t1 { font-size: 112.5%; } html.a11y-t2 { font-size: 125%; } html.a11y-t3 { font-size: 140%; }


/* 2. easy reading (low vision, dyslexia): hyperlegible type, more space, no justified text, no italics */
html.a11y-read { --f-text: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif; --f-display: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif; }
html.a11y-read body { letter-spacing: 0.035em; word-spacing: 0.14em; line-height: 1.85; }
html.a11y-read p, html.a11y-read li, html.a11y-read dd { max-width: 68ch; text-align: left; }
html.a11y-read h1, html.a11y-read h2, html.a11y-read h3 { font-stretch: 100%; letter-spacing: 0.01em; line-height: 1.3; }
html.a11y-read em, html.a11y-read i:not([class]) { font-style: normal; }
/* 3. high contrast */
html.a11y-contrast { --ink: #000; --ink-soft: #111; --paper: #fff; --surface: #fff; --line: #000; --accent-ink: #9B1C0D; --on-navy: #fff; --on-navy-soft: #fff; --navy-deep: #000; --navy: #000; --navy-line: #fff; }
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .band, html.a11y-contrast .band--surface { background: #fff !important; }
html.a11y-contrast .hero, html.a11y-contrast .band--night, html.a11y-contrast .band--navy, html.a11y-contrast .foot, html.a11y-contrast .bar, html.a11y-contrast .casex__map, html.a11y-contrast .seal { background: #000 !important; }
html.a11y-contrast .hero__fx, html.a11y-contrast .lens__glow, html.a11y-contrast .band--night::before { display: none; }
html.a11y-contrast h1 em, html.a11y-contrast .hero--gen h1 em { background: none !important; -webkit-text-fill-color: #FFE600; color: #FFE600 !important; }
html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast .lead { color: inherit; }
html.a11y-contrast .btn { background: #FFE600 !important; color: #000 !important; border: 2px solid #000; }
html.a11y-contrast :focus-visible { outline: 3px solid #FFE600 !important; outline-offset: 2px; box-shadow: 0 0 0 6px #000; }
/* 4. calm: no motion anywhere, full text at once */
html.a11y-calm *, html.a11y-calm *::before, html.a11y-calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-calm .lens__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: var(--s4); transform: none !important; }
html.a11y-calm .lens__i { --f: 1 !important; } html.a11y-calm .lens__loupe { display: none; }
html.a11y-calm .lens__view { -webkit-mask-image: none; mask-image: none; }
html.a11y-calm .tw-off { color: inherit !important; } html.a11y-calm .tw-live::after { display: none; }
html.a11y-calm .xband { height: auto; margin: 0; overflow: visible; } html.a11y-calm .xband__tape { display: none; }
html.a11y-calm .xband .lens { position: relative; left: 0; width: 100%; top: 0; transform: none; }
/* 5. reading guide */
.a11y-rule { display: none; position: fixed; inset: 0; z-index: 65; pointer-events: none; --ry: 50vh; }
html.a11y-ruler .a11y-rule { display: block; }
.a11y-rule i { position: absolute; left: 0; right: 0; background: rgba(8, 10, 24, 0.55); }
.a11y-rule i:first-child { top: 0; height: calc(var(--ry) - 2.4rem); border-bottom: 3px solid #F7A44A; }
.a11y-rule i:last-child { top: calc(var(--ry) + 2.4rem); bottom: 0; border-top: 3px solid #F7A44A; }
/* 6. links */
html.a11y-links a:not(.btn), html.a11y-links button.link { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; background: rgba(247, 164, 74, 0.22); border-radius: 3px; }
html.a11y-links .btn, html.a11y-links button:not(.a11y__tile):not(.a11y__x) { outline: 2px dashed #EF4536; outline-offset: 3px; }
@media print { .a11y, .a11y-rule, .a11y-btn { display: none !important; } }
/* the bar keeps its normal size when the page text grows, so the navigation never overflows */
html.a11y-t1 .bar { zoom: 0.889; } html.a11y-t2 .bar { zoom: 0.8; } html.a11y-t3 .bar { zoom: 0.715; }
html.a11y-t1 body, html.a11y-t2 body, html.a11y-t3 body { overflow-x: clip; }
/* bar order: brand | nav | accessibility on desktop; brand | accessibility | menu on mobile */
.bar .top .brand { flex: none; }
html.a11y-t1, html.a11y-t2, html.a11y-t3 { overflow-x: clip; }

/* ===== modo esencial: the site as one question ===== */
.ess-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 0.8rem 0 0.6rem; border-radius: 999px; cursor: pointer; color: var(--on-navy); border: 1px solid var(--navy-line); font: 600 0.82rem var(--f-text); flex: none; order: 3; }
.ess-btn i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; box-sizing: border-box; }
.ess-btn i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.ess-btn:hover { border-color: var(--orange); color: #fff; } .ess-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 520px) { .ess-btn span { display: none; } .ess-btn { padding: 0 0.6rem; } }
.ess { display: none; }
html.esencial body > *:not(.ess):not(.a11y):not(.a11y-rule):not(script):not(dialog) { display: none !important; }
html.esencial body { background: var(--paper); }
html.esencial .ess { display: grid; min-height: 100vh; min-height: 100svh; grid-template-rows: 1fr auto; justify-items: center; align-items: start; padding: max(16vh, 72px) 16px 24px; box-sizing: border-box; }
.ess__center { width: min(40rem, 100%); display: grid; justify-items: center; gap: 28px; }
.ess__logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); letter-spacing: -0.01em; }
.ess__logo img { height: 1.9em; width: auto; }
.ess__logo em { font-style: normal; font-weight: 600; color: var(--ink-soft); }
.ess__form { width: 100%; position: relative; }
.ess__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ess__field { position: relative; }
.ess__field input { box-sizing: border-box; width: 100%; height: 60px; padding: 0 3.4rem 0 1.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 1.12rem var(--f-text); box-shadow: 0 1px 2px rgba(20, 24, 48, 0.06); -webkit-appearance: none; appearance: none; }
.ess__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ess__field input:hover { box-shadow: 0 2px 10px rgba(20, 24, 48, 0.1); }
.ess__field input:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px #F7A44A, 0 8px 30px rgba(239, 69, 54, 0.14); }
.ess__ghost { position: absolute; left: 1.55rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-soft); opacity: 0.7; font-size: 1.12rem; white-space: nowrap; overflow: hidden; max-width: calc(100% - 5rem); }
.ess__ghost:not(:empty)::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.15em; background: var(--orange); }
.ess__field kbd { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); font: 600 0.75rem var(--f-text); color: var(--ink-soft); }
.ess.has-results .ess__field input { border-radius: 30px 30px 0 0; }
.ess__list { list-style: none; margin: 0; padding: 0; display: none; border: 1px solid var(--line); border-top: none; border-radius: 0 0 30px 30px; background: var(--surface); overflow: hidden; box-shadow: 0 18px 40px rgba(20, 24, 48, 0.12); }
.ess.has-results .ess__list { display: block; }
.ess__list li { border-top: 1px solid var(--line); }
.ess__list a { display: grid; gap: 2px; padding: 0.85rem 1.5rem; text-decoration: none; color: var(--ink); }
.ess__list li[aria-selected="true"] a { background: rgba(247, 164, 74, 0.12); box-shadow: inset 3px 0 0 #EF4536; }
.ess__where { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.ess__list b { font-size: 1rem; }
.ess__snip { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }
.ess__list mark { background: none; color: inherit; font-weight: 700; box-shadow: inset 0 -0.4em 0 rgba(247, 164, 74, 0.35); }
.ess__guide { display: flex; align-items: center; gap: 12px; max-width: 32rem; }
.ess__clavi { all: unset; position: relative; flex: none; width: 46px; padding: 8px 10px 7px; border-radius: 18px; background: var(--navy-deep); cursor: pointer; box-sizing: border-box; }
.ess__clavi img { display: block; width: 100%; height: auto; }
.ess__clavi:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.ess__clavi .clavi__eye { width: 9px; height: 10px; margin: -5px 0 0 -4.5px; }
.ess__clavi .clavi__eye i { width: 4px; height: 4px; }
.ess__say { font-size: 0.9rem; color: var(--ink-soft); min-height: 1.4em; }
.ess.is-empty .ess__say { color: var(--accent-ink); }
.ess__foot { align-self: end; display: flex; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--ink-soft); }
.ess__exit, .ess__a11y { all: unset; cursor: pointer; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.ess__exit:hover, .ess__a11y:hover { color: var(--ink); } .ess__exit:focus-visible, .ess__a11y:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ess-back { all: unset; position: fixed; z-index: 34; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 0.6rem 1rem; border-radius: 999px; background: #141830; color: #fff; font: 600 0.85rem var(--f-text); box-shadow: 0 12px 30px rgba(8, 10, 24, 0.4); cursor: pointer; }
.ess-back[hidden] { display: none; }
.ess-back i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #fff; display: grid; place-items: center; box-sizing: border-box; } .ess-back i::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #F7A44A; }
.ess-back:focus-visible { outline: 2px solid #F7A44A; outline-offset: 3px; }
.ess-hit { box-shadow: inset 0 -0.35em 0 rgba(247, 164, 74, 0.45); }
.pv--ess { width: 3.4rem; background: #fff; border: 1px solid #C9CCDB; } .pv--ess i { width: 70%; height: 8px; border-radius: 999px; border: 1.5px solid #141830; }
@media (prefers-reduced-motion: no-preference) {
  html.esencial:not(.a11y-calm) .ess__center > * { animation: essIn 700ms cubic-bezier(.2, .8, .2, 1) both; }
  html.esencial:not(.a11y-calm) .ess__form { animation-delay: 90ms; } html.esencial:not(.a11y-calm) .ess__guide { animation-delay: 180ms; }
  .ess__ghost::after { animation: twBlink 0.9s steps(1) infinite; }
}
@keyframes essIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 520ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 560px) { .ess__field input { height: 54px; font-size: 1rem; } .ess__ghost { font-size: 1rem; } .ess__list a { padding: 0.75rem 1.1rem; } .ess__center { gap: 22px; } .ess__field kbd { display: none; } }

.ess__how { max-width: 30rem; margin: -12px 0 0; text-align: center; font-family: var(--f-text); font-weight: 400; font-size: 0.8rem; line-height: 1.65; letter-spacing: 0.015em; color: var(--ink-soft); }
html.a11y-read .ess__how { font-weight: 400; }
.ess__home { all: unset; position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 0.85rem var(--f-text); cursor: pointer; }
.ess__home:hover { border-color: var(--accent-ink); } .ess__home:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
html.esencial .ess { position: relative; }

/* essential mode, centered: the block sits in the middle; results open as a layer, so nothing moves */
html.esencial .ess { align-items: center; padding: 24px 16px; }
.ess__center { margin-top: -5vh; gap: 26px; }
.ess__list { position: absolute; left: 0; right: 0; top: 100%; z-index: 2; max-height: min(60vh, 34rem); overflow-y: auto; }
.ess__say { margin: -10px 0 0; text-align: center; max-width: 30rem; }
.ess.has-results .ess__say { visibility: hidden; }
html.esencial .ess__foot { position: absolute; left: 0; right: 0; bottom: 20px; justify-content: center; }
.ess.has-results .ess__foot { visibility: hidden; }
.ess__list { z-index: 5; }
@media (max-width: 560px) { .ess__center { margin-top: -14vh; } .ess__list { max-height: 46vh; } }

/* the way back to the full site sits under the search, as a quiet second choice */
.ess__go { display: grid; justify-items: center; gap: 6px; margin-top: 2px; }
.ess__home { position: static; top: auto; left: auto; padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.ess__go small { font-size: 0.74rem; color: var(--ink-soft); }
.ess.has-results .ess__go { visibility: hidden; }

/* essential footer: the brand signature replaces the logo */
html.esencial .ess__foot { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 0 16px; }
.ess__sig { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.ess__sig b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; letter-spacing: 0.02em; color: var(--ink); }
.ess__sig span { font-weight: 700; font-size: 0.66rem; letter-spacing: 0.18em; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--accent-ink); }
.ess__sig i { width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.ess__legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; font-size: 0.7rem; color: var(--ink-soft); }
.ess__clock { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.ess__clock i { width: 6px; height: 6px; border-radius: 50%; background: #9AA0B8; }
.ess__clock.is-open i { background: #2EAD6B; box-shadow: 0 0 0 3px rgba(46, 173, 107, 0.18); }
.ess__links { display: inline-flex; gap: 12px; }
.ess__links a, .ess__links .ess__a11y { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; font-size: 0.7rem; }
.ess__links a:hover { color: var(--ink); }
.ess__center { margin-top: -8vh; }
.ess__sig { flex-wrap: wrap; justify-content: center; row-gap: 4px; } .ess__sig b { white-space: nowrap; } @media (max-width: 560px) { .ess__sig i { display: none; } .ess__sig { gap: 6px; } }
.ess__logo--word { gap: 0; }

/* ---------- Modo claro · «Sábana» ----------
   Página blanca. Los apartados navy son pliegos: entran deslizándose de costado, levemente girados,
   y se asientan sobre el blanco. Un dobladillo con el degradado de marca se tiende con ellos.
   Solo en modo claro; el modo oscuro queda como estaba. */
:root[data-theme="light"] { --paper: #FFFFFF; --surface: #FFFFFF; --sheet-m: clamp(8px, 1.4vw, 20px); --sheet-r: clamp(20px, 2.3vw, 34px); }
:root[data-theme="light"], :root[data-theme="light"] body { overflow-x: clip; }
:root[data-theme="light"] body::before { background: #FFFFFF; }
:root[data-theme="light"] .bar { --on-navy: #141830; --on-navy-soft: #4E5470; --navy-line: #D8DBE8; color: var(--on-navy);
  background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); }
:root[data-theme="light"] .bar.is-stuck { border-bottom-color: #E8EAF2; box-shadow: 0 12px 30px -20px rgba(20, 24, 48, 0.4); }
:root[data-theme="light"] .bar .a11y-btn:hover, :root[data-theme="light"] .bar .ess-btn:hover { color: var(--ink); }
:root[data-theme="light"] .bar .ess-btn i::after { background: var(--red); }

/* bandas navy: rectangulares, a todo el ancho, sin bordes ni sombras; se despliegan del centro a los bordes al entrar */
:root[data-theme="light"] .sheet { position: relative; margin: 0; border-radius: 0; box-shadow: none; border: 0;
  clip-path: inset(0 calc(var(--k, 0) * 9%) round calc(var(--k, 0) * 40px)); }
:root[data-theme="light"] .sheet.is-flat { clip-path: none; }
@media print { :root[data-theme="light"] .sheet { clip-path: none !important; } }

/* ---------- Barra y menú «Índice vivo» ----------
   La barra queda con cuatro cosas: marca, un indicador de dónde estás, la llamada principal y el botón de menú.
   El menú es un pliego navy que baja desde la barra: buscador, las seis secciones numeradas con su descripción
   y el índice de la página actual, que marca en vivo la sección en la que estás. */
.bar .top { position: static; gap: var(--s3); }
.bar .top > .brand { order: 0; margin-right: var(--s3); }
.bar .top > .here { order: 1; margin-inline: auto; }
.bar .top > .bar__cta { order: 2; }
.bar .top > .ess-btn { order: 3; margin-left: 0; }
.bar .top > .a11y-btn { order: 4; margin-left: 0; }
.bar .top > .menu { order: 5; }
.bar .ess-btn, .bar .a11y-btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
.bar .ess-btn span, .bar .a11y-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bar__cta { white-space: nowrap; }

/* el indicador: dónde estás y cuánto llevas */
.here { all: unset; box-sizing: border-box; position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 24rem; height: 40px; padding: 0 16px 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--navy-line); color: var(--on-navy); font: 500 0.86rem var(--f-text); overflow: hidden; transition: border-color var(--t-fast); }
.here:hover { border-color: var(--orange); } .here:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.here__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(239, 69, 54, 0.14); }
.here__k { flex: none; color: var(--on-navy-soft); font-size: 0.78rem; }
.here__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.here__t.is-in { animation: hereIn 360ms var(--ease); }
@keyframes hereIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.here__p { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: color-mix(in oklab, var(--navy-line) 60%, transparent); overflow: hidden; }
.here__p b { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }

/* botón de menú: dos líneas que se cruzan */
.menu { display: inline-flex; height: 40px; padding: 0 1rem 0 0.85rem; gap: 10px; border-color: var(--navy-line); }
.menu:hover { border-color: var(--orange); }
.menu__ico { gap: 5px; width: 18px; }
.menu__ico i { transition: transform 320ms var(--ease); }
.menu__ico i:last-child { width: 70%; margin-left: auto; transition: transform 320ms var(--ease), width 320ms var(--ease); }
.menu:hover .menu__ico i:last-child { width: 100%; }
.menu[aria-expanded="true"] .menu__ico i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu[aria-expanded="true"] .menu__ico i:last-child { width: 100%; transform: translateY(-3.5px) rotate(-45deg); }

/* el pliego del menú */
.nav { position: fixed; z-index: 29; left: var(--nav-m, 0px); right: var(--nav-m, 0px); top: var(--nav-top, 72px); max-height: calc(100dvh - var(--nav-top, 72px) - var(--nav-m, 0px)); overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(50rem 24rem at 100% 0%, rgba(239, 69, 54, 0.16), transparent 60%), radial-gradient(40rem 22rem at 0% 100%, rgba(247, 164, 74, 0.1), transparent 60%), #141830;
  color: #F3F4FA; border-radius: 0 0 var(--sheet-r, 28px) var(--sheet-r, 28px); box-shadow: 0 50px 90px -40px rgba(8, 10, 24, 0.7);
  visibility: hidden; clip-path: inset(0 0 100% 0 round 0 0 var(--sheet-r, 28px) var(--sheet-r, 28px)); transition: clip-path 560ms var(--ease), visibility 0s linear 560ms; }
.nav.is-open { visibility: visible; clip-path: inset(0 0 0 0 round 0 0 var(--sheet-r, 28px) var(--sheet-r, 28px)); transition: clip-path 560ms var(--ease), visibility 0s; }
:root[data-theme="light"] .nav { --nav-m: var(--sheet-m); }
:root[data-theme="dark"] .nav { border: 1px solid #2B3158; border-top: 0; }
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 700ms var(--ease) 120ms; }
.nav.is-open::before { transform: scaleX(1); }
html.nav-open { overflow: hidden; }
html.nav-open .clavi, html.nav-open .dock { visibility: hidden; }
.nav__in { width: min(1200px, 100%); margin-inline: auto; padding: var(--s6) max(20px, env(safe-area-inset-right, 0px)) var(--s6) max(20px, env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "find find" "list side"; gap: var(--s6) var(--s7); }
.nav__lab { font: 600 0.72rem var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: #F7A44A; margin-bottom: var(--s3); }

.nav__find { grid-area: find; position: relative; }
.nav__field { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: 999px; background: rgba(243, 244, 250, 0.06); border: 1px solid rgba(243, 244, 250, 0.16); transition: border-color var(--t-fast), background var(--t-fast); }
.nav__field:focus-within { border-color: #F7A44A; background: rgba(243, 244, 250, 0.1); }
.nav__field svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #B9BEDA; stroke-width: 1.8; stroke-linecap: round; }
.nav__field input { all: unset; flex: 1; min-width: 0; height: 100%; font: 400 1.05rem var(--f-text); color: #F3F4FA; }
.nav__field input::placeholder { color: #8F95B8; }
.nav__field input::-webkit-search-cancel-button { filter: invert(1); }
.nav__field kbd { flex: none; font: 600 0.75rem var(--f-text); color: #B9BEDA; border: 1px solid rgba(243, 244, 250, 0.22); border-radius: 6px; padding: 2px 7px; }
.nav__res { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 2px; }
.nav__res:empty { display: none; }
.nav__res a { display: grid; gap: 2px; padding: 10px 16px; border-radius: 14px; color: #F3F4FA; text-decoration: none; }
.nav__res a:hover, .nav__res a[aria-selected="true"] { background: rgba(243, 244, 250, 0.08); }
.nav__res small { color: #F7A44A; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.nav__res b { font-weight: 600; }
.nav__res span { color: #B9BEDA; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__say { margin: var(--s2) 0 0 16px; font-size: 0.86rem; color: #B9BEDA; }
.nav__say:empty { display: none; }
.nav.is-finding .nav__list, .nav.is-finding .nav__side { opacity: 0.25; transition: opacity var(--t-fast); }

.nav__list { grid-area: list; list-style: none; margin: 0; padding: 0; counter-reset: none; border-top: 1px solid rgba(243, 244, 250, 0.12); }
.nav__list li { border-bottom: 1px solid rgba(243, 244, 250, 0.12); }
.nav__list a { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; grid-template-areas: "n t go" ". d d"; align-items: baseline; column-gap: var(--s3); padding: 14px 4px 14px 0; color: #F3F4FA; text-decoration: none; }
.nav__n { grid-area: n; font: 600 0.78rem var(--f-text); color: #8F95B8; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.nav__t { grid-area: t; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.35rem, 1rem + 1.3vw, 2.05rem); line-height: 1.12; letter-spacing: -0.01em; transition: transform 320ms var(--ease), color var(--t-fast); }
.nav__d { grid-area: d; color: #B9BEDA; font-size: 0.92rem; line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 380ms var(--ease), opacity 260ms ease, margin 380ms var(--ease); }
.nav__go { grid-area: go; align-self: center; font-size: 1.3rem; color: #F7A44A; opacity: 0; transform: translateX(-10px); transition: opacity var(--t-fast), transform 320ms var(--ease); }
.nav__list a::before { content: ""; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--grad); transform: scaleY(0); transition: transform 320ms var(--ease); }
.nav__list a:hover .nav__t, .nav__list a:focus-visible .nav__t { transform: translateX(8px); }
.nav__list a:hover .nav__d, .nav__list a:focus-visible .nav__d { max-height: 4.5em; opacity: 1; margin-top: 6px; }
.nav__list a:hover .nav__go, .nav__list a:focus-visible .nav__go { opacity: 1; transform: none; }
.nav__list a:hover::before, .nav__list a:focus-visible::before, .nav__list a[aria-current]::before { transform: scaleY(1); }
.nav__list a[aria-current] .nav__n { color: #F7A44A; }
.nav__list a:focus-visible { outline: 2px solid #F7A44A; outline-offset: 2px; border-radius: 8px; }
.nav__list:hover a:not(:hover) .nav__t { color: rgba(243, 244, 250, 0.45); }

.nav__side { grid-area: side; display: grid; align-content: start; gap: var(--s5); }
.nav__here { list-style: none; margin: 0; padding: 0 0 0 14px; position: relative; display: grid; gap: 2px; }
.nav__here::before { content: ""; position: absolute; left: 3px; top: 10px; bottom: 10px; width: 1px; background: rgba(243, 244, 250, 0.18); }
.nav__here a { position: relative; display: block; padding: 6px 0 6px 14px; color: #B9BEDA; text-decoration: none; font-size: 0.95rem; transition: color var(--t-fast); }
.nav__here a::before { content: ""; position: absolute; left: -15px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #141830; border: 1px solid rgba(243, 244, 250, 0.4); transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.nav__here a:hover { color: #F3F4FA; }
.nav__here a[aria-current] { color: #F3F4FA; font-weight: 600; }
.nav__here a[aria-current]::before { background: #EF4536; border-color: #F7A44A; box-shadow: 0 0 0 4px rgba(239, 69, 54, 0.22); }
.nav__here a:focus-visible { outline: 2px solid #F7A44A; outline-offset: 2px; border-radius: 6px; }
.nav__cta { display: grid; justify-items: start; gap: var(--s3); padding-top: var(--s5); border-top: 1px solid rgba(243, 244, 250, 0.12); }
.nav__cta span { color: #B9BEDA; font-size: 0.86rem; }
.nav .btn { color: #141830; }

/* entrada escalonada */
.nav__find, .nav__list li, .nav__side { opacity: 0; transform: translateY(14px); transition: opacity 300ms ease, transform 420ms var(--ease); }
.nav.is-open .nav__find, .nav.is-open .nav__list li, .nav.is-open .nav__side { opacity: 1; transform: none; }
.nav.is-open .nav__find { transition-delay: 120ms; }
.nav.is-open .nav__list li { transition-delay: calc(170ms + var(--i, 0) * 45ms); }
.nav.is-open .nav__side { transition-delay: 380ms; }

@media (max-width: 1100px) { .here__k { display: none; } }
@media (max-width: 900px) {
  .here { display: none; }
  .bar .top > .brand { margin-right: auto; }
  .nav__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "find" "list" "side"; gap: var(--s5); padding-block: var(--s5) var(--s6); }
  .nav__d { max-height: none; opacity: 1; margin-top: 4px; font-size: 0.86rem; }
  .nav__list a { padding-block: 12px; }
  .nav__go { opacity: 0.7; transform: none; }
  .nav__list:hover a:not(:hover) .nav__t { color: inherit; }
}
@media (max-width: 640px) { .bar__cta { display: none; } }
@media (max-width: 400px) { .menu__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .menu { padding: 0 0.7rem; } }
@media (prefers-reduced-motion: reduce) { .nav, .nav.is-open, .nav::before, .nav__find, .nav__list li, .nav__side, .nav__t, .nav__d, .here__t.is-in { transition: none !important; animation: none !important; } }
html.a11y-calm .nav, html.a11y-calm .nav.is-open, html.a11y-calm .nav::before, html.a11y-calm .nav__find, html.a11y-calm .nav__list li, html.a11y-calm .nav__side, html.a11y-calm .here__t { transition: none !important; animation: none !important; }
html.a11y-contrast .nav { background: #000; border: 2px solid #fff; }
@media print { .nav, .here { display: none !important; } }
/* velo: la página queda detrás del pliego, esmerilada */
body::after { content: ""; position: fixed; inset: 0; z-index: 28; pointer-events: none; opacity: 0; background: rgba(255, 255, 255, 0.55); transition: opacity 360ms ease; }
:root[data-theme="dark"] body::after { background: rgba(8, 10, 24, 0.6); }
html.nav-open body::after { opacity: 1; pointer-events: auto; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (pointer: coarse) { .nav__field kbd { display: none; } }
@media (max-width: 900px) { .nav__field kbd { display: none; } }

/* ---------- Marca en la barra: solo el nombre ----------
   «CLAVE» grande y expandido, con la A en el degradado (el mismo gesto del isotipo, que vive en Clavi);
   «ANALÍTICA» abajo, espaciada al ancho exacto de CLAVE. Al pasar el puntero, el degradado recorre CLAVE
   letra por letra y ANALÍTICA se desordena y se vuelve a ordenar. */
.bar .brand.wm { display: inline-grid; grid-template-columns: auto; justify-items: stretch; gap: 3px; text-decoration: none; color: var(--on-navy); perspective: none; font-size: 1rem; padding-block: 4px; }
.bar .brand.wm .wm__c { color: var(--on-navy); }
.wm__c { display: flex; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 1.05rem + 1.25vw, 2.35rem); line-height: 0.95; letter-spacing: 0.02em; }
.wm__c i { font-style: normal; display: inline-block; transition: transform 380ms var(--ease); }
.wm__k { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm__a { display: flex; justify-content: space-between; font: 600 clamp(0.58rem, 0.5rem + 0.24vw, 0.78rem) / 1 var(--f-text); color: var(--on-navy-soft); padding-left: 0.08em; }
.wm__a i { font-style: normal; display: inline-block; min-width: 0.55em; text-align: center; }
.wm__a::after { content: none; }
.bar .brand.wm { position: relative; }
.bar .brand.wm::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 520ms var(--ease); }
.bar .brand.wm:hover::after, .bar .brand.wm:focus-visible::after { transform: scaleX(1); }
.bar .brand.wm:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.a11y-calm) .bar .brand.wm:hover .wm__c i:not(.wm__k) { animation: wmWave 900ms var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms); }
  html:not(.a11y-calm) .bar .brand.wm:hover .wm__k { animation: wmHop 900ms var(--ease) both; animation-delay: 140ms; }
}
.wm__c i:nth-child(1) { --n: 0; } .wm__c i:nth-child(2) { --n: 1; } .wm__c i:nth-child(3) { --n: 2; } .wm__c i:nth-child(4) { --n: 3; } .wm__c i:nth-child(5) { --n: 4; }
@keyframes wmHop { 0%, 100% { transform: none; } 35% { transform: translateY(-4px); } }
@keyframes wmWave { 0% { transform: none; } 35% { transform: translateY(-4px); color: #EF4536; } 70% { transform: none; color: #F7A44A; } 100% { transform: none; } }
.wm__a i.is-scr { color: #EF4536; }
@media (max-width: 520px) { .wm__c { font-size: 1.42rem; } }

/* globo del hero, más legible: más grande, blanco pleno, borde de marca y los cinco pasos a la vista */
.gen-say { width: min(19rem, calc(100% - 16px)); gap: 4px; padding: 0.9rem 1.1rem 0.85rem 1.25rem; border-radius: 14px; background: #FFFFFF; box-shadow: 0 18px 44px rgba(8, 10, 24, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.6); }
.gen-say::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad); }
.gen-say::after { background: #FFFFFF; }
.gen-say__n { font-size: 0.72rem; letter-spacing: 0.1em; color: #B92D1B; }
.gen-say b { font-size: 1.12rem; line-height: 1.2; color: #141830; }
.gen-say p { font-size: 0.92rem; line-height: 1.45; color: #2A3050; }
.gen-say__dots { display: flex; gap: 5px; margin-top: 6px; }
.gen-say__dots i { width: 18px; height: 4px; border-radius: 4px; background: #DCDFEA; transition: background 300ms ease, width 300ms ease; }
.gen-say[data-step="1"] .gen-say__dots i:nth-child(-n+1), .gen-say[data-step="2"] .gen-say__dots i:nth-child(-n+2), .gen-say[data-step="3"] .gen-say__dots i:nth-child(-n+3),
.gen-say[data-step="4"] .gen-say__dots i:nth-child(-n+4), .gen-say[data-step="5"] .gen-say__dots i { background: var(--grad); }
.gen-say[data-step="1"] .gen-say__dots i:nth-child(1), .gen-say[data-step="2"] .gen-say__dots i:nth-child(2), .gen-say[data-step="3"] .gen-say__dots i:nth-child(3),
.gen-say[data-step="4"] .gen-say__dots i:nth-child(4), .gen-say[data-step="5"] .gen-say__dots i:nth-child(5) { width: 30px; }
@media (max-width: 860px) { .gen-say { width: min(16.5rem, calc(100% - 16px)); padding: 0.75rem 0.9rem 0.7rem 1.05rem; } .gen-say b { font-size: 1rem; } .gen-say p { font-size: 0.84rem; } }

/* ---------- Clavi: trucos ----------
   Cada 10 segundos enciende una espada láser con el degradado de marca; al bajar se sube a una patineta
   y al subir, a una tabla de surf sobre una ola. Nada de esto ocurre con movimiento reducido. */
.clavi__fx { position: absolute; inset: 0; pointer-events: none; }
.clavi__saber { position: absolute; left: calc(100% - 13px); bottom: 24px; width: 9px; height: 24px; border-radius: 3px; opacity: 0; transform-origin: 50% 85%;
  background: linear-gradient(90deg, #6B7190, #E1E4EE 45%, #8A90AE); box-shadow: inset 0 3px 0 #2A2F4D, inset 0 -5px 0 #2A2F4D, inset 0 -8px 0 #6B7190; }
.clavi__saber i { position: absolute; left: 50%; bottom: 100%; width: 6px; height: 96px; margin-left: -3px; border-radius: 4px 4px 2px 2px; transform-origin: 50% 100%; transform: scaleY(0);
  background: linear-gradient(90deg, #FFD3A8, #FFFFFF 50%, #FFD3A8); box-shadow: 0 0 6px 2px rgba(247, 164, 74, 0.95), 0 0 16px 6px rgba(239, 69, 54, 0.7), 0 0 34px 12px rgba(239, 69, 54, 0.32); }
.clavi.is-saber .clavi__saber { animation: sbHilt 2.8s var(--ease) both; }
.clavi.is-saber .clavi__saber i { animation: sbBlade 2.8s var(--ease) both, sbHum 110ms steps(2) infinite; }
.clavi.is-in.is-saber:not(.is-peek) .clavi__body { animation: sbBody 2.8s var(--ease) both; }
@keyframes sbHilt { 0% { opacity: 0; transform: translate(-12px, 8px) rotate(50deg) scale(0.6); } 9% { opacity: 1; transform: rotate(14deg); } 30% { transform: rotate(-30deg); } 44% { transform: rotate(40deg); } 58% { transform: rotate(-14deg); } 70% { transform: rotate(8deg); } 88% { opacity: 1; transform: rotate(10deg); } 100% { opacity: 0; transform: translate(-12px, 8px) rotate(50deg) scale(0.6); } }
@keyframes sbBlade { 0%, 11% { transform: scaleY(0); } 19% { transform: scaleY(1.06); } 24%, 78% { transform: scaleY(1); } 87%, 100% { transform: scaleY(0); } }
@keyframes sbHum { 50% { opacity: 0.86; } }
@keyframes sbBody { 0%, 100% { transform: none; } 30% { transform: rotate(-5deg); } 44% { transform: translateY(-3px) rotate(6deg); } 58% { transform: rotate(-2deg); } }

.clavi__skate { position: absolute; left: -10px; right: -10px; bottom: -13px; height: 18px; opacity: 0; transform: translateY(10px); transition: opacity 200ms ease, transform 320ms var(--ease); }
.clavi__skate b { position: absolute; left: 0; right: 0; top: 2px; height: 6px; border-radius: 10px 10px 4px 4px; background: var(--grad); box-shadow: 0 2px 0 #141830; }
.clavi__skate i { position: absolute; bottom: 0; width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box; background: #F3F4FA; border: 2.5px solid #141830; border-top-color: #EF4536; }
.clavi__skate i:nth-of-type(1) { left: 12px; } .clavi__skate i:nth-of-type(2) { right: 12px; }
.clavi.is-skate .clavi__skate { opacity: 1; transform: none; }
.clavi.is-skate .clavi__skate i { animation: wheel 260ms linear infinite; }
.clavi.is-in.is-skate:not(.is-peek) .clavi__body { animation: skBob 380ms ease-in-out infinite alternate; }
@keyframes wheel { to { transform: rotate(360deg); } }
@keyframes skBob { from { transform: translateY(-12px) rotate(-4deg); } to { transform: translateY(-14px) rotate(-1deg); } }

.clavi__surf { position: absolute; left: -26px; right: -26px; bottom: -8px; height: 30px; overflow: hidden; opacity: 0; transform: translateY(14px); transition: opacity 220ms ease, transform 360ms var(--ease); border-radius: 0 0 12px 12px; }
.clavi__wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 15px; }
.clavi__wave .w1 { fill: rgba(86, 160, 236, 0.85); }
.clavi__wave .w2 { fill: none; stroke: rgba(255, 255, 255, 0.9); stroke-width: 2; }
.clavi__surf b { position: absolute; left: 8px; right: 8px; bottom: 10px; height: 8px; border-radius: 50%; transform: rotate(-4deg);
  background: linear-gradient(90deg, #F3F4FA 0 44%, #EF4536 44% 50%, #F7A44A 50% 56%, #F3F4FA 56%); box-shadow: 0 2px 0 rgba(20, 24, 48, 0.45); }
.clavi.is-surf .clavi__surf { opacity: 1; transform: none; }
.clavi.is-surf .clavi__wave { animation: claviWave 1.1s linear infinite; }
.clavi.is-in.is-surf:not(.is-peek) .clavi__body { animation: sfRock 820ms ease-in-out infinite alternate; }
@keyframes claviWave { to { transform: translateX(-50%); } }
@keyframes sfRock { from { transform: translateY(-13px) rotate(-6deg); } to { transform: translateY(-17px) rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .clavi__fx { display: none; } }
html.a11y-calm .clavi__fx { display: none; }

/* ---------- Clavi sin cápsula: solo la C y la A flotando ----------
   Sin fondo ni borde; las letras llevan una sombra suave para leerse sobre blanco y sobre navy,
   y en el piso queda una sombra que se achica cuando Clavi sube. */
.clavi__body { background: none; border: 0; box-shadow: none; border-radius: 18px; }
.clavi__body:hover { border-color: transparent; }
.clavi__body img { filter: drop-shadow(0 6px 8px rgba(20, 24, 48, 0.22)) drop-shadow(0 0 1px rgba(20, 24, 48, 0.25)); transition: transform 260ms var(--ease); }
.clavi__body:hover img { transform: scale(1.05); }
.clavi__eye { box-shadow: 0 0 0 1.5px #141830, 0 2px 4px rgba(20, 24, 48, 0.25); }
.clavi::before { content: ""; position: absolute; left: 14px; width: 50px; bottom: -6px; height: 8px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(20, 24, 48, 0.28), transparent); }
:root[data-theme="dark"] .clavi::before { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent); }
.clavi.is-peek::before, .clavi.is-ride::before { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.a11y-calm) .clavi.is-in:not(.is-peek)::before { animation: claviShadow 4.5s ease-in-out infinite; }
}
@keyframes claviShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.78); opacity: 0.7; } }
.clavi__saber { left: calc(100% - 24px); bottom: 30px; }

/* ---------- Casos de éxito, compacto: el mapa y el expediente entran juntos en una pantalla ---------- */
#casos-exito.band { padding-block: var(--s5) var(--s6); }
#casos-exito .band__head { max-width: none; margin-bottom: var(--s4); }
#casos-exito .casex { gap: var(--s3); margin-top: 0; }
#casos-exito .casex__files { gap: var(--s3); }
#casos-exito .casex__nav { padding-bottom: 8px; }
@media (min-width: 861px) {
  #casos-exito .band__head { gap: var(--s2); }
  #casos-exito .band__head .lead { max-width: none; font-size: 0.98rem; }
  #casos-exito .casex__map { padding: var(--s4) var(--s5) var(--s3); }
  #casos-exito .casex__track { height: 9.6rem; margin-top: 0; }
  #casos-exito .casex__node--up b { margin-top: 1.1rem; } #casos-exito .casex__node--dn b { margin-bottom: 1.1rem; }
  #casos-exito .casex__node b::after { height: 0.9rem; }
  #casos-exito .casex__node { font-size: 0.78rem; gap: 4px; }
  #casos-exito .casex__node span { padding: 0.2rem 0.5rem; }
  #casos-exito .casex__hint { font-size: 0.74rem; max-width: none; }
  #casos-exito .file { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "top top" "h3 meta" "client meta" "what meta"; column-gap: var(--s6); row-gap: var(--s2); padding: var(--s5) var(--s6); align-items: start; }
  #casos-exito .file__top { grid-area: top; } #casos-exito .file h3 { grid-area: h3; font-size: clamp(1.3rem, 1rem + 0.9vw, 1.7rem); }
  #casos-exito .file__client { grid-area: client; } #casos-exito .file__what { grid-area: what; font-size: 1rem; line-height: 1.5; }
  #casos-exito .file__meta { grid-area: meta; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin: 0; padding: 0 0 0 var(--s5); border-top: 0; border-left: 1px dashed var(--line); align-self: stretch; align-content: center; }
}
@media (max-width: 860px) {
  #casos-exito .casex__hint { display: none; }
  #casos-exito .band__head .lead { font-size: 0.95rem; }
  #casos-exito .casex__map { padding: var(--s3) var(--s4); }
  #casos-exito .casex__track { margin: var(--s2) 0; gap: 0; }
  #casos-exito .casex__node { padding: 1px 0; font-size: 0.8rem; }
  #casos-exito .casex__hint { font-size: 0.74rem; }
  #casos-exito .file { padding: var(--s4) var(--s4) var(--s4) var(--s5); gap: var(--s2); }
  #casos-exito .file h3 { font-size: 1.3rem; }
  #casos-exito .file__what { font-size: 0.95rem; }
  #casos-exito .file__meta { gap: var(--s3); margin-top: var(--s2); padding-top: var(--s3); }
}

/* ---------- Hero sin fondo azul (modo claro) ----------
   El hero va directo sobre el blanco: misma composición, colores de tinta. La animación usa sprites claros. */
:root[data-theme="light"] .foot { border-top: 0; }
:root[data-theme="light"] .hero { background: transparent; color: #141830;
  --on-navy: #141830; --on-navy-soft: #4E5470; --navy-line: #D8DBE8; --navy-panel: #F5F6FA; --warn-on-navy: #B92D1B; }
:root[data-theme="light"] .hero .sw__knob { background: #FFFFFF; box-shadow: 0 1px 3px rgba(20, 24, 48, 0.35); }
:root[data-theme="light"] .hero .stage__ctl { background: rgba(255, 255, 255, 0.88); border-color: #E3E5EF; box-shadow: 0 10px 30px -18px rgba(20, 24, 48, 0.35); }
:root[data-theme="light"] .hero__fx i { opacity: 0.2; }
:root[data-theme="light"] .hero__fx::before { background-image: linear-gradient(rgba(20, 24, 48, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 24, 48, 0.045) 1px, transparent 1px); }
:root[data-theme="light"] .hero__fx::after { background: radial-gradient(22rem circle at var(--mx, 70%) var(--my, 30%), rgba(247, 164, 74, 0.1), transparent 70%); }
:root[data-theme="light"] .hero .phases { color: rgba(20, 24, 48, 0.4); }
:root[data-theme="light"] .hero .phases li { border-top-color: rgba(20, 24, 48, 0.12); }
:root[data-theme="light"] .stage[data-phase="chaos"] .phases li:nth-child(-n+1), :root[data-theme="light"] .stage[data-phase="wave"] .phases li:nth-child(-n+2),
:root[data-theme="light"] .stage[data-phase="ordered"] .phases li:nth-child(-n+3), :root[data-theme="light"] .stage[data-phase="ia"] .phases li:nth-child(-n+4),
:root[data-theme="light"] .stage[data-phase="result"] .phases li:nth-child(-n+5) { color: rgba(20, 24, 48, 0.7); border-top-color: var(--orange); }
:root[data-theme="light"] .stage[data-phase="chaos"] .phases li:nth-child(1), :root[data-theme="light"] .stage[data-phase="wave"] .phases li:nth-child(2),
:root[data-theme="light"] .stage[data-phase="ordered"] .phases li:nth-child(3), :root[data-theme="light"] .stage[data-phase="ia"] .phases li:nth-child(4),
:root[data-theme="light"] .stage[data-phase="result"] .phases li:nth-child(5) { color: #141830; }
:root[data-theme="light"] .hero__cue i { background: rgba(20, 24, 48, 0.2); }
:root[data-theme="light"] .hero--gen h1 em { background-image: linear-gradient(100deg, #EF4536 0%, #F7A44A 38%, #F9B970 50%, #F7A44A 62%, #EF4536 100%); }
:root[data-theme="light"] .gen-say { box-shadow: 0 16px 38px -10px rgba(20, 24, 48, 0.3), 0 0 0 1px #E3E5EF; }
:root[data-theme="light"] .gen-tip { box-shadow: 0 10px 28px -8px rgba(20, 24, 48, 0.3), 0 0 0 1px #E3E5EF; background: #FFFFFF; }

/* la rajadura que abre la espada de Clavi: por adentro llueven datos */
.rift { position: fixed; z-index: 34; pointer-events: none; }
.rift canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rift svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rift__edge { fill: none; stroke: #FFE2C2; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 3px #F7A44A) drop-shadow(0 0 8px rgba(239, 69, 54, 0.9)); }
.rift__crk polyline { fill: none; stroke: rgba(20, 24, 48, 0.55); stroke-width: 1; stroke-linecap: round; }
:root[data-theme="dark"] .rift__crk polyline, .band--night .rift__crk polyline { stroke: rgba(243, 244, 250, 0.55); }
@media (prefers-reduced-motion: reduce) { .rift { display: none; } }
html.a11y-calm .rift { display: none; }
:root[data-theme="light"] .hero .label { color: var(--accent-ink); }
:root[data-theme="light"] .hero .stage__txt .label { color: #4E5470; }

/* ---------- El Enfoque, compacto ---------- */
#sistema.band { padding-block: var(--s6); }
#sistema .band__head { gap: var(--s2); margin-bottom: var(--s5); max-width: none; }
#sistema .band__head .lead { max-width: 52rem; font-size: 1rem; }
#sistema .flux { margin-top: 0; }
#sistema .node { padding: var(--s4) var(--s5); gap: var(--s2); }
#sistema .node__ic { width: 2.2rem; height: 2.2rem; border-radius: 10px; }
#sistema .node__ic svg { width: 1.15rem; height: 1.15rem; }
#sistema .node__no { font-size: 1.9rem; }
#sistema .node h3 { font-size: 1.12rem; }
#sistema .node__steps { gap: var(--s3); }
#sistema .node__steps li { font-size: 0.9rem; line-height: 1.45; padding-left: var(--s3); }
#sistema .node__steps b { font-size: 0.95rem; }
#sistema .node--out { padding: var(--s4) var(--s5); }
#sistema .node--out h3 { font-size: 1.08rem; }
@media (min-width: 1041px) {
  #sistema .node--datos .node__steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
  #sistema .conduit--down { min-height: 4.4rem; }
  #sistema .conduit--down svg { width: 30px; }
}
@media (max-width: 1040px) {
  #sistema .conduit { padding: var(--s1, 4px) 0; }
  #sistema .conduit svg { width: 54px; max-width: 54px; margin: 22px 0; }
  #sistema .conduit--down { min-height: 3.6rem; }
  #sistema .conduit--down svg { width: 26px; margin: 0; }
}
@media (max-width: 860px) { #sistema .node__no { display: none; } }

/* ---------- Clavi: repertorio de escenas (homenajes a la ciencia ficción clásica) ---------- */
.cfx { position: fixed; inset: 0; z-index: 34; pointer-events: none; overflow: hidden; }
.cfx > div { position: absolute; }
@media (prefers-reduced-motion: reduce) { .cfx { display: none; } }
html.a11y-calm .cfx, html.esencial .cfx, html.nav-open .cfx { display: none; }

/* 1 · el dato suelto que ataca */
.cbug { width: 44px; height: 40px; transition: transform 0.95s cubic-bezier(0.5, 0, 0.6, 1); }
.cbug__h { position: absolute; left: 0; top: 0; width: 44px; height: 28px; border-radius: 7px; background: #FFFFFF; border: 2px solid #EF4536; box-sizing: border-box;
  display: grid; place-items: end center; padding-bottom: 2px; font: 800 9px/1 ui-monospace, Menlo, Consolas, monospace; color: #B92D1B; box-shadow: 0 6px 14px -6px rgba(20, 24, 48, 0.45); }
.cbug__h span { animation: cvGlitch 0.35s steps(2) infinite; }
.cbug__h--t { clip-path: inset(0 0 50% 0); } .cbug__h--b { clip-path: inset(50% 0 0 0); }
.cbug__e { position: absolute; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid #141830; box-sizing: border-box; }
.cbug__e::after { content: ""; position: absolute; left: 1px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: #141830; }
.cbug__e::before { content: ""; position: absolute; left: -1px; top: -4px; width: 10px; height: 2px; background: #141830; border-radius: 2px; transform: rotate(18deg); }
.cbug__e:first-of-type { left: 9px; } .cbug__e:last-of-type { right: 9px; } .cbug__e:last-of-type::before { transform: rotate(-18deg); }
.cbug__legs { position: absolute; left: 6px; right: 6px; top: 27px; height: 12px; display: flex; justify-content: space-between; }
.cbug__legs i { width: 2px; height: 11px; background: #141830; border-radius: 2px; transform-origin: 50% 0; animation: cvLeg 0.18s ease-in-out infinite alternate; }
.cbug__legs i:nth-child(even) { animation-delay: -0.09s; }
.cbug { animation: cvHop 0.24s ease-in-out infinite alternate; }
.cbug.is-cut { animation: none; }
.cbug.is-cut .cbug__h--t { animation: cvCutT 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
.cbug.is-cut .cbug__h--b { animation: cvCutB 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
.cbug.is-cut .cbug__legs { animation: cvFade 0.3s forwards; }
@keyframes cvGlitch { 0% { text-shadow: 1px 0 #00C2FF, -1px 0 #EF4536; } 100% { text-shadow: -1px 0 #00C2FF, 1px 0 #EF4536; transform: translateX(1px); } }
@keyframes cvLeg { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes cvHop { from { margin-top: 0; } to { margin-top: -3px; } }
@keyframes cvCutT { to { transform: translate(22px, -34px) rotate(38deg); opacity: 0; } }
@keyframes cvCutB { to { transform: translate(30px, 10px) rotate(-24deg); opacity: 0; } }
@keyframes cvFade { to { opacity: 0; } }
.cbit { font: 700 12px/1 ui-monospace, Menlo, Consolas, monospace; color: #EF4536; animation: cvBit 0.9s ease-out forwards; }
.cbit:nth-child(odd) { color: #F7A44A; }
@keyframes cvBit { from { transform: none; opacity: 1; } to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.cok { padding: 4px 8px; border-radius: 7px; background: #FFFFFF; border: 2px solid #1E9E5A; font: 700 11px/1 var(--f-text); color: #141830; box-shadow: 0 6px 14px -6px rgba(20, 24, 48, 0.4);
  animation: cvOk 1.8s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
.cok b { color: #1E9E5A; }

/* ---------- el casco oscuro: aparece cada vez que Clavi enciende la espada (diseño propio) ---------- */
.clavi__helm { position: absolute; left: 21.5%; top: 4%; width: 60%; z-index: 1; pointer-events: none; opacity: 0; transform-origin: 50% 100%; filter: drop-shadow(0 3px 4px rgba(8, 10, 24, 0.35)); }
.clavi__helm svg { display: block; width: 100%; height: auto; }
.clavi__eye { z-index: 2; }
.clavi.is-saber .clavi__helm { animation: hmOn 2.8s var(--ease) both; }
.clavi.is-saber .clavi__eye { background: #FF4B33; box-shadow: 0 0 0 1.5px #141830, 0 0 8px 2px rgba(239, 69, 54, 0.8); }
.clavi.is-saber .clavi__eye i { background: #2A0A06; }
@keyframes hmOn { 0% { opacity: 0; transform: translateY(-26px) scale(1.12); } 10% { opacity: 1; transform: translateY(2px) scale(1); } 14% { transform: none; } 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-20px); } }

/* ---------- la patrulla: un soldado de datos con armadura blanca y #REF! en el visor ---------- */
.ctroop { width: 38px; height: 66px; transition: transform 1.1s linear; }
.ctroop > b { position: absolute; box-sizing: border-box; background: #F6F7FB; border: 2px solid #141830; }
.ctroop__head { left: 7px; top: 0; width: 24px; height: 23px; border-radius: 12px 12px 7px 7px; z-index: 2; box-shadow: inset -3px -3px 0 #D7DAE6; }
.ctroop__head::after { content: ""; position: absolute; left: 7px; bottom: 2px; width: 6px; height: 3px; border-top: 1px solid #8A90AE; border-bottom: 1px solid #8A90AE; }
.ctroop__visor { position: absolute; left: 1px; right: 1px; top: 7px; height: 8px; border-radius: 3px; background: #141830; display: grid; place-items: center; overflow: hidden; }
.ctroop__visor span { font: 800 5.5px/1 ui-monospace, Menlo, Consolas, monospace; color: #FF5A3C; letter-spacing: 0.02em; animation: cvGlitch 0.35s steps(2) infinite; }
.ctroop__torso { left: 5px; top: 21px; width: 28px; height: 26px; border-radius: 7px 7px 5px 5px; box-shadow: inset -3px -3px 0 #D7DAE6; }
.ctroop__torso::before { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 3px; border-radius: 2px; background: #141830; }
.ctroop__torso::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 4px; border-radius: 2px; background: #8A90AE; }
.ctroop__gun { left: -11px !important; top: 29px; width: 20px; height: 6px; border-radius: 2px; background: #141830 !important; z-index: 3; }
.ctroop__gun::after { content: ""; position: absolute; left: -9px; top: -4px; width: 10px; height: 10px; border-radius: 50%; opacity: 0; background: radial-gradient(#FFFFFF, #FF5A3C 45%, transparent 70%); }
.ctroop.is-fire .ctroop__gun::after { animation: trFlash 0.16s ease-out; }
.ctroop__legs { left: 9px; top: 45px; width: 20px; height: 21px; background: none !important; border: 0 !important; }
.ctroop__legs i { position: absolute; top: 0; width: 8px; height: 20px; box-sizing: border-box; border-radius: 3px 3px 4px 4px; background: #F6F7FB; border: 2px solid #141830; transform-origin: 50% 0; }
.ctroop__legs i:first-child { left: 0; } .ctroop__legs i:last-child { right: 0; }
.ctroop.is-walk { animation: trBob 0.3s ease-in-out infinite alternate; }
.ctroop.is-walk .ctroop__legs i { animation: trStep 0.3s ease-in-out infinite alternate; }
.ctroop.is-walk .ctroop__legs i:last-child { animation-direction: alternate-reverse; }
.ctroop.is-hit { animation: none; }
.ctroop.is-hit .ctroop__head { animation: trHead 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
.ctroop.is-hit .ctroop__torso { animation: trFall 0.8s cubic-bezier(0.5, 0, 0.7, 1) forwards; }
.ctroop.is-hit .ctroop__gun { animation: trGun 0.8s ease-out forwards; }
.ctroop.is-hit .ctroop__legs { animation: cvFade 0.5s 0.2s forwards; }
@keyframes trBob { to { translate: 0 -2px; } }
@keyframes trStep { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes trFlash { 0% { opacity: 1; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes trHead { 0% { transform: none; } 40% { transform: translate(14px, -34px) rotate(140deg); opacity: 1; } 100% { transform: translate(26px, 10px) rotate(300deg); opacity: 0; } }
@keyframes trFall { 0% { transform: none; } 100% { transform: translate(8px, 22px) rotate(80deg); opacity: 0; } }
@keyframes trGun { 100% { transform: translate(-24px, -30px) rotate(-200deg); opacity: 0; } }
.cbolt { width: 16px; height: 3px; margin: -1.5px 0 0 -8px; border-radius: 2px; background: #FFFFFF; box-shadow: 0 0 3px 1px #FF5A3C, 0 0 9px 3px rgba(239, 69, 54, 0.65); }
.cspark { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(#FFFFFF, #F7A44A 35%, rgba(239, 69, 54, 0.5) 55%, transparent 70%); animation: trSpark 0.34s ease-out forwards; }
@keyframes trSpark { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.ctalk { padding: 4px 7px; border-radius: 7px; background: #141830; color: #FFFFFF; font: 700 10px/1 var(--f-text); white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(20, 24, 48, 0.5); animation: cvFade 0.25s 0.85s forwards; }
@keyframes cvOk { 0% { transform: scale(0.3); opacity: 0; } 18% { transform: scale(1.12); opacity: 1; } 28%, 75% { transform: none; opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }

/* 2 · lluvia de neón, cartel vertical, paraguas iluminado, auto volador y pájaro de papel */
.crain { animation: cvIn 4.3s ease forwards; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 85%, transparent); }
.crain i { position: absolute; top: -20px; width: 2px; height: 22px; border-radius: 2px; background: linear-gradient(transparent, rgba(0, 140, 220, 0.95)); animation: cvDrop 0.6s linear infinite; }
@keyframes cvDrop { to { transform: translateY(380px) translateX(-30px); } }
@keyframes cvIn { 0% { opacity: 0; } 12%, 85% { opacity: 1; } 100% { opacity: 0; } }
.csign { display: grid; gap: 2px; padding: 8px 7px; border-radius: 8px; border: 2px solid #FF3D9A; background: rgba(20, 24, 48, 0.88); text-align: center;
  font: 800 14px/1.05 var(--f-display); color: #FFE3F2; text-shadow: 0 0 4px #FF3D9A, 0 0 10px #FF3D9A; box-shadow: 0 0 10px rgba(255, 61, 154, 0.7), inset 0 0 8px rgba(255, 61, 154, 0.5);
  animation: cvIn 4.3s ease forwards, cvFlick 2.1s steps(1) infinite; }
.csign span:nth-child(3) { animation: cvFlick 0.9s steps(1) infinite; }
@keyframes cvFlick { 0%, 100% { filter: none; } 8% { filter: brightness(0.35); } 10% { filter: none; } 54% { filter: brightness(0.5); } 56% { filter: none; } }
.cumb { width: 92px; animation: cvUmb 4.3s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
.cumb svg { width: 100%; height: auto; overflow: visible; }
.cumb__c { fill: rgba(20, 24, 48, 0.55); stroke: #3FD3FF; stroke-width: 2; filter: drop-shadow(0 0 3px #3FD3FF); }
.cumb__s { stroke: #3FD3FF; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px #3FD3FF) drop-shadow(0 0 8px #00A0E6); }
@keyframes cvUmb { 0% { transform: translateY(26px) scale(0.4); opacity: 0; } 12% { transform: none; opacity: 1; } 86% { transform: none; opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
.ccar { left: -90px; width: 72px; animation: cvCar 2.6s cubic-bezier(0.45, 0, 0.55, 1) 0.6s both; }
.ccar svg { width: 100%; height: auto; overflow: visible; }
.ccar__b { fill: #2A3050; } .ccar__w { fill: #8FD8FF; opacity: 0.8; }
.ccar__h { fill: #FFFFFF; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #8FD8FF); } .ccar__t { fill: #EF4536; filter: drop-shadow(0 0 4px #EF4536); }
.ccar::after { content: ""; position: absolute; right: 100%; top: 58%; width: 90px; height: 2px; background: linear-gradient(90deg, transparent, rgba(239, 69, 54, 0.75)); }
@keyframes cvCar { 0% { transform: translate(0, 10px); } 50% { transform: translate(calc(var(--dist) / 2), -6px); } 100% { transform: translate(var(--dist), 4px); } }
.cbird { width: 34px; animation: cvBird 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both; filter: drop-shadow(0 3px 3px rgba(20, 24, 48, 0.3)); }
.cbird svg { width: 100%; height: auto; }
.cbird.is-out { animation: cvFade 0.6s forwards; }
@keyframes cvBird { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.clavi.is-in.is-rainy:not(.is-peek) .clavi__body { animation: cvShiver 0.28s ease-in-out 6 alternate; }
@keyframes cvShiver { from { transform: translateX(-1px); } to { transform: translateX(1px); } }

/* 3 · salto al hiperespacio */
.chyp { width: 0; height: 0; }
.chyp::before { content: ""; position: absolute; left: calc(var(--R) * -1); top: calc(var(--R) * -1); width: calc(var(--R) * 2); height: calc(var(--R) * 2); border-radius: 50%;
  background: radial-gradient(circle, #0B0E22 0 55%, rgba(20, 24, 48, 0.85) 70%, transparent 72%); animation: cvPortal 2.6s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
.chyp i { position: absolute; left: 0; top: -1px; width: var(--r); height: 2px; border-radius: 2px; transform-origin: 0 50%; opacity: 0;
  background: linear-gradient(90deg, transparent, #FFFFFF 70%, #BFE6FF); animation: cvStar 1.1s cubic-bezier(0.6, 0, 0.9, 1) forwards; }
@keyframes cvPortal { 0% { transform: scale(0); opacity: 1; } 18%, 76% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@keyframes cvStar { 0% { transform: rotate(var(--a)) translateX(8px) scaleX(0.04); opacity: 0; } 25% { opacity: 1; } 100% { transform: rotate(var(--a)) translateX(14px) scaleX(1); opacity: 0; } }
.clavi.is-in.is-hyper:not(.is-peek) .clavi__body { animation: cvJump 2.6s cubic-bezier(0.5, 0, 0.3, 1) both; }
.clavi.is-hyper::before { opacity: 0; }
@keyframes cvJump { 0% { transform: none; } 22% { transform: scale(1.06); } 34% { transform: scale(0.05, 1.6); opacity: 0.9; } 38%, 70% { transform: scale(0); opacity: 0; } 82% { transform: scale(1.25); opacity: 1; } 92% { transform: scale(0.95); } 100% { transform: none; } }

/* 4 · el quinto elemento */
.cstone { margin: -11px 0 0 -26px; width: 52px; padding: 5px 0; border-radius: 8px; text-align: center; font: 800 8.5px/1 var(--f-text); letter-spacing: 0.08em; color: #141830;
  background: linear-gradient(160deg, #F4E9D8, #D9C3A0); border: 1px solid #B89A6A; box-shadow: 0 4px 10px -4px rgba(20, 24, 48, 0.45); animation: cvStone 3.4s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes cvStone { 0% { transform: translate(var(--fx), var(--fy)) rotate(-60deg); opacity: 0; } 22% { transform: none; opacity: 1; } 34% { transform: none; opacity: 1; box-shadow: 0 0 0 2px #F7A44A, 0 0 18px #F7A44A; } 82% { transform: none; opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
.cbeam { width: 18px; transform-origin: 50% 100%; border-radius: 9px 9px 0 0; background: linear-gradient(90deg, rgba(239, 69, 54, 0), rgba(239, 69, 54, 0.55) 25%, #FFF6E8 45%, #FFFFFF 50%, #FFF6E8 55%, rgba(247, 164, 74, 0.55) 75%, rgba(247, 164, 74, 0));
  filter: drop-shadow(0 0 10px rgba(247, 164, 74, 0.9)); animation: cvBeam 3.4s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes cvBeam { 0%, 34% { transform: scaleY(0); opacity: 0; } 46% { transform: scaleY(1); opacity: 1; } 52% { transform: scaleX(1.8); } 60%, 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(0.1); opacity: 0; } }
.clavi.is-in.is-fifth:not(.is-peek) .clavi__body { animation: cvLevitate 3.4s ease-in-out both; }
@keyframes cvLevitate { 0%, 100% { transform: none; } 40%, 78% { transform: translateY(-16px); filter: drop-shadow(0 0 12px rgba(247, 164, 74, 0.9)); } }

/* 5 · mensaje holográfico */
.ccone { clip-path: polygon(0 0, 100% 0, 58% 100%, 42% 100%); background: linear-gradient(to top, rgba(31, 164, 230, 0.4), rgba(31, 164, 230, 0.06)); animation: cvHolo 3.8s ease both; }
.cholo { box-sizing: border-box; border: 1px solid rgba(31, 164, 230, 0.85); border-radius: 6px; padding: 8px 10px; display: grid; grid-template-rows: auto 1fr; gap: 6px;
  background: repeating-linear-gradient(0deg, rgba(31, 164, 230, 0.16) 0 2px, rgba(31, 164, 230, 0.05) 2px 4px); box-shadow: 0 0 14px rgba(31, 164, 230, 0.45);
  animation: cvHolo 3.8s ease both, cvHoloF 0.9s steps(1) infinite; }
.cholo__t { font: 800 10px/1 var(--f-text); letter-spacing: 0.14em; color: #1287C2; }
.cholo__t::after { content: " \25B2"; color: #1E9E5A; }
.cholo__b { display: flex; align-items: flex-end; gap: 6px; }
.cholo__b i { flex: 1; height: calc(var(--h) * 100%); background: linear-gradient(to top, rgba(31, 164, 230, 0.35), rgba(31, 164, 230, 0.85)); border-radius: 2px 2px 0 0; transform-origin: 50% 100%; animation: cvBar 3.8s ease both; }
.cholo__l { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: rgba(150, 225, 255, 0.9); animation: cvScan 1.2s linear infinite; }
@keyframes cvHolo { 0% { opacity: 0; transform: scaleY(0.1); } 10% { opacity: 1; transform: none; } 14% { opacity: 0.4; transform: none; } 16%, 88% { opacity: 1; transform: none; } 92% { opacity: 0.3; transform: none; } 100% { opacity: 0; transform: scaleX(0.05); } }
@keyframes cvHoloF { 0%, 100% { filter: none; } 47% { filter: brightness(1.5) hue-rotate(-10deg); } 50% { filter: none; } }
@keyframes cvBar { 0%, 12% { transform: scaleY(0); } 40% { transform: scaleY(1); } }
@keyframes cvScan { to { top: 100%; } }
.clavi.is-in.is-holo:not(.is-peek) .clavi__body { animation: cvTilt 3.8s ease-in-out both; }
@keyframes cvTilt { 0%, 100% { transform: none; } 15%, 85% { transform: rotate(-6deg) translateY(-3px); } }

/* ---------- Patineta voladora: sin ruedas, flota sobre dos propulsores que brillan ---------- */
.clavi__skate { bottom: -12px; height: 24px; }
.clavi__skate b { top: 0; height: 7px; border-radius: 12px 12px 6px 6px; box-shadow: 0 2px 0 #141830, 0 0 0 1px rgba(20, 24, 48, 0.15); }
.clavi__skate b::after { content: ""; position: absolute; left: 18%; right: 18%; top: 2px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); }
.clavi__skate i { bottom: auto; top: 9px; width: 16px; height: 4px; border: 0; border-radius: 4px; background: #FFF1E0;
  box-shadow: 0 0 6px 2px rgba(247, 164, 74, 0.95), 0 5px 12px 3px rgba(239, 69, 54, 0.45); }
.clavi__skate i:nth-of-type(1) { left: 10px; } .clavi__skate i:nth-of-type(2) { right: 10px; }
.clavi__skate::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 6px; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 164, 74, 0.55), transparent); }
.clavi__skate::before { content: ""; position: absolute; right: calc(100% + 2px); top: 1px; width: 22px; height: 9px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(247, 164, 74, 0.7)) 0 0 / 100% 2px no-repeat, linear-gradient(90deg, transparent, rgba(247, 164, 74, 0.5)) 6px 6px / 70% 2px no-repeat; }
.clavi.is-skate .clavi__skate { animation: cvHover 0.5s ease-in-out infinite alternate; }
.clavi.is-skate .clavi__skate i { animation: cvThrust 0.16s ease-in-out infinite alternate; }
.clavi.is-skate .clavi__skate::before { opacity: 1; animation: cvWhoosh 0.32s linear infinite; }
.clavi.is-skate .clavi__skate::after { animation: cvGlowG 0.5s ease-in-out infinite alternate; }
.clavi.is-in.is-skate:not(.is-peek) .clavi__body { animation: cvHoverBody 0.5s ease-in-out infinite alternate; }
@keyframes cvHover { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes cvHoverBody { from { transform: translateY(-13px) rotate(-4deg); } to { transform: translateY(-16px) rotate(-2deg); } }
@keyframes cvThrust { from { opacity: 0.75; transform: scaleX(0.9); } to { opacity: 1; transform: scaleX(1.08); } }
@keyframes cvWhoosh { from { transform: translateX(6px); opacity: 1; } to { transform: translateX(-8px); opacity: 0; } }
@keyframes cvGlowG { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(0.82); opacity: 0.7; } }

/* Clavi se mete por la rajadura: vuela hacia el centro, se achica y gira hasta desaparecer; después vuelve a su lugar */
.clavi.is-dive, .clavi.is-back { pointer-events: none; }
.clavi.is-dive::before, .clavi.is-dive .clavi__fx, .clavi.is-dive .clavi__hide { opacity: 0; transition: opacity 0.2s; }
.clavi.is-in.is-dive:not(.is-peek) .clavi__body { animation: cvDive 0.7s cubic-bezier(0.55, 0, 0.75, 0.4) forwards; }
.clavi.is-in.is-back:not(.is-peek) .clavi__body { animation: cvBack 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
@keyframes cvDive { 0% { transform: none; opacity: 1; } 25% { transform: translate(calc(var(--dvx) * 0.15), calc(var(--dvy) * 0.15 - 14px)) scale(1.08) rotate(-8deg); opacity: 1; }
  100% { transform: translate(var(--dvx), var(--dvy)) scale(0.05) rotate(220deg); opacity: 0; } }
@keyframes cvBack { 0% { transform: scale(0) rotate(-120deg); opacity: 0; filter: drop-shadow(0 0 14px #2BE37A); } 60% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 10px #2BE37A); } 100% { transform: none; opacity: 1; filter: none; } }
html .clavi.is-dive::before { animation: none !important; opacity: 0; }
/* globo del hero colgado debajo del punto que señala: la colita va arriba */
.gen-say.is-below::after { bottom: auto; top: -6px; }
@media (max-width: 860px) { .gen-say__dots { margin-top: 3px; } }

/* ---------- Lo que hacemos: cada bloque con su tono pastel ----------
   Datos en bruma azul (del navy), Puente en lila niebla (entre el navy y el rojo), IA en durazno (del degradado de marca). */
:root { --tint-datos: #EEF2FB; --tint-datos-l: #DCE3F4; --tint-puente: #F4F1F8; --tint-puente-l: #E5DFEF; --tint-ia: #FFF3EB; --tint-ia-l: #F8DDCB; }
:root[data-theme="dark"] { --tint-datos: rgba(126, 146, 222, 0.09); --tint-datos-l: rgba(126, 146, 222, 0.22); --tint-puente: rgba(176, 150, 222, 0.08); --tint-puente-l: rgba(176, 150, 222, 0.2); --tint-ia: rgba(247, 164, 74, 0.08); --tint-ia-l: rgba(247, 164, 74, 0.22); }
.grp { --tint: var(--tint-datos); --tint-l: var(--tint-datos-l); padding: clamp(20px, 2.6vw, 40px) clamp(18px, 3vw, 44px) clamp(8px, 1vw, 14px); border-radius: clamp(18px, 2vw, 28px); background: var(--tint); border: 1px solid var(--tint-l); }
.grp--puente { --tint: var(--tint-puente); --tint-l: var(--tint-puente-l); }
.grp--ia { --tint: var(--tint-ia); --tint-l: var(--tint-ia-l); }
.grp + .grp { margin-top: var(--s5); }
.grp .svc > li { border-top-color: var(--tint-l); }
.grp .svc > li:last-child { border-bottom: 0; }
.grp .how summary, .grp details.how { background: transparent; }
html.a11y-contrast .grp { background: transparent; border: 2px solid currentColor; }

/* ---------- Modo esencial: firma con los colores de marca y alcance visible del buscador ---------- */
.ess__logo.ess__wm { display: inline-grid; gap: 6px; color: #141830; font-size: 1rem; }
:root[data-theme="dark"] .ess__logo.ess__wm { color: #F3F4FA; }
.ess__wm .wm__c { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); }
.ess__wm .wm__a { font-size: clamp(0.72rem, 0.6rem + 0.4vw, 0.95rem); color: var(--accent-ink); }
:root[data-theme="dark"] .ess__wm .wm__a { color: #F7A44A; }
.ess__wm::after { content: ""; height: 3px; border-radius: 3px; background: var(--grad); margin-top: 4px; transform-origin: 0 50%; }
@media (prefers-reduced-motion: no-preference) { html:not(.a11y-calm).esencial .ess__wm::after { animation: essHem 900ms var(--ease) 200ms both; } }
@keyframes essHem { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ess__how { max-width: 33rem; font-size: 0.86rem; }
.ess__how b { font-weight: 600; color: var(--ink); }
.ess__scope { position: absolute; z-index: 1; left: 10px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--tint-datos, #EEF2FB); color: #141830; font: 600 0.78rem var(--f-text); white-space: nowrap; pointer-events: none; }
:root[data-theme="dark"] .ess__scope { color: #F3F4FA; }
.ess__scope i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.ess__field input { padding-left: 9.4rem; }
.ess__ghost { left: 9.45rem; max-width: calc(100% - 13rem); }
@media (max-width: 560px) {
  .ess__scope { height: 30px; padding: 0 9px 0 8px; font-size: 0.72rem; } .ess__scope-l::before { content: ""; }
  .ess__field input { padding-left: 8.2rem; } .ess__ghost { left: 8.25rem; max-width: calc(100% - 9rem); }
}

/* modo esencial: dónde buscar (este sitio o internet con Google) */
.ess__mode { display: inline-flex; gap: 4px; padding: 4px; margin: -6px 0 -10px; border-radius: 999px; background: #F2F3F8; border: 1px solid var(--line); }
:root[data-theme="dark"] .ess__mode { background: rgba(243, 244, 250, 0.06); }
.ess__mode button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 600 0.82rem var(--f-text); color: var(--ink-soft); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.ess__mode button small { font-weight: 400; color: inherit; opacity: 0.8; }
.ess__mode button i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.ess__mode svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ess__mode button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 24, 48, 0.18); }
.ess__mode button:hover { color: var(--ink); }
.ess__mode button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ess.is-web .ess__scope { background: #E8F3FC; }
.ess.is-web .ess__scope i { background: #1A73E8; }
.ess.is-web .ess__list a .ess__where { color: #1A5DB8; }
@media (max-width: 560px) { .ess__mode button { padding: 0 10px; font-size: 0.76rem; } .ess__mode button small { display: none; } }

/* Clavi llega en el inicio: dos saltos, un giro y un halo de marca que llama la atención */
@media (prefers-reduced-motion: no-preference) {
  html:not(.a11y-calm) .clavi.is-in.is-arrive:not(.is-peek) .clavi__body { animation: claviArrive 1.6s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
  html:not(.a11y-calm) .clavi.is-arrive .clavi__body img { animation: claviHalo 1.2s ease-out 0.35s 2; }
}
@keyframes claviArrive { 0% { transform: translateY(40px) scale(0.6) rotate(-20deg); } 30% { transform: translateY(-22px) scale(1.08) rotate(8deg); } 45% { transform: translateY(0) scale(1.05, 0.92); }
  62% { transform: translateY(-12px) rotate(-6deg); } 78% { transform: translateY(0) scale(1.03, 0.96); } 100% { transform: none; } }
@keyframes claviHalo { 0% { filter: drop-shadow(0 0 0 rgba(247, 164, 74, 0.9)); } 50% { filter: drop-shadow(0 0 14px rgba(247, 164, 74, 0.85)) drop-shadow(0 0 4px rgba(239, 69, 54, 0.6)); } 100% { filter: drop-shadow(0 6px 8px rgba(20, 24, 48, 0.22)); } }

/* páginas legales: Clavi queda quieto, solo como asistente */
.clavi--calm .clavi__body, .clavi--calm.is-hop .clavi__body, .clavi--calm::before { animation: none !important; }
.clavi--calm .clavi__body img { transition: none; }
.clavi--calm .clavi__body:hover img { transform: none; }

/* v4-C · pasos "Cómo sigue" y casillas de fuentes (de B) */
.c-next{margin-top:28px}
.c-steps{list-style:none;margin:10px 0 0;padding:0;counter-reset:s;display:grid;gap:14px}
.c-steps li{counter-increment:s;display:grid;gap:2px;padding-left:44px;position:relative}
.c-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font:700 13px var(--f-head,system-ui);background:linear-gradient(90deg,#EE4336,#F57E3B 50%,#FAAC40);color:#fff}
.c-steps b{font-weight:600}
.c-steps span{font-size:.92rem;opacity:.8}
.c-fuentes{border:1px solid rgba(20,24,48,.14);border-radius:14px;padding:12px 14px;margin:0 0 4px}
.c-fuentes legend{font-size:.9rem;font-weight:600;padding:0 6px}
.c-opts{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.c-opt{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;padding:6px 10px;border:1px solid rgba(20,24,48,.14);border-radius:999px;cursor:pointer}
.c-opt input{accent-color:#F57E3B}

/* v4-C · Lo que hacemos (portada): tres bloques en horizontal y compactos, para verlos sin desplazar */
@media (min-width: 961px){
  #servicios{padding-block:clamp(28px,5vh,56px)}
  #servicios .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.4vw,20px);align-items:stretch}
  #servicios .band__head{grid-column:1/-1;margin-bottom:0}
  #servicios .band__head h2{font-size:clamp(1.6rem,1.2rem + 1.4vw,2.3rem)}
  #servicios .band__head .lead{margin-top:4px;font-size:.95rem}
  #servicios .grp{margin:0!important;padding:clamp(12px,1.4vw,18px) clamp(12px,1.4vw,18px) 8px;border-radius:18px;display:flex;flex-direction:column}
  #servicios .grp__head{padding-bottom:6px;gap:10px}
  #servicios .grp__h{font-size:1.02rem}
  #servicios .grp__head p{font-size:.8rem;line-height:1.4}
  #servicios .svc{display:flex;flex-direction:column}
  #servicios .svc>li{grid-template-columns:1fr;gap:6px;padding-block:12px}
  #servicios .svc__pain{font-size:.8rem;line-height:1.35}
  #servicios .svc__pain .label{margin-bottom:2px}
  #servicios .svc__h{font-size:1rem}
  #servicios .svc__body{gap:6px}
  #servicios .svc__body>p{font-size:.84rem;line-height:1.45}
  #servicios .how summary{font-size:.8rem;padding:4px 0}
  #servicios .how__list dt,#servicios .how__list dd{font-size:.8rem;line-height:1.4}
  #servicios .how__note{font-size:.78rem}
}

/* v4-C · El Enfoque: el mismo dato en tres estados */
.dtr{display:grid;gap:clamp(14px,1.8vw,22px)}
.dtr__tabs{display:flex;gap:8px;flex-wrap:wrap}
.dtr__tabs button{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:10px;padding:8px 16px 8px 8px;border-radius:999px;border:1px solid rgba(243,244,250,.24);color:#F3F4FA;font:600 .9rem var(--f-body)}
.dtr__tabs i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font:700 .78rem var(--f-head);font-style:normal;background:rgba(243,244,250,.14)}
.dtr__tabs button[aria-selected=true]{background:linear-gradient(90deg,#EE4336,#F57E3B 50%,#FAAC40);border-color:transparent;color:#141830}
.dtr__tabs button[aria-selected=true] i{background:rgba(20,24,48,.2)}
.dtr__tabs button:focus-visible{outline:2px solid #F7A44A;outline-offset:2px}
.dtr__grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:clamp(12px,1.6vw,20px);align-items:stretch}
.dtr__table{border-radius:18px;background:rgba(243,244,250,.05);border:1px solid rgba(243,244,250,.14);overflow:hidden}
.dtr__row{display:grid;grid-template-columns:1fr 1.1fr 1.5fr;gap:12px;align-items:center;padding:12px 18px;border-top:1px solid rgba(243,244,250,.1);color:#F3F4FA;font-size:.85rem;line-height:1.4}
.dtr__row:first-of-type{border-top:0}
.dtr__row--h{padding-block:8px;font:700 .66rem var(--f-body);letter-spacing:.12em;text-transform:uppercase;color:rgba(243,244,250,.6);border-top:0}
.dtr__row>b{font-weight:600;font-size:.95rem}
.dtr__v{display:none}
.dtr[data-stage="0"] .dtr__v[data-v="0"],.dtr[data-stage="1"] .dtr__v[data-v="1"],.dtr[data-stage="2"] .dtr__v[data-v="2"]{display:inline}
.dtr__fd{display:block;color:rgba(243,244,250,.78)}
.dtr__chip{display:inline-block;padding:4px 10px;border-radius:999px;font-weight:600;transition:background .45s ease,color .45s ease}
.dtr[data-stage="0"] .dtr__chip{background:rgba(238,67,54,.2);color:#FFB4AC}
.dtr[data-stage="1"] .dtr__chip{background:rgba(243,244,250,.12);color:#F3F4FA}
.dtr[data-stage="2"] .dtr__chip{background:linear-gradient(90deg,#EE4336,#F57E3B 50%,#FAAC40);color:#141830}
.dtr__note{padding:10px 18px 12px;font-size:.75rem;color:rgba(243,244,250,.55);border-top:1px solid rgba(243,244,250,.1)}
.dtr__side{display:grid;align-content:center;gap:12px;padding:20px 22px;border-radius:18px;background:rgba(243,244,250,.05);border:1px solid rgba(243,244,250,.14);color:#F3F4FA}
.dtr__side h3{font-size:1.1rem;font-weight:800;line-height:1.25}
.dtr__side p{font-size:.9rem;line-height:1.5;color:rgba(243,244,250,.8)}
.dtr__side .label{color:#F7A44A}
.dtr__cap{display:none;gap:8px}
.dtr[data-stage="0"] .dtr__cap[data-v="0"],.dtr[data-stage="1"] .dtr__cap[data-v="1"],.dtr[data-stage="2"] .dtr__cap[data-v="2"]{display:grid}
.dtr__res{padding-top:12px;border-top:1px solid rgba(243,244,250,.14);font-weight:600}
.dtr__res .dtr__v{font-weight:600;color:#F3F4FA}
@media (max-width:820px){
  .dtr__grid{grid-template-columns:minmax(0,1fr)}
  .dtr__row--h{display:none}
  .dtr__row{grid-template-columns:minmax(0,1fr);gap:6px;padding:12px 16px}
}

/* v4-C · Recursos (Archivo CLAVE) */
.rec-h1{font-size:clamp(2.2rem,1.4rem + 3vw,4rem);line-height:1.05}
.rec-h1 em{font-style:normal;background:linear-gradient(90deg,#EE4336,#F57E3B 50%,#FAAC40);-webkit-background-clip:text;background-clip:text;color:transparent}
.rec-stamp{display:inline-block;margin-top:14px;font:700 .7rem var(--f-body);letter-spacing:.18em;text-transform:uppercase;padding:6px 12px;border:1px solid currentColor;border-radius:4px;opacity:.7;transform:rotate(-2deg)}
.rec-pill{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;padding:clamp(22px,3vw,36px);border-radius:22px;background:#141830;color:#F3F4FA;position:relative;overflow:hidden}
.rec-pill::before{content:"";position:absolute;right:-10%;bottom:-60%;width:60%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(247,164,74,.35),transparent 70%)}
.rec-pill>*{position:relative}
.rec-pill__t{font-size:clamp(1.4rem,1rem + 1.2vw,2rem);font-weight:800;margin:10px 0 6px}
.rec-pill__p{color:rgba(243,244,250,.85);max-width:40rem}
.rec-pill__meta{display:grid;gap:10px;justify-items:end;font-size:.85rem;color:rgba(243,244,250,.7)}
.rec-tag{display:inline-block;font:700 .68rem var(--f-body);letter-spacing:.12em;text-transform:uppercase;padding:4px 10px;border-radius:999px;background:rgba(243,244,250,.12)}
.rec-tag--pildora{background:#F7A44A;color:#141830}
.rec-tag--guia{background:#141830;color:#F3F4FA}
.rec-tag--herramienta{background:#EDEEF4;color:#141830;border:1px solid rgba(20,24,48,.15)}
.rec-tag--diversion{background:linear-gradient(90deg,#EE4336,#FAAC40);color:#141830}
.rec-save{all:unset;cursor:pointer;font:600 .8rem var(--f-body);padding:8px 14px;border-radius:999px;border:1px solid currentColor;justify-self:start}
.rec-save[aria-pressed=true]{background:#F7A44A;color:#141830;border-color:transparent}
.rec-save:focus-visible,.rec-filters button:focus-visible,.rec-quiz input:focus-visible{outline:2px solid #F57E3B;outline-offset:2px}
.rec-bar{margin:clamp(22px,3vw,36px) 0 18px}
.rec-filters{display:flex;flex-wrap:wrap;gap:8px}
.rec-filters button{all:unset;cursor:pointer;padding:8px 16px;border-radius:999px;border:1px solid rgba(20,24,48,.18);font:600 .88rem var(--f-body);color:#141830}
.rec-filters button[aria-pressed=true]{background:#141830;color:#F3F4FA;border-color:transparent}
.rec-filters b{margin-left:6px;padding:0 7px;border-radius:999px;background:rgba(247,164,74,.3);font-size:.78rem}
.rec-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.rec-card{grid-column:span 4;display:grid;gap:10px;align-content:start;padding:22px;border-radius:20px;background:#fff;border:1px solid rgba(20,24,48,.1);transition:transform .3s ease,box-shadow .3s ease}
.rec-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(20,24,48,.1)}
.rec-card--wide{grid-column:span 8}
.rec-card[hidden]{display:none}
.rec-card h3{font-size:1.12rem;font-weight:800;line-height:1.25}
.rec-card__top{display:flex;justify-content:space-between;align-items:center}
.rec-no{font:700 .72rem var(--f-body);letter-spacing:.14em;color:#6A7090}
.rec-card__lead{color:#4E5470;font-size:.93rem}
.rec-card__meta{font-size:.8rem;color:#6A7090}
.rec-card details{font-size:.9rem;color:#2A3050}
.rec-card summary{cursor:pointer;font-weight:600;color:#B92D1B}
.rec-card ol{padding-left:1.2rem;display:grid;gap:4px;margin-top:8px}
.rec-quiz-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:clamp(20px,4vw,56px);align-items:start}
.rec-quiz{display:grid;gap:14px;padding:clamp(20px,2.4vw,30px);border-radius:22px;background:#fff;border:1px solid rgba(20,24,48,.1)}
.rec-quiz fieldset{border:0;margin:0;padding:0;display:grid;gap:8px}
.rec-quiz legend{font-weight:700;margin-bottom:6px}
.rec-opt{display:inline-flex;align-items:center;gap:6px;margin-right:12px;font-size:.92rem;cursor:pointer}
.rec-quiz input{accent-color:#F57E3B}
.rec-quiz button[type=submit]{justify-self:start}
.rec-res{font-weight:600;padding:12px 14px;border-radius:14px;background:#EDEEF4}
.rec-res:empty{display:none}
.rec-cta{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:960px){.rec-card,.rec-card--wide{grid-column:span 6}.rec-quiz-wrap{grid-template-columns:1fr}}
@media (max-width:620px){.rec-card,.rec-card--wide{grid-column:span 12}.rec-pill{flex-direction:column;align-items:flex-start}.rec-pill__meta{justify-items:start}}
