/* TRAPICHE v61 — three new narrative sections */

.problem-section,
.build-section,
.principles-section {
  position: relative;
  isolation: isolate;
}

/* 06 — from need to solution */
.problem-section {
  height: 500svh;
  background: #f7f5f0;
  color: #181716;
}
.problem-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  padding: clamp(112px, 14vh, 150px) var(--page-x) clamp(40px, 6vh, 70px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.problem-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 45%, rgba(168,95,69,.12), transparent 25%),
    linear-gradient(90deg, transparent 0 64%, rgba(24,23,22,.04) 64% 64.08%, transparent 64.08%);
}
.problem-top,
.problem-bottom,
.problem-frame { position: relative; z-index: 2; }
.problem-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #736d67;
}
.problem-top__left { display: inline-flex; align-items: center; gap: 18px; }
.problem-top__left i { width: 38px; height: 1px; background: var(--accent); display: inline-block; }
.problem-top__right { text-align: right; }
.problem-frame {
  display: grid;
  grid-template-columns: minmax(210px, .45fr) minmax(0, 1.55fr) 110px;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  min-height: 0;
}
.problem-aside {
  align-self: center;
  max-width: 240px;
}
.problem-aside span {
  display: block;
  margin-bottom: 18px;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.problem-aside p {
  margin: 0;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
  color: #5d5853;
}
.problem-copy {
  position: relative;
  min-height: clamp(300px, 44vh, 500px);
}
.problem-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(5px);
  pointer-events: none;
  transition: opacity .52s ease, transform .65s cubic-bezier(.2,.8,.2,1), filter .52s ease;
}
.problem-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.problem-card__index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(16px, 2.8vh, 28px);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--accent-dark);
}
.problem-card__index::after { content:""; width: 52px; height: 1px; background: var(--accent); }
.problem-card h2 {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(48px, 6.4vw, 112px);
  line-height: .91;
  letter-spacing: -.065em;
  font-weight: 430;
}
.problem-card h2 em {
  display: block;
  font-family: "DM Serif Local", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.035em;
  color: var(--accent-dark);
}
.problem-card p {
  max-width: 660px;
  margin: clamp(24px, 4vh, 42px) 0 0;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: #5e5954;
}
.problem-card--final h2 { max-width: 1180px; }
.problem-card--final h2 em { color: #181716; }
.problem-card--final p { color: var(--accent-dark); font-weight: 650; }
.problem-dots { display: grid; gap: 15px; justify-items: end; }
.problem-dot {
  width: 52px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  color: #aca59e;
  cursor: pointer;
}
.problem-dot span { font-size: 9px; letter-spacing: .12em; }
.problem-dot i { display:block; height:1px; background:#c9c2bb; transition: transform .25s ease, background .25s ease; transform-origin:right; }
.problem-dot.is-active { color: var(--accent-dark); }
.problem-dot.is-active i { background: var(--accent); transform: scaleX(1.65); }
.problem-bottom {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding-top: 18px;
  border-top:1px solid rgba(24,23,22,.12);
  font-size:9px;
  letter-spacing:.17em;
  text-transform:uppercase;
  color:#827b74;
}

/* 07 — interactive build explorer */
.build-section {
  min-height: 100svh;
  background: #10100f;
  color: #f7f5f0;
  overflow: hidden;
  padding: clamp(110px, 13vh, 150px) var(--page-x) clamp(80px, 10vh, 120px);
}
.build-section::before {
  content:"";
  position:absolute;
  width:54vw;
  aspect-ratio:1;
  right:-20vw;
  top:8%;
  border:1px solid rgba(168,95,69,.3);
  border-radius:50%;
  pointer-events:none;
}
.build-head {
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns: minmax(260px,.9fr) minmax(300px,.65fr);
  justify-content:space-between;
  gap:50px;
  align-items:end;
  margin-bottom: clamp(58px, 8vh, 96px);
}
.build-kicker,
.principles-kicker {
  display:inline-flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
  font-size:9px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#d49b83;
}
.build-kicker i,
.principles-kicker i { width:38px; height:1px; background:#b9694c; }
.build-head h2 {
  margin:0;
  font-size:clamp(52px,6vw,104px);
  line-height:.9;
  letter-spacing:-.06em;
  font-weight:420;
}
.build-head h2 em { display:block; font-family:"DM Serif Local",Georgia,serif; color:#d9a38b; font-weight:400; }
.build-head__lead { margin:0 0 7px; font-size:clamp(15px,1.22vw,19px); line-height:1.55; color:rgba(247,245,240,.63); max-width:520px; justify-self:end; }
.build-grid { position:relative; z-index:2; display:grid; grid-template-columns:minmax(330px,.7fr) minmax(520px,1.3fr); gap:clamp(38px,6vw,92px); align-items:stretch; }
.build-menu { border-top:1px solid rgba(var(--surface-rgb),.16); }
.build-option {
  width:100%;
  min-height:78px;
  border:0;
  border-bottom:1px solid rgba(var(--surface-rgb),.13);
  background:transparent;
  color:rgba(247,245,240,.52);
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:16px;
  text-align:left;
  padding:0 2px;
  cursor:pointer;
  transition:color .28s ease, padding .28s ease;
}
.build-option:hover,
.build-option:focus-visible,
.build-option.is-active { color:var(--surface); padding-left:12px; }
.build-option__index { font-size:9px; color:#bc765b; }
.build-option__name { font-size:clamp(20px,2vw,34px); letter-spacing:-.035em; }
.build-option__mark { font-size:22px; font-weight:260; color:#d49b83; transform:rotate(0); transition:transform .3s ease; }
.build-option.is-active .build-option__mark { transform:rotate(45deg); }
.build-detail { padding-top:30px; display:grid; grid-template-columns:1fr auto; gap:30px; align-items:end; }
.build-detail p { margin:0; color:rgba(247,245,240,.58); line-height:1.55; max-width:460px; }
.build-detail span { font-size:9px; letter-spacing:.16em; text-transform:uppercase; color:#d49b83; white-space:nowrap; }
.build-canvas {
  position:relative;
  min-height:620px;
  border:1px solid rgba(var(--surface-rgb),.12);
  border-radius:26px;
  overflow:hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(168,95,69,.17), transparent 32%),
    #151514;
  box-shadow:0 28px 80px rgba(0,0,0,.25);
}
.build-canvas::after {
  content:"TRAPICHE / BUILD LAB";
  position:absolute;
  left:26px;
  bottom:20px;
  font-size:8px;
  letter-spacing:.18em;
  color:rgba(var(--surface-rgb),.34);
  z-index:8;
}
.build-scene { position:absolute; inset:0; opacity:0; transform:scale(.975) translateY(10px); transition:opacity .45s ease, transform .65s cubic-bezier(.2,.8,.2,1); pointer-events:none; }
.build-scene.is-active { opacity:1; transform:scale(1) translateY(0); }
.build-browser { position:absolute; inset:8% 7% 11%; border-radius:18px; background:#f1eee7; color:#171615; overflow:hidden; box-shadow:0 30px 70px rgba(0,0,0,.34); }
.build-browser__bar { height:40px; display:flex; align-items:center; gap:7px; padding:0 15px; border-bottom:1px solid rgba(0,0,0,.1); }
.build-browser__bar i { width:6px; height:6px; border-radius:50%; background:#b9b0a8; }
.build-browser__page { height:calc(100% - 40px); padding:28px; display:grid; gap:16px; }
.build-web-hero { display:grid; grid-template-columns:1.1fr .9fr; gap:18px; min-height:210px; }
.build-web-copy { display:flex; flex-direction:column; justify-content:center; }
.build-web-copy b { display:block; width:80%; height:22px; background:#191817; margin:7px 0; }
.build-web-copy b:nth-child(2){ width:62%; }
.build-web-copy i { width:94px; height:28px; border-radius:16px; background:#ae6549; margin-top:22px; }
.build-web-media { border-radius:13px; background:linear-gradient(145deg,#cfc4b8,#7e695e); position:relative; overflow:hidden; }
.build-web-media::after { content:""; position:absolute; width:150%; height:1px; background:rgba(var(--surface-rgb),.65); transform:rotate(-28deg); top:48%; left:-20%; }
.build-web-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.build-web-cards span { min-height:100px; border:1px solid rgba(0,0,0,.09); border-radius:10px; background:#fbfaf7; }

.build-commerce .build-browser__page { grid-template-columns:1.25fr .75fr; }
.build-product-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.build-product { border-radius:12px; background:#f9f7f1; border:1px solid rgba(0,0,0,.08); padding:12px; display:grid; grid-template-rows:1fr auto; gap:10px; }
.build-product i { background:linear-gradient(145deg,#d5cbc0,#9f8779); border-radius:8px; }
.build-product b { height:8px; width:70%; background:#2a2825; display:block; }
.build-cart { border-left:1px solid rgba(0,0,0,.08); padding:22px; }
.build-cart strong { font-size:22px; font-weight:500; }
.build-cart span { display:block; height:1px; background:rgba(0,0,0,.11); margin:18px 0; }
.build-cart i { display:block; height:34px; border-radius:20px; background:#161514; margin-top:34px; }

.build-brand-board { position:absolute; inset:9%; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr .75fr; gap:16px; }
.build-brand-board div { border:1px solid rgba(var(--surface-rgb),.13); border-radius:18px; overflow:hidden; position:relative; }
.build-brand-board .brand-type { grid-row:span 2; background:#f3f0e9; color:#171615; padding:38px; }
.brand-type strong { font-size:clamp(58px,6vw,96px); letter-spacing:-.07em; font-weight:430; display:block; }
.brand-type em { font-family:"DM Serif Local",Georgia,serif; font-size:44px; color:#a85f45; }
.brand-type span { position:absolute; bottom:34px; left:38px; right:38px; height:1px; background:rgba(0,0,0,.16); }
.brand-swatches { display:grid !important; grid-template-columns:repeat(4,1fr); padding:16px; gap:10px; }
.brand-swatches i { border-radius:9px; background:#f4f0e9; }
.brand-swatches i:nth-child(2){background:#b96b4e}.brand-swatches i:nth-child(3){background:#71665d}.brand-swatches i:nth-child(4){background:#22201e}
.brand-mark { display:grid !important; place-items:center; background:#1b1a18; }
.brand-mark::before { content:"T"; font:500 96px/1 "Manrope Local"; color:#f4f0e9; letter-spacing:-.09em; }

.build-dashboard { position:absolute; inset:8%; background:#f3f0e9; border-radius:18px; color:#171615; display:grid; grid-template-columns:170px 1fr; overflow:hidden; }
.dash-nav { padding:24px 18px; background:#1a1918; }
.dash-nav b { display:block; height:8px; background:#d09a82; margin:10px 0 26px; width:72%; }
.dash-nav i { display:block; height:7px; background:rgba(var(--surface-rgb),.25); margin:16px 0; border-radius:4px; }
.dash-main { padding:26px; display:grid; grid-template-rows:auto 1fr 1fr; gap:16px; }
.dash-head { display:flex; justify-content:space-between; }
.dash-head b { width:120px; height:16px; background:#1a1918; }
.dash-head i { width:86px; height:28px; border-radius:16px; background:#a85f45; }
.dash-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.dash-stats span { border:1px solid rgba(0,0,0,.09); border-radius:10px; background:#fbfaf7; position:relative; }
.dash-stats span::before { content:""; position:absolute; left:16px; bottom:16px; width:42%; height:42%; border-left:2px solid #a85f45; border-bottom:2px solid #a85f45; transform:skew(-15deg); }
.dash-table { border:1px solid rgba(0,0,0,.09); border-radius:10px; padding:16px; display:grid; gap:9px; }
.dash-table i { height:1px; background:rgba(0,0,0,.1); }

.build-campaign-board { position:absolute; inset:7%; display:grid; grid-template-columns:1.1fr .9fr; grid-template-rows:1fr 1fr; gap:14px; }
.build-campaign-board div { border-radius:18px; border:1px solid rgba(var(--surface-rgb),.12); overflow:hidden; position:relative; }
.campaign-main { grid-row:span 2; background:linear-gradient(150deg,#e5dcd1,#8f725f); }
.campaign-main::before { content:"IMPACTO"; position:absolute; left:28px; bottom:30px; font-size:clamp(36px,4vw,74px); font-weight:430; letter-spacing:-.06em; color:var(--surface); }
.campaign-top { background:#f1ede6; }
.campaign-top::before { content:"01 / CAMPAÑA"; position:absolute; left:24px; top:24px; color:#181716; font-size:10px; letter-spacing:.16em; }
.campaign-bottom { background:#a85f45; }
.campaign-bottom::before { content:"MEDIR → APRENDER → AJUSTAR"; position:absolute; left:24px; right:24px; bottom:22px; color:var(--surface); font-size:10px; letter-spacing:.12em; }

.build-map { position:absolute; inset:8%; border:1px solid rgba(var(--surface-rgb),.12); border-radius:18px; }
.build-map::before,.build-map::after { content:""; position:absolute; background:rgba(var(--surface-rgb),.14); }
.build-map::before { width:1px; top:10%; bottom:10%; left:50%; }
.build-map::after { height:1px; left:8%; right:8%; top:50%; }
.map-node { position:absolute; width:112px; min-height:48px; border:1px solid rgba(var(--surface-rgb),.28); border-radius:24px; display:grid; place-items:center; font-size:9px; letter-spacing:.12em; text-transform:uppercase; background:#171615; }
.map-node:nth-child(1){left:8%;top:16%}.map-node:nth-child(2){right:8%;top:17%}.map-node:nth-child(3){left:calc(50% - 56px);top:calc(50% - 24px);background:#a85f45;border-color:#a85f45}.map-node:nth-child(4){left:13%;bottom:13%}.map-node:nth-child(5){right:12%;bottom:13%}
.map-orbit { position:absolute; width:48%; aspect-ratio:1; border:1px solid rgba(168,95,69,.45); border-radius:50%; left:26%; top:10%; }

/* 08 — principles / contact */
.principles-section { background:#f7f5f0; color:#181716; padding-top:clamp(100px,13vh,150px); }
.principles-head { padding:0 var(--page-x) clamp(54px,7vh,84px); display:grid; grid-template-columns:1fr .72fr; gap:60px; align-items:end; }
.principles-head h2 { margin:0; font-size:clamp(52px,6vw,104px); line-height:.91; letter-spacing:-.06em; font-weight:430; }
.principles-head h2 em { font-family:"DM Serif Local",Georgia,serif; color:var(--accent-dark); font-weight:400; }
.principles-head p { margin:0; max-width:540px; justify-self:end; font-size:clamp(15px,1.25vw,19px); line-height:1.55; color:#625d57; }
.principles-list { border-top:1px solid rgba(24,23,22,.14); }
.principle-row {
  min-height:clamp(150px,18vh,210px);
  padding:0 var(--page-x);
  display:grid;
  grid-template-columns:72px minmax(0,1.25fr) minmax(260px,.55fr);
  gap:clamp(20px,4vw,70px);
  align-items:center;
  border-bottom:1px solid rgba(24,23,22,.14);
  transition:background .38s ease,color .38s ease,padding .38s ease;
  overflow:hidden;
}
.principle-row:hover { background:#151514; color:#f7f5f0; padding-left:calc(var(--page-x) + 12px); }
.principle-row__index { font-size:10px; letter-spacing:.16em; color:var(--accent-dark); }
.principle-row h3 { margin:0; font-size:clamp(34px,4.1vw,70px); font-weight:430; letter-spacing:-.055em; line-height:.95; }
.principle-row h3 em { font-family:"DM Serif Local",Georgia,serif; color:var(--accent-dark); font-weight:400; }
.principle-row p { margin:0; max-width:470px; font-size:14px; line-height:1.6; color:#69635d; transition:color .38s ease; }
.principle-row:hover p { color:rgba(247,245,240,.67); }
.final-cta {
  position:relative;
  min-height:78svh;
  padding:clamp(100px,14vh,160px) var(--page-x);
  display:grid;
  place-items:center;
  text-align:center;
  overflow:hidden;
  border-bottom:1px solid rgba(24,23,22,.12);
}
.final-cta::before {
  content:"";
  position:absolute;
  width:min(34vw,520px);
  aspect-ratio:1;
  border-radius:50%;
  background:#141413;
  transform:scale(.24);
  transition:transform 1.05s cubic-bezier(.15,.8,.15,1);
}
.final-cta.is-expanded::before { transform:scale(6); }
.final-cta__content { position:relative; z-index:2; transition:color .55s ease; }
.final-cta.is-expanded .final-cta__content { color:#f7f5f0; }
.final-cta__eyebrow { display:block; margin-bottom:24px; font-size:9px; letter-spacing:.2em; text-transform:uppercase; color:var(--accent-dark); }
.final-cta h2 { margin:0; font-size:clamp(64px,9vw,150px); line-height:.84; letter-spacing:-.07em; font-weight:430; }
.final-cta h2 em { display:block; font-family:"DM Serif Local",Georgia,serif; font-weight:400; color:var(--accent-dark); }
.final-cta p { max-width:620px; margin:34px auto 0; font-size:clamp(15px,1.2vw,19px); line-height:1.55; color:#65605a; transition:color .55s ease; }
.final-cta.is-expanded p { color:rgba(247,245,240,.66); }
.final-cta__trigger {
  margin-top:34px;
  min-width:170px;
  min-height:52px;
  padding:0 26px;
  border:1px solid rgba(24,23,22,.22);
  border-radius:30px;
  background:#f7f5f0;
  color:#181716;
  cursor:pointer;
  font-size:12px;
  transition:background .35s ease,color .35s ease,border-color .35s ease,transform .35s ease;
}
.final-cta__trigger:hover { transform:translateY(-2px); }
.final-cta.is-expanded .final-cta__trigger { background:#f7f5f0; color:#181716; border-color:#f7f5f0; }
.final-cta__micro { position:absolute; left:var(--page-x); bottom:34px; z-index:2; font-size:8px; letter-spacing:.16em; text-transform:uppercase; color:#8c857e; }
.final-cta.is-expanded .final-cta__micro { color:rgba(247,245,240,.42); }

@media (max-width: 1100px) {
  .problem-frame { grid-template-columns: 180px 1fr 72px; gap:30px; }
  .build-grid { grid-template-columns:minmax(280px,.72fr) minmax(450px,1.28fr); gap:34px; }
  .build-canvas { min-height:560px; }
  .principle-row { grid-template-columns:56px minmax(0,1.2fr) minmax(240px,.6fr); }
}

@media (max-width: 820px) {
  .problem-section { height:auto; }
  .problem-stage { position:relative; height:auto; padding:108px 22px 72px; }
  .problem-stage::before { background:radial-gradient(circle at 88% 18%, rgba(168,95,69,.11), transparent 26%); }
  .problem-top { align-items:flex-start; }
  .problem-top__right { display:none; }
  .problem-frame { display:block; }
  .problem-aside { margin:54px 0 44px; max-width:330px; }
  .problem-copy { min-height:0; display:grid; gap:44px; }
  .problem-card { position:relative; opacity:1; transform:none; filter:none; padding:0 0 44px; border-bottom:1px solid rgba(24,23,22,.12); }
  .problem-card:last-child { border-bottom:0; }
  .problem-card h2 { font-size:clamp(42px,13vw,68px); }
  .problem-card p { margin-top:20px; font-size:15px; }
  .problem-dots { display:none; }
  .problem-bottom { margin-top:30px; align-items:flex-start; flex-direction:column; }

  .build-section { min-height:0; padding:104px 22px 76px; }
  .build-head { display:block; margin-bottom:48px; }
  .build-head h2 { font-size:clamp(48px,14vw,72px); }
  .build-head__lead { margin-top:28px; justify-self:auto; }
  .build-grid { display:block; }
  .build-menu { margin-bottom:34px; }
  .build-option { min-height:68px; grid-template-columns:34px 1fr auto; }
  .build-option__name { font-size:22px; }
  .build-detail { padding-top:24px; margin-bottom:36px; }
  .build-detail span { display:none; }
  .build-canvas { min-height:430px; border-radius:18px; }
  .build-browser { inset:6%; }
  .build-browser__page { padding:18px; }
  .build-web-hero { min-height:160px; }
  .build-dashboard { inset:6%; grid-template-columns:95px 1fr; }
  .dash-nav { padding:18px 10px; }
  .build-brand-board,.build-campaign-board,.build-map { inset:6%; }
  .brand-type { padding:24px !important; }
  .brand-type strong { font-size:52px; }

  .principles-section { padding-top:104px; }
  .principles-head { padding:0 22px 52px; display:block; }
  .principles-head h2 { font-size:clamp(48px,14vw,72px); }
  .principles-head p { margin-top:26px; }
  .principle-row { min-height:180px; padding:28px 22px; grid-template-columns:38px 1fr; gap:18px; }
  .principle-row:hover { padding-left:22px; }
  .principle-row p { grid-column:2; }
  .principle-row h3 { font-size:clamp(35px,10vw,54px); }
  .final-cta { min-height:70svh; padding:94px 22px; }
  .final-cta h2 { font-size:clamp(58px,17vw,94px); }
  .final-cta::before { width:72vw; }
  .final-cta.is-expanded::before { transform:scale(4.7); }
  .final-cta__micro { left:22px; bottom:24px; }
}

@media (prefers-reduced-motion: reduce) {
  .problem-card,.build-scene,.build-option,.principle-row,.final-cta::before,.final-cta__content,.final-cta p { transition:none !important; }
}
