/* The Security Mode — sitio.
   Colores, espacios y radios: tokens.css (Design System). Tipografías: fonts.css.
   Las secciones cambian de tema con data-theme="dark" | "light". */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  --block-pad: clamp(48px, 5.5vw, 80px);
  scroll-padding-top: calc(90px - var(--block-pad));
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

[data-theme] { background: var(--surface); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--coral-500);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ---------------- Type ---------------- */

.title-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 62ch;
  text-wrap: pretty;
}
.lead a, .cap__body a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 26px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--primary { background: var(--coral-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--cream-100); color: var(--navy-900); }
.btn--primary:active { transform: translateY(1px); }
.btn--sm { padding: 10px 16px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 23, 38, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(90, 103, 130, 0.45); background: rgba(14, 23, 38, 0.92); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 28px; }
.nav__list a { color: var(--mist-300); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s ease; }
.nav__list a:hover { color: var(--cream-100); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--steel-400);
  border-radius: var(--radius-sm);
  color: var(--cream-100);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, var(--plum-700) 0%, rgba(58, 34, 48, 0) 52%),
    var(--navy-900);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: 48px;
  flex: 1;
}
.hero__copy { display: flex; flex-direction: column; gap: 32px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 7.4vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--cream-100);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; white-space: nowrap; }
.hero__lead { font-size: 21px; line-height: 1.5; color: var(--mist-300); max-width: 34em; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__note { font-size: 15px; color: var(--steel-400); }

.hero__art { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(20px, 3vh, 36px); }
.lock {
  position: relative;
  width: min(100%, 340px, 42svh);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.lock::before {
  content: "";
  position: absolute;
  inset: 18% -10% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 74, 0.38), rgba(255, 107, 74, 0));
  opacity: 0;
  pointer-events: none;
}
.lock__svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.lock__shackle path { fill: none; stroke: url(#metal-shackle); stroke-width: 40; }
.lock__body { fill: url(#metal-body); }
.lock__sheen { transform: translateX(-160px) skewX(-18deg); }
.lock__bar { fill: var(--navy-900); }

.hero__motto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--cream-100);
  text-align: center;
}
.hero__motto-a { color: var(--coral-500); }

/* Hero entrance — one orchestrated sequence */
.js .hero__title .line > span { transform: translateY(110%); }
.js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(10px); }
.js .hero__motto li { opacity: 0; filter: blur(6px); }
.js .hero__motto li:nth-child(1) { transform: translateX(-70px); }
.js .hero__motto li:nth-child(2) { transform: translateX(70px); }
.js .hero__motto li:nth-child(3) { transform: translateY(46px); }
.js .lock__body { opacity: 0; transform: scale(.94); transform-origin: 160px 280px; }
.js .lock__bar { transform: translateX(230px); }
.js .lock__shackle { transform: translateY(-70px); }

.is-ready .hero__title .line > span { animation: rise .9s cubic-bezier(.16, 1, .3, 1) forwards; }
.is-ready .hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.is-ready .hero__title .line:nth-child(3) > span { animation-delay: .16s; }
.is-ready .hero__lead { animation: fade-up .8s cubic-bezier(.16, 1, .3, 1) .45s forwards; }
.is-ready .hero__actions { animation: fade-up .8s cubic-bezier(.16, 1, .3, 1) .55s forwards; }
.is-ready .lock__body { animation: body-in .6s cubic-bezier(.16, 1, .3, 1) .25s forwards; }
.is-ready .lock__bar { animation: bar-in .6s cubic-bezier(.16, 1, .3, 1) forwards; }
.is-ready .lock__bar:nth-child(1) { animation-delay: .55s; }
.is-ready .lock__bar:nth-child(2) { animation-delay: .67s; }
.is-ready .lock__bar:nth-child(3) { animation-delay: .79s; }
.is-ready .lock__bar:nth-child(4) { animation-delay: .91s; }
.is-ready .lock__shackle { animation: snap .5s cubic-bezier(.5, 0, .75, 0) 1.35s forwards; }
.is-ready .lock::before { animation: pulse 1.4s ease-out 1.8s forwards; }
.is-ready .hero__motto li { animation: motto-in .8s cubic-bezier(.16, 1, .3, 1) forwards; }
.is-ready .hero__motto li:nth-child(1) { animation-delay: 2.0s; }
.is-ready .hero__motto li:nth-child(2) { animation-delay: 2.7s; }
.is-ready .hero__motto li:nth-child(3) { animation-delay: 3.4s; }
.is-ready .lock__sheen { animation: sheen 6.5s ease-in-out 2.2s infinite; }

@keyframes motto-in { to { opacity: 1; transform: translate(0, 0); filter: blur(0); } }
@keyframes sheen { 0% { transform: translateX(-160px) skewX(-18deg); } 24%, 100% { transform: translateX(400px) skewX(-18deg); } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
@keyframes body-in { to { opacity: 1; transform: scale(1); } }
@keyframes bar-in { to { transform: translateX(0); } }
@keyframes snap { 0% { transform: translateY(-70px); } 80% { transform: translateY(4px); } 100% { transform: translateY(0); } }
@keyframes pulse { 0% { opacity: 0; transform: scale(.85); } 30% { opacity: 1; } 100% { opacity: .35; transform: scale(1.05); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- Blocks ---------------- */

.block { padding: var(--block-pad) 0; }
.block__head { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin-bottom: clamp(28px, 3.2vw, 44px); }
.model__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}

/* ---------------- Punta a punta: chain ---------------- */

.span { border-top: 1px solid rgba(90, 103, 130, 0.35); }
.chain {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: 20px;
}
.chain__group {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--cream-100);
}
.chain__group::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  border: 2px solid var(--steel-400);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.chain__group--dir { grid-column: 1 / 6; }
.chain__group--ops { grid-column: 6 / 10; }
.chain__group--ops::after { border-color: var(--coral-500); }
.chain__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: 20px; position: relative; }
.chain__list::before,
.chain__list::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
}
.chain__list::before { background: rgba(135, 147, 168, 0.35); }
.chain__list::after { background: var(--coral-500); transform-origin: left; }
.js .chain:not(.is-visible) .chain__list::after { transform: scaleX(0); }
.chain.is-visible .chain__list::after { transition: transform 1.8s cubic-bezier(.65, 0, .35, 1) .1s; }
.chain__node { position: relative; padding-top: 36px; }
.chain__node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--coral-500);
  transition: background-color .3s ease;
}
.js .chain:not(.is-visible) .chain__node::before { border-color: var(--steel-400); }
.chain.is-visible .chain__node::before { background: var(--coral-500); }
.chain__node:nth-child(1)::before { transition-delay: .1s; }
.chain__node:nth-child(2)::before { transition-delay: .3s; }
.chain__node:nth-child(3)::before { transition-delay: .5s; }
.chain__node:nth-child(4)::before { transition-delay: .7s; }
.chain__node:nth-child(5)::before { transition-delay: .9s; }
.chain__node:nth-child(6)::before { transition-delay: 1.1s; }
.chain__node:nth-child(7)::before { transition-delay: 1.3s; }
.chain__node:nth-child(8)::before { transition-delay: 1.5s; }
.chain__node:nth-child(9)::before { transition-delay: 1.7s; }
/* En escritorio el último eslabón cierra a la derecha, a ras del extremo de la barra superior */
@media (min-width: 961px) {
  .chain__node:nth-child(9) { text-align: right; }
  .chain__node:nth-child(9)::before { left: auto; right: 0; }
}
.chain__node h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--cream-100);
  margin-bottom: 8px;
}
.chain__node p { font-size: 15px; line-height: 1.5; color: var(--mist-300); }
.chain__loop {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed rgba(135, 147, 168, 0.4);
  font-size: 16px;
  color: var(--steel-400);
}

