/* ═══════════════════════════════════════════════════════════════════════════
   ROA Credit — cooperativa.roahost.com
   "Gold & Growth"  ·  rebuild 2026-09-13

   THE RULE OF THIS FILE: there is no black and no near-black anywhere in it.
   The dark ground is a living forest green. Text is bark brown. Gold is the
   only chroma that carries the brand, and every pairing below is MEASURED:

        bark #3B2A16  on paper #FFFCF7 .............. 13.42:1
        bark-mid #6B5432 on paper ....................  6.98:1
        gold-dark #8A6316 on paper ...................  5.29:1   (gold you can READ)
        bark #3B2A16  on gold #C59136 ................  4.89:1   (the CTA)
        white         on leaf-deep #2C4E33 ...........  9.36:1
        gold-light #E3C070 on leaf-deep ..............  5.36:1

   Plain #C59136 gold measures 2.74:1 on paper, so it is decorative ONLY:
   rules, leaves, strokes, fills. It never carries a word on a light ground.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── FACES ──────────────────────────────────────────────────────────────── */
/* Display face: Spectral, NOT Bodoni Moda.
   Bodoni is a Didone — its thin strokes are true hairlines, and at body and
   sub-head sizes they broke up on the rendered page. That is a legibility
   failure for a reader who is 35–60, often in presbyopia, on a mid-range
   Android with a scratched protector, outdoors in tropical daylight. Spectral
   keeps the editorial-serif register with a large x-height and low stroke
   contrast, so nothing thins out to nothing. Luxury has to survive the screen
   it is read on. */
