@font-face {
  font-family: 'Instrument Sans';
  src: url(assets/fonts/InstrumentSans.ttf) format('truetype');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #0c1528;
  --ink-deep: #060b17;
  --obsidian: #040814;
  --paper: #f5f6f9;
  --muted-light: #475773;
  --muted-dark: #b6c8e6;
  --cobalt: #244cff;
  --cobalt-bright: #5e8eff;
  --electric: #78aaff;
  --hairline-dark: #192a4f;
  --hairline-light: #d5deec;
  --gutter: max(48px, 6vw);
}

body { font-size: 1rem; }
h1, h2, h3, h4, h5, .brand, .footer-brand {
  font-family: 'Instrument Sans', Manrope, sans-serif;
  font-variation-settings: 'wdth' 100;
}
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ── Hero, WebGL cobalt surfaces & Nórda (overflow: clip prevents fullscreen bleed over .delivery) ── */
.experience { position: relative; isolation: isolate; overflow: clip; }
.experience::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 100px;
  background: linear-gradient(transparent, #060b17);
  z-index: 2;
  pointer-events: none;
}
.surface-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  margin-bottom: -100svh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: #05070c;
}
.surface-stage canvas, .surface-stage > picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.surface-stage > picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.surface-stage canvas { opacity: 0; }
.surface-stage.is-live canvas { opacity: 1; }
.surface-stage.is-live > picture { visibility: hidden; }
.surface-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #060b17, transparent 14%);
  pointer-events: none;
}
.surface-stage.poster-unavailable { background: radial-gradient(ellipse at 90% 90%, #164bde, transparent 55%), #05070c; }
.surface-stage.poster-unavailable > picture { visibility: hidden; }

.hero { position: relative; z-index: 1; padding: 28px var(--gutter) 32px; min-height: 100svh; display: flex; flex-direction: column; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 48px; }
.brand { font-size: 1.75rem; font-weight: 650; letter-spacing: -.04em; }
.header nav { display: flex; align-items: center; gap: 32px; font-size: .875rem; }
.header nav > a, .nav-contact { min-height: 44px; display: inline-flex; align-items: center; }
.header nav > a { color: #e6ebf6; }
.header nav > a:hover { color: white; text-decoration: underline; text-underline-offset: 7px; }
.nav-contact { padding: 0; border: 0; background: none; font-size: .875rem; color: #f8fbff; }
.hero-body { flex: 1; display: flex; align-items: center; padding: 64px 0 80px; }
.copy { width: min(760px, 62%); }
h1 { font-size: clamp(3.375rem, 6.15vw, 5.875rem); line-height: 1.015; letter-spacing: -.046em; font-weight: 500; text-wrap: balance; }
h1 em { font: inherit; font-weight: 550; color: var(--electric); text-shadow: 0 0 45px #235bff24; }
.lead { max-width: 525px; font-size: 1.0625rem; line-height: 1.7; letter-spacing: -.012em; margin-top: 28px; color: #dbe4f5; }
.actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.work-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 550; text-decoration: underline; text-decoration-color: #9fb9ea80; text-underline-offset: 7px; }
.work-link:hover { text-decoration-color: #aac7ff; }

.project-section { position: relative; z-index: 1; padding: 84px var(--gutter) 128px; }
.case-layout { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.82fr); gap: 6vw; align-items: center; }
.case-copy { position: relative; padding: 20px 0; isolation: isolate; }
.case-copy::before { content: ''; position: absolute; inset: -32px -24px; z-index: -1; background: radial-gradient(ellipse at 30% 50%, #05070cf5 42%, #05070c00 76%); pointer-events: none; }
.case-copy .eyebrow { color: #9eb9ec; }
.case-copy h2 { font-size: 4rem; letter-spacing: -.045em; line-height: 1; margin-top: 14px; }
.project-purpose { font: 500 clamp(1.45rem, 1.95vw, 1.875rem)/1.22 'Instrument Sans', sans-serif; letter-spacing: -.025em; max-width: 360px; margin-top: 28px; color: #f3f7ff; }
.project-context { color: #bfd0ea; font-size: .96875rem; line-height: 1.68; max-width: 360px; margin-top: 18px; }
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #253b66;
  max-width: 360px;
  font-size: .8125rem;
  line-height: 1.5;
}
.project-meta span:first-child { color: #b9cff5; font-weight: 500; }
.project-meta span:last-child { color: #9ab2db; }

.project-gallery { min-width: 0; position: relative; }
.project-gallery::before { content: ''; position: absolute; inset: 25% -9% -12%; background: radial-gradient(ellipse, #326aff2a, transparent 65%); filter: blur(25px); pointer-events: none; z-index: -1; }
.project-image { display: block; border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid #b7d4ff70; background: #eff4fb; box-shadow: 0 30px 90px #0005; }
.project-viewport { display: block; position: relative; aspect-ratio: 1425/900; overflow: hidden; }
.project-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .28s ease; pointer-events: none; }
.project-slide.is-selected { opacity: 1; }
.project-slide img { display: block; width: 100%; max-width: none; height: auto; }
.project-slide-detail img { width: 101.06383%; }
.project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #0e182d; border: 1px solid #b7d4ff42; border-top: 0; border-radius: 0 0 14px 14px; padding: 13px 18px; min-height: 72px; }
.project-views { display: flex; gap: 5px; flex-wrap: wrap; }
.project-views button { border: 0; background: none; color: #adbfde; padding: 9px 10px; min-height: 44px; font-size: .875rem; border-radius: 8px; position: relative; }
.project-views button[aria-pressed=true] { color: white; background: #8caaff19; }
.project-views button[aria-pressed=true]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: #5c8cff; pointer-events: none; }
.project-open { display: flex; flex-direction: column; justify-content: center; min-height: 44px; font-size: .875rem; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.project-open:hover { text-decoration: underline; text-underline-offset: 4px; }
.new-tab-note { font-size: .75rem; font-weight: 400; color: #b0c5e7; margin-top: 4px; }

/* ── Shared Stable Motion Object Contract ── */
.motion-object { --object-response: 0; position: relative; border-radius: 10px; }
.object-surface { transform: translateY(calc(var(--object-response) * -3px)); transform-origin: center; }
.motion-object:not(button) { cursor: default; }
.motion-object > .object-surface { position: relative; }
.motion-object::before, .motion-object::after { pointer-events: none; }
button.motion-object { padding: 0; border: 0; background: none; font-family: inherit; text-align: left; }
button.motion-object > .object-surface { display: flex; align-items: center; justify-content: var(--object-align, center); min-height: var(--hit-height, 44px); width: 100%; border-radius: inherit; pointer-events: none; }
button.motion-object:focus-visible { outline: 2px solid #75a5ff; outline-offset: 4px; }

.disclosure-icon { display: inline-block; width: 18px; height: 18px; position: relative; flex-shrink: 0; transition: transform .26s cubic-bezier(.2, .8, .2, 1), color .2s; pointer-events: none; }
.disclosure-icon::before, .disclosure-icon::after { content: ''; position: absolute; background: currentColor; border-radius: 1px; }
.disclosure-icon::before { width: 18px; height: 1.5px; left: 0; top: 8px; }
.disclosure-icon::after { height: 18px; width: 1.5px; top: 0; left: 8px; }
details[open] > summary .disclosure-icon,
[aria-expanded=true] .disclosure-icon { transform: rotate(45deg); }
figure { margin: 0; }

/* ── Unified Editorial System (S1: 3 architectural chapters, zero nested card clutter) ── */
.interventions {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(ellipse 68% 36% at 84% 10%, #1c42d920, transparent 70%),
    var(--ink-deep);
  color: #f4f7ff;
  padding: 120px var(--gutter) 128px;
  border-top: 1px solid #162647;
}
.interventions::before {
  content: '';
  position: absolute;
  top: -1px;
  left: var(--gutter);
  width: min(460px, 50%);
  height: 1.5px;
  background: linear-gradient(90deg, #87b4ff, #2c58ff, transparent);
  pointer-events: none;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 6vw;
  align-items: end;
  padding-bottom: 64px;
}
.section-heading .eyebrow { color: #8eb4f2; margin-bottom: 18px; }
.section-heading h2 {
  font-size: clamp(2.5rem, 4.3vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.044em;
  max-width: 720px;
  color: #ffffff;
}
.section-intro {
  font-size: 1.0625rem;
  line-height: 1.68;
  color: #bfd0ec;
  max-width: 420px;
  justify-self: end;
}

.editorial-ledger {
  border-top: 1px solid var(--hairline-dark);
}
.chapter-row {
  position: relative;
  border-bottom: 1px solid var(--hairline-dark);
  transition: background .3s;
}
.chapter-row::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto;
  height: 1.5px;
  background: linear-gradient(90deg, #98c0ff, #2f5eff 42%, transparent 82%);
  opacity: 0;
  transition: opacity .28s;
  pointer-events: none;
}
.chapter-row:hover::before { opacity: .65; }
.chapter-row.is-open::before { opacity: 1; }
.chapter-row.is-open {
  background: radial-gradient(ellipse 56% 50% at 76% 42%, #2046d81a, transparent 74%);
}

.row-heading { margin: 0; }
.row-trigger {
  width: 100%;
  border-radius: 6px;
  --hit-height: 108px;
}
.row-trigger-surface {
  display: grid !important;
  grid-template-columns: 44px minmax(260px, .95fr) minmax(260px, 1.05fr) 24px;
  gap: 20px 4vw;
  align-items: center;
  padding: 36px 6px 36px 0;
  color: #d3e0f7;
  transition: color .2s;
}
.row-trigger:hover .row-trigger-surface,
.chapter-row.is-open .row-trigger-surface { color: #ffffff; }

.row-num {
  font-size: .875rem;
  font-weight: 600;
  color: #7ea3e6;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  transition: color .2s;
}
.chapter-row.is-open .row-num { color: #a3c6ff; }
.row-title {
  font: 500 clamp(1.5625rem, 2.35vw, 2.25rem)/1.1 'Instrument Sans', sans-serif;
  letter-spacing: -.034em;
  color: inherit;
}
.row-summary {
  font-size: .96875rem;
  line-height: 1.58;
  color: #9cb4dd;
  max-width: 470px;
  transition: color .2s;
}
.row-trigger:hover .row-summary,
.chapter-row.is-open .row-summary { color: #c7d7f4; }
.chapter-row .disclosure-icon { color: #82a7e8; justify-self: end; }
.row-trigger:hover .disclosure-icon,
.chapter-row.is-open .disclosure-icon { color: #ffffff; }

/* Expanded spacious 2-column spread — unframed visual floating directly in negative space */
.row-panel {
  overflow: hidden;
  will-change: height, opacity;
}
.row-inner {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: 6vw;
  align-items: center;
  padding: 4px 6px 64px 44px;
}
.row-copy { min-width: 0; }
.row-lead {
  font: 500 clamp(1.25rem, 1.6vw, 1.4375rem)/1.3 'Instrument Sans', sans-serif;
  letter-spacing: -.022em;
  color: #f2f6ff;
}
.row-desc {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted-dark);
  max-width: 450px;
}
.row-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #182a4f;
  font-size: .84375rem;
  line-height: 1.62;
  color: #9ab3dd;
  max-width: 450px;
}
.row-meta strong { color: #d5e4ff; font-weight: 600; }
.row-cta {
  margin-top: 22px;
  padding: 8px 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: #8fb8ff;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #8fb8ff66;
  text-underline-offset: 6px;
  transition: color .18s, text-decoration-color .18s;
}
.row-cta:hover { color: #ffffff; text-decoration-color: #ffffff; }

.scope-note {
  margin-top: 30px;
  font-size: .9rem;
  line-height: 1.65;
  color: #9ab3dd;
}

/* ── Unframed Sculptural Figure Space (zero outer card wrapping inner card) ── */
.row-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.figure-space {
  position: relative;
  width: 100%;
  min-height: 318px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ea-flow-sculpture,
.ea-measure-sculpture,
.ga-cycle-sculpture {
  width: min(470px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sculpture-svg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.sculpture-svg text { font-family: 'Instrument Sans', Manrope, sans-serif; }

/* Clean hairline editorial tabs (no bulky pill container) */
.editorial-tabs {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
  border-bottom: 1px solid #1b2f57;
}
.tab-btn { border-radius: 4px; --hit-height: 46px; }
.tab-surface {
  position: relative;
  padding: 10px 4px;
  font-size: .875rem;
  font-weight: 500;
  color: #9bb4de;
  white-space: nowrap;
  transition: color .2s;
}
.tab-btn:hover .tab-surface { color: #eef4ff; }
.tab-btn[aria-pressed=true] .tab-surface { color: #ffffff; font-weight: 600; }
.tab-btn[aria-pressed=true] .tab-surface::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #8dbaff, #325eff);
  pointer-events: none;
}

.subscene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
.subscene.is-active {
  visibility: visible;
  pointer-events: auto;
}

/* ── D-A -> D-B: Sculptural Decision Sheet floating directly in dark negative space ── */
.diag-align-stage {
  position: relative;
  width: min(390px, 94%);
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.align-ghost {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(150deg, #16337d55, #09142e22);
  border: 1px solid #5989f54d;
  pointer-events: none;
  will-change: transform, opacity;
}
.decision-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 16px;
  padding: 22px 26px 24px;
  background: linear-gradient(165deg, #0e1c3d, #070f23);
  border: 1px solid #2e4e91;
  box-shadow: 0 28px 68px #01040d99, inset 0 1px 0 #9cc2ff44;
  overflow: hidden;
  will-change: transform;
}
.sheet-crest {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #a8caff, #2f5eff 65%, transparent);
}
.sheet-stratum {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #182c56;
}
.stratum-num {
  font-size: .75rem;
  font-weight: 600;
  color: #82a8ed;
  font-variant-numeric: tabular-nums;
}
.stratum-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #c2d6f8;
}
.stratum-bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #4e72ba;
}
.bar-short { width: 64px; margin-left: auto; background: #769ce3; }
.stratum-pair { display: flex; flex-direction: column; gap: 5px; margin-left: auto; width: 84px; }
.bar-med { width: 100%; background: #8bb2f5; }
.bar-muted { width: 62%; background: #334e85; }

.stratum-rec {
  display: block;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #5e8eff;
  background: linear-gradient(135deg, #163687, #0e2259);
  box-shadow: inset 0 1px 0 #a8caff66;
}
.rec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #a8caff; box-shadow: 0 0 10px #5c8cff; }
.stratum-rec .stratum-label { color: #f2f7ff; }
.bar-bright { width: 80%; height: 7px; background: #ffffff; }
.bar-sub { width: 52%; height: 5px; background: #9bc0ff; margin-top: 8px; opacity: .82; }

/* ── E1: Oferta y experiencia (floating in negative space) ── */
.ea-offer {
  position: relative;
  width: min(410px, 96%);
  border-radius: 16px;
  padding: 20px 22px 24px;
  background: linear-gradient(160deg, #0e1c3d, #071024);
  border: 1px solid #2d4c8c;
  box-shadow: 0 28px 64px #01040d88, inset 0 1px 0 #9cc2ff38;
  overflow: hidden;
}
.ea-offer-crest {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #98c0ff, #325eff, transparent);
}
.ea-offer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #182b54;
}
.ea-brand-dot { width: 22px; height: 6px; border-radius: 3px; background: #dbe8ff; }
.ea-nav-links { display: flex; gap: 8px; }
.ea-nav-links i { display: block; width: 24px; height: 4px; border-radius: 2px; background: #4a6cb0; }
.ea-offer-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}
.ea-offer-copy { display: flex; flex-direction: column; gap: 9px; }
.ea-h1-a { width: 92%; height: 11px; border-radius: 5px; background: #ffffff; }
.ea-h1-b { width: 68%; height: 11px; border-radius: 5px; background: #8bb8ff; }
.ea-sub { width: 82%; height: 6px; border-radius: 3px; background: #4d6fb5; margin-top: 4px; }
.ea-cta-pill { width: 88px; height: 24px; border-radius: 999px; background: linear-gradient(90deg, #2d5bff, #6fa2ff); margin-top: 10px; box-shadow: 0 6px 18px #244cff55; }
.ea-offer-art {
  height: 118px;
  border-radius: 12px;
  background: radial-gradient(ellipse at 75% 85%, #244cff55, #0a1530 70%);
  border: 1px solid #2b4a8c;
  position: relative;
  overflow: hidden;
}
.ea-art-arc {
  position: absolute;
  inset: 22% -15% -35% 15%;
  border-radius: 50%;
  border-top: 2px solid #96bfff;
  background: linear-gradient(180deg, #3c6eff44, transparent 70%);
}

/* ── G1: Sistema coordinado (three translucent planes locked along one continuous horizon) ── */
.ga-horizon {
  position: relative;
  width: min(440px, 98%);
  padding: 20px 0 8px;
}
.ga-horizon-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 48%;
  height: 2px;
  background: linear-gradient(90deg, #325eff, #9ec4ff, #ffffff);
  box-shadow: 0 0 14px #4c7eff88;
  pointer-events: none;
}
.ga-planes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ga-plane {
  padding: 24px 14px;
  border-radius: 14px;
  background: linear-gradient(165deg, #0d1b3b, #071024);
  border: 1px solid #2e4d8e;
  box-shadow: 0 18px 40px #01040d77;
  text-align: center;
}
.ga-plane.is-anchor {
  background: linear-gradient(155deg, #183eb8, #0f2573);
  border-color: #7caeff;
  box-shadow: 0 20px 48px #07195299, inset 0 1px 0 #a8caff77;
}
.ga-plane span { display: block; font-size: .84375rem; font-weight: 600; color: #eef5ff; }
.ga-plane i { display: block; width: 30px; height: 3px; border-radius: 2px; background: #6fa2ff; margin: 12px auto 0; }
.ga-plane.is-anchor i { background: #ffffff; }
.ga-subnote {
  margin-top: 22px;
  text-align: center;
  font-size: .8125rem;
  color: #a9c2eb;
}

/* ── E3: Medición para decidir (tactile Apple / Material 3 tonal card) ── */
.ea-measure-card,
.ga-cycle-card {
  position: relative;
  width: min(418px, 96%);
  border-radius: 20px;
  padding: 20px 22px 22px;
  background: linear-gradient(165deg, #0e1c3d, #071024);
  border: 1px solid #2e4e91;
  box-shadow: 0 28px 68px #01040d99, inset 0 1px 0 #9cc2ff44;
  overflow: hidden;
}
.card-crest {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #a8caff, #325eff 65%, transparent);
}
.ea-m-head,
.ga-c-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ea-m-title,
.ga-c-title {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #eef5ff;
}
.ea-m-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #132a63;
  border: 1px solid #4d7ee8;
  font-size: .75rem;
  font-weight: 600;
  color: #dbeaff;
}
.ea-m-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ec6ff;
  box-shadow: 0 0 8px #6fa2ff;
}
.ea-m-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ea-m-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #0a1632;
  border: 1px solid #1d3566;
}
.ea-m-step {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #142754;
  font-size: .72rem;
  font-weight: 600;
  color: #9dc2ff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ea-m-label {
  font-size: .8125rem;
  font-weight: 500;
  color: #d7e5fb;
}
.ea-m-pill {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #16306e;
  color: #dbeaff;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.ea-m-pill.is-soft {
  background: #122248;
  color: #b7cef4;
}
.ea-m-outcome {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #5c8dff;
  background: linear-gradient(135deg, #163687, #0e2259);
  box-shadow: inset 0 1px 0 #a8caff66;
}
.ea-m-outcome-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ea-m-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #8eb8ff;
}
.ea-m-outcome-title {
  font-size: .8125rem;
  font-weight: 600;
  color: #ffffff;
}
.ea-m-track {
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  background: #0a1840;
  overflow: hidden;
}
.ea-m-fill {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6fa2ff, #ffffff);
}
.ea-m-caption {
  display: block;
  margin-top: 8px;
  font-size: .75rem;
  color: #c5dbff;
}

/* ── G2: Ciclo de prueba con método (tactile Apple / Material 3 protocol card) ── */
.ga-method-segment {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #09132b;
  border: 1px solid #223b70;
}
.ga-method-segment span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  color: #a9c1e8;
}
.ga-method-segment span.is-lit {
  background: #173478;
  color: #f0f6ff;
  box-shadow: inset 0 1px 0 #9ec5ff55;
}
.ga-proto-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: #0a1632;
  border: 1px solid #1d3566;
}
.ga-proto-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ga-proto-label {
  font-size: .8125rem;
  font-weight: 500;
  color: #d7e5fb;
}
.ga-proto-note {
  font-size: .72rem;
  color: #9cb7e4;
}
.ga-proto-bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: #060e21;
  overflow: hidden;
}
.ga-proto-fill {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b6dff, #9ac2ff);
}
.ga-decision-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.ga-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 14px;
  background: #0b1735;
  border: 1px solid #233c73;
  text-align: center;
}
.ga-tile.is-focus {
  background: linear-gradient(155deg, #183eb8, #0f2573);
  border-color: #7caeff;
  box-shadow: 0 12px 28px #07195288, inset 0 1px 0 #a8caff77;
}
.ga-tile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-keep { background: #7fb0ff; }
.dot-iter { background: #ffffff; box-shadow: 0 0 10px #9ec4ff; }
.dot-drop { background: #6b88be; }
.ga-tile-name {
  font-size: .8125rem;
  font-weight: 600;
  color: #dce9ff;
}
.ga-tile.is-focus .ga-tile-name { color: #ffffff; }

/* ── Warm Mineral Paper Breath — Delivery & Direct Accountability ── */
.delivery {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 7vw;
  padding: 108px var(--gutter) 112px;
  align-items: start;
}
.delivery-heading .eyebrow { color: #2b488c; margin-bottom: 18px; }
.delivery-heading h2 { font-size: clamp(2.25rem, 3.5vw, 3.5rem); line-height: 1.05; letter-spacing: -.038em; }
.delivery-scope { color: var(--muted-light); font-size: 1rem; line-height: 1.75; margin-top: 22px; max-width: 450px; }
.responsible {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid #d0dae8;
  max-width: 460px;
}
.founder-portrait {
  display: block;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid #c5d3e8;
  background: #0b1630;
  box-shadow: 0 14px 30px #0a163322, 0 2px 6px #0a163314;
}
.responsible strong { display: block; font-size: 1rem; font-weight: 600; color: #0c1528; }
.responsible div > span { display: block; font-size: .8125rem; margin-top: 3px; color: #445778; }
.responsible p { font-size: .9375rem; line-height: 1.68; margin-top: 12px; color: var(--muted-light); }

.delivery-ledger { padding-top: 6px; }
.delivery-contents { margin: 0 0 28px; }
.delivery-contents > div {
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid #ced8e8;
  font-size: .96875rem;
  line-height: 1.62;
}
.delivery-contents > div:last-child { border-bottom: 1px solid #ced8e8; }
.delivery-contents dt {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #0e1d3f;
  font-weight: 600;
}
.delivery-contents dt > span {
  font-size: .75rem;
  color: #2b488c;
  font-variant-numeric: tabular-nums;
}
.delivery-contents dd { color: #364663; margin: 0; }

.delivery-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.delivery-invite p { font-size: .9375rem; color: #3b4c6b; }
.delivery-link {
  min-height: 44px;
  border: 0;
  background: none;
  padding: 6px 0;
  color: #1b3eb8;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.delivery-link:hover { color: #0e2478; }

/* ── Closing, Questions & Footer ── */
.conversation {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr .65fr;
  gap: 10%;
  align-items: end;
  background: var(--ink-deep);
  padding: 90px var(--gutter) 68px;
  border-top: 1px solid #22375e;
}
.conversation::before {
  content: '';
  position: absolute;
  width: min(480px, 55%);
  height: 2px;
  top: -1px;
  left: var(--gutter);
  background: linear-gradient(90deg, #99c0ff, #365bff, transparent);
  pointer-events: none;
}
.conversation .eyebrow { color: #a7c1ed; margin-bottom: 20px; }
.conversation h2 { font-size: clamp(2.75rem, 4.7vw, 4.75rem); line-height: 1.03; letter-spacing: -.04em; max-width: 790px; }
.conversation-heading > p:last-child { color: #bdcce5; font-size: 1.0625rem; line-height: 1.75; margin-top: 24px; max-width: 600px; }
.conversation-action { justify-self: end; max-width: 300px; padding-bottom: 6px; }
.contact-reassurance { font-size: .8125rem; line-height: 1.7; color: #a8bee3; margin-top: 18px; max-width: 290px; }

.questions {
  position: relative;
  z-index: 2;
  background: var(--ink-deep);
  padding: 8px var(--gutter) 76px;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 8%;
}
.questions h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -.02em; padding-top: 24px; color: #d8e4f9; }
.question-list { border-top: 1px solid #7591ba4a; }
.question-list details { border-bottom: 1px solid #7591ba4a; }
.question-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 20px 0; font-size: 1rem; line-height: 1.5; }
.question-list details > p { font-size: 1rem; line-height: 1.75; color: #b8cae9; padding: 0 30px 24px 0; max-width: 650px; }

.site-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 36px var(--gutter); background: var(--obsidian); border-top: 1px solid #1d2f52; }
.footer-left { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.footer-brand { font-size: 1.625rem; letter-spacing: -.035em; font-weight: 600; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-legal a,
.footer-cookie-btn { font-size: .84375rem; color: #a8bbdd; min-height: 44px; display: inline-flex; align-items: center; border: 0; background: transparent; padding: 0; }
.footer-legal a:hover,
.footer-cookie-btn:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 5px; }
.footer-collab p { font-size: .875rem; line-height: 1.6; color: #a8bbdd; }
.collaboration-link { min-height: 44px; border: 0; background: transparent; padding: 5px 0; color: #e5edff; font-size: .9375rem; text-decoration: underline; text-underline-offset: 6px; }

/* ── Real Contact Dialog Additions (Step 1, Step 2 with inputs & privacy, Step 3 confirmation) ── */
.sensitive-note { font-size: .8125rem; color: #9eb4d9; margin-top: 10px; line-height: 1.5; }
.step-indicator { font-size: .8125rem; color: #9eb4d9; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.field { margin-top: 14px; }
.field-grid .field { margin-top: 0; }
.contact-dialog .field label { margin: 0 0 7px; }
.contact-dialog input[type="text"],
.contact-dialog input[type="email"] {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #b4caff38;
  border-radius: 12px;
  background: #070f1c;
  color: #f2f6ff;
  font-size: 1rem;
  line-height: 1.4;
}
.contact-dialog input::placeholder { color: #8496b2; }
.contact-dialog input:focus { outline: 2px solid #789fff; border-color: transparent; }
.contact-dialog input[aria-invalid="true"],
.contact-dialog textarea[aria-invalid="true"] { border-color: #ff8e93; }
.field-error { color: #ffb4b6; font-size: .8125rem; line-height: 1.45; margin-top: 6px; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.turnstile-slot { margin-top: 16px; min-height: 65px; }
.privacy-brief {
  margin-top: 16px;
  font-size: .8125rem;
  line-height: 1.6;
  color: #abc0e3;
}
.privacy-brief a { color: #d6e6ff; text-decoration: underline; text-underline-offset: 4px; }
.submit-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.secondary-copy {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #8facdc44;
  border-radius: 12px;
  background: transparent;
  color: #cde0ff;
  font-size: .875rem;
}
.secondary-copy:hover { border-color: #9dc0ff; color: #ffffff; }
.next[aria-busy="true"] { opacity: .82; cursor: progress; }
.confirm-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b8d3ff;
  background: #142c66;
  border: 1px solid #4e7ae0;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.confirm-folio {
  margin-top: 16px;
  font-size: .875rem;
  font-weight: 600;
  color: #cfe0ff;
  font-variant-numeric: tabular-nums;
}
.confirm-next {
  margin-top: 14px;
  font-size: .9375rem;
  line-height: 1.65;
  color: #a8bee3;
}

/* ── Prominent First-Party Analytics & Cookie Consent Dock (Apple / M3 mineral frosted surface, strict opt-in) ── */
.consent-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 40;
  width: min(780px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 20px;
  background: #f5f7fbf7;
  backdrop-filter: blur(18px);
  border: 1px solid #c6d5ef;
  box-shadow: 0 28px 72px #01040db8, 0 0 0 1px #ffffffa6 inset;
  color: #091224;
}
.consent-body {
  flex: 1 1 auto;
  min-width: 0;
}
.consent-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #091224;
}
.consent-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2350e8;
  box-shadow: 0 0 0 3px #2350e822;
  flex-shrink: 0;
}
.consent-copy {
  margin-top: 6px;
  font-size: .84375rem;
  line-height: 1.58;
  color: #36455e;
}
.consent-copy a {
  color: #1c44c9;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.consent-btn {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 13px;
  font-size: .84375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s;
}
.consent-btn.is-essential {
  background: #e9eff9;
  border: 1px solid #b6c7e3;
  color: #0b162d;
}
.consent-btn.is-essential:hover {
  background: #dce6f7;
  border-color: #7c9bd1;
}
.consent-btn.is-accept {
  background: #2350e8;
  border: 1px solid #1d44cc;
  color: #ffffff;
  box-shadow: 0 8px 20px #2350e833;
}
.consent-btn.is-accept:hover {
  background: #1b43cc;
}

@supports (interpolate-size: allow-keywords) {
  .question-list details { interpolate-size: allow-keywords; }
  .question-list details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .3s ease, content-visibility .3s;
    transition-behavior: allow-discrete;
  }
  .question-list details[open]::details-content { block-size: auto; }
}

/* ── Wide Desktop (1920+) ── */
@media (min-width: 1700px) {
  :root { --gutter: max(88px, calc((100vw - 1540px) / 2)); }
  .copy { width: 790px; }
}

/* ── Tablet (601px - 1100px) ── */
@media (min-width: 601px) and (max-width: 1100px) {
  :root { --gutter: 40px; }
  .copy { width: 66%; }
  h1 { font-size: clamp(3rem, 6.7vw, 4.5rem); }
  .lead { font-size: 1rem; max-width: 430px; }
  .actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .case-layout { grid-template-columns: .9fr 1.3fr; gap: 35px; }
  .case-copy h2 { font-size: 3.25rem; }
  .project-purpose { font-size: 1.5625rem; }
  .project-context { font-size: .9375rem; }
  .project-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .project-open { flex-direction: row; gap: 15px; align-items: center; }
  .new-tab-note { margin: 0; }

  .interventions { padding-block: 88px 96px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; padding-bottom: 44px; }
  .section-intro { justify-self: start; }
  .row-trigger-surface { grid-template-columns: 36px 1fr 28px; gap: 8px 20px; padding: 28px 4px 28px 0; }
  .row-num { grid-column: 1; grid-row: 1; }
  .row-title { grid-column: 2; grid-row: 1; }
  .disclosure-icon { grid-column: 3; grid-row: 1; justify-self: end; }
  .row-summary { grid-column: 2 / 3; grid-row: 2; }
  .row-inner { grid-template-columns: 1fr; gap: 32px; padding: 4px 4px 48px 36px; }

  .delivery { grid-template-columns: 1fr; gap: 40px; padding-block: 76px; }
  .delivery-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .delivery-heading .eyebrow, .delivery-heading h2 { grid-column: 1 / -1; }
  .responsible { margin-top: 22px; padding-top: 0; border-top: 0; }
  .conversation { grid-template-columns: 1fr; gap: 32px; }
  .conversation-action { justify-self: start; max-width: 500px; }
  .questions { grid-template-columns: .6fr 1.4fr; gap: 30px; }
}

/* ── Mobile (<= 600px, verified at 390px and 360px) ── */
@media (max-width: 600px) {
  :root { --gutter: 24px; }
  .hero { padding-top: 18px; padding-bottom: 26px; }
  .brand { font-size: 1.5rem; }
  .header { gap: 18px; }
  .header nav { gap: 20px; }
  .nav-enfoque { display: none !important; }
  .hero-body { padding: 43px 0 84px; align-items: flex-start; }
  .copy { width: 100%; }
  h1 { font-size: clamp(2.625rem, 11.7vw, 4.125rem); line-height: 1.025; letter-spacing: -.04em; max-width: 470px; }
  .lead { font-size: 1rem; line-height: 1.7; margin-top: 24px; max-width: 420px; }
  .actions { margin-top: 28px; gap: 14px; align-items: flex-start; flex-direction: column; }
  .work-link { font-size: .875rem; }

  .project-section { padding: 55px var(--gutter) 78px; }
  .case-layout { display: block; }
  .case-copy { padding: 0; margin-bottom: 32px; }
  .case-copy::before { inset: -35px -24px; background: linear-gradient(#05070c, #05070cf7 94%, transparent); }
  .case-copy h2 { font-size: 3.125rem; margin-top: 12px; }
  .project-purpose { font-size: 1.625rem; line-height: 1.2; margin-top: 22px; max-width: 330px; }
  .project-context { margin-top: 16px; max-width: 400px; }
  .project-meta { margin-top: 20px; padding-top: 14px; }
  .project-gallery::before { left: 0; right: 0; }
  .project-image { border-radius: 10px 10px 0 0; }
  .project-toolbar { display: grid; grid-template-columns: 1fr; padding: 12px; gap: 12px; border-radius: 0 0 10px 10px; }
  .project-views { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .project-views button { padding-inline: 5px; white-space: nowrap; min-width: 0; }
  .project-open { font-size: .8125rem; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid #b7d4ff28; padding-top: 12px; }
  .new-tab-note { margin-top: 0; }

  .interventions { padding-block: 68px 76px; }
  .section-heading { display: block; padding-bottom: 32px; }
  .section-heading h2 { font-size: 2.25rem; }
  .section-intro { margin-top: 18px; font-size: .96875rem; }
  .row-trigger-surface { grid-template-columns: 30px 1fr 26px; gap: 8px 12px; padding: 24px 0; align-items: start; }
  .row-num { grid-column: 1; grid-row: 1; padding-top: 4px; }
  .row-title { grid-column: 2; grid-row: 1; font-size: 1.375rem; }
  .disclosure-icon { grid-column: 3; grid-row: 1; justify-self: end; margin-top: 2px; }
  .row-summary { grid-column: 2 / 4; grid-row: 2; font-size: .9rem; }
  .row-inner { grid-template-columns: 1fr; gap: 28px; padding: 4px 0 40px; }
  .figure-space { min-height: 312px; }
  .editorial-tabs { gap: 18px; width: 100%; justify-content: center; }
  .ga-planes { grid-template-columns: 1fr; gap: 10px; }
  .ga-horizon-line { left: 50%; right: auto; top: 12%; bottom: 12%; width: 2px; height: auto; }
  .ga-plane { padding: 14px 12px; }

  .delivery { display: block; padding-block: 64px; }
  .delivery-heading h2 { font-size: 2.25rem; }
  .responsible { margin-top: 28px; padding-top: 22px; }
  .delivery-ledger { margin-top: 32px; padding-top: 0; }
  .delivery-contents > div { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }

  .conversation { display: block; padding: 60px var(--gutter) 40px; }
  .conversation h2 { font-size: 2.5rem; }
  .conversation-heading > p:last-child { font-size: 1rem; margin-top: 20px; }
  .conversation-action { max-width: 100%; margin-top: 28px; }
  .questions { display: block; padding-bottom: 48px; }
  .questions h2 { padding-top: 0; font-size: 1.5rem; margin-bottom: 22px; }
  .question-list summary { min-height: 74px; gap: 18px; }
  .question-list details > p { padding-right: 0; }
  .site-footer { display: block; padding-block: 30px; }
  .footer-left { display: block; }
  .footer-legal { margin-top: 12px; gap: 16px; }
  .footer-collab { margin-top: 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .submit-group { width: 100%; justify-content: flex-end; }
  .ea-measure-card, .ga-cycle-card { padding: 16px; border-radius: 18px; }
  .ea-m-head, .ga-c-head { flex-wrap: wrap; gap: 8px; }
  .ea-m-row { flex-wrap: wrap; }
  .founder-portrait { width: 64px; height: 64px; border-radius: 16px; }
  .consent-bar { left: 16px; right: 16px; bottom: 16px; transform: none; width: auto; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 18px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .consent-btn { padding: 10px 10px; font-size: .8125rem; }
}

@media (max-height: 650px) and (min-width: 601px) {
  .hero-body { padding: 40px 0; }
  .copy { width: min(720px, 65%); }
  h1 { font-size: clamp(2.75rem, 5.2vw, 4.25rem); }
  .lead { font-size: 1rem; margin-top: 22px; }
  .actions { margin-top: 24px; }
  .project-section { padding-block: 65px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-slide, .disclosure-icon, .chapter-row, .chapter-row::before, .row-trigger-surface, .row-num, .row-summary, .tab-surface { transition: none; }
  .object-surface { transform: none; }
  .question-list details::details-content { transition: none; }
}