/* ---------------- Situations picker ---------------- */

.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.picker__list { position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.picker__tab {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 0 18px 28px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--slate-600);
  transition: color .2s ease;
}
.picker__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: var(--sand-300);
  transition: background-color .25s ease, width .25s ease;
}
.picker__tab:hover, .picker__tab[aria-selected="true"] { color: var(--navy-900); }
.picker__tab[aria-selected="true"]::before { background: var(--coral-700); width: 18px; }

.picker__panels { position: sticky; top: 104px; }
.picker__panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
  padding: 36px;
  background: var(--navy-900);
  color: var(--cream-100);
  border-radius: var(--radius-lg);
}
.picker__panel[hidden] { display: none; }
.picker__panel.is-entering { animation: panel-in .45s cubic-bezier(.16, 1, .3, 1); }
.picker__panel { transition: opacity .22s ease, transform .22s ease; }
.picker__panel.is-leaving { opacity: 0; transform: translateY(6px); }
.panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--cream-100);
}
.picker__panel p { color: var(--mist-300); font-size: 18px; }
.panel__fit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 24px; }
.picker__panel .panel__fit-label { font-size: 14px; color: var(--steel-400); margin-right: 4px; }
.panel__fit a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--coral-500);
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease;
}
.panel__fit a:hover { background: var(--cream-100); }

