/* Layout: lámina técnica — papel claro con retícula de plano, alternado con láminas en tinta
   donde vive la escena 3D. Cotas y cajetín como lenguaje gráfico. */
:root {
  --c-primary: #2456a6;   /* azul de Pepe / plano */
  --c-secondary: #1d9a4a; /* verde institucional */
  --c-accent: #f2b705;    /* amarillo de seguridad */
  --c-ink: #0c1a33;       /* tinta de plano */
  --c-paper: #f5f3ee;     /* papel */

  --c-mod1: var(--c-secondary);
  --c-mod2: var(--c-primary);
  --c-mod3: var(--c-accent);
  --c-white: #ffffff;
  --c-danger: #c8372d;
  --c-ok: #1d9a4a;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
  --maxw: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 4px;

  /* tono de sección (claro por defecto) */
  --fg: var(--c-ink);
  --muted: color-mix(in oklab, var(--c-ink) 64%, var(--c-paper));
  --line: color-mix(in oklab, var(--c-ink) 16%, transparent);
  --surface: color-mix(in oklab, var(--c-paper) 55%, var(--c-white));
  --grid: color-mix(in oklab, var(--c-primary) 9%, transparent);
  color-scheme: light;
}
[data-tone="dark"], .on-ink {
  --fg: var(--c-paper);
  --muted: color-mix(in oklab, var(--c-paper) 68%, var(--c-ink));
  --line: color-mix(in oklab, var(--c-paper) 16%, transparent);
  --surface: color-mix(in oklab, var(--c-ink) 86%, var(--c-white));
  --grid: color-mix(in oklab, var(--c-paper) 6%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--c-paper); color: var(--fg);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--c-accent); color: var(--c-ink); padding: .6rem 1rem; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { max-width: calc(var(--maxw) + 112px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- Tipografía ---------- */
.h2 {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(2rem, 4.4vw, 4.25rem); line-height: .98; letter-spacing: -.02em;
  margin: 0; text-wrap: balance; max-width: 18ch;
}
.h3 { font-family: var(--f-display); font-weight: 750; font-stretch: 108%; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.1; margin: 0 0 .9rem; text-wrap: balance; }
.label { display: flex; align-items: center; gap: .7rem; color: var(--muted); margin: 0 0 1.1rem; }
.label .tick { width: 28px; height: 9px; border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor; position: relative; }
.label .tick::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1.5px solid currentColor; }
.sec-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.sec-head.split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 2rem 4rem; }
.sec-intro { margin: 0; color: var(--muted); max-width: 52ch; font-size: 1.08rem; }
.sec-intro.wide { max-width: 64ch; }
.fine { font-size: .85rem; color: var(--muted); margin: 2rem 0 0; max-width: 80ch; }
.link-mono { display: inline-flex; gap: .4rem; align-items: center; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-mono:hover { border-color: currentColor; }

/* ---------- Botones ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--fg); --b-bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.25rem; border: 1.5px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font-weight: 650; font-size: .98rem; line-height: 1.1; text-decoration: none; border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  position: relative; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-solid { --b-bg: var(--c-primary); --b-fg: var(--c-white); --b-bd: var(--c-primary); }
.btn-solid:hover { --b-bg: var(--c-ink); --b-bd: var(--c-ink); }
[data-tone="dark"] .btn-solid:hover { --b-bg: var(--c-accent); --b-bd: var(--c-accent); --b-fg: var(--c-ink); }
.btn-line { --b-bd: var(--fg); }
.btn-line:hover { --b-bg: var(--fg); --b-fg: var(--c-paper); }
[data-tone="dark"] .btn-line:hover { --b-fg: var(--c-ink); }
.btn-sm { padding: .6rem .95rem; font-size: .88rem; }
.btn-lg { padding: 1.05rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-wa { --b-bg: #1fa855; --b-fg: #fff; --b-bd: #1fa855; }
.btn-ghost { border-color: transparent; padding-inline: .6rem; }
.btn-ghost:hover { border-color: var(--line); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--c-paper); display: grid; place-items: center; color: var(--c-ink); transition: opacity .6s var(--ease), visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; gap: .8rem; width: min(360px, 76vw); }
.loader-dim { height: 11px; border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor; position: relative; }
.loader-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 1px dashed color-mix(in oklab, var(--c-ink) 35%, transparent); }
.loader-bar { position: absolute; left: 0; top: 4px; height: 3px; width: 0; background: var(--c-primary); transition: width .2s linear; }
.loader-pct { justify-self: end; font-size: 1.6rem; letter-spacing: 0; }

/* ---------- Escena 3D ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; transition: opacity .5s var(--ease); }
#scene.off { opacity: 0; }
.scene-fallback { display: none; }
.no-webgl .scene-fallback { display: block; position: fixed; inset: 0; z-index: 0; background:
  radial-gradient(circle at 60% 50%, transparent 0 18%, var(--grid) 18.2% 18.6%, transparent 18.8% 26%, var(--grid) 26.2% 26.6%, transparent 26.8% 34%, var(--grid) 34.2% 34.6%, transparent 34.8%),
  linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px, var(--c-paper); }
main, .titleblock { position: relative; z-index: 1; }

/* ---------- Cursor CAD ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; width: 0; height: 0; color: var(--c-primary); opacity: 0; transition: opacity .3s; }
.has-cursor .cursor { opacity: 1; }
.cursor-x, .cursor-y { position: absolute; background: currentColor; }
.cursor-x { width: 36px; height: 1px; left: -18px; top: 0; }
.cursor-y { width: 1px; height: 36px; left: 0; top: -18px; }
.cursor-box { position: absolute; width: 10px; height: 10px; left: -5px; top: -5px; border: 1px solid currentColor; transition: transform .25s var(--ease), background .25s; }
.cursor.hot .cursor-box { transform: scale(2.4); background: color-mix(in oklab, currentColor 14%, transparent); }
.cursor-read { position: absolute; left: 14px; top: 10px; font-size: 9.5px; white-space: nowrap; letter-spacing: .04em; }
.cursor.on-dark { color: var(--c-accent); }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary { cursor: none; }
  .has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
}

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .45s var(--ease); border-bottom: 1px solid transparent; color: var(--c-ink); }
.site-header.solid { background: var(--c-paper); border-color: color-mix(in oklab, var(--c-ink) 12%, transparent); }
.site-header.dark { color: var(--c-paper); }
.site-header.dark.solid { background: var(--c-ink); border-color: color-mix(in oklab, var(--c-paper) 12%, transparent); }
.site-header.hide { transform: translateY(-110%); }
.header-inner { max-width: calc(var(--maxw) + 112px); margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand-logo { height: 46px; width: auto; }
.site-header.dark .brand-logo { filter: brightness(0) invert(1); }
.brand-text { display: grid; line-height: 1.05; }
.brand-small { font-size: .62rem; color: inherit; opacity: .7; }
.brand-big { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.08rem; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 550; position: relative; padding: .3rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: currentColor; transition: right .3s var(--ease); }
.nav a:hover::after, .nav a.active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.link-inst { display: inline-flex; gap: .3rem; align-items: center; font-size: .85rem; text-decoration: none; opacity: .8; white-space: nowrap; }
.link-inst:hover { opacity: 1; }
.site-header.dark .btn-solid:hover { --b-bg: var(--c-accent); --b-bd: var(--c-accent); --b-fg: var(--c-ink); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1.5px solid currentColor; background: transparent; border-radius: var(--radius); place-items: center; }
.menu-btn .ic { width: 22px; height: 22px; }

.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--c-ink); color: var(--c-paper); padding: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter-r) max(24px, env(safe-area-inset-bottom, 0px)) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; overflow-y: auto; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 1rem; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.6rem, 7vw, 2.4rem); text-transform: uppercase; padding: .55rem 0; border-bottom: 1px solid color-mix(in oklab, var(--c-paper) 14%, transparent); }
.mobile-menu nav a .mono { color: var(--c-accent); font-size: .7rem; }
.menu-open .site-header { color: var(--c-paper); background: var(--c-ink); }
.menu-open .site-header .brand-logo { filter: brightness(0) invert(1); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); background: linear-gradient(90deg, color-mix(in oklab, var(--c-paper) 88%, transparent) 0%, color-mix(in oklab, var(--c-paper) 70%, transparent) 38%, transparent 62%); padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2vh); padding-bottom: 2rem; display: flex; }
.hero-grid { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: 1.5rem 1.25rem; }
.hero-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-copy { grid-column: 1 / span 9; align-self: center; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; gap: .6rem; align-items: center; font-weight: 600; margin: 0 0 .5rem; font-size: .98rem; }
.eyebrow .dot { width: 9px; height: 9px; background: var(--c-secondary); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-secondary) 25%, transparent); }
.kicker { color: var(--c-primary); margin: 0 0 1rem; font-weight: 700; }
.hero-title {
  font-family: var(--f-display); font-weight: 850; font-stretch: 118%; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 7.6rem); line-height: .86; letter-spacing: -.025em; margin: 0 0 1.6rem;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .ln > span { display: inline-block; will-change: transform; }
.hero-title .ln-out > span { color: transparent; -webkit-text-stroke: clamp(1.5px, .18vw, 2.5px) var(--c-primary); }
.hero-sub { max-width: 46ch; font-size: clamp(1.05rem, 1.3vw, 1.22rem); margin: 0 0 2rem; color: var(--muted); }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-pepe { grid-column: 10 / -1; grid-row: 2; align-self: end; position: relative; z-index: 2; display: grid; justify-items: end; gap: .5rem; }
.hero-pepe img { width: min(220px, 100%); filter: drop-shadow(0 18px 24px color-mix(in oklab, var(--c-ink) 22%, transparent)); animation: bob 5s ease-in-out infinite; transform-origin: 50% 100%; }
.bubble { background: var(--c-white); border: 1.5px solid var(--c-ink); padding: .9rem 1rem; border-radius: 14px 14px 2px 14px; font-size: .92rem; line-height: 1.4; display: grid; gap: .2rem; max-width: 260px; box-shadow: 4px 4px 0 var(--c-ink); order: -1; }
.bubble strong { font-weight: 750; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
.hero-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1rem; }
.motto { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 1.05rem; }
.motto span:nth-child(2) { color: var(--c-primary); }
.motto span:nth-child(3) { color: var(--c-secondary); }
.hero-chips { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; color: var(--muted); }
.hero-chips li { display: inline-flex; align-items: center; gap: .45rem; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.sw1 { background: var(--c-mod1); } .sw2 { background: var(--c-mod2); } .sw3 { background: var(--c-mod3); }
.scroll-cue { margin-left: auto; display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; }
.scroll-cue .ic { animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-3px); opacity: .3; } 50% { transform: translateY(3px); opacity: 1; } 100% { transform: translateY(-3px); opacity: .3; } }

/* ---------- Por qué ---------- */
.why { background: var(--c-paper); padding-block: clamp(5rem, 11vw, 9rem) 0; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.why-text p { margin: 0 0 1.2rem; max-width: 60ch; }
.why-text p:first-child { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.45; font-weight: 500; color: var(--fg); }
.why-text p:not(:first-child) { color: var(--muted); }
.why-figure { margin: 0; color: var(--c-primary); }
.why-svg { width: 100%; height: auto; overflow: visible; }
.why-figure figcaption { color: var(--muted); margin-top: .8rem; }
.marquee { margin-top: clamp(4rem, 8vw, 7rem); border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.2rem; }
.marquee-track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; will-change: transform; }
.marquee-item { font-family: var(--f-display); font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.marquee-item::after { content: ""; width: .35em; height: .35em; background: var(--c-secondary); transform: rotate(45deg); flex: none; }
.process { list-style: none; margin: clamp(3.5rem, 7vw, 6rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--fg); }
.process li { padding: 1.2rem 1.4rem 1.4rem 0; border-right: 1px solid var(--line); display: grid; gap: .35rem; position: relative; }
.process li + li { padding-left: 1.4rem; }
.process li:last-child { border-right: 0; }
.process li::before { content: ""; position: absolute; top: -6px; left: 0; width: 1.5px; height: 11px; background: var(--fg); }
.process li + li::before { left: -1px; }
.process span { color: var(--c-primary); }
.process strong { font-family: var(--f-display); font-stretch: 110%; font-size: 1.45rem; text-transform: uppercase; font-weight: 800; }
.process p { margin: 0; color: var(--muted); font-size: .95rem; }
.process-note { margin: 1.5rem 0 0; padding-bottom: clamp(5rem, 10vw, 8rem); font-weight: 600; }

/* ---------- Historia 3D ---------- */
.story { position: relative; color: var(--fg); }
.story-hud { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; pointer-events: none; z-index: 2; padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px) var(--gutter-r) max(24px, env(safe-area-inset-bottom, 0px)) var(--gutter); display: grid; grid-template-rows: auto 1fr auto; }
.hud-top { display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; max-width: calc(var(--maxw)); width: 100%; margin: 0 auto; }
.hud-ruler { position: absolute; right: var(--gutter-r); top: 28%; bottom: 28%; width: 9px; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.hud-ruler::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
.hud-ruler span { position: absolute; left: 3px; top: 0; width: 3px; height: 0; background: var(--c-accent); }
.hud-read { color: var(--muted); align-self: start; text-align: right; max-width: var(--maxw); width: 100%; margin: .5rem auto 0; font-size: .66rem; }
.story-steps { position: relative; z-index: 3; }
.step { min-height: 125vh; display: flex; align-items: center; padding: 0 var(--gutter-r) 0 var(--gutter); max-width: calc(var(--maxw) + 112px); margin: 0 auto; }
.step:first-child { min-height: 110vh; }
.step-card { width: min(440px, 100%); background: color-mix(in oklab, var(--c-ink) 84%, transparent); border: 1px solid var(--line); padding: clamp(1.4rem, 2.5vw, 2rem); border-radius: var(--radius); }
.step-card p { color: var(--muted); margin: 0 0 1rem; }
.step-code { display: flex; align-items: center; gap: .55rem; color: var(--fg) !important; }
.step-title { font-family: var(--f-display); font-weight: 850; font-stretch: 118%; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: .92; letter-spacing: -.02em; margin: .3rem 0 .5rem; color: var(--fg); }
.step-title.big { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.step-lead { font-size: 1.2rem; color: var(--c-accent) !important; font-weight: 650; }
.step-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.2rem 0 0; border-top: 1px solid var(--line); }
.step-nums div { padding-top: .8rem; }
.step-nums dt { color: var(--muted); font-size: .66rem; }
.step-nums dd { margin: .2rem 0 0; font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 2.2rem; letter-spacing: 0; line-height: 1; color: var(--fg); }
.step-final { min-height: 140vh; }
.step-card-final { width: min(620px, 100%); }

/* ---------- Itinerario ---------- */
.plan { background: var(--c-paper); padding-block: clamp(5rem, 10vw, 8rem); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--fg); border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.fig { padding: 1.4rem 1rem 1.4rem 0; display: grid; gap: .2rem; }
.fig + .fig { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.fig-n { font-family: var(--f-display); font-stretch: 62%; font-weight: 850; font-size: clamp(3rem, 6.2vw, 6.2rem); line-height: .85; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fig:nth-child(2) .fig-n { color: var(--c-primary); }
.fig-l { color: var(--muted); font-size: .95rem; }
.dist { margin-bottom: 3rem; }
.dist-bar { display: flex; height: 14px; gap: 3px; }
.dist-bar span { display: block; height: 100%; border-radius: 1px; }
.dist-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: .8rem; color: var(--muted); }
.dist-legend span { display: inline-flex; gap: .45rem; align-items: center; }
.plan-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.seg { display: inline-flex; border: 1.5px solid var(--fg); border-radius: var(--radius); padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: .55rem 1rem; border-radius: 2px; font-weight: 600; font-size: .92rem; }
.seg button[aria-selected="true"] { background: var(--fg); color: var(--c-paper); }
.sem-line { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; margin-bottom: 1.6rem; }
.sem-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.sem-btn { position: relative; background: var(--c-paper); border: 1.5px solid var(--fg); margin: 0 -0.75px; padding: .8rem .5rem; display: grid; gap: .15rem; text-align: left; transition: background .25s var(--ease), color .25s; }
.sem-btn .mono { font-size: .62rem; opacity: .75; }
.sem-btn strong { font-family: var(--f-display); font-weight: 850; font-stretch: 115%; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1; }
.sem-btn:hover { background: color-mix(in oklab, var(--c-primary) 10%, var(--c-paper)); }
.sem-btn[aria-selected="true"] { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); z-index: 1; }
.sem-panel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.unit { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem 1.3rem; position: relative; display: grid; gap: .5rem; align-content: start; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.unit::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; background: var(--tone, var(--c-primary)); border-radius: 0 2px 2px 0; }
.unit:hover { transform: translateY(-3px); border-color: var(--fg); box-shadow: 4px 4px 0 var(--fg); }
.unit .mono { color: var(--muted); font-size: .64rem; }
.unit strong { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.unit .u-nums { display: flex; gap: 1rem; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); margin-top: auto; padding-top: .5rem; border-top: 1px dashed var(--line); }
.unit .u-nums b { color: var(--fg); font-weight: 700; }
.unit-trans { border-style: dashed; background: transparent; }
.unit-trans::before { background: color-mix(in oklab, var(--fg) 30%, transparent); }
.sem-side { border: 1.5px solid var(--fg); border-radius: var(--radius); padding: 1.2rem; background: var(--c-paper); display: grid; gap: 1rem; }
.sem-side h4 { margin: 0; font-family: var(--f-display); font-stretch: 110%; font-size: 1.15rem; font-weight: 800; text-transform: uppercase; }
.week { display: grid; gap: 6px; }
.week-bar { display: flex; height: 26px; gap: 2px; }
.week-bar span { height: 100%; border-radius: 1px; min-width: 3px; }
.week-legend { display: grid; gap: .3rem; font-size: .82rem; }
.week-legend div { display: flex; justify-content: space-between; gap: .5rem; }
.week-legend span:last-child { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.side-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: .8rem; }
.side-total strong { font-family: var(--f-display); font-stretch: 70%; font-size: 2.4rem; font-weight: 850; line-height: 1; }
.mod-view { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mod-col { border: 1.5px solid var(--fg); border-radius: var(--radius); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.mod-col header { padding: 1.2rem; background: var(--tone); color: var(--c-white); display: grid; gap: .3rem; }
.mod-col[data-tone3] header { color: var(--c-ink); }
.mod-col header h3 { margin: 0; font-family: var(--f-display); font-weight: 850; font-stretch: 112%; text-transform: uppercase; font-size: 1.4rem; line-height: 1; }
.mod-col header p { margin: 0; font-size: .9rem; opacity: .9; }
.mod-col ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.mod-col li button { width: 100%; text-align: left; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: .6rem; padding: .8rem 1.2rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; align-items: center; font-size: .95rem; }
.mod-col li button:hover { background: color-mix(in oklab, var(--tone) 10%, transparent); }
.mod-col li .mono { font-size: .66rem; color: var(--muted); }
.mod-col footer { display: flex; justify-content: space-between; padding: 1rem 1.2rem; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Herramientas ---------- */
.tools { background: var(--c-ink); color: var(--fg); padding-block: clamp(5rem, 10vw, 8rem); }
.toolbox { display: grid; grid-template-columns: 250px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in oklab, var(--c-ink) 92%, var(--c-white)); min-height: 560px; }
.tool-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: .6rem; gap: 4px; }
.tool-tabs button { display: flex; gap: .8rem; align-items: center; text-align: left; border: 0; background: transparent; padding: .9rem .9rem; border-radius: 3px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.tool-tabs button .mono { font-size: .66rem; color: var(--c-accent); }
.tool-tabs button:hover { color: var(--fg); background: color-mix(in oklab, var(--c-paper) 6%, transparent); }
.tool-tabs button[aria-selected="true"] { background: var(--c-paper); color: var(--c-ink); }
.tool-tabs button[aria-selected="true"] .mono { color: var(--c-primary); }
.tool-body { padding: clamp(1.2rem, 2.5vw, 2rem); min-width: 0; min-height: 640px; }
.tool-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: start; margin-bottom: 1.5rem; }
.tool-head h3 { margin: 0 0 .3rem; font-family: var(--f-display); font-weight: 850; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; }
.tool-head p { margin: 0; color: var(--muted); max-width: 60ch; font-size: .95rem; }
.learn { display: inline-flex; gap: .5rem; align-items: center; color: var(--c-accent); border: 1px solid color-mix(in oklab, var(--c-accent) 40%, transparent); padding: .4rem .6rem; border-radius: 3px; font-size: .64rem; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; align-content: start; }
.fields .full { grid-column: 1 / -1; }
.f { display: grid; gap: .35rem; min-width: 0; }
.f > label, .f > span.lb { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.f input, .f select, .tbl input, .tbl select {
  width: 100%; background: color-mix(in oklab, var(--c-ink) 70%, var(--c-white) 4%); border: 1px solid var(--line); border-radius: 3px;
  padding: .7rem .75rem; color: var(--fg); font-variant-numeric: tabular-nums; min-width: 0;
}
.f input:focus, .f select:focus, .tbl input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-accent) 25%, transparent); }
.f select option { background: var(--c-ink); }
.unit-in { position: relative; }
.unit-in input { padding-right: 2.6rem; }
.unit-in em { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); pointer-events: none; }
.results { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: 1rem; align-content: start; background: color-mix(in oklab, var(--c-ink) 60%, transparent); }
.res-main { display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; flex-wrap: wrap; }
.res-main .mono { color: var(--muted); }
.res-big { font-family: var(--f-display); font-stretch: 66%; font-weight: 850; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: .9; font-variant-numeric: tabular-nums; color: var(--fg); }
.res-big small { font-size: .38em; font-stretch: 100%; font-weight: 600; margin-left: .2em; color: var(--muted); }
.res-rows { display: grid; gap: 0; }
.res-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); align-items: baseline; font-variant-numeric: tabular-nums; }
.res-row span:first-child { color: var(--muted); font-size: .92rem; }
.res-row b { font-weight: 700; font-size: 1.05rem; }
.res-row i { font-style: normal; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); min-width: 84px; text-align: right; }
.res-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.res-total strong { font-family: var(--f-display); font-stretch: 80%; font-size: 1.8rem; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.mix { display: flex; height: 10px; gap: 2px; border-radius: 2px; overflow: hidden; }
.mix span { height: 100%; }
.res-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-tool { --b-bd: var(--line); --b-fg: var(--fg); padding: .65rem .9rem; font-size: .88rem; }
.btn-tool:hover { --b-bd: var(--c-accent); --b-fg: var(--c-accent); }
.btn-accent { --b-bg: var(--c-accent); --b-bd: var(--c-accent); --b-fg: var(--c-ink); padding: .65rem .9rem; font-size: .88rem; }
.btn-accent:hover { --b-bg: var(--c-paper); --b-bd: var(--c-paper); }
.tbl-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; }
.tbl th { font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: left; font-weight: 500; padding: .7rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .35rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; padding-right: .8rem; }
.tbl td.idx { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); width: 48px; padding-left: .8rem; }
.tbl input { padding: .5rem .55rem; background: transparent; border-color: transparent; }
.tbl input:hover { border-color: var(--line); }
.tbl .c-desc { min-width: 240px; }
.tbl .c-und { width: 80px; }
.tbl .c-n { width: 110px; }
.tbl .del { border: 0; background: transparent; color: var(--muted); padding: .4rem; border-radius: 3px; display: grid; place-items: center; }
.tbl .del:hover { color: var(--c-danger); background: color-mix(in oklab, var(--c-danger) 12%, transparent); }
.budget-top { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.budget-top .f { min-width: 220px; flex: 1; }
.budget-sum { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; margin-top: 1.2rem; align-items: start; }
.sum-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: grid; gap: .1rem; }
.sum-row b, .sum-row strong { white-space: nowrap; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; align-items: center; }
.sum-row .pct { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.sum-row .pct input { width: 64px; padding: .3rem .4rem; text-align: right; background: transparent; border: 1px solid var(--line); border-radius: 3px; color: var(--fg); }
.sum-row.total { border: 0; padding-top: .8rem; font-weight: 700; }
.sum-row.total strong { font-family: var(--f-display); font-stretch: 80%; font-size: 2rem; color: var(--c-accent); }
.add-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; min-width: 0; max-width: 100%; }
.budget-top .add-row { flex: 1 1 280px; }
.budget-top .add-row select { flex: 1 1 200px; width: 100%; }
.add-row select { max-width: 100%; text-overflow: ellipsis; background: transparent; border: 1px solid var(--line); color: var(--fg); padding: .6rem .7rem; border-radius: 3px; min-width: 0; }
.add-row select option { background: var(--c-ink); }
.sub-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.sub-tabs button { border: 1px solid var(--line); background: transparent; padding: .5rem .85rem; border-radius: 999px; font-size: .86rem; color: var(--muted); }
.sub-tabs button[aria-pressed="true"] { background: var(--c-accent); color: var(--c-ink); border-color: var(--c-accent); font-weight: 650; }
.poly-svg { width: 100%; height: auto; aspect-ratio: 4 / 3; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; }
.on-dark { color: var(--muted); }