@font-face{font-family:"Spectral";src:url("../fonts/Spectral-500.woff2") format("woff2");
  font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:"Spectral";src:url("../fonts/Spectral-600.woff2") format("woff2");
  font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:"Marcellus";src:url("../fonts/Marcellus-400.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Atkinson Hyperlegible Next";src:url("../fonts/sub-AtkinsonHyperlegibleNext-400.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Atkinson Hyperlegible Next";src:url("../fonts/sub-AtkinsonHyperlegibleNext-700.woff2") format("woff2");
  font-weight:700;font-style:normal;font-display:swap;}

:root{
  color-scheme:light;

  /* grounds — warm, never grey, never black */
  --paper:#FFFCF7;
  --ivory:#FAF4E9;
  --sand:#EDE2CE;
  --sand-deep:#E0D0B4;

  /* the living dark: forest, not ink */
  --leaf-deep:#2C4E33;
  --leaf:#3E6B45;
  --leaf-veil:#24402A;

  /* bark — the text colour */
  --bark:#3B2A16;
  --bark-mid:#6B5432;
  --bark-soft:#8A7A63;

  /* gold */
  --gold:#C59136;        /* decorative + CTA fill */
  --gold-dark:#8A6316;   /* gold that may be read on paper */
  --gold-light:#E3C070;  /* gold on the green ground */
  --gold-veil:rgba(197,145,54,.16);

  --hair:#E6DAC4;

  --font-display:"Spectral",Georgia,"Times New Roman",serif;
  --font-roman:"Marcellus",Georgia,serif;
  --font-ui:"Atkinson Hyperlegible Next",system-ui,-apple-system,sans-serif;

  /* type scale — fluid, wide containers so headlines never wrap to 6 lines */
  /* Hero was 7.4vw and wrapped the H1 to six one-word lines at 1440px — the
     container was squeezing a 106px face into a 700px column. Sized so the
     headline lands in 2–3 lines at every width, which is the whole job. */
  --t-hero:clamp(2.55rem,5.1vw,5.3rem);
  --t-h2:clamp(1.95rem,3.5vw,3.4rem);
  --t-h3:clamp(1.35rem,2vw,1.85rem);
  --t-lead:clamp(1.15rem,1.7vw,1.5rem);
  --t-body:clamp(1.05rem,1.15vw,1.18rem);
  --t-small:.95rem;
  --t-eyebrow:.86rem;

  --measure:38ch;
  --gutter:clamp(1.25rem,5vw,4.5rem);
  --bay:clamp(5.5rem,13vh,11rem);   /* vertical rhythm between chapters */

  --tap:52px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
  margin:0;background:var(--paper);color:var(--bark);
  font-family:var(--font-ui);font-size:var(--t-body);line-height:1.62;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{display:block;max-width:100%;}
h1,h2,h3,p,ul,ol,figure{margin:0;}
ul{padding:0;list-style:none;}
button{font:inherit;color:inherit;}
a{color:var(--gold-dark);text-underline-offset:.22em;text-decoration-thickness:1px;}
a:hover{color:var(--bark);}

::selection{background:var(--gold);color:var(--bark);}

:focus-visible{
  outline:3px solid var(--bark);outline-offset:3px;border-radius:2px;
  box-shadow:0 0 0 7px var(--gold-veil);
}
.on-green :focus-visible{outline-color:var(--gold-light);box-shadow:0 0 0 7px rgba(255,255,255,.28);}

.skip{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--bark);color:var(--paper);padding:1rem 1.5rem;
}
.skip:focus{left:0;}

.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;}

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
.wrap{width:100%;max-width:1360px;margin-inline:auto;padding-inline:var(--gutter);}
.wrap--narrow{max-width:920px;}
.chapter{padding-block:var(--bay);position:relative;}

/* ── TYPE ROLES ─────────────────────────────────────────────────────────── */
.eyebrow{
  font-family:var(--font-roman);font-size:var(--t-eyebrow);
  letter-spacing:.24em;text-transform:uppercase;color:var(--gold-dark);
  display:flex;align-items:center;gap:.85rem;margin-bottom:1.6rem;
}
.eyebrow::before{
  content:"";width:clamp(28px,4vw,64px);height:1px;background:var(--gold);flex:none;
}
.on-green .eyebrow{color:var(--gold-light);}
.on-green .eyebrow::before{background:var(--gold-light);}

.display{
  font-family:var(--font-display);font-weight:600;
  font-size:var(--t-hero);line-height:.98;letter-spacing:-.022em;
  text-wrap:balance;
}
.h2{
  font-family:var(--font-display);font-weight:600;
  font-size:var(--t-h2);line-height:1.04;letter-spacing:-.018em;
  text-wrap:balance;
}
.h3{
  font-family:var(--font-roman);font-weight:400;
  font-size:var(--t-h3);line-height:1.2;letter-spacing:.004em;
}
.lead{font-size:var(--t-lead);line-height:1.5;color:var(--bark-mid);max-width:34ch;}
.on-green .lead{color:rgba(255,255,255,.86);}
.prose{max-width:var(--measure);}
.muted{color:var(--bark-mid);}
.on-green .muted{color:rgba(255,255,255,.78);}
.ital{font-style:italic;}
.gold-word{color:var(--gold-dark);font-style:italic;}
.on-green .gold-word{color:var(--gold-light);font-style:italic;}

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.7rem;
  min-height:var(--tap);padding:.95rem 2.1rem;
  font-family:var(--font-roman);font-size:1.02rem;letter-spacing:.16em;
  text-transform:uppercase;text-decoration:none;cursor:pointer;
  border-radius:999px;border:1px solid transparent;
  transition:background-color .28s var(--ease),color .28s var(--ease),
             border-color .28s var(--ease),transform .28s var(--ease-out);
}
.btn--gold{background:var(--gold);color:var(--bark);border-color:var(--gold);}
.btn--gold:hover{background:var(--gold-dark);border-color:var(--gold-dark);color:var(--paper);}
.btn--ghost{background:transparent;color:var(--bark);border-color:var(--sand-deep);}
.btn--ghost:hover{border-color:var(--bark);background:var(--ivory);}
.on-green .btn--ghost{color:#fff;border-color:rgba(227,192,112,.5);}
.on-green .btn--ghost:hover{border-color:var(--gold-light);background:rgba(255,255,255,.07);}
.btn:active{transform:translateY(1px);}
.btn__arrow{width:1em;height:1em;transition:transform .28s var(--ease-out);}
.btn:hover .btn__arrow{transform:translateX(4px);}

/* ── TOPBAR ─────────────────────────────────────────────────────────────── */
.topbar{
  position:fixed;inset:0 0 auto 0;z-index:90;
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;padding:1.1rem var(--gutter);
  background:color-mix(in srgb,var(--paper) 84%,transparent);
  backdrop-filter:blur(14px) saturate(1.1);
  border-bottom:1px solid transparent;
  transition:border-color .4s var(--ease),background-color .4s var(--ease),padding .4s var(--ease);
}
.topbar[data-stuck="true"]{border-bottom-color:var(--hair);padding-block:.7rem;}
.topbar__logo img{height:30px;width:auto;}
.topbar__right{display:flex;align-items:center;gap:1.25rem;}
.topbar__tel{
  font-family:var(--font-roman);letter-spacing:.1em;font-size:.9rem;
  text-decoration:none;color:var(--bark);
}
.topbar .btn{padding:.6rem 1.5rem;min-height:44px;font-size:.85rem;}
@media (max-width:700px){ .topbar__tel{display:none;} }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero{
  position:relative;min-height:100svh;display:flex;align-items:center;
  padding-block:clamp(7rem,16vh,11rem) var(--bay);
  background:var(--paper);
  overflow:hidden;
}
.hero__grid{
  display:grid;gap:clamp(2rem,5vw,4rem);align-items:center;
  grid-template-columns:1fr;
}
@media (min-width:960px){
  .hero__grid{grid-template-columns:minmax(0,1.55fr) minmax(0,.8fr);}
}
.hero__copy{max-width:none;}
.hero .display{max-width:17ch;}
.hero__lead{margin-top:1.7rem;max-width:36ch;}
.hero__actions{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:2.6rem;}
.hero__note{
  margin-top:1.8rem;font-size:var(--t-small);color:var(--bark-mid);
  max-width:40ch;padding-left:1.1rem;border-left:2px solid var(--gold);
}

/* the hero seed / sprout artwork */
.hero__art{position:relative;justify-self:center;width:min(100%,420px);}
.hero__art svg{width:100%;height:auto;overflow:visible;}
.hero__soil{
  position:absolute;left:50%;bottom:-2px;translate:-50% 0;
  width:min(100%,420px);height:1px;background:var(--sand-deep);opacity:.75;
}

/* ── FLAT CEL ART ─────────────────────────────────────────────────────────
   The plants are filled SILHOUETTES, not strokes: solid masses, hard edges,
   no outline on the shape. Three fills carry every illustration on the site. */
.fl-wood{fill:var(--bark);}
.fl-root{fill:var(--gold-dark);}
.fl-leaf{fill:var(--gold);}
/* On the green ground the whole plant goes ivory — gold and green must never
   share one growth illustration (prosperity-gospel / crypto signature). */
.on-green .fl-wood{fill:var(--ivory);}
.on-green .fl-root{fill:var(--ivory);opacity:.55;}
.on-green .fl-leaf{fill:var(--ivory);opacity:.88;}

/* legacy stroke system — kept for any asset not yet converted to flat */
.bt{stroke:var(--bark);fill:none;}
.bt--root{stroke:var(--gold-dark);opacity:.5;}
.bt-leaf{fill:var(--gold);stroke:none;}
.bt-rib{stroke:var(--gold-dark);stroke-width:.6;fill:none;opacity:.45;}
.bt-seed{fill:var(--gold);stroke:none;}
/* On the green ground the tree carries NO gold — it is drawn entirely in
   ivory. This is not a style preference: green-and-gold co-occurring in one
   growth illustration is the documented prosperity-gospel / crypto signature,
   and this audience is the one that lived through the DMG collapse. Gold lives
   on the paper grounds; green lives here. They never share a picture. */
.on-green .bt{stroke:var(--ivory);opacity:.90;}
.on-green .bt--root{stroke:var(--ivory);opacity:.42;}
.on-green .bt-leaf{fill:var(--ivory);opacity:.86;}
.on-green .bt-rib{stroke:var(--leaf-deep);opacity:.55;}
.on-green .bt-seed{fill:var(--ivory);}

/* ── SECTION GROUNDS ────────────────────────────────────────────────────── */
.ground--ivory{background:var(--ivory);}
.ground--sand{background:var(--sand);}
.ground--green{
  background:var(--leaf-deep);color:#fff;position:relative;overflow:hidden;
}
.ground--green .h2,.ground--green .display,.ground--green .h3{color:#fff;}
.ground--green a{color:var(--gold-light);}

/* a hairline rule with a gold node — the recurring divider */
.rule{display:flex;align-items:center;gap:1rem;margin-block:2.4rem;}
.rule::before,.rule::after{content:"";height:1px;background:var(--hair);flex:1;}
.rule__node{width:7px;height:7px;rotate:45deg;background:var(--gold);flex:none;}
.on-green .rule::before,.on-green .rule::after{background:rgba(227,192,112,.28);}

/* ── RAÍCES: what we look at ────────────────────────────────────────────── */
.roots{display:grid;gap:clamp(2.5rem,5vw,5rem);grid-template-columns:1fr;}
@media (min-width:900px){.roots{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start;}}
.roots__list{border-top:1px solid var(--hair);}
.roots__item{
  display:grid;grid-template-columns:auto 1fr;gap:1.1rem 1.3rem;
  padding-block:1.55rem;border-bottom:1px solid var(--hair);align-items:baseline;
}
.roots__num{
  font-family:var(--font-display);font-weight:600;font-size:.95rem;color:var(--gold-dark);
  font-variant-numeric:tabular-nums;padding-top:.15rem;
}
.roots__no{
  font-family:var(--font-roman);font-size:clamp(1.1rem,1.7vw,1.4rem);
  color:var(--bark);line-height:1.25;
}
.roots__yes{grid-column:2;color:var(--bark-mid);font-size:1rem;}
.roots__yes b{color:var(--gold-dark);font-weight:400;font-style:italic;}

/* ── THE THREE: bento, dense, no empty cells ────────────────────────────── */
.three{
  display:grid;gap:1px;background:var(--hair);
  border:1px solid var(--hair);border-radius:3px;overflow:hidden;
  grid-auto-flow:dense;grid-template-columns:1fr;
}
@media (min-width:860px){.three{grid-template-columns:repeat(3,1fr);}}
.card{
  background:var(--paper);padding:clamp(1.9rem,3vw,3rem);
  display:flex;flex-direction:column;gap:1.1rem;position:relative;
  transition:background-color .45s var(--ease);
}
.card:hover{background:var(--ivory);}
.card__mark{width:44px;height:44px;color:var(--gold-dark);}
.card__mark svg{width:100%;height:100%;}
.card__title{font-family:var(--font-display);font-weight:600;font-size:clamp(1.5rem,2.3vw,2rem);
  line-height:1.08;letter-spacing:-.012em;}
.card__body{color:var(--bark-mid);font-size:1rem;}
.card__meta{
  margin-top:auto;padding-top:1.3rem;border-top:1px solid var(--hair);
  font-family:var(--font-roman);font-size:.82rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--gold-dark);
}
.card--wide{grid-column:span 1;}
@media (min-width:860px){
  .three{grid-template-columns:repeat(6,1fr);}
  .card{grid-column:span 2;}
}

/* ══ THE CAMERA DOLLY ════════════════════════════════════════════════════
   Replaces the earlier "tree grows in place" version, which failed for two
   reasons the founder named exactly: (1) a flat green field gives the eye no
   spatial reference, so nothing signals forward travel, and (2) the beats
   swapped at segment boundaries, which reads as a rendering glitch rather
   than a transition, and moves the text away before it can be read.

   The fix is a real camera. Scroll drives one value, --cam (0→1). The camera
   tracks RIGHT across a continuous landscape; four layers move at different
   depths so parallax does the work of saying "you are travelling." Growth is
   expressed by moving THROUGH four stations — seed, sprout, sapling, tree —
   not by animating one plant, which also keeps the "rooted, not sprouting"
   rule intact. Each beat now holds a long plateau instead of snapping.
   ═══════════════════════════════════════════════════════════════════════ */
.cinema{position:relative;background:var(--leaf-deep);color:#fff;}
/* 760vh: ~600vh of travel plus a ~160vh terminal rest, so the journey ENDS
   somewhere instead of sliding the last beat away mid-sentence. */
.cinema__track{height:760vh;position:relative;}
.cinema__stage{
  position:sticky;top:0;height:100svh;overflow:hidden;
  display:grid;place-items:center;
}

/* depth layers — each is a wide strip translated by cam × its own depth */
.layer{
  position:absolute;left:0;bottom:0;pointer-events:none;
  will-change:transform;
}
.layer>div,.layer svg{display:block;width:100%;height:100%;}
.layer--far {width:400vw;height:34svh;bottom:30svh;color:#3E6B45;opacity:.42;}
.layer--mid {width:400vw;height:30svh;bottom:20svh;color:#35603D;opacity:.62;}
.layer--near{width:400vw;height:26svh;bottom:0;    color:#24402A;}
.layer--fore{width:560vw;height:16svh;bottom:0;    color:#1B3220;opacity:.9;}

/* the light — a warm sun low on the horizon that the camera passes */
.sun{
  position:absolute;bottom:26svh;width:46vh;height:46vh;border-radius:50%;
  background:var(--gold);opacity:.14;filter:blur(60px);
  pointer-events:none;will-change:transform;
}

/* the world strip: four stations, one viewport apart */
.world{
  position:absolute;left:0;bottom:calc(26svh - 2px);
  width:400vw;height:74svh;
  display:grid;grid-template-columns:repeat(4,100vw);align-items:end;
  pointer-events:none;will-change:transform;
}
.station{display:grid;justify-items:center;align-items:end;height:100%;}
.station>div{display:grid;align-items:end;height:100%;}
.station svg{width:auto;overflow:visible;}
/* Each station is visibly bigger than the last — the growth is read by
   comparing what you just passed to what you are passing now. The seed was
   13svh and read as a speck rather than a seed. */
.station[data-st="0"] svg{height:21svh;}
.station[data-st="1"] svg{height:33svh;}
.station[data-st="2"] svg{height:48svh;}
.station[data-st="3"] svg{height:70svh;}
/* stations sit right of centre on desktop so the copy owns the left third */
@media (min-width:900px){ .station{justify-items:end;padding-right:11vw;} }
/* On mobile the copy sits ON the landscape rather than beside it, so the
   stations drop back far enough that they read as scenery, not as competition. */
@media (max-width:899px){ .station{opacity:.34;} }

/* the journey rail — the explicit "you are here" cue */
/* The rail sits high enough to clear the mobile dock, and its labels sit
   ABOVE the line — below the line they were being clipped by the viewport
   edge and the sticky Aplicar bar. */
.rail{
  position:absolute;left:var(--gutter);right:var(--gutter);bottom:12svh;
  height:1px;background:rgba(255,255,255,.20);z-index:3;
}
.rail__fill{
  position:absolute;left:0;top:0;height:100%;width:0;background:var(--gold-light);
  transition:width .12s linear;
}
.rail__tick{
  position:absolute;top:-3px;width:7px;height:7px;rotate:45deg;translate:-50% 0;
  background:var(--leaf-deep);border:1px solid rgba(255,255,255,.4);
}
.rail__tick[data-on="true"]{background:var(--gold-light);border-color:var(--gold-light);}
.rail__lab{
  position:absolute;bottom:14px;translate:-50% 0;white-space:nowrap;
  font-family:var(--font-roman);font-size:.68rem;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(255,255,255,.42);
}
.rail__lab[data-on="true"]{color:var(--gold-light);}
@media (max-width:700px){ .rail__lab{display:none;} }
/* The beats stack in one grid cell and are driven by a continuous --o value
   from the scroll loop, NOT by a binary class with a CSS transition. A binary
   swap is what made this read as a glitch: the text vanished and reappeared
   at a segment boundary. Now each beat has a long fully-opaque plateau while
   its station is on screen, and only fades in the narrow gap between stations. */
.cinema__beats{
  position:relative;z-index:2;width:100%;height:100%;
  display:grid;align-content:center;pointer-events:none;
}
.beat{
  grid-area:1/1;align-self:center;
  opacity:var(--o,0);
  transform:translate3d(0,calc((1 - var(--o,0)) * 18px),0);
  will-change:opacity,transform;
}
.beat__inner{max-width:30ch;}
.beat .h2{font-size:clamp(1.8rem,3vw,2.9rem);}
.beat .lead{max-width:33ch;margin-top:1rem;}
.beat__n{
  font-family:var(--font-roman);font-size:.7rem;letter-spacing:.28em;
  color:var(--gold-light);opacity:.75;margin-bottom:.5rem;display:block;
}
@media (min-width:900px){ .beat__inner{max-width:27ch;} }
@media (max-width:899px){
  .cinema__beats{align-content:center;}
  .beat .lead{max-width:40ch;}
}
.cinema__glow{
  position:absolute;left:50%;top:58%;translate:-50% -50%;
  width:min(90vw,900px);aspect-ratio:1;border-radius:50%;
  background:var(--leaf);opacity:.34;filter:blur(110px);
  pointer-events:none;
}

/* draw-on: every stroke starts hidden, revealed by --grow (0..1) */
.drawable .bt{
  stroke-dasharray:var(--len,1000);
  stroke-dashoffset:var(--off,1000);
}
.drawable .bt-leaf,.drawable .bt-rib{opacity:0;transition:opacity .5s var(--ease);}
.drawable .bt-leaf[data-on="true"],.drawable .bt-rib[data-on="true"]{opacity:1;}

/* ── PROCESS ────────────────────────────────────────────────────────────── */
.steps{display:grid;gap:1px;background:var(--hair);border-block:1px solid var(--hair);
  grid-template-columns:1fr;}
@media (min-width:820px){.steps{grid-template-columns:repeat(4,1fr);}}
.step{background:var(--ivory);padding:clamp(1.6rem,2.6vw,2.4rem);display:flex;
  flex-direction:column;gap:.75rem;}
.step__n{font-family:var(--font-display);font-weight:600;font-size:2.6rem;line-height:1;
  color:var(--gold);font-variant-numeric:lining-nums;}
.step__t{font-family:var(--font-roman);font-size:1.18rem;}
.step__b{color:var(--bark-mid);font-size:.98rem;}

/* ── REQUISITOS ─────────────────────────────────────────────────────────── */
.reqs{display:grid;gap:clamp(1.6rem,3vw,3rem);grid-template-columns:1fr;}
@media (min-width:780px){.reqs{grid-template-columns:repeat(2,1fr);}}
.req{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:start;
  padding-block:1.2rem;border-bottom:1px solid var(--hair);}
.req__leaf{width:26px;height:26px;flex:none;color:var(--gold);margin-top:.2rem;}
.req__t{font-family:var(--font-roman);font-size:1.15rem;}
.req__b{color:var(--bark-mid);font-size:.98rem;margin-top:.25rem;}

/* ── CLOSING CTA ────────────────────────────────────────────────────────── */
.close{position:relative;overflow:hidden;text-align:center;}
.close__inner{position:relative;z-index:2;display:grid;justify-items:center;gap:1.6rem;}
.close .display{max-width:16ch;}
.close__tree{
  position:absolute;left:50%;bottom:-8%;translate:-50% 0;
  width:min(130%,1100px);opacity:.16;pointer-events:none;z-index:1;
}
.close__tree svg{width:100%;height:auto;}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.foot{background:var(--ivory);border-top:1px solid var(--hair);
  padding-block:clamp(3rem,7vh,5rem);font-size:var(--t-small);}
.foot__grid{display:grid;gap:2.5rem;grid-template-columns:1fr;}
@media (min-width:820px){.foot__grid{grid-template-columns:1.3fr 1fr 1fr;}}
.foot h4{font-family:var(--font-roman);font-size:.8rem;letter-spacing:.24em;
  text-transform:uppercase;color:var(--gold-dark);margin-bottom:.9rem;font-weight:400;}
.foot ul{display:grid;gap:.55rem;}
.foot a{color:var(--bark-mid);text-decoration:none;}
.foot a:hover{color:var(--bark);text-decoration:underline;}
.foot__legal{margin-top:2.6rem;padding-top:1.6rem;border-top:1px solid var(--hair);
  color:var(--bark-soft);max-width:80ch;font-size:.86rem;line-height:1.6;}
.foot__logo{height:28px;width:auto;margin-bottom:1rem;}

/* ── STICKY MOBILE CTA ──────────────────────────────────────────────────── */
.dock{
  position:fixed;left:0;right:0;bottom:0;z-index:95;
  padding:.7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background:color-mix(in srgb,var(--paper) 92%,transparent);
  backdrop-filter:blur(14px);border-top:1px solid var(--hair);
  transform:translateY(110%);transition:transform .5s var(--ease-out);
}
.dock[data-on="true"]{transform:none;}
.dock .btn{width:100%;}
@media (min-width:860px){.dock{display:none;}}

/* ── REVEALS ────────────────────────────────────────────────────────────── */
[data-reveal]{opacity:0;transform:translateY(26px);
  transition:opacity .9s var(--ease),transform .9s var(--ease-out);}
[data-reveal][data-on="true"]{opacity:1;transform:none;}
[data-reveal-stagger]>*{opacity:0;transform:translateY(20px);
  transition:opacity .8s var(--ease),transform .8s var(--ease-out);}
[data-reveal-stagger][data-on="true"]>*{opacity:1;transform:none;}

/* scrub-lit paragraph */
.scrub span{color:var(--bark-soft);transition:color .35s var(--ease);}
.scrub span[data-lit="true"]{color:var(--bark);}
.on-green .scrub span{color:rgba(255,255,255,.3);}
.on-green .scrub span[data-lit="true"]{color:#fff;}

/* parallax hooks */
[data-para]{will-change:transform;}

/* ── REDUCED MOTION: everything renders in its final state ──────────────── */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{
    animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  [data-reveal],[data-reveal-stagger]>*,.beat{opacity:1 !important;transform:none !important;}
  .drawable .bt{stroke-dasharray:none !important;stroke-dashoffset:0 !important;}
  .drawable .bt-leaf,.drawable .bt-rib{opacity:1 !important;}
  .scrub span{color:var(--bark) !important;}
  .on-green .scrub span{color:#fff !important;}
  /* No camera. The journey becomes a plain vertical list of four stages, each
     with its illustration — the same information, none of the motion. */
  .cinema__track{height:auto;}
  .cinema__stage{position:static;height:auto;padding-block:var(--bay);display:block;}
  .layer,.sun,.rail{display:none !important;}
  .world{
    position:static;width:auto;height:auto;
    display:grid;grid-template-columns:1fr;gap:var(--bay);
    padding-inline:var(--gutter);
  }
  .station{justify-items:center !important;padding-right:0 !important;height:auto;}
  .station svg{height:auto !important;max-height:34svh;}
  .cinema__beats{display:block;height:auto;}
  .beat{position:static;margin-bottom:3rem;opacity:1 !important;transform:none !important;}
  .dock{transform:none;}
}

/* ── UTILITIES ───────────────────────────────────────────────────────────
   These exist as CLASSES, not style="" attributes, because _headers ships a
   strict `style-src 'self'` with no 'unsafe-inline'. An inline style attribute
   is silently dropped by the browser in production while looking perfect in
   local dev — so every one-off below is a class on purpose. */
.mw-30{max-width:30ch;}
.mw-32{max-width:32ch;}
.mw-34{max-width:34ch;}
.mw-44{max-width:44ch;}
.mw-56{max-width:56ch;}
.mw-58{max-width:58ch;}
.mt-2{margin-top:1.6rem;}
.mt-3{margin-top:2.6rem;}
.mt-s{margin-top:.9rem;}
.center-x{justify-content:center;}
.band{padding-block:clamp(2.5rem,6vh,4rem);}
.band__row{display:flex;gap:1.4rem;align-items:flex-start;max-width:960px;}
.band__icon{width:30px;flex:none;color:var(--gold-dark);}
.band__text{max-width:58ch;margin:0;}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE: arbol-de-la-vida.html — El Árbol de la Vida
   Appended block. Nothing above this line was modified. Every rule here is a
   CLASS because `_headers` ships style-src 'self' with no 'unsafe-inline':
   an inline style attribute is dropped in production while looking fine locally.
   Gold #C59136 stays decorative (marks, rules, arrows); readable gold is
   --gold-dark (5.29:1 on paper).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── LOS DOS EJES ───────────────────────────────────────────────────────── */
.axes{display:grid;gap:clamp(1.8rem,3.5vw,3.2rem);grid-template-columns:1fr;}
@media (min-width:860px){.axes{grid-template-columns:repeat(2,1fr);}}
.axis{
  background:var(--paper);border:1px solid var(--hair);border-radius:3px;
  padding:clamp(1.9rem,3vw,3rem);
  display:flex;flex-direction:column;gap:1.05rem;
}
.axis__art{display:block;height:96px;color:var(--gold-dark);}
.axis__art svg{height:96px;width:auto;overflow:visible;}
.axis__k{
  font-family:var(--font-roman);font-size:.78rem;letter-spacing:.22em;
  text-transform:uppercase;color:var(--gold-dark);
}
.axis__chain{
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.15rem,1.9vw,1.5rem);line-height:1.3;
  color:var(--bark);padding-block:.9rem;
  border-block:1px solid var(--hair);
}
.axis__arrow{color:var(--gold-dark);padding-inline:.25rem;}
.axis__punch{
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.3rem,2.2vw,1.8rem);line-height:1.15;letter-spacing:-.012em;
  color:var(--bark);padding-left:1.1rem;border-left:3px solid var(--gold);
}

/* ── LA ESCALERA DE DIEZ PELDAÑOS ───────────────────────────────────────
   Rendered top-down (Bosque first) so the eye climbs from the bottom of the
   list upward, the way the ladder is actually ascended. The connecting spine
   is a 1px hairline with a gold node per rung. */
.ladder{
  list-style:none;margin:0;padding:0;
  display:grid;gap:0;max-width:70ch;
}
.ladder__step{
  position:relative;
  display:grid;
  grid-template-columns:auto auto 1fr;
  grid-template-areas:"n mark name" ". . body";
  gap:.35rem 1.1rem;
  padding:1.45rem 0 1.45rem .1rem;
  border-bottom:1px solid var(--hair);
  align-items:baseline;
}
.ladder__step:first-child{border-top:1px solid var(--hair);}
.ladder__n{
  grid-area:n;
  font-family:var(--font-display);font-weight:600;font-size:.95rem;
  color:var(--bark-soft);font-variant-numeric:tabular-nums;
}
.ladder__mark{
  grid-area:mark;width:9px;height:9px;rotate:45deg;flex:none;
  background:var(--gold);translate:0 -.15em;
}
.ladder__name{
  grid-area:name;
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.35rem,2.4vw,2.05rem);line-height:1.08;letter-spacing:-.014em;
  color:var(--bark);
}
.ladder__b{
  grid-area:body;color:var(--bark-mid);font-size:1rem;max-width:56ch;
  padding-left:calc(9px + 1.1rem);
}
@media (max-width:620px){
  .ladder__step{grid-template-areas:"n mark name" "body body body";}
  .ladder__b{padding-left:0;}
}
/* The two ranks that sit OUTSIDE the ladder are set apart deliberately: a
   different ground, a different container, no rung number, no spine node. */
.beyond{
  margin-top:clamp(2.4rem,5vw,4rem);
  display:grid;gap:1px;background:var(--hair);
  border:1px solid var(--hair);border-radius:3px;overflow:hidden;
  grid-template-columns:1fr;
}
@media (min-width:820px){.beyond{grid-template-columns:repeat(2,1fr);}}
.beyond__card{
  background:var(--sand);padding:clamp(1.8rem,3vw,2.8rem);
  display:flex;flex-direction:column;gap:.95rem;
}

/* ── NOTA DESTACADA (liderazgo) ─────────────────────────────────────────── */
.note-box{
  border-left:3px solid var(--gold);
  padding:1.4rem 0 1.4rem 1.4rem;
  max-width:62ch;
}
.note-box .prose{max-width:58ch;}

/* ══ EL ÁRBOL DE LA VIDA ═════════════════════════════════════════════════
   The referral structure, on the homepage. The ladder is deliberately drawn
   as an ASCENDING STAIR of the member's OWN standing — each rung indents a
   little further and gains a little weight — rather than as a branching
   diagram of people under people. Same information, and it does not borrow
   the silhouette of the thing it is not. */
.arbol{background:var(--ivory);}
.arbol__head{max-width:62ch;}
.arbol__grid{
  display:grid;gap:clamp(2.5rem,5vw,4.5rem);grid-template-columns:1fr;
  align-items:start;margin-top:1rem;
}
@media (min-width:940px){
  .arbol__grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);}
}

#arbol .ladder{counter-reset:rung;border-top:1px solid var(--hair);}
#arbol .ladder__step{
  display:grid;grid-template-columns:auto minmax(0,1fr);
  gap:.35rem 1.1rem;align-items:baseline;
  padding:.95rem 0 .95rem var(--indent,0);
  border-bottom:1px solid var(--hair);
  transition:background-color .3s var(--ease),padding-left .3s var(--ease);
}
#arbol .ladder__step:hover{background:var(--paper);}
/* each rung steps further in and grows — the climb is legible without a chart */
#arbol .ladder__step:nth-child(1){--indent:0;}
#arbol .ladder__step:nth-child(2){--indent:.5rem;}
#arbol .ladder__step:nth-child(3){--indent:1rem;}
#arbol .ladder__step:nth-child(4){--indent:1.5rem;}
#arbol .ladder__step:nth-child(5){--indent:2rem;}
#arbol .ladder__step:nth-child(6){--indent:2.5rem;}
#arbol .ladder__step:nth-child(7){--indent:3rem;}
#arbol .ladder__step:nth-child(8){--indent:3.5rem;}
#arbol .ladder__step:nth-child(9){--indent:4rem;}
#arbol .ladder__step:nth-child(10){--indent:4.5rem;}
@media (max-width:600px){ .ladder__step{--indent:0 !important;} }

#arbol .ladder__n{
  font-family:var(--font-display);font-weight:600;font-size:.85rem;
  color:var(--gold-dark);font-variant-numeric:tabular-nums;
}
#arbol .ladder__name{
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.1rem,1.5vw,1.35rem);line-height:1.15;color:var(--bark);
}
#arbol .ladder__d{grid-column:2;color:var(--bark-mid);font-size:.98rem;}
#arbol .ladder__step:nth-child(n+8) .ladder__name{font-size:clamp(1.25rem,1.8vw,1.6rem);}