/* ---------------- Services ---------------- */

.vciso {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: clamp(28px, 3vw, 44px);
  margin-bottom: 48px;
  background: var(--cream-100);
  color: var(--navy-900);
  border-radius: var(--radius-lg);
  scroll-margin-top: 96px;
}
.vciso__intro { display: flex; flex-direction: column; gap: 14px; }
.vciso__kicker { font-size: 15px; font-weight: 600; color: var(--coral-700); }
.vciso__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 4.6vw, 64px);
  line-height: .95;
  letter-spacing: -0.045em;
}
.vciso__lead { font-size: 18px; line-height: 1.5; color: var(--navy-900); }
.vciso__note { font-size: 15px; color: var(--slate-600); padding-top: 18px; border-top: 1px solid var(--sand-300); margin-top: auto; }
.vciso__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-content: start; }
.vciso__grid > div { padding: 14px 0; border-top: 2px solid var(--navy-900); }
.vciso__grid dt { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.vciso__grid dd { font-size: 16px; color: var(--slate-600); }

.caps__list { border-top: 1px solid var(--border-strong); }
.cap { border-bottom: 1px solid var(--border); scroll-margin-top: 96px; }
.cap summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.cap summary::-webkit-details-marker { display: none; }
.cap__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color .2s ease;
}
.cap summary:hover .cap__title { color: var(--accent); }
.cap__icon {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  transition: background-color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
}
.cap__icon::before, .cap__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: var(--ink);
}
.cap__icon::after { transform: rotate(90deg); }
.cap[open] .cap__icon { transform: rotate(45deg); background: var(--accent-fill); border-color: var(--accent-fill); }
.cap[open] .cap__icon::before, .cap[open] .cap__icon::after { background: var(--on-accent); }
.cap::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .45s cubic-bezier(.16, 1, .3, 1), content-visibility .45s allow-discrete;
}
.cap[open]::details-content { block-size: auto; }
.cap__body { display: flex; flex-direction: column; gap: 14px; max-width: 820px; padding: 0 60px 30px 0; }
.cap__body p { font-size: 17px; color: var(--ink-muted); }
.cap__points { display: flex; flex-direction: column; gap: 8px; }
.cap__points li { position: relative; padding-left: 28px; font-size: 16px; color: var(--ink); }
.cap__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 5px;
  border-radius: 3px;
  background: var(--accent);
}

/* ---------------- Model ---------------- */

.model__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}
.model__intro .block__head { margin-bottom: 0; }
.model__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--coral-700); }
.figures { display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--navy-900); }
.figures > div { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--sand-300); }
.figures dt {
  min-width: 2.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}
.figures dd { font-size: 17px; color: var(--slate-600); }

.traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 48px; }
.traits h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  padding-top: 16px;
  border-top: 3px solid var(--coral-700);
}
.traits p { font-size: 16px; color: var(--slate-600); }