/* ---------- Talleres ---------- */
.practice { background: var(--c-paper); padding-block: clamp(5rem, 10vw, 8rem); }
.equip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--fg); border-left: 1px solid var(--line); }
.eq { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.6rem 1.5rem 1.8rem; display: grid; gap: .8rem; align-content: start; position: relative; transition: background .3s var(--ease); }
.eq:hover { background: var(--surface); }
.eq .ico { width: 64px; height: 64px; color: var(--c-primary); transition: transform .5s var(--ease); }
.eq:hover .ico { transform: rotate(-6deg) scale(1.06); }
.eq .mono { position: absolute; right: 1.2rem; top: 1.4rem; color: var(--muted); font-size: .66rem; }
.eq h3 { margin: 0; font-family: var(--f-display); font-stretch: 108%; font-size: 1.3rem; font-weight: 750; }
.eq p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Test ---------- */
.quiz { background: var(--c-ink); color: var(--fg); padding-block: clamp(5rem, 10vw, 8rem); overflow: hidden; }
.quiz-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.quiz-side p { color: var(--muted); max-width: 40ch; margin: 1.2rem 0 0; }
.quiz-pepe { width: 180px; margin-top: 2rem; transform: rotate(-6deg); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.quiz-card { background: var(--c-paper); color: var(--c-ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); min-height: 440px; display: flex; flex-direction: column; box-shadow: 10px 10px 0 var(--c-primary); --fg: var(--c-ink); --muted: color-mix(in oklab, var(--c-ink) 64%, var(--c-paper)); --line: color-mix(in oklab, var(--c-ink) 16%, transparent); }
.q-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; color: var(--muted); }
.q-dots { display: flex; gap: 6px; }
.q-dots i { width: 26px; height: 4px; background: var(--line); border-radius: 2px; }
.q-dots i.on { background: var(--c-primary); }
.q-title { font-family: var(--f-display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.12; margin: 0 0 1.4rem; text-wrap: balance; }
.q-opts { display: grid; gap: .6rem; }
.q-opt { text-align: left; border: 1.5px solid var(--line); background: var(--c-white); padding: 1rem 1.1rem; border-radius: var(--radius); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .8rem; align-items: center; font-size: 1rem; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.q-opt .mono { width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; font-size: .72rem; }
.q-opt:hover { border-color: var(--c-ink); transform: translateX(4px); box-shadow: -4px 0 0 var(--c-primary); }
.q-result { display: grid; gap: 1rem; }
.q-result .badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--tone, var(--c-primary)); color: var(--c-white); padding: .45rem .7rem; border-radius: 3px; width: max-content; max-width: 100%; }
.q-result h3 { font-family: var(--f-display); font-weight: 850; font-stretch: 115%; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: .95; margin: 0; }
.q-result p { margin: 0; color: var(--muted); }
.q-bars { display: grid; gap: .5rem; }
.q-bar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 40px; gap: .8rem; align-items: center; font-size: .88rem; }
.q-bar div { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.q-bar div span { display: block; height: 100%; border-radius: 4px; transition: width .8s var(--ease); }
.q-bar em { font-style: normal; font-family: var(--f-mono); font-size: .72rem; text-align: right; }
.q-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; }