#arbol .arbol__side{display:grid;gap:2rem;justify-items:center;}
#arbol .arbol__art{width:min(100%,380px);}
#arbol .arbol__art svg{width:100%;height:auto;}
#arbol .arbol__titles{
  border-left:2px solid var(--gold);padding-left:1.2rem;
  display:grid;gap:.9rem;
}
#arbol .arbol__title-row{color:var(--bark-mid);font-size:1rem;max-width:34ch;}
#arbol .arbol__title-row b{color:var(--bark);font-family:var(--font-roman);font-weight:400;
  letter-spacing:.04em;}

#arbol .arbol__lead{margin-top:clamp(2.5rem,5vw,4rem);border-top:1px solid var(--hair);
  padding-top:clamp(2rem,4vw,3rem);}
#arbol .arbol__lead .btn{margin-top:1.6rem;}

/* ══════════════════════════════════════════════════════════════════════════
   ── FORM ──  aplicar.html + the two legal pages (privacidad, terminos)
   ═══════════════════════════════════════════════════════════════════════════

   This block is the OLD css/form.css structure ported onto the new tokens.
   Nothing here invents a hue: every colour is --paper / --ivory / --sand /
   --bark / --bark-mid / --gold / --gold-dark / --leaf-deep / --hair.

   Two hard rules govern the sizes below, and they are not stylistic:

   1. TWENTY PIXELS IS THE FLOOR. The reader is 35–60, frequently presbyopic,
      on a mid-range Android in tropical daylight. --t-form is 1.25rem = 20px
      and every question, option, help line and input meets or beats it.
   2. THE BORDER IS A REAL BORDER. --hair (#E6DAC4) measures ~1.3:1 on paper —
      invisible outdoors. Every input, option and consent box is bordered in
      --bark-mid (#6B5432 = 6.98:1 on paper), 2px. A hairline field is a field
      the applicant cannot find.

   Colour is never the only signal: .field-error prints the word "Atención:",
   every .note carries a bold label, and the checked state changes the border
   weight AND the ground, not just the hue.
   ═══════════════════════════════════════════════════════════════════════ */

