/* comas.exe / Versión para candidaturas de producto.
   Identidad de marca: marfil, índigo y albaricoque. Sora para titulares, Inter para lectura.
   El editor de la portada usa la paleta de ObraCore porque recrea su interfaz. */
@font-face { font-family: Sora; src: url('/personal-assets/Sora-variable.ttf') format('truetype'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: Inter; src: url('/personal-assets/Inter-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --ivory: #f7f6f2;
  --paper: #fffefb;
  --indigo: #334578;
  --deep: #222e55;
  --ink: #263557;
  --muted: #586173;
  --apricot: #eda783;
  --apricot-soft: #f5ddce;
  --line: #dce0e8;
  --oc-ink: #0f172a;
  --oc-orange: #ea580c;
  --oc-violet: #4338ca;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(20px, 4vw, 48px);
  --head: 72px;
  --display: Sora, Inter, system-ui, sans-serif;
  --text: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
.rm { scroll-behavior: auto; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.65 var(--text); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--apricot); }
::selection { background: var(--apricot); color: var(--deep); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 58px); }
h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -.035em; line-height: 1.2; }
.mark { text-decoration: underline solid var(--apricot) .12em; text-underline-offset: .1em; text-decoration-skip-ink: none; }
.wrap { width: min(1200px, 100% - 2 * var(--gut)); margin-inline: auto; }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.lede strong, .lede b { color: var(--ink); font-weight: 600; }
.kicker { font: 600 13.5px/1.4 var(--text); color: var(--indigo); letter-spacing: 0; }
.dark .kicker { color: var(--apricot); }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--paper); border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; background: var(--indigo); color: #fff; font: 600 15px/1.2 var(--text); text-decoration: none; transition: background-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { background: var(--deep); transform: translateY(-2px); box-shadow: 0 14px 26px -16px #222e55cc; }
.btn:active { transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #26355740; }
.btn.ghost:hover { background: var(--paper); border-color: var(--ink); box-shadow: none; }
.btn.light { background: var(--ivory); color: var(--indigo); }
.btn.light:hover { background: var(--apricot-soft); }
.btn i, .tl i { font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
.btn:hover i.ne, .tl:hover i.ne { transform: translate(3px, -3px); }
.btn:hover i.dn, .tl:hover i.dn { transform: translateY(3px); }
.tl { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; text-decoration: none; background: linear-gradient(var(--apricot), var(--apricot)) 0 calc(100% - 8px) / 100% 2px no-repeat; transition: background-size .3s var(--ease); }
.tl:hover { background-size: 100% 10px; }

/* ---------- Barra de progreso y cabecera ---------- */
.bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--apricot); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.hd { position: sticky; top: 0; z-index: 50; height: var(--head); background: #f7f6f2ee; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.hd.s { border-color: var(--line); }
.hd-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: block; flex: none; }
.logo img { width: clamp(132px, 13vw, 172px); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: 14px; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; position: relative; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--apricot); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav a.on::after { transform: scaleX(1); }
.hd-end { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; padding: 3px; border-radius: 9px; background: #2635570f; font: 600 12.5px/1 var(--text); }
.lang a, .lang span { display: grid; place-items: center; min-width: 36px; min-height: 34px; border-radius: 7px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px #26355724; }
.lang a:hover { color: var(--ink); }
.hd .btn { min-height: 42px; padding: 8px 16px; font-size: 14px; }

/* ---------- Portada ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(48px, 7vw, 96px); position: relative; }
.hero::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none; background: radial-gradient(560px circle at var(--mx, 74%) var(--my, 30%), #eda78333, transparent 70%), linear-gradient(#33457809 1px, transparent 1px) 0 0 / 100% 56px, linear-gradient(90deg, #33457809 1px, transparent 1px) 0 0 / 56px 100%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 3vw, 34px); font-size: 14.5px; color: var(--muted); }
.who img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px var(--paper); }
.who b { display: block; color: var(--ink); font-weight: 600; }
.hero h1 { font-size: clamp(35px, 4vw, 57px); letter-spacing: -.055em; line-height: 1.02; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .ln > span { display: block; }
.hero .lede { margin-top: clamp(20px, 2.6vw, 30px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.facts > div { padding: 20px 20px 0 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin-top: 4px; font: 600 15.5px/1.4 var(--display); letter-spacing: -.02em; }

/* Editor recreado (paleta de ObraCore) */
.spec { position: relative; }
.spec-card { position: relative; background: #fff; border: 1px solid #f3cdae; border-radius: 16px; padding: 14px; box-shadow: 0 40px 70px -46px #222e5599, 0 2px 0 #fff inset; color: var(--oc-ink); font-family: var(--text); }
.spec-tabs { display: flex; gap: 4px; width: max-content; padding: 4px; margin-bottom: 12px; border-radius: 10px; background: #f1f3f7; font-size: 12px; font-weight: 600; color: #64748b; }
.spec-tabs span { padding: 6px 12px; border-radius: 7px; }
.spec-tabs .cur { background: #fff; color: var(--oc-orange); box-shadow: 0 1px 2px #0f172a1f; }
.row { position: relative; padding: 14px; border-radius: 12px; background: #f4f7fd; border: 1px solid #dde5f4; }
.row + .row { margin-top: 10px; }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row-name { font-weight: 700; font-size: 14.5px; letter-spacing: -.02em; line-height: 1.3; }
.row-amt { flex: none; font: 800 18px/1 var(--text); color: var(--oc-violet); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.row-amt small { font-size: 9.5px; font-weight: 700; color: #94a3b8; letter-spacing: .04em; margin-left: 4px; }
.row-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f3; }
.row-meta label { font-size: 12px; color: #64748b; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d5dcea; border-radius: 9px; background: #fff; overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--oc-ink); transition: background-color .15s; }
.qty button:hover { background: #fff3e8; color: var(--oc-orange); }
.qty button:disabled { opacity: .3; cursor: default; background: none; }
.qty output { min-width: 62px; padding-inline: 6px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; border-inline: 1px solid #e2e8f3; line-height: 40px; }
.close { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 12px; padding-top: 14px; border-top: 1px solid #eef0f4; }
.sum { position: relative; padding: 8px 10px 8px 14px; margin: -8px -4px -8px -8px; }
.sum-l { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: #64748b; }
.sum-t { font: 800 clamp(24px, 2.6vw, 30px)/1.05 var(--text); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sum-b { margin-top: 3px; font-size: 11px; color: #64748b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.go { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 14px; border: 0; border-radius: 11px; background: var(--oc-orange); color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 18px -10px #ea580c; transition: background-color .2s, transform .2s var(--ease); }
.go:hover { background: #c2410c; }
.go:active { transform: scale(.985); }
.go svg { width: 16px; height: 16px; flex: none; }
.go.done { background: #0f766e; box-shadow: none; }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: translateY(-3px); color: var(--oc-orange); } }

/* Anotaciones */
.pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--indigo); color: #fff; font: 700 12.5px/1 var(--display); box-shadow: 0 0 0 3px #fff, 0 6px 12px -4px #222e5599; pointer-events: none; }
.pin.p1 { top: -11px; left: -11px; }
.pin.p2 { top: -12px; left: -12px; }
.pin.p3 { top: -13px; right: -9px; }
.hl { transition: box-shadow .3s, background-color .3s; border-radius: 10px; }
.spec[data-hl='1'] [data-a='1'], .spec[data-hl='2'] [data-a='2'], .spec[data-hl='3'] [data-a='3'] { box-shadow: 0 0 0 3px var(--apricot), 0 0 0 9px #eda78333; }
.notes { margin-top: 18px; display: grid; gap: 2px; counter-reset: n; }
.notes li { counter-increment: n; }
.notes button { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 14.5px; line-height: 1.45; color: var(--muted); transition: background-color .2s, color .2s; }
.notes button::before { content: counter(n); display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--indigo); color: var(--indigo); font: 700 11.5px/1 var(--display); transition: background-color .2s, color .2s; }
.notes button:hover, .notes button.on { background: #33457810; color: var(--ink); }
.notes button:hover::before, .notes button.on::before { background: var(--indigo); color: #fff; }
.notes b { color: var(--ink); font-weight: 600; }
.spec-cap { margin-top: 10px; padding-left: 10px; font-size: 13px; color: var(--muted); }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(72px, 10vw, 140px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { margin-top: 14px; }
.sec-head .lede { justify-self: end; }
.rule { height: 1px; background: var(--line); transform-origin: 0 50%; }

/* Caso ObraCore */
.case { background: var(--paper); border-block: 1px solid var(--line); }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.case-meta > div { padding: 22px 24px 0 0; }
.case-meta > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.case-meta dt { font-size: 13px; color: var(--muted); }
.case-meta dd { margin-top: 6px; font-weight: 500; line-height: 1.5; }
.problem { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); margin-top: clamp(64px, 9vw, 120px); align-items: start; }
.problem h3 { font-size: clamp(26px, 3.1vw, 40px); letter-spacing: -.045em; line-height: 1.1; }
.problem p + p { margin-top: 16px; }
.problem .quote { font: 500 clamp(19px, 1.9vw, 24px)/1.45 var(--display); letter-spacing: -.03em; color: var(--ink); padding-left: 22px; border-left: 3px solid var(--apricot); }
.problem .body { color: var(--muted); max-width: 60ch; }

/* Recorrido de la decisión: escena fija y pasos por desplazamiento */
.track { position: relative; margin-top: clamp(56px, 8vw, 104px); }
.scene { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.js .track { height: 430vh; }
.js .scene { position: sticky; top: var(--head); height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); padding-block: 24px; }
.steps-h { font: 600 13.5px/1.4 var(--text); color: var(--indigo); margin-bottom: 18px; }
.steps { position: relative; display: grid; }
.step { padding: 16px 0 16px 20px; border-left: 2px solid var(--line); transition: border-color .4s; }
.step button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.step h4 { font-size: 18px; letter-spacing: -.03em; line-height: 1.25; color: var(--muted); transition: color .3s; }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.js .step .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease), opacity .4s; opacity: 0; }
.js .step .more > div { overflow: hidden; }
.js .step.on .more { grid-template-rows: 1fr; opacity: 1; }
.step.on { border-color: var(--apricot); }
.step.on h4, .step button:hover h4 { color: var(--ink); }
html:not(.js) .step h4 { color: var(--ink); }
.stage { position: relative; aspect-ratio: 1512 / 836; max-height: calc(100vh - var(--head) - 110px); width: 100%; margin-inline: auto; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -56px #222e55aa; }
.layer { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; transition: transform .9s var(--ease), opacity .5s; will-change: transform; }
.layer img { width: 100%; }
.focus { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 8px; box-shadow: 0 0 0 4000px #222e5500; outline: 0 solid var(--apricot); transition: left .8s var(--ease), top .8s var(--ease), width .8s var(--ease), height .8s var(--ease), box-shadow .6s, outline-width .3s; pointer-events: none; }
.stage.lit .focus { box-shadow: 0 0 0 4000px #222e5573; outline-width: calc(3px / var(--z, 1)); }
.layer-m { inset: 0; width: auto; display: grid; place-items: center; background: #eef0f6; opacity: 0; transition: opacity .5s; }
.layer-m .phone { position: relative; height: 92%; aspect-ratio: 352 / 661; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 50px -30px #222e55aa, 0 0 0 1px var(--line); }
.layer-m img { width: 100%; height: 100%; object-fit: cover; }
.stage[data-step='3'] .layer-m { opacity: 1; }
.stage-cap { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; }
.stage-cap b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
html:not(.js) .layer-m { position: relative; opacity: 1; height: 520px; margin-top: 16px; border-radius: 14px; }
html:not(.js) .stage { aspect-ratio: auto; max-height: none; overflow: visible; border: 0; box-shadow: none; background: none; }
html:not(.js) .layer { position: relative; }

/* Otras vistas */
.views { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.views h3 { font-size: clamp(26px, 3.1vw, 40px); letter-spacing: -.045em; line-height: 1.1; }
.views > div > p { color: var(--muted); margin-top: 14px; }
.tabs { margin-top: 24px; display: grid; }
.tabs button { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: 600 16px/1.3 var(--display); letter-spacing: -.025em; color: var(--muted); transition: color .2s, padding-left .35s var(--ease); }
.tabs button:last-child { border-bottom: 1px solid var(--line); }
.tabs button span { font: 400 13px/1 var(--text); letter-spacing: 0; opacity: 0; transition: opacity .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected='true'] { color: var(--ink); padding-left: 14px; box-shadow: inset 3px 0 var(--apricot); }
.tabs button[aria-selected='true'] span { opacity: 1; }
.view-fig { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #eef0f6; border: 1px solid var(--line); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); padding: clamp(12px, 2.4vw, 32px); }
.view-fig img { place-self: center; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 24px 44px -30px #222e5599; }
.view-fig img.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.view-txt { margin-top: 18px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px 32px; }
.view-txt h4 { font-size: 18px; letter-spacing: -.03em; line-height: 1.3; }
.view-txt p { color: var(--muted); font-size: 15px; }

/* Evidencia */
.proof { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--ivory); }
.proof > div { padding: clamp(22px, 3.4vw, 40px); }
.proof > div + div { border-left: 1px solid var(--line); background: var(--paper); }
.proof h3 { display: flex; align-items: center; gap: 10px; }
.proof h3::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #2f9e6a; flex: none; }
.proof > div + div h3::before { background: none; box-shadow: inset 0 0 0 2px var(--apricot); }
.proof ul { margin-top: 16px; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; }
.proof li { padding-left: 18px; position: relative; }
.proof li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: currentColor; }
.proof p { margin-top: 14px; color: var(--muted); font-size: 15.5px; }
.case-links { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 34px; align-items: center; }

/* Automoción */
.dark { background: radial-gradient(120% 90% at 15% 0%, #3a4d86 0%, var(--indigo) 40%, var(--deep) 100%); color: #eef0f7; position: relative; overflow: hidden; }
.dark::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#ffffff09 1px, transparent 1px), linear-gradient(90deg, #ffffff09 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.dark .wrap { position: relative; }
.dark .lede { color: #c9d0e6; }
.dark .lede b { color: #fff; }
.hmi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #ffffff2b; }
.hmi > div { padding: 26px 28px 0 0; }
.hmi > div + div { padding-left: 28px; border-left: 1px solid #ffffff2b; }
.hmi h3 { font-size: 19px; }
.hmi p { margin-top: 10px; color: #c9d0e6; font-size: 15.5px; }
.conf { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 40px; padding: 18px 22px; border-radius: 12px; background: #ffffff10; border: 1px solid #ffffff22; font-size: 15px; color: #dfe4f3; }
.conf .tl { color: #fff; display: inline; background: none; text-decoration: underline solid var(--apricot) 2px; text-underline-offset: 5px; line-height: 1.7; }
.time { margin-top: clamp(56px, 8vw, 104px); }
.time-h { font: 600 13.5px/1.4 var(--text); color: var(--apricot); margin-bottom: 26px; }
.time ol { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.6fr 1.2fr; gap: 0; }
.time ol::before, .time ol::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: #ffffff2b; }
.time ol::after { background: var(--apricot); transform-origin: 0 50%; transform: scaleX(var(--t, 1)); }
.time li { position: relative; padding: 30px 20px 0 0; }
.time li::before { content: ''; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--deep); box-shadow: inset 0 0 0 2px var(--apricot); z-index: 1; transition: background-color .4s; }
.time li.now::before, .time li.key::before { background: var(--apricot); }
.time span { display: block; font: 600 13.5px/1.3 var(--text); color: var(--apricot); font-variant-numeric: tabular-nums; }
.time b { display: block; margin-top: 6px; font: 600 17px/1.3 var(--display); letter-spacing: -.025em; }
.time small { display: block; margin-top: 4px; font-size: 14px; color: #c9d0e6; line-height: 1.5; }

/* Más trabajo */
.work-note { color: var(--muted); font-size: 15px; }
.work { border-top: 1px solid var(--line); }
.work a { position: relative; display: grid; grid-template-columns: 76px minmax(0, .7fr) minmax(0, 1.3fr) minmax(0, .7fr) 28px; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .4s var(--ease), background-color .3s; }
.work a::before { content: ''; position: absolute; inset: 0 calc(var(--gut) * -.5); background: var(--paper); border-radius: 12px; opacity: 0; transition: opacity .3s; z-index: -1; }
.work a:hover::before, .work a:focus-visible::before { opacity: 1; }
.work img { width: 76px; height: 54px; object-fit: cover; border-radius: 7px; }
.work b { font: 700 clamp(20px, 2.2vw, 28px)/1.1 var(--display); letter-spacing: -.045em; }
.work p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.work em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.work i { font-style: normal; font-size: 18px; justify-self: end; transition: transform .35s var(--ease); }
.work a:hover i { transform: translate(4px, -4px); }
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: 340px; aspect-ratio: 16 / 10; pointer-events: none; transform: translate3d(var(--x, 0), var(--y, 0), 0); }
.peek-in { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: var(--line); box-shadow: 0 30px 60px -30px #222e55cc; opacity: 0; transform: scale(.88) rotate(-2deg); transition: opacity .25s, transform .45s var(--ease); }
.peek.on .peek-in { opacity: 1; transform: scale(1) rotate(-2deg); }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.peek img.on { opacity: 1; }

/* Método */
.method { background: var(--paper); border-block: 1px solid var(--line); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: f; border-top: 1px solid var(--line); }
.flow li { counter-increment: f; padding: 26px 24px 0 0; position: relative; }
.flow li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.flow li::before { content: counter(f); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 18px; border-radius: 50%; background: var(--indigo); color: #fff; font: 700 13px/1 var(--display); }
.flow p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.flow small { display: block; margin-top: 14px; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.base { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); }
.base h3 { font-size: 17px; margin-bottom: 14px; }
.base li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.base li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.base p { color: var(--muted); font-size: 15px; }

/* Contacto */
.end { padding-block: clamp(80px, 11vw, 150px); }
.end h2 { font-size: clamp(40px, 7.4vw, 104px); letter-spacing: -.06em; line-height: .98; }
.end-row { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.end-row .lede { max-width: 46ch; }
.ft { border-top: 1px solid var(--line); padding-block: 24px 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; color: var(--muted); }
.ft a { text-underline-offset: 3px; }

/* ---------- Movimiento ---------- */
/* Portada: una única secuencia de entrada. */
.js:not(.rm) .hero h1 .ln > span { transform: translateY(105%); animation: up .9s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 80ms); }
.js:not(.rm) .hero .fade { opacity: 0; animation: fade .7s ease forwards; animation-delay: calc(var(--i, 0) * 90ms + 380ms); }
.js:not(.rm) .spec-card { opacity: 0; transform: translateY(26px) scale(.98); animation: rise 1s var(--ease) .25s forwards; }
.js:not(.rm) .spec .row { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i) * 130ms + 600ms); }
.js:not(.rm) .spec .close { opacity: 0; animation: fade .6s ease .95s forwards; }
.js:not(.rm) .pin { transform: scale(0); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(var(--i) * 220ms + 1500ms); }
.js:not(.rm) .notes li { opacity: 0; transform: translateX(-8px); animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i) * 220ms + 1560ms); }
@keyframes up { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { to { transform: scale(1); } }

/* Entradas por desplazamiento: titulares por máscara, líneas que se trazan, grupos escalonados. */
.js:not(.rm) [data-r='mask'] { clip-path: inset(0 0 100% 0); transform: translateY(18px); transition: clip-path 1s var(--ease), transform 1s var(--ease); }
.js:not(.rm) [data-r='mask'].in { clip-path: inset(0 0 -10% 0); transform: none; }
.js:not(.rm) [data-r='line'] { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js:not(.rm) [data-r='line'].in { transform: none; }
.js:not(.rm) [data-r='kids'] > * { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--k, 0) * 90ms); }
.js:not(.rm) [data-r='kids'].in > * { opacity: 1; transform: none; }
.js:not(.rm) [data-r='up'] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ease); }
.js:not(.rm) [data-r='up'].in { opacity: 1; transform: none; }
.js:not(.rm) .time ol::after { --t: 0; transition: transform 1.8s var(--ease) .2s; }
.js:not(.rm) .time.in ol::after { --t: 1; }
.js:not(.rm) .time li { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .7s var(--ease); transition-delay: calc(var(--k) * 260ms + 250ms); }
.js:not(.rm) .time.in li { opacity: 1; transform: none; }
.js:not(.rm) .work a { opacity: 0; transform: translateY(14px); transition: opacity .6s ease calc(var(--k) * 70ms), transform .7s var(--ease) calc(var(--k) * 70ms), padding .4s var(--ease); }
.js:not(.rm) .work.in a { opacity: 1; transform: none; }
.rm *, .rm *::before, .rm *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }

/* ---------- Adaptación ---------- */
@media (hover: hover) and (min-width: 1000px) {
  .work a:hover { padding-left: 14px; }
  .work a:hover img { opacity: .0; }
  .work img { transition: opacity .25s; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .spec { max-width: 620px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding-bottom: 20px; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  :root { --head: 62px; }
  .sec-head, .problem, .views, .view-txt { grid-template-columns: 1fr; }
  .sec-head .lede { justify-self: start; }
  .case-meta, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-meta > div, .flow li { padding-bottom: 22px; }
  .case-meta > div:nth-child(3), .flow li:nth-child(3) { padding-left: 0; border-left: 0; }
  .case-meta > div:nth-child(n+3), .flow li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scene { grid-template-columns: 1fr; gap: 16px; align-content: start; }
  .js .scene { padding-block: 14px; }
  .scene > .stage-col { order: -1; }
  .stage { aspect-ratio: 4 / 3; max-height: 44svh; }
  .steps-h { display: none; }
  .step { padding-block: 10px; }
  .step h4 { font-size: 16.5px; }
  .step p { font-size: 14.5px; }
  .proof { grid-template-columns: 1fr; }
  .proof > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hmi, .conf { grid-template-columns: 1fr; }
  .hmi > div { padding: 22px 0; }
  .hmi > div + div { padding-left: 0; border-left: 0; border-top: 1px solid #ffffff2b; }
  .time ol { grid-template-columns: 1fr; gap: 26px; padding-left: 4px; }
  .time ol::before, .time ol::after { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .time ol::after { transform-origin: 50% 0; transform: scaleY(var(--t, 1)); }
  .time li { padding: 0 0 0 34px; }
  .time li::before { top: 3px; }
  .work a { grid-template-columns: 64px minmax(0, 1fr) 22px; gap: 6px 16px; }
  .work img { width: 64px; height: 64px; grid-row: 1 / span 2; }
  .work p { grid-column: 2; }
  .work em { display: none; }
  .work i { grid-row: 1; grid-column: 3; }
  .base { grid-template-columns: 1fr; }
  .peek { display: none; }
}
@media (max-width: 560px) {
  .hd .btn span { display: none; }
  .hd .btn { padding-inline: 14px; }
  .lang a, .lang span { min-width: 34px; }
  .facts, .case-meta, .flow { grid-template-columns: 1fr; }
  .facts > div, .case-meta > div, .flow li { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); padding-top: 16px; }
  .facts { border-top: 0; }
  .case-meta, .flow { border-top: 0; }
  .close { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .row-amt small { display: none; }
  .end-row .btn { flex: 1 1 100%; }
}
@media print {
  .hd, .bar, .peek { display: none; }
  .js .track { height: auto; }
  .js .scene { position: static; height: auto; }
}

/* ---------- Páginas de caso ---------- */
.cs-back { font-size: 14px; color: var(--muted); }
.cs-back span { transition: transform .3s var(--ease); display: inline-block; }
.cs-back:hover span { transform: translateX(-4px); }
.cs-hero { padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 80px); position: relative; }
.cs-hero::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none; background: radial-gradient(520px circle at 78% 28%, #eda78333, transparent 70%), linear-gradient(#33457809 1px, transparent 1px) 0 0 / 100% 56px, linear-gradient(90deg, #33457809 1px, transparent 1px) 0 0 / 56px 100%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.cs-hero-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.cs-hero h1 { font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -.06em; line-height: .98; margin-top: 14px; }
.cs-hero .lede { margin-top: clamp(18px, 2.4vw, 28px); }
.cs-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 34px); }
.js:not(.rm) .cs-hero .fade { opacity: 0; animation: fade .7s ease forwards; animation-delay: calc(var(--i, 0) * 100ms + 150ms); }
.cs-visual { position: relative; padding-bottom: 8%; }
.cs-shot { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -36px #222e5566; }
.cs-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f1f0eb; }
.cs-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9ceda; }
.cs-shot img { width: 100%; height: auto; }
.cs-phone { position: absolute; right: -2%; bottom: 0; width: 24%; border: 5px solid var(--deep); border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: 0 26px 46px -22px #222e55aa; }
.js:not(.rm) .cs-phone { animation: phone 1.1s var(--ease) .7s both; }
@keyframes phone { from { opacity: 0; transform: translateY(30px) rotate(2deg); } to { opacity: 1; transform: none; } }
.case-page .case-meta { margin-top: 0; }
.cs-chal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); }
.cs-chal .body { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink); max-width: 46ch; }
.cs-chal .body:last-child { color: var(--indigo); font-weight: 500; }
.cs-dec { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(26px, 4vw, 48px); border-top: 1px solid var(--line); }
.cs-dec:nth-of-type(even) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.cs-dec:nth-of-type(even) .cs-shot { order: 2; }
.cs-dec-t { display: grid; gap: 12px; align-content: center; }
.cs-n { font: 700 14px/1 var(--display); color: var(--indigo); letter-spacing: .08em; }
.cs-n::after { content: ''; display: block; width: 36px; height: 3px; margin-top: 10px; background: var(--apricot); border-radius: 2px; }
.cs-dec-t .body { color: var(--muted); }
.cs-shot img { transition: transform .9s var(--ease); }
@media (hover: hover) { .cs-dec:hover .cs-shot img { transform: scale(1.02); } }
.cs-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); counter-reset: s; margin-bottom: clamp(28px, 4vw, 44px); }
.cs-steps li { border-top: 1px solid #ffffff3d; padding-top: 18px; display: grid; gap: 12px; align-content: start; }
.cs-steps span { font: 700 40px/1 var(--display); color: var(--apricot); letter-spacing: -.05em; }
.cs-steps p { color: #e8ebf3; font-size: 16.5px; line-height: 1.55; }
.cs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); }
.cs-two h2 { font-size: clamp(26px, 3vw, 40px); margin: 12px 0 16px; }
.cs-two .body { color: var(--muted); max-width: 52ch; }
.cs-facts { margin-top: 20px; display: grid; gap: 10px; }
.cs-facts li { position: relative; padding-left: 22px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.cs-facts li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--apricot); }
.cs-facts code { font-size: .88em; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.cs-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(24px, 4vw, 48px); }
.cs-next a { display: grid; gap: 4px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; transition: border-color .3s, transform .35s var(--ease), box-shadow .3s; }
.cs-next a:hover { border-color: var(--indigo); transform: translateY(-3px); box-shadow: 0 18px 30px -24px #222e5599; }
.cs-next .n { text-align: right; }
.cs-next small { font-size: 13px; color: var(--muted); }
.cs-next b { font: 700 clamp(22px, 2.6vw, 32px)/1.1 var(--display); letter-spacing: -.045em; }
.cs-next span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .cs-hero-grid, .cs-chal, .cs-dec, .cs-dec:nth-of-type(even), .cs-two { grid-template-columns: 1fr; }
  .cs-dec:nth-of-type(even) .cs-shot { order: 0; }
  .cs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-phone { width: 26%; right: 0; }
  .cs-back { display: none; }
}
@media (max-width: 560px) {
  .cs-steps, .cs-next { grid-template-columns: 1fr; }
  .cs-next .n { text-align: left; }
  .cs-hero h1 { font-size: clamp(40px, 13vw, 56px); }
}
@media print { .cs-phone { display: none; } }

.logo .person-name { color: var(--indigo); font: 700 clamp(17px, 2vw, 24px)/1.1 var(--display); letter-spacing: -.045em; white-space: nowrap; }
.logo:has(.person-name) { text-decoration: none; }