/* ---------- Campo ---------- */
.field { background: var(--c-paper); padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem); }
.careers { border-top: 1.5px solid var(--fg); }
.career { display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr) 64px; gap: 1.5rem; align-items: center; padding: 1.6rem .4rem; border-bottom: 1px solid var(--line); position: relative; transition: color .35s var(--ease); isolation: isolate; }
.career::before { content: ""; position: absolute; inset: 0; background: var(--c-primary); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.career:hover { color: var(--c-white); }
.career:hover::before { transform: scaleY(1); }
.career:hover p, .career:hover .mono { color: color-mix(in oklab, var(--c-white) 82%, transparent); }
.career .mono { color: var(--muted); }
.career h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.3rem, 2.4vw, 2.1rem); line-height: 1.05; text-transform: uppercase; }
.career p { margin: 0; color: var(--muted); }
.career .ico { width: 54px; height: 54px; justify-self: end; }

/* ---------- Vida ---------- */
.life { background: var(--c-paper); padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 10vw, 8rem); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 12px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--c-primary); color: var(--c-white); margin: 0; isolation: isolate; }
.g-item:first-child { grid-column: span 2; grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-item.ill { background-image: linear-gradient(color-mix(in oklab, var(--c-white) 12%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, var(--c-white) 12%, transparent) 1px, transparent 1px); background-size: 22px 22px; background-color: var(--c-primary); }
.g-item.ill:nth-child(3n+2) { background-color: var(--c-secondary); }
.g-item.ill:nth-child(3n) { background-color: var(--c-ink); }
.g-item.ill .ico { position: absolute; right: 18px; top: 18px; width: 44%; height: auto; max-width: 160px; aspect-ratio: 1; opacity: .9; }
.g-item.badge-img { background: var(--c-paper); }
.g-item.badge-img img { object-fit: contain; padding: 14px; height: 66%; }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem; display: grid; gap: .2rem; background: linear-gradient(transparent, color-mix(in oklab, var(--c-ink) 85%, transparent)); }
.g-item.badge-img figcaption, .g-item.ill figcaption { background: none; }
.g-item.badge-img figcaption { color: var(--c-ink); background: linear-gradient(transparent, var(--c-paper) 60%); }
.g-item figcaption .mono { font-size: .62rem; opacity: .85; }
.g-item figcaption strong { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; line-height: 1.05; }
.g-item figcaption span:last-child { font-size: .9rem; opacity: .9; }
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 2rem; }
.news-item { border: 1.5px solid var(--fg); border-radius: var(--radius); padding: 1.3rem; display: grid; gap: .6rem; align-content: start; background: var(--surface); }
.news-item .mono { color: var(--c-primary); }
.news-item h3 { margin: 0; font-size: 1.2rem; font-weight: 750; }
.news-item p { margin: 0; color: var(--muted); }
.news-item img { border-radius: 3px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---------- Admisión ---------- */
.admission { background: var(--c-paper); padding-block: clamp(5rem, 10vw, 8rem); border-top: 1px solid var(--line); }
.adm-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.adm-status { background: var(--c-primary); color: var(--c-white); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 20px); }
.adm-tag { color: var(--c-accent); margin: 0; }
.adm-row { display: grid; gap: .1rem; border-bottom: 1px solid color-mix(in oklab, var(--c-white) 22%, transparent); padding-bottom: .9rem; }
.adm-row .mono { opacity: .75; }
.adm-row strong { font-family: var(--f-display); font-stretch: 105%; font-weight: 850; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; }
.adm-note { margin: 0; font-size: .9rem; opacity: .9; }
.adm-shifts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-shifts div { border: 1px solid color-mix(in oklab, var(--c-white) 30%, transparent); border-radius: 3px; padding: .7rem .8rem; display: grid; gap: .1rem; }
.adm-shifts .mono { opacity: .75; font-size: .62rem; }
.adm-shifts strong { font-size: .95rem; }
.adm-status .btn-solid { --b-bg: var(--c-white); --b-fg: var(--c-ink); --b-bd: var(--c-white); justify-self: start; }
.adm-status .btn-solid:hover { --b-bg: var(--c-accent); --b-bd: var(--c-accent); }
.checks { list-style: none; margin: 0 0 2.4rem; padding: 0; display: grid; gap: 0; }
.checks li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.checks li .ic { width: 22px; height: 22px; color: var(--c-white); background: var(--c-secondary); border-radius: 50%; padding: 3px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps-list li::before { content: "0" counter(s); font-family: var(--f-display); font-stretch: 70%; font-weight: 850; font-size: 2.4rem; line-height: .9; color: var(--c-primary); }
.steps-list strong { display: block; font-size: 1.08rem; }
.steps-list p { margin: .2rem 0 0; color: var(--muted); }
.cta3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(3rem, 6vw, 5rem); }
.cta3-item { border: 1.5px solid var(--fg); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; display: grid; gap: .6rem; align-content: start; position: relative; transition: background .3s var(--ease), color .3s; }
.cta3-item .mono { color: var(--c-primary); font-weight: 700; }
.cta3-item p { margin: 0; color: var(--muted); padding-right: 1.8rem; }
.cta3-item .ic { position: absolute; right: 1.2rem; top: 1.3rem; width: 22px; height: 22px; transition: transform .3s var(--ease); }
.cta3-item:hover { background: var(--c-ink); color: var(--c-paper); }
.cta3-item:hover .mono { color: var(--c-accent); }
.cta3-item:hover p { color: color-mix(in oklab, var(--c-paper) 75%, transparent); }
.cta3-item:hover .ic { transform: translate(3px, -3px); }
.faq { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--fg); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 650; font-size: 1.08rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s var(--ease); flex: none; margin-top: .15rem; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); max-width: 70ch; }