.form-page{
  --t-form:1.25rem;        /* 20px — the floor */
  --t-input:1.375rem;      /* 22px — typed values are bigger than labels */
  --t-question:clamp(1.5rem,4.2vw,2.05rem);
  --edge:var(--bark-mid);  /* the readable border */
  --tap-form:56px;         /* > the 48px minimum, thumb-sized */
  --r:6px;
}

/* the fixed topbar overlaps the top of the document on every non-hero page */
.page-top{padding-top:clamp(6rem,12vh,8.5rem);}

/* base.css primitives these pages still reference, re-expressed on the
   new tokens so no page has to load the dead teal stylesheet */
.container{width:100%;max-width:1360px;margin-inline:auto;padding-inline:var(--gutter);}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--bark);color:var(--paper);padding:1rem 1.5rem;text-decoration:none;}
.skip-link:focus{left:0;}

/* ── Shell ─────────────────────────────────────────────────────────────── */
.form-shell{max-width:720px;padding-block:0 clamp(3.5rem,9vh,6rem);}
.wizard{display:block;}
.wizard-topbar{margin-bottom:2rem;padding-bottom:1rem;border-bottom:1px solid var(--hair);}
.wizard-progress{
  margin:0;font-family:var(--font-roman);font-size:.86rem;
  letter-spacing:.22em;text-transform:uppercase;color:var(--gold-dark);
}