.levels {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 56px;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  margin-bottom: 96px;
}
.levels__bars { display: flex; flex-direction: column; gap: 14px; }
.level {
  position: relative;
  display: block;
  width: 100%;
  height: 64px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.level[data-level="1"] { --w: 40%; }
.level[data-level="2"] { --w: 60%; }
.level[data-level="3"] { --w: 80%; }
.level[data-level="4"] { --w: 100%; }
.level::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 32px;
  background: var(--cream-100);
  transition: background-color .25s ease, width .9s cubic-bezier(.16, 1, .3, 1);
}
.js .levels:not(.is-visible) .level::before { width: 64px; }
.levels.is-visible .level[data-level="2"]::before { transition-delay: 0s, .1s; }
.levels.is-visible .level[data-level="3"]::before { transition-delay: 0s, .2s; }
.levels.is-visible .level[data-level="4"]::before { transition-delay: 0s, .3s; }
.level:hover::before { background: #ffffff; }
.level[aria-checked="true"]::before { background: var(--coral-500); }
.level:focus-visible { outline-offset: 4px; border-radius: 32px; }
.level__n, .level__name { position: relative; font-family: var(--font-display); font-weight: 700; color: var(--navy-900); }
.level__n { display: inline-block; width: 64px; text-align: center; font-size: 22px; line-height: 64px; }
.level__name { font-size: 20px; letter-spacing: -0.01em; transition: opacity .4s ease .5s; }
.js .levels:not(.is-visible) .level__name { opacity: 0; }
.levels__detail { display: flex; flex-direction: column; gap: 12px; color: var(--cream-100); }
.levels__label { font-size: 15px; font-weight: 600; color: var(--coral-500); }
.levels__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.levels__text { font-size: 18px; color: var(--mist-300); }
.levels__rule { margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(135, 147, 168, 0.35); font-size: 15px; color: var(--steel-400); }
.levels__detail .levels__label, .levels__detail .levels__title, .levels__detail .levels__text { transition: opacity .22s ease, transform .22s ease; }
.levels__detail.is-leaving .levels__label,
.levels__detail.is-leaving .levels__title,
.levels__detail.is-leaving .levels__text { opacity: 0; transform: translateY(6px); }
.levels__detail.is-changing .levels__title,
.levels__detail.is-changing .levels__text { animation: panel-in .4s cubic-bezier(.16, 1, .3, 1); }

.domains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-bottom: 104px; }
.domains li {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-content: start;
  column-gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--sand-300);
}
.domains li:nth-last-child(-n+2) { border-bottom: 1px solid var(--sand-300); }
.domains .code {
  grid-row: span 2;
  align-self: start;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--navy-900);
  color: var(--cream-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.domains h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 4px; }
.domains p { font-size: 15px; line-height: 1.5; color: var(--slate-600); }

/* TSM Snapshot: puerta de entrada al autodiagnóstico */
.snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  margin: -48px 0 104px;
  padding: 36px 40px;
  background: var(--cream-50);
  border: 1px solid var(--sand-300);
  border-left: 6px solid var(--coral-700);
  border-radius: var(--radius-lg);
}
.snapshot__tag { font-size: 14px; font-weight: 600; color: var(--coral-700); margin-bottom: 8px; }
.snapshot .model__sub { margin-bottom: 12px; }
.snapshot__copy p:not(.snapshot__tag) { font-size: 17px; line-height: 1.55; color: var(--slate-600); max-width: 60ch; }
.snapshot__action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.snapshot__note { font-size: 14px; color: var(--slate-600); }
@media (max-width: 960px) {
  .snapshot { grid-template-columns: 1fr; margin-top: -24px; padding: 28px 24px; }
}

.evals { margin-bottom: 64px; scroll-margin-top: 96px; }
.evals__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; }
.evals__head .model__sub { margin-bottom: 12px; }
.evals__lead { font-size: 17px; color: var(--slate-600); max-width: 52ch; margin-bottom: 28px; }
.evals__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eval {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  background: var(--cream-50);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-lg);
}
.eval--evidence { background: var(--navy-900); border-color: var(--navy-900); color: var(--cream-100); }
.eval__tag { font-size: 14px; font-weight: 600; color: var(--coral-700); }
.eval--evidence .eval__tag { color: var(--coral-500); }
.eval__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.eval p { font-size: 16px; color: var(--slate-600); }
.eval--evidence p { color: var(--mist-300); }
.eval__points { display: flex; flex-direction: column; border-top: 1px solid var(--sand-300); }
.eval--evidence .eval__points { border-color: rgba(135, 147, 168, 0.35); }
.eval__points li { padding: 10px 0 10px 26px; position: relative; font-size: 15px; border-bottom: 1px solid var(--sand-300); }
.eval--evidence .eval__points li { border-color: rgba(135, 147, 168, 0.35); }
.eval__points li::before { content: ""; position: absolute; left: 0; top: 20px; width: 14px; height: 4px; border-radius: 2px; background: var(--coral-700); }
.eval--evidence .eval__points li::before { background: var(--coral-500); }
.eval .eval__out { margin-top: auto; padding: 16px 18px; border-radius: 12px; background: var(--cream-100); color: var(--navy-900); font-size: 15px; }
.eval--evidence .eval__out { background: var(--navy-800); color: var(--cream-100); }
.eval__out span { font-weight: 700; }
.commitments { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; margin-top: 32px; }
.commitments p { font-size: 15px; color: var(--slate-600); padding-left: 16px; border-left: 3px solid var(--navy-900); }
.commitments strong { color: var(--navy-900); }