/* ---------- Contacto ---------- */
.contact { background: var(--c-ink); color: var(--fg); padding-block: clamp(5rem, 10vw, 8rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info > p { color: var(--muted); max-width: 44ch; margin: 1.2rem 0 2rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; }
.info-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list li .ic { width: 22px; height: 22px; color: var(--c-accent); margin-top: .15rem; }
.info-list li div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; min-width: 0; }
.info-list .mono { color: var(--muted); font-size: .64rem; }
.info-list a { text-decoration: none; border-bottom: 1px solid var(--line); justify-self: start; max-width: 100%; overflow-wrap: anywhere; }
.copyable { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; word-break: break-all; }
.copy { border: 1px solid var(--line); background: transparent; border-radius: 3px; padding: .25rem; display: grid; place-items: center; color: var(--muted); }
.copy:hover { color: var(--c-accent); border-color: var(--c-accent); }
.socials { display: flex; gap: .5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.socials a { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background .25s, color .25s; }
.socials a:hover { background: var(--c-accent); color: var(--c-ink); }
.lead-form { background: var(--c-paper); color: var(--c-ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; --fg: var(--c-ink); --muted: color-mix(in oklab, var(--c-ink) 64%, var(--c-paper)); --line: color-mix(in oklab, var(--c-ink) 18%, transparent); box-shadow: 10px 10px 0 var(--c-secondary); }
.form-head { display: flex; justify-content: space-between; border-bottom: 1.5px solid var(--c-ink); padding-bottom: .7rem; }
.field-row { display: grid; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row label, .field-row legend { font-weight: 650; font-size: .94rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.field-row input, .field-row textarea { width: 100%; padding: .85rem .9rem; background: var(--c-white); border: 1.5px solid var(--line); border-radius: 3px; transition: border-color .2s, box-shadow .2s; }
.field-row input:focus, .field-row textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-primary) 20%, transparent); }
.field-row input[aria-invalid="true"] { border-color: var(--c-danger); }
.field-row textarea { resize: vertical; min-height: 84px; }
.err { margin: 0; color: var(--c-danger); font-size: .85rem; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .2rem; }
.chips label { position: relative; font-weight: 500; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: .55rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; transition: background .2s, border-color .2s, color .2s; cursor: pointer; background: var(--c-white); }
.chips input:checked + span { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .7rem; font-size: .86rem; color: var(--muted); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-primary); }
.form-ok { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .8rem; align-items: start; background: color-mix(in oklab, var(--c-secondary) 12%, var(--c-white)); border: 1.5px solid var(--c-secondary); border-radius: 3px; padding: 1rem; }
.form-ok .ok-ic { width: 32px; height: 32px; background: var(--c-secondary); color: var(--c-white); border-radius: 50%; padding: 5px; }
.form-ok p { margin: .2rem 0 0; color: var(--muted); }
.form-ok .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- Cajetín ---------- */
.titleblock { background: var(--c-ink); color: var(--c-paper); padding-block: 3rem max(3rem, env(safe-area-inset-bottom, 0px)); border-top: 1px solid color-mix(in oklab, var(--c-paper) 14%, transparent); --line: color-mix(in oklab, var(--c-paper) 16%, transparent); }
.tb-big { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tb-big img { height: 84px; width: auto; }
.tb-big p { margin: 0; font-family: var(--f-display); font-weight: 850; font-stretch: 120%; text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 3rem); line-height: .95; letter-spacing: -.02em; }
.tb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid color-mix(in oklab, var(--c-paper) 60%, transparent); }
.tb-grid div { padding: .7rem .8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: .25rem; min-width: 0; }
.tb-grid div:nth-child(4n) { border-right: 0; }
.tb-grid div:nth-last-child(-n+4) { border-bottom: 0; }
.tb-grid span { font-size: .6rem; opacity: .6; }
.tb-grid strong { font-weight: 500; font-size: .78rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.tb-links { display: flex; gap: .5rem 1.6rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: .9rem; }
.tb-links a { opacity: .75; text-decoration: none; border-bottom: 1px solid transparent; }
.tb-links a:hover { opacity: 1; border-color: currentColor; }

/* ---------- Pepe guía y flotantes ---------- */
.pepe-guide { position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; align-items: flex-end; gap: .6rem; pointer-events: none; transition: transform .5s var(--ease), opacity .5s; }
.pepe-guide.away { transform: translateY(140%); opacity: 0; }
.pepe-face { pointer-events: auto; width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--c-ink); background: var(--c-paper); padding: 0; overflow: hidden; display: grid; place-items: end center; box-shadow: 3px 3px 0 var(--c-ink); flex: none; transition: transform .3s var(--ease); }
.pepe-face:hover { transform: rotate(-8deg) scale(1.05); }
.pepe-face img { width: 82%; transform: translateY(14%); }
.pepe-msg { pointer-events: auto; background: var(--c-white); color: var(--c-ink); border: 1.5px solid var(--c-ink); border-radius: 14px 14px 14px 2px; padding: .75rem .95rem; font-size: .88rem; line-height: 1.4; max-width: min(300px, calc(100vw - 120px)); box-shadow: 3px 3px 0 var(--c-ink); transform-origin: 0 100%; transition: transform .35s var(--ease), opacity .35s; margin-bottom: 30px; }
.pepe-guide.closed .pepe-msg { transform: scale(.6); opacity: 0; pointer-events: none; }
.wa-float { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 30px; height: 30px; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); opacity: 0; visibility: hidden; z-index: 500; background: var(--c-ink); color: var(--c-paper); padding: .8rem 1.1rem; border-radius: 4px; font-size: .92rem; transition: transform .4s var(--ease); max-width: calc(100vw - 32px); border: 1px solid color-mix(in oklab, var(--c-paper) 20%, transparent); }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.unit-dialog { border: 1.5px solid var(--c-ink); border-radius: var(--radius); padding: 0; max-width: min(540px, calc(100vw - 32px)); width: 100%; background: var(--c-paper); color: var(--c-ink); box-shadow: 10px 10px 0 var(--c-primary); }
.unit-dialog::backdrop { background: color-mix(in oklab, var(--c-ink) 60%, transparent); }
.ud-inner { padding: clamp(1.4rem, 4vw, 2rem); position: relative; }
.ud-close { position: absolute; right: 12px; top: 12px; border: 1px solid color-mix(in oklab, var(--c-ink) 18%, transparent); background: transparent; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.ud-code { color: var(--c-primary); margin: 0 0 .5rem; display: flex; gap: .5rem; align-items: center; padding-right: 3rem; }
.unit-dialog .h3 { padding-right: 2rem; font-size: 1.6rem; }
.unit-dialog p { color: color-mix(in oklab, var(--c-ink) 70%, var(--c-paper)); }
.ud-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--c-ink); margin: 1rem 0 0; }
.ud-nums div { padding-top: .7rem; }
.ud-nums dt { font-size: .6rem; opacity: .7; }
.ud-nums dd { margin: .2rem 0 0; font-family: var(--f-display); font-stretch: 70%; font-weight: 850; font-size: 2rem; letter-spacing: 0; }