/* One question per screen. No-JS baseline: every screen is a normal stacked
   block — the whole form on one page. JS adds [data-active] to exactly one
   screen per form; without JS the hiding rule below never applies. */
.screen{padding-block:2.6rem;border-bottom:1px solid var(--hair);}
.screen:first-of-type{padding-top:0;}
.screen:last-of-type{border-bottom:0;}
.wizard[data-js-enhanced] .screen{display:none;}
.wizard[data-js-enhanced] .screen[data-active]{display:block;}
.screen--plain{padding-block:3rem;}
[data-js-enhanced-root] .screen--plain:not([data-active]){display:none;}

.screen-question{
  font-family:var(--font-display);font-weight:600;
  font-size:var(--t-question);line-height:1.1;letter-spacing:-.014em;
  color:var(--bark);margin:0 0 1.3rem;padding:0;border:0;text-wrap:balance;
}
.screen-question--sub{font-size:1.3rem;margin-top:2.4rem;}
.form-page fieldset{border:0;margin:0 0 2rem;padding:0;min-width:0;}

.screen-help,.reassurance{
  font-size:var(--t-form);line-height:1.5;color:var(--bark-mid);
  max-width:44ch;margin:0 0 1.6rem;
}
.reassurance{margin:1.3rem 0 0;padding-left:1rem;border-left:2px solid var(--gold);}