.scope { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.scope__copy p { font-size: 17px; color: var(--slate-600); margin-bottom: 14px; }
.scope__card { padding: 32px; background: var(--cream-50); border: 1px solid var(--sand-300); border-radius: var(--radius-lg); }
.scope__card figcaption { font-size: 14px; font-weight: 600; color: var(--slate-600); margin-bottom: 14px; }
.scope__card li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 16px; color: var(--slate-600); }
.scope__card li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--sand-500);
}
.scope__card li.on { color: var(--navy-900); font-weight: 600; }
.scope__card li.on::before {
  border-color: var(--navy-900);
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23f4f1ec' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.scope__result { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sand-300); font-size: 14px; color: var(--slate-600); }

/* ---------------- Book ---------------- */

.book { background: radial-gradient(circle at 12% 30%, var(--plum-700) 0%, rgba(58, 34, 48, 0) 45%), var(--navy-900); }
.book__grid { max-width: 900px; margin-bottom: 96px; }
.book__object { display: flex; justify-content: center; perspective: 1200px; }
.book__cover {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 3 / 4.2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 32px;
  background: var(--cream-100);
  color: var(--navy-900);
  border-radius: 6px 14px 14px 6px;
  box-shadow: inset 10px 0 0 rgba(14, 23, 38, 0.12), 18px 18px 0 var(--navy-800);
  transform: rotateY(-14deg) rotateX(4deg);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.book__object:hover .book__cover { transform: rotateY(-4deg) rotateX(1deg); }
.book__bars { position: absolute; top: 32px; left: 32px; right: 0; display: flex; flex-direction: column; gap: 9px; }
.book__bars i { display: block; height: 10px; border-radius: 5px 0 0 5px; background: var(--navy-900); }
.book__bars i:nth-child(2) { background: var(--coral-500); }
.book__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -0.03em; }
.book__author { font-size: 14px; font-weight: 600; color: var(--slate-600); }
.book__copy { display: flex; flex-direction: column; gap: 22px; }
.book__kicker { font-size: 15px; font-weight: 600; color: var(--coral-500); }
.book__meta { font-size: 15px; color: var(--steel-400); }
.book__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.book__lang { font-size: 15px; color: var(--mist-300); }
.book__lang:empty { display: none; }
.book__thanks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 20px 24px;
  border: 1px solid rgba(135, 147, 168, 0.4);
  border-radius: var(--radius-card);
  animation: panel-in .45s cubic-bezier(.16, 1, .3, 1);
}
.book__thanks[hidden] { display: none; }
.book__thanks p { flex: 1 1 320px; font-size: 16px; color: var(--mist-300); }
.book__thanks strong { color: var(--cream-100); }
.book__donate {
  padding: 10px 16px;
  border: 1.5px solid var(--cream-100);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream-100);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.book__donate:hover { background: var(--cream-100); color: var(--navy-900); }

.book__quote { max-width: 980px; margin-bottom: 104px; }
.book__quote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--cream-100);
  text-wrap: balance;
}

/* ---------------- Clientes ---------------- */

.clients { padding: clamp(48px, 5.5vw, 80px) 0; overflow: hidden; }
.clients .block__head { margin-bottom: 48px; }
.clients__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.clients__track {
  display: flex;
  width: max-content;
  animation: clients-scroll 40s linear infinite;
}
.clients__marquee:hover .clients__track,
.clients__marquee:focus-within .clients__track { animation-play-state: paused; }
.clients__list { display: flex; align-items: center; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }
.clients__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(32px, 5vw, 72px);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}
.clients__item:hover, .clients__item:focus-within { opacity: 1; }
.clients__link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-radius: var(--radius-sm); }
.clients__logo { display: block; height: 28px; width: auto; filter: brightness(0); }
.clients__logo--h26 { height: 26px; }
.clients__logo--h28 { height: 28px; }
.clients__logo--h30 { height: 30px; }
.clients__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1;
}
@keyframes clients-scroll { to { transform: translateX(-50%); } }

.tenets { border-top: 1px solid rgba(135, 147, 168, 0.35); }
.tenet {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(135, 147, 168, 0.35);
}
.tenet dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; color: var(--cream-100); }
.tenet dd { font-size: 17px; color: var(--mist-300); padding-top: 4px; }

/* ---------------- Discovery + form ---------------- */