/* ---------- Animaciones de entrada ---------- */
.why-svg .draw path { stroke-dasharray: 1200; stroke-dashoffset: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 1.1rem; }
  .link-inst { display: none; }
}
@media (max-width: 1024px) {
  .tool-body { min-height: 0; }
  .nav, .header-actions .btn { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .sec-head.split { grid-template-columns: minmax(0, 1fr); }
  .sem-panel { grid-template-columns: minmax(0, 1fr); }
  .toolbox { grid-template-columns: minmax(0, 1fr); }
  .tool-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tool-tabs button { white-space: nowrap; flex: none; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .budget-sum { grid-template-columns: minmax(0, 1fr); }
  .equip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-view { grid-template-columns: minmax(0, 1fr); }
  .adm-grid, .contact-grid, .quiz-grid, .faq { grid-template-columns: minmax(0, 1fr); }
  .adm-status { position: static; }
  .career { grid-template-columns: 50px minmax(0, 1fr) 54px; }
  .career p { grid-column: 2 / 3; }
  .career .ico { grid-row: 1 / span 2; grid-column: 3; }
  .quiz-pepe { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand-logo { height: 38px; }
  .brand-big { font-size: .95rem; }
  .hero { min-height: auto; padding-bottom: 1.5rem; }
  .hero-grid { grid-template-rows: auto auto auto auto; gap: 1.2rem; }
  .hero-copy { grid-column: 1 / -1; padding-top: 2rem; }
  .hero-title { font-stretch: 100%; font-size: clamp(2.2rem, 11.2vw, 4rem); }
  .hero-pepe { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: end; justify-items: start; gap: .8rem; }
  .hero-pepe img { width: 110px; }
  .bubble { order: 0; border-radius: 14px 14px 14px 2px; box-shadow: 3px 3px 0 var(--c-ink); }
  .hero-meta .hero-coord { display: none; }
  .scroll-cue { margin-left: 0; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li:nth-child(2) { border-right: 0; }
  .process li:nth-child(3) { padding-left: 0; }
  .process li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process li:nth-child(3)::before { left: 0; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig:nth-child(3) { padding-left: 0; border-left: 0; }
  .fig:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sem-line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; }
  .sem-line::before { display: none; }
  .step { align-items: flex-end; padding-bottom: calc(6vh + 84px); min-height: 115vh; }
  .step-card { width: 100%; }
  .hud-ruler { display: none; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equip { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .cta3 { grid-template-columns: minmax(0, 1fr); }
  .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-grid div:nth-child(4n) { border-right: 1px solid var(--line); }
  .tb-grid div:nth-child(2n) { border-right: 0; }
  .tb-grid div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .tb-grid div:nth-last-child(-n+2) { border-bottom: 0; }
  .q-bar { grid-template-columns: 110px minmax(0, 1fr) 36px; }
  .ud-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-shifts { grid-template-columns: minmax(0, 1fr); }
  .pepe-face { width: 56px; height: 56px; }
  .wa-float { width: 52px; height: 52px; }
}
@media (max-width: 420px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .hero-ctas .btn { width: 100%; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .g-item:first-child { grid-column: auto; grid-row: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Impresión del presupuesto ---------- */
.print-sheet { display: none; }
@media print {
  body.printing > *:not(.print-sheet) { display: none !important; }
  body.printing { background: #fff; color: #000; }
  body.printing .print-sheet { display: block; font-family: Arial, sans-serif; font-size: 11pt; }
  .print-sheet h1 { font-size: 16pt; margin: 0 0 4pt; }
  .print-sheet table { width: 100%; border-collapse: collapse; margin-top: 10pt; }
  .print-sheet th, .print-sheet td { border: 1px solid #999; padding: 4pt 6pt; text-align: left; }
  .print-sheet td.n { text-align: right; }
  .print-sheet .tot td { font-weight: bold; }
}