/* ── Tap-select groups — radio and checkbox share one look ─────────────── */
.tap-group{display:flex;flex-direction:column;gap:.7rem;margin:0 0 1.3rem;}
.tap-option{
  display:flex;align-items:center;gap:1rem;
  min-height:var(--tap-form);padding:1rem 1.15rem;
  border:2px solid var(--edge);border-radius:var(--r);
  background:var(--paper);color:var(--bark);
  font-size:var(--t-form);line-height:1.3;cursor:pointer;
  transition:background-color .2s var(--ease),border-color .2s var(--ease);
}
.tap-option:hover{background:var(--ivory);}
.tap-option input[type="radio"],
.tap-option input[type="checkbox"]{
  flex:0 0 auto;width:26px;height:26px;margin:0;accent-color:var(--gold-dark);
}
.tap-option span{flex:1 1 auto;}
.tap-option:has(input:checked){
  border-color:var(--gold-dark);border-width:3px;padding:calc(1rem - 1px) calc(1.15rem - 1px);
  background:var(--ivory);font-weight:700;
}

/* ── Text and phone fields ─────────────────────────────────────────────── */
.field-label{display:block;font-size:var(--t-form);font-weight:700;
  color:var(--bark);margin:2rem 0 .6rem;}
.text-field input[type="text"],
.text-field input[type="tel"],
.phone-field input[type="tel"]{
  width:100%;min-height:var(--tap-form);padding:.85rem 1.05rem;
  border:2px solid var(--edge);border-radius:var(--r);
  background:var(--paper);color:var(--bark);
  font-family:var(--font-ui);font-size:var(--t-input);
  font-variant-numeric:tabular-nums;
}
.text-field input:focus,.phone-field input:focus{border-color:var(--bark);}
.phone-field{display:flex;align-items:stretch;gap:.7rem;}
.phone-prefix{
  display:flex;align-items:center;padding-inline:1.05rem;
  border:2px solid var(--edge);border-radius:var(--r);
  background:var(--ivory);color:var(--bark);
  font-size:var(--t-input);font-weight:700;font-variant-numeric:tabular-nums;
}
.phone-field input[type="tel"]{flex:1 1 auto;}

/* ── Consent checkboxes — habeas data ──────────────────────────────────
   Full contrast, body size, never a grey box, never pre-checked. The
   un-ticked state is a legal requirement (Ley 1581), enforced in the markup;
   there is deliberately no CSS or JS here that could tick one. */
.consent-check{
  display:flex;align-items:flex-start;gap:1rem;padding:1.15rem;
  border:2px solid var(--edge);border-radius:var(--r);
  background:var(--paper);color:var(--bark);
  margin:0 0 1.3rem;cursor:pointer;font-size:var(--t-form);line-height:1.55;
}
.consent-check input[type="checkbox"]{
  flex:0 0 auto;width:30px;height:30px;margin-top:2px;accent-color:var(--gold-dark);
}
.consent-check:has(input:checked){border-color:var(--gold-dark);border-width:3px;
  padding:calc(1.15rem - 1px);background:var(--ivory);}
.consent-check strong{font-weight:700;}
.consent-check a{font-weight:700;color:var(--gold-dark);}

/* ── Errors — plain Spanish, reassuring, never colour-only ─────────────── */
.field-error{
  display:flex;gap:.5rem;align-items:flex-start;
  margin:.6rem 0 1.3rem;padding:.85rem 1.05rem;border-radius:var(--r);
  border-left:5px solid var(--bark);background:var(--sand);
  color:var(--bark);font-size:var(--t-form);font-weight:700;
}
.field-error::before{content:"Atención:";font-weight:700;}
.field-error[hidden]{display:none;}

/* ── Navigation band — Continuar is always the primary, full width ─────── */
.screen-nav{display:flex;flex-direction:column-reverse;gap:.8rem;margin-top:2.4rem;}
.screen-nav--split{flex-direction:column;}

/* The form's buttons keep the site's pill CTA shape but drop the uppercase
   letterspaced treatment: "Prefiero que me escriban por WhatsApp" set in
   tracked capitals is a wall, not a button. */