.discovery { background: radial-gradient(circle at 88% 85%, var(--plum-700) 0%, rgba(58, 34, 48, 0) 50%), var(--navy-900); border-top: 1px solid rgba(90, 103, 130, 0.35); }
.discovery__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.discovery__copy { display: flex; flex-direction: column; gap: 28px; }
.agenda { counter-reset: ag; display: flex; flex-direction: column; border-top: 1px solid rgba(135, 147, 168, 0.35); }
.agenda li {
  counter-increment: ag;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(135, 147, 168, 0.35);
  font-size: 17px;
  color: var(--cream-100);
}
.agenda li::before { content: counter(ag); font-family: var(--font-display); font-weight: 700; color: var(--coral-500); }

.form-card { padding: 40px; background: var(--navy-800); border-radius: var(--radius-lg); }
.form__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; color: var(--cream-100); }
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact__text { font-size: 17px; line-height: 1.55; color: var(--mist-300); }
.contact__alt { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; border-top: 1px solid rgba(90, 103, 130, 0.45); width: 100%; font-size: 15px; color: var(--mist-300); }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--cream-100); font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.contact__copy { font: inherit; font-size: 14px; font-weight: 600; color: var(--coral-500); background: none; border: 1px solid var(--coral-500); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.contact__copy:hover { background: var(--coral-500); color: var(--navy-900); }
.contact__status { min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--cream-100); }
.form__fine { font-size: 14px; color: var(--steel-400); }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--navy-900); color: var(--cream-100); padding: 56px 0 48px; border-top: 1px solid rgba(90, 103, 130, 0.45); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.footer__inner img { height: 40px; width: auto; margin-right: auto; }
.footer__line { font-size: 15px; color: var(--mist-300); }
.footer__line a { text-decoration: none; }
.footer__line a:hover { color: var(--cream-100); }
.footer__legal { flex-basis: 100%; font-size: 14px; color: var(--steel-400); padding-top: 20px; border-top: 1px solid rgba(90, 103, 130, 0.45); }

/* ---------------- Responsive ---------------- */

@media (max-width: 1100px) {
  .levels { padding: 40px; gap: 40px; }
  .vciso { padding: 40px; gap: 40px; }
  .chain, .chain__list { column-gap: 14px; }
  .chain__node h3 { font-size: 18px; }
  .chain__node p { font-size: 14px; }
}

@media (max-width: 1250px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 16px 24px 28px;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(90, 103, 130, 0.45);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(90, 103, 130, 0.35); }
  .nav .btn { align-self: flex-start; }
}