.form-shell .btn{
  text-transform:none;letter-spacing:.01em;font-family:var(--font-ui);
  font-size:var(--t-form);font-weight:700;min-height:var(--tap-form);
  padding:.9rem 1.7rem;border-radius:var(--r);border-width:2px;
}
.btn--primary{background:var(--gold);color:var(--bark);border-color:var(--gold);}
.btn--primary:hover{background:var(--gold-dark);border-color:var(--gold-dark);color:var(--paper);}
.btn--secondary{background:transparent;color:var(--bark);border-color:var(--edge);}
.btn--secondary:hover{background:var(--ivory);border-color:var(--bark);}
.btn--full{width:100%;}
.btn-link{
  align-self:flex-start;background:none;border:0;padding:.5rem 0;
  color:var(--bark-mid);font-family:var(--font-ui);font-size:var(--t-form);
  font-weight:700;text-decoration:underline;text-underline-offset:3px;
  cursor:pointer;min-height:48px;
}
.btn-link:hover{color:var(--bark);}

/* ── Plain screens (bridge, E0, confirmación) — prose, not a form ──────── */
.screen--plain h2{font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.7rem,4vw,2.4rem);line-height:1.08;letter-spacing:-.016em;
  color:var(--bark);margin:0 0 1.2rem;text-wrap:balance;}
.screen--plain h3{font-family:var(--font-roman);font-weight:400;
  font-size:1.35rem;color:var(--bark);margin:2.2rem 0 .7rem;}
.screen--plain p{font-size:var(--t-form);line-height:1.6;color:var(--bark-mid);
  max-width:52ch;margin:0 0 1.1rem;}
.screen--plain p strong{color:var(--bark);}
.screen--plain .lead{font-size:1.4rem;color:var(--bark);max-width:46ch;}
.plain-list{margin:0 0 1.8rem;padding-left:1.4rem;list-style:disc;
  font-size:var(--t-form);line-height:1.6;color:var(--bark-mid);max-width:52ch;}
.plain-list li{margin-bottom:.8rem;}
.plain-list strong{color:var(--bark);}
.fine-print{font-size:var(--t-small);color:var(--bark-soft);}
.screen--confirm [data-radicado-display],
.screen--confirm [data-telefono-display]{font-variant-numeric:tabular-nums;}

/* ── Resume banner — injected by js/form.js when answers are restored ──── */
.resume-banner{
  display:flex;gap:.8rem;align-items:flex-start;margin-bottom:2rem;padding:1.15rem;
  border-radius:var(--r);border-left:5px solid var(--gold);background:var(--ivory);
  font-size:var(--t-form);color:var(--bark);
}
.resume-banner__label{font-weight:700;}
.resume-banner button{
  background:none;border:0;padding:0;color:var(--gold-dark);font-weight:700;
  text-decoration:underline;cursor:pointer;font-size:var(--t-form);
  font-family:var(--font-ui);min-height:48px;
}

/* ── Notes — colour is a REDUNDANT channel. Each carries a bold label
      word as well as its ground, so the meaning survives greyscale,
      Android forced-dark, and daylight glare. ──────────────────────────── */
.note{
  display:flex;gap:.8rem;padding:1.15rem;border-radius:var(--r);
  border-left:5px solid var(--hair);background:var(--ivory);
  font-size:var(--t-form);line-height:1.55;color:var(--bark-mid);
  max-width:60ch;margin:0 0 1.4rem;
}
.note p{margin:0 0 .8rem;max-width:none;font-size:inherit;color:inherit;}
.note p:last-child{margin-bottom:0;}
.note strong,.note__label{font-weight:700;color:var(--bark);}
.note--info   {background:var(--ivory);border-left-color:var(--gold);}
.note--green  {background:var(--ivory);border-left-color:var(--leaf-deep);}
.note--warning{background:var(--sand); border-left-color:var(--gold-dark);}
.note--danger {background:var(--sand); border-left-color:var(--bark);}

/* ── Reveal targets (conditional sub-fields) ───────────────────────────── */
[data-reveal-target][hidden]{display:none;}

/* ══ LEGAL PAGES — privacidad.html, terminos.html ═══════════════════════
   Long-form documents, read once, under stress, often on a phone. Set as a
   single readable column at the same 20px floor as the form. */
.legal{max-width:820px;}
.legal section{padding-block:0 2.6rem;}
.legal h1{font-family:var(--font-display);font-weight:600;
  font-size:var(--t-h2);line-height:1.05;letter-spacing:-.018em;
  color:var(--bark);margin:0 0 1.4rem;text-wrap:balance;}
.legal h2{font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.45rem,3vw,1.95rem);line-height:1.12;letter-spacing:-.012em;
  color:var(--bark);margin:2.8rem 0 1rem;text-wrap:balance;}
.legal h3{font-family:var(--font-roman);font-weight:400;font-size:1.3rem;
  color:var(--bark);margin:2rem 0 .6rem;}
.legal p{font-size:var(--t-form);line-height:1.65;color:var(--bark-mid);
  max-width:66ch;margin:0 0 1.1rem;}
.legal p strong{color:var(--bark);}
.legal .lead{font-size:1.4rem;line-height:1.5;color:var(--bark);max-width:52ch;
  margin-bottom:1.6rem;}
.legal ul{list-style:disc;padding-left:1.4rem;margin:0 0 1.4rem;max-width:66ch;
  font-size:var(--t-form);line-height:1.65;color:var(--bark-mid);}
.legal li{margin-bottom:.7rem;}
.legal li strong{color:var(--bark);}
.legal a{color:var(--gold-dark);font-weight:700;}
.legal a:hover{color:var(--bark);}
.legal__next{margin-top:3rem;padding-top:1.6rem;border-top:1px solid var(--hair);}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE: la-semilla.html — appended block, page-specific only.
   Everything here is a CLASS on purpose: `_headers` ships style-src 'self'
   with no 'unsafe-inline', so a style="" attribute is dropped in production
   while looking perfect in local dev. No gradients, no text-shadow, and the
   plain gold #C59136 never carries a word on a light ground.
   ═══════════════════════════════════════════════════════════════════════ */

/* two-column narrative + aside (billetera, compromiso) */
.sem-split{display:grid;gap:clamp(2rem,5vw,4.5rem);grid-template-columns:1fr;align-items:start;}
@media (min-width:900px){.sem-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}}

/* the trust aside — a bordered slab, not a tinted box */
.sem-note{
  border:1px solid var(--hair);border-left:3px solid var(--gold);
  background:var(--ivory);border-radius:3px;
  padding:clamp(1.6rem,3vw,2.6rem);
  display:grid;gap:1.1rem;
}
.sem-note__t{
  font-family:var(--font-roman);font-size:.82rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--gold-dark);
}
.sem-note__b{color:var(--bark-mid);font-size:1rem;max-width:46ch;}
.sem-note__b strong{color:var(--bark);font-weight:700;}

/* the worked example — explicitly labelled, never styled as an offer */
.sem-ex{border:1px solid var(--hair);border-radius:3px;background:var(--paper);overflow:hidden;}
.sem-ex__tag{
  font-family:var(--font-roman);font-size:.8rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--bark-mid);
  padding:1rem clamp(1.4rem,3vw,2.4rem);
  border-bottom:1px solid var(--hair);background:var(--ivory);
}
.sem-ex__grid{display:grid;gap:1px;background:var(--hair);grid-template-columns:1fr;margin:0;}
@media (min-width:760px){.sem-ex__grid{grid-template-columns:repeat(3,1fr);}}
.sem-ex__cell{background:var(--paper);padding:clamp(1.5rem,3vw,2.4rem);display:grid;gap:.5rem;}
.sem-ex__k{
  font-family:var(--font-roman);font-size:.82rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--gold-dark);
}
.sem-ex__v{
  margin:0;font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.9rem,3.4vw,2.8rem);line-height:1;letter-spacing:-.016em;
  color:var(--bark);font-variant-numeric:lining-nums;
}
.sem-ex__foot{
  padding:clamp(1.3rem,2.6vw,2rem) clamp(1.4rem,3vw,2.4rem);
  border-top:1px solid var(--hair);
  color:var(--bark-mid);font-size:.98rem;max-width:70ch;
}

/* NO ITALICS in the long-form legal copy or the form. Italic body text is the
   worst case for atypical readers (Rello & Baeza-Yates 2013,
   DOI 10.1145/2513383.2513447), so <em>/<cite> carry weight, not slant.
   The decorative .gold-word italic on the marketing pages is unaffected. */
.legal em,.legal cite,.form-page em,.form-page cite{
  font-style:normal;font-weight:700;color:var(--bark);
}

/* ══ SECTION SCENES ══════════════════════════════════════════════════════
   Every chapter stands on illustrated ground rather than a flat colour
   field. A scene is a low ridge plus one or two plant silhouettes, pinned to
   the bottom of the section, parallaxed gently by the scroll loop. They sit
   BEHIND the content at low contrast — atmosphere, never competition, and
   never a texture the copy has to fight. */
.chapter{overflow:hidden;}
.scene{
  position:absolute;left:0;right:0;bottom:0;height:clamp(90px,17vh,210px);
  pointer-events:none;z-index:0;overflow:hidden;
}
.scene>*{position:absolute;bottom:0;}
.chapter>.wrap{position:relative;z-index:1;}

.scene__ridge{left:-6%;width:112%;height:100%;color:var(--sand);opacity:.85;}
.scene__ridge svg{width:100%;height:100%;}
.ground--ivory .scene__ridge{color:var(--sand);opacity:.7;}
.ground--sand  .scene__ridge{color:var(--sand-deep);opacity:.7;}

.scene__plant{width:auto;opacity:.16;}
.scene__plant svg{height:100%;width:auto;}
.scene__plant--l{left:4%;height:clamp(70px,13vh,150px);}
.scene__plant--r{right:6%;left:auto;height:clamp(95px,19vh,230px);}
.scene__plant .fl-wood{fill:var(--bark);}
.scene__plant .fl-leaf{fill:var(--gold);}
.scene__plant .fl-root{fill:var(--gold-dark);}

@media (max-width:700px){ .scene__plant--l{display:none;} }
@media (prefers-reduced-motion:reduce){ .scene>*{transform:none !important;} }

/* A wizard with no active screen (Tramo 2, before the bridge is crossed) must
   not leave its progress label floating on the page. CSS-only, state-driven —
   no JS behaviour changes — and inert without JS, where every screen shows. */
.wizard[data-js-enhanced]:not(:has(.screen[data-active])) .wizard-topbar{display:none;}


/* ══ LA SUBIDA — horizontal camera through the ten levels ════════════════
   Same engine and same feel as the journey cinema: scroll pans the camera
   RIGHT across a continuous landscape (far ridge, mid ridge, near bank,
   foreground scrub, a low sun), and ten trees ride past growing bigger — a
   seed on the right edge, a full canopy by the time the reader has climbed.
   axis="x", ten stations, terminal rest at the end. NOT top-down. */
.lvl{position:relative;background:var(--leaf-deep);color:#fff;}
.lvl__intro{padding-top:var(--bay);padding-bottom:2rem;position:relative;z-index:2;}
.lvl__track{height:1000vh;position:relative;}
.lvl__stage{position:sticky;top:0;height:100svh;overflow:hidden;display:grid;place-items:center;}

.lvl__sun{
  position:absolute;left:74%;top:26%;width:40vh;height:40vh;border-radius:50%;
  background:var(--gold);opacity:.16;filter:blur(70px);
  will-change:transform;pointer-events:none;
}
.lvl .layer{position:absolute;left:0;bottom:0;pointer-events:none;will-change:transform;}
.lvl .layer>div,.lvl .layer svg{display:block;width:100%;height:100%;}
.lvl__far {width:1200vw;height:34svh;bottom:30svh;color:#3E6B45;opacity:.42;}
.lvl__mid {width:1200vw;height:30svh;bottom:20svh;color:#35603D;opacity:.62;}
.lvl__near{width:1200vw;height:26svh;bottom:0;   color:#24402A;}
.lvl__fore{width:1500vw;height:16svh;bottom:0;   color:#1B3220;opacity:.9;}

.lvl__world{
  position:absolute;left:0;bottom:calc(26svh - 2px);width:1000vw;height:74svh;
  display:grid;grid-template-columns:repeat(10,100vw);align-items:end;
  pointer-events:none;will-change:transform;
}
.lvl-station{display:grid;justify-items:center;align-items:end;height:100%;}
.lvl-station>div{display:grid;align-items:end;height:100%;}
.lvl-station svg{width:auto;overflow:visible;}
.lvl-station[data-lv="0"] svg{height:11svh;}
.lvl-station[data-lv="1"] svg{height:16svh;}
.lvl-station[data-lv="2"] svg{height:22svh;}
.lvl-station[data-lv="3"] svg{height:30svh;}
.lvl-station[data-lv="4"] svg{height:38svh;}
.lvl-station[data-lv="5"] svg{height:46svh;}
.lvl-station[data-lv="6"] svg{height:54svh;}
.lvl-station[data-lv="7"] svg{height:62svh;}
.lvl-station[data-lv="8"] svg{height:70svh;}
.lvl-station[data-lv="9"] svg{height:78svh;}
@media (min-width:900px){ .lvl-station{justify-items:end;padding-right:9vw;} }
@media (max-width:899px){ .lvl-station{opacity:.32;} }

.lvl__beats{position:relative;z-index:2;width:100%;height:100%;
  display:grid;align-content:center;pointer-events:none;}
.lvl__beats .beat .h2{font-size:clamp(1.9rem,3.6vw,3.3rem);}
.lvl__beats .beat .lead{max-width:32ch;margin-top:1rem;}
@media (min-width:900px){ .lvl__beats .beat__inner{max-width:30ch;} }

@media (prefers-reduced-motion:reduce){
  .lvl__track{height:auto;}
  .lvl__stage{position:static;height:auto;padding-block:var(--bay);display:block;}
  .lvl .layer,.lvl__sun,.lvl .rail{display:none !important;}
  .lvl__world{position:static;width:auto;height:auto;grid-template-columns:1fr;
    display:grid;gap:var(--bay);}
  .lvl-station{opacity:1 !important;justify-items:center !important;padding-right:0 !important;height:auto;}
  .lvl-station svg{height:auto !important;max-height:30svh;}
  .lvl__beats{display:block;height:auto;}
  .lvl__beats .beat{opacity:1 !important;transform:none !important;}
}