@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .hero { min-height: auto; padding: 48px 0 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; flex-direction: row; justify-content: flex-start; gap: 24px; }
  .lock { width: 130px; flex: none; }
  .hero__motto { align-items: flex-start; text-align: left; font-size: 22px; }

  .chain { display: block; }
  .chain__group { display: none; }
  .chain__list { display: flex; flex-direction: column; gap: 28px; padding-left: 44px; }
  .chain__list::before, .chain__list::after { top: 10px; bottom: 10px; left: 9px; right: auto; width: 2px; height: auto; }
  .chain__list::after { transform-origin: top; }
  .js .chain:not(.is-visible) .chain__list::after { transform: scaleY(0); }
  .chain__node { padding-top: 0; }
  .chain__node::before { left: -44px; top: 2px; }
  .chain__node[data-side="dir"] h3::after,
  .chain__node[data-side="ops"] h3::after {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    vertical-align: 3px;
  }
  .chain__node[data-side="dir"] h3::after { content: "Dirección"; border: 1px solid var(--steel-400); color: var(--mist-300); }
  .chain__node[data-side="ops"] h3::after { content: "Equipo"; background: var(--coral-500); color: var(--navy-900); }
  .chain__node p { font-size: 15px; }

  .picker { grid-template-columns: 1fr; gap: 24px; }
  .picker__panels { position: static; }
  .picker__panel { min-height: 0; padding: 32px 28px; }

  .vciso, .model__intro, .levels, .discovery__grid, .scope, .book__grid { grid-template-columns: 1fr; }
  .vciso { gap: 32px; padding: 32px 28px; }
  .model__intro { gap: 32px; }
  .traits { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .levels { padding: 32px 24px; gap: 32px; margin-bottom: 72px; }
  .domains { grid-template-columns: 1fr; margin-bottom: 72px; }
  .domains li:nth-last-child(2) { border-bottom: 0; }
  .evals__grid, .commitments { grid-template-columns: 1fr; }
  .evals { margin-bottom: 72px; }
  .book__grid { gap: 48px; margin-bottom: 72px; }
  .book__object { justify-content: flex-start; }
  .book__cover { width: 220px; }
  .book__title { font-size: 20px; }
  .book__quote { margin-bottom: 72px; }
  .tenet { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .discovery__grid { gap: 48px; }

}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  body { font-size: 17px; }
  .lead, .hero__lead { font-size: 18px; }
  .hero__motto { font-size: 18px; }
  .block__head { margin-bottom: 40px; }
  .vciso__grid { grid-template-columns: 1fr; }
  .eval { padding: 28px 22px; }
  .form-card { padding: 28px 22px; }
  .level { height: 56px; }
  .level::before { border-radius: 28px; }
  .level__n { width: 56px; line-height: 56px; font-size: 20px; }
  .level__name { font-size: 18px; }
  .js .levels:not(.is-visible) .level::before { width: 56px; }
  .cap__body { padding-right: 0; }
  .brand img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero__title .line > span,
  .js .hero__lead, .js .hero__actions, .js .hero__motto li:nth-child(n),
  .js .lock__body, .js .lock__bar, .js .lock__shackle { opacity: 1; transform: none; filter: none; }
  .js .chain:not(.is-visible) .chain__list::after { transform: none; }
  .js .chain:not(.is-visible) .chain__node::before { border-color: var(--coral-500); background: var(--coral-500); }
  .js .levels:not(.is-visible) .level::before { width: var(--w); }
  .js .levels:not(.is-visible) .level__name { opacity: 1; }
  .book__cover { transform: none; }
  .clients__marquee { -webkit-mask-image: none; mask-image: none; }
  .clients__track { width: auto; }
  .clients__list { flex-wrap: wrap; justify-content: center; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
  .clients__list[aria-hidden="true"] { display: none; }
  .clients__item { padding: 16px 28px; }
}

/* Pantallas bajas (portátiles chicos): compactar un poco más para que cada sección entre sin scroll. */
@media (min-width: 961px) and (max-height: 720px) {
  .vciso { padding: 28px 36px; gap: 32px; }
  .vciso__note { padding-top: 12px; }
  .vciso__grid > div { padding: 10px 0; }
  .block__head { margin-bottom: 24px; }
}

/* Áreas táctiles de los logos de clientes: al menos 44 px de alto sin cambiar el tamaño del logo. */
@media (pointer: coarse) {
  .clients__link { min-height: 44px; }
}

/* ---------------- Selector de idioma ---------------- */
.nav { margin-left: auto; }
.nav__list a, .nav .btn { white-space: nowrap; }
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid rgba(90, 103, 130, 0.55); border-radius: 999px; flex-shrink: 0; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--mist-300);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease;
}
.lang__btn svg { display: block; border-radius: 2px; opacity: .6; transition: opacity .2s ease; }
.lang__btn:hover svg { opacity: 1; }
.lang__btn[aria-current] { background: rgba(240, 235, 224, 0.16); }
.lang__btn[aria-current] svg { opacity: 1; }
.lang__btn:focus-visible { outline: 2px solid var(--coral-500); outline-offset: 2px; }
.snap-back { margin-left: auto; }
@media (max-width: 1250px) {
  .site-header__inner { gap: 12px; }
  .lang { order: 1; margin-left: auto; }
  .nav-toggle { order: 2; }
  .nav { margin-left: 0; }
  .snap-back { order: 0; }
}
@media (pointer: coarse) {
  .lang__btn { min-height: 38px; padding: 4px 11px; }
}

/* ---------------- Aviso de idioma ---------------- */
.lang-banner {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 20px;
  background: var(--navy-800);
  color: var(--cream-100);
  border: 1px solid var(--navy-500);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  font-size: 15px;
}
.lang-banner p { margin: 0; }
.lang-banner__go { color: var(--coral-500); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lang-banner__close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--mist-300);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lang-banner__close:hover { background: rgba(240, 235, 224, 0.12); color: var(--cream-100); }
.lang-banner__go:focus-visible, .lang-banner__close:focus-visible { outline: 2px solid var(--coral-500); outline-offset: 2px; }
@media (max-width: 560px) {
  .lang-banner { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; flex-wrap: wrap; border-radius: 16px; padding: 12px 12px 12px 16px; }
  .lang-banner p { flex: 1 1 100%; }
  .lang-banner__close { margin-left: auto; }
}
@media print { .lang-banner { display: none; } }
