/* ─────────────────────────────────────────────────────────────────────────
   Campaign landings (Spanish-only, one intent per page).
   Same shell as the rest of the site: nav, footer and palette come from
   style.css / landing.css. What lives here is only the hero with layered
   zoom and the four sections these pages need.
   ───────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────
   Theme tokens for the campaign blocks.
   The dark values are exactly the ones these pages have always shipped, so
   the dark theme does not move a pixel. The light theme re-points the same
   tokens at the site palette (style.css): the contrast bands become a warm
   tinted paper (--bg2) with dark ink, and the accent drops to --gold-soft,
   which is the darker gold the light palette carries for text on paper.
   The hero follows the same rule: on paper its veil turns into the cream wash
   the home page hero uses, and its copy goes to ink.
   ───────────────────────────────────────────────────────────────────────── */
:root{
  --cp-band:#0b0d12;
  --cp-band-edge:none;
  --cp-band-ink:#f5f0e5;
  --cp-band-strong:#fff;
  --cp-band-soft:rgba(245,240,229,.84);
  --cp-band-copy:rgba(245,240,229,.86);
  --cp-band-lead:rgba(245,240,229,.78);
  --cp-band-quiet:rgba(245,240,229,.8);
  --cp-band-dim:rgba(245,240,229,.72);
  --cp-band-faint:rgba(245,240,229,.6);
  --cp-band-line:rgba(245,240,229,.18);
  --cp-accent:var(--gold,#cda94e);
  --cp-field-bg:rgba(255,255,255,.03);
  --cp-field-line:rgba(245,240,229,.26);
  --cp-field-ph:rgba(245,240,229,.38);
  --cp-btn-line:rgba(245,240,229,.28);
  --cp-btn-ink:rgba(245,240,229,.86);
  --cp-plat-line:rgba(245,240,229,.2);
  --cp-plat-line-hover:rgba(245,240,229,.42);
  --cp-plat-ink:rgba(245,240,229,.9);
  --cp-plat-logo-ink:rgba(245,240,229,.8);
  --cp-plat-on:rgba(205,169,78,.06);
  --cp-error:#e08a80;
  --cp-shot-shadow:0 24px 60px rgba(0,0,0,.35);
  --cp-hero-ground:#07080c;
  --cp-hero-veil:linear-gradient(180deg,rgba(7,8,12,.72) 0%,rgba(7,8,12,.28) 38%,rgba(7,8,12,.86) 100%);
  --cp-hero-ink:#f5f0e5;
  --cp-hero-strong:#fff;
  --cp-hero-copy:rgba(245,240,229,.86);
  --cp-hero-note:rgba(245,240,229,.6);
}
[data-theme="light"]{
  --cp-band:var(--bg2);
  --cp-band-edge:inset 0 1px 0 var(--line-2),inset 0 -1px 0 var(--line-2);
  --cp-band-ink:var(--ink);
  --cp-band-strong:var(--ink);
  --cp-band-soft:rgba(21,23,26,.86);
  --cp-band-copy:rgba(21,23,26,.86);
  --cp-band-lead:rgba(21,23,26,.78);
  --cp-band-quiet:rgba(21,23,26,.8);
  --cp-band-dim:rgba(21,23,26,.74);
  --cp-band-faint:rgba(21,23,26,.66);
  --cp-band-line:rgba(21,23,26,.2);
  --cp-accent:var(--gold-soft,#7d6114);
  --cp-field-bg:rgba(255,253,248,.72);
  --cp-field-line:rgba(21,23,26,.5);
  --cp-field-ph:rgba(21,23,26,.62);
  --cp-btn-line:rgba(21,23,26,.34);
  --cp-btn-ink:rgba(21,23,26,.82);
  --cp-plat-line:rgba(21,23,26,.34);
  --cp-plat-line-hover:rgba(21,23,26,.55);
  --cp-plat-ink:rgba(21,23,26,.9);
  --cp-plat-logo-ink:rgba(21,23,26,.78);
  --cp-plat-on:rgba(125,97,20,.1);
  --cp-error:#a3291c;
  --cp-shot-shadow:var(--sh-md);
  /* The hero lightens with the page, exactly like the home page one: the same
     cream wash (--bg, rgba(247,244,237,...)) laid over the photograph in three
     passes. The first is a scrim under the fixed nav bar, so the links keep a
     predictable ground; the second is the home page diagonal — dense on the
     left where the copy sits, nearly clear on the right where the picture is
     meant to show; its plateau is measured in px, not in %, so the copy column
     (760px) stays covered when the window is too narrow for the diagonal. The
     third weighs the bottom down, because here the copy is anchored there
     instead of centred. Measured over the 66 landing photographs: ink 7.6:1,
     lead 8.5:1, note 6.3:1, eyebrow 4.5:1. */
  --cp-hero-ground:var(--bg);
  --cp-hero-veil:linear-gradient(180deg,rgba(247,244,237,.9) 0,rgba(247,244,237,.86) 66px,rgba(247,244,237,0) 220px),
    linear-gradient(100deg,rgba(247,244,237,.94) 0,rgba(247,244,237,.9) 620px,rgba(247,244,237,.5) 1040px,rgba(247,244,237,.08) 100%),
    linear-gradient(180deg,rgba(247,244,237,0) 28%,rgba(247,244,237,.22) 50%,rgba(247,244,237,.48) 70%,rgba(247,244,237,.8) 90%,rgba(247,244,237,.88) 100%);
  --cp-hero-ink:var(--ink);
  --cp-hero-strong:var(--ink);
  --cp-hero-copy:rgba(21,23,26,.86);
  --cp-hero-note:rgba(21,23,26,.72);
}

.cp-hero{position:relative;min-height:min(94vh,860px);display:flex;align-items:flex-end;overflow:hidden;background:var(--cp-hero-ground)}
.cp-hero-bg{position:absolute;inset:0;z-index:0}
.cp-hero-bg figure{position:absolute;inset:0;margin:0;background-size:cover;background-position:center;opacity:0;
  animation:cp-cycle 27s cubic-bezier(.4,0,.2,1) infinite}
.cp-hero-bg figure:nth-child(1){animation-delay:0s}
.cp-hero-bg figure:nth-child(2){animation-delay:9s}
.cp-hero-bg figure:nth-child(3){animation-delay:18s}
@keyframes cp-cycle{
  0%{opacity:0;transform:scale(1.04)}
  4%{opacity:1}
  33%{opacity:1}
  37%{opacity:0}
  100%{opacity:0;transform:scale(1.14)}
}
.cp-hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:var(--cp-hero-veil)}
.cp-hero .wrap{position:relative;z-index:2;padding:clamp(96px,14vh,180px) 0 clamp(52px,7vh,88px)}
/* The copy floats with the theme, like the home page hero: light on the dark
   veil, ink on the cream one. The tokens carry the exact values the dark theme
   has always shipped, so nothing moves there. */
.cp-hero-copy{max-width:760px;color:var(--cp-hero-ink)}
.cp-hero-copy .eyebrow{color:var(--cp-accent)}
.cp-hero-copy h1{font-family:var(--serif,Fraunces,Georgia,serif);font-size:clamp(38px,5.4vw,74px);line-height:1.03;margin:14px 0 18px;color:var(--cp-hero-strong)}
.cp-hero-copy p{font-size:clamp(16px,1.5vw,20px);line-height:1.6;color:var(--cp-hero-copy);max-width:620px;margin:0 0 30px}
.cp-hero-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.cp-hero-note{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--cp-hero-note)}

/* The fixed nav bar floats over the hero. The shared stylesheets paint it for
   a dark hero — landing.css writes its links out in #f5f1e8 — which over the
   cream wash measures 1.0:1, unreadable. On paper it goes to ink instead, the
   way the rest of the light palette does. Scoped to .campaign-page, so the
   home page and the detail pages keep exactly the bar they have today; and to
   :not(.scrolled), because once the bar picks up its own glass it is no longer
   sitting on the hero. Ink on the wash measures 13.3:1, the last link 4.3:1. */
[data-theme="light"] .campaign-page .site-nav:not(.scrolled){
  --ink:#15171a; --muted:#4f5257; --dim:#767a82; --line-2:#cdc4b0;
  --gold:#9a7a1c; --gold-soft:#7d6114;
  color:var(--ink)}
[data-theme="light"] .campaign-page .site-nav:not(.scrolled) .links a,
[data-theme="light"] .campaign-page .site-nav:not(.scrolled) .logo{color:var(--ink);text-shadow:none}
[data-theme="light"] .campaign-page .site-nav:not(.scrolled) .links a.nav-biz{color:var(--gold-soft)}
[data-theme="light"] .campaign-page .site-nav:not(.scrolled) .links a:hover{color:var(--gold)}
[data-theme="light"] .campaign-page .site-nav:not(.scrolled) .theme-toggle{color:var(--ink);border-color:var(--line-2)}

.cp-section{padding:clamp(64px,8vw,116px) 0}
.cp-section h2{font-family:var(--serif,Fraunces,Georgia,serif);font-size:clamp(28px,3.4vw,46px);line-height:1.1;margin:0 0 34px;max-width:19ch}
/* SPEC-019: the landings' own sections open with one framing sentence under the title, and each card can
   carry a short bold title before its explanation */
.cp-section .cp-lead{max-width:66ch;margin:-12px 0 38px;font-size:17.5px;line-height:1.62;color:var(--muted,#6c6a66)}
.cp-proof .cp-lead{color:var(--cp-band-soft)}
.cp-pain p strong{display:block;margin-bottom:6px;font-weight:600;color:var(--ink,#15171a)}
.cp-proof li strong{display:block;margin-bottom:6px;font-weight:600;color:var(--cp-band-strong)}
/* SPEC-019: on wide screens, card counts that would leave one card alone on the last row are laid out
   evenly (four problems in 2×2, four steps in one row, six proofs in 3×2) */
@media(min-width:1000px){
  .cp-pain:has(> p:nth-child(4):last-child){grid-template-columns:repeat(2,1fr);column-gap:clamp(40px,5vw,72px)}
  .cp-steps:has(> article:nth-child(4):last-child){grid-template-columns:repeat(4,1fr)}
  .cp-proof ul:has(> li:nth-child(6):last-child){grid-template-columns:repeat(3,1fr)}
}
.cp-pain{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:clamp(22px,3vw,44px)}
.cp-pain p{margin:0;font-size:16.5px;line-height:1.62;color:var(--muted,#6c6a66);border-top:1px solid var(--line-2,rgba(0,0,0,.14));padding-top:18px}

.cp-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:clamp(22px,3vw,40px)}
.cp-steps article{border-top:1px solid var(--line-2,rgba(0,0,0,.14));padding-top:18px}
.cp-steps span{display:block;font-size:12px;letter-spacing:.18em;color:var(--cp-accent);margin-bottom:10px}
.cp-steps h3{font-size:18px;margin:0 0 8px;line-height:1.25}
.cp-steps p{margin:0;font-size:15.5px;line-height:1.6;color:var(--muted,#6c6a66)}

.cp-proof{background:var(--cp-band);color:var(--cp-band-ink);box-shadow:var(--cp-band-edge)}
.cp-proof h2{color:var(--cp-accent)}
.cp-proof ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:clamp(20px,3vw,40px)}
.cp-proof li{font-size:16px;line-height:1.6;color:var(--cp-band-soft);border-top:1px solid var(--cp-band-line);padding-top:18px}

.cp-faq details{border-top:1px solid var(--line-2,rgba(0,0,0,.14));padding:18px 0}
.cp-faq summary{cursor:pointer;font-size:17px;line-height:1.4;list-style:none}
.cp-faq summary::-webkit-details-marker{display:none}
.cp-faq summary::after{content:"+";float:right;color:var(--cp-accent)}
.cp-faq details[open] summary::after{content:"–"}
.cp-faq .a{margin:12px 0 0;font-size:15.5px;line-height:1.62;color:var(--muted,#6c6a66);max-width:70ch}

.cp-close{background:var(--cp-band);color:var(--cp-band-ink);text-align:center;box-shadow:var(--cp-band-edge)}
.cp-close h2{color:var(--cp-band-strong);margin:0 auto 16px;max-width:22ch}
.cp-close p{margin:0 auto 28px;max-width:60ch;color:var(--cp-band-soft);font-size:16.5px;line-height:1.6}

.cp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:clamp(18px,2.4vw,28px)}
@media(min-width:1040px){.cp-cards{grid-template-columns:repeat(3,1fr)}}
.cp-cards a{display:block;border:1px solid var(--line-2,rgba(0,0,0,.14));border-radius:14px;padding:26px 24px;text-decoration:none;color:inherit;
  transition:border-color .2s,transform .2s}
.cp-cards a:hover{border-color:var(--cp-accent);transform:translateY(-2px)}
.cp-cards strong{display:block;font-family:var(--serif,Fraunces,Georgia,serif);font-size:21px;line-height:1.2;margin-bottom:10px}
.cp-cards span{display:block;font-size:15px;line-height:1.55;color:var(--muted,#6c6a66)}
.cp-cards em{display:block;margin-top:14px;font-style:normal;font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--cp-accent)}

@media(prefers-reduced-motion:reduce){.cp-hero-bg figure{animation-duration:27s;animation-timing-function:steps(1,end)}}
@media(max-width:700px){.cp-hero{min-height:76vh}.cp-hero-copy p{font-size:16px}
  /* On a phone the copy fills the frame, so the diagonal has nowhere to fade
     to: it would flatten the picture out. A vertical wash instead, opening a
     window between the bar and the copy where the photograph still reads. */
  [data-theme="light"]{
    --cp-hero-veil:linear-gradient(180deg,rgba(247,244,237,.88) 0,rgba(247,244,237,.82) 70px,rgba(247,244,237,.4) 22%,rgba(247,244,237,.9) 33%,rgba(247,244,237,.95) 72%,rgba(247,244,237,.96) 100%)}}

/* Owner-authored partner pages: prose, lists and the programme's pull quote. */
.cp-prose{display:grid;gap:16px;max-width:74ch}
.cp-prose p{margin:0;font-size:17px;line-height:1.65;color:var(--muted,#6c6a66)}
.cp-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px 32px;max-width:1000px}
.cp-list li{position:relative;padding-left:18px;font-size:16px;line-height:1.55;color:var(--muted,#6c6a66)}
.cp-list li::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--cp-accent)}
.cp-axis{background:var(--cp-band);color:var(--cp-band-ink);text-align:center;box-shadow:var(--cp-band-edge)}
.cp-axis blockquote{margin:0 auto;max-width:56ch}
.cp-axis strong{display:block;font-family:var(--serif,Fraunces,Georgia,serif);font-weight:500;font-size:clamp(26px,3.2vw,42px);line-height:1.18;color:var(--cp-band-strong)}
.cp-axis span{display:block;margin-top:16px;font-size:16px;line-height:1.6;color:var(--cp-band-quiet)}

/* ─────────────────────────────────────────────────────────────────────────
   Partner application form.
   It lives inside .cp-close, so its colours are written against that band's
   tokens (--cp-band-*, --cp-field-*) instead of the page palette. Those tokens
   flip with the theme, so the form is dark on dark and ink on paper.
   ───────────────────────────────────────────────────────────────────────── */
.cp-close .cp-form-intro{margin:0 auto 34px;max-width:64ch;font-size:16px;line-height:1.6;color:var(--cp-band-lead)}

.cp-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px 24px;max-width:900px;margin-top:8px}
.cp-form label{display:grid;gap:7px;font-size:13px;letter-spacing:.04em;color:var(--muted,#6c6a66)}
.cp-form input,.cp-form textarea,.cp-form select{font:inherit;font-size:15.5px;color:inherit;background:transparent;border:1px solid var(--line-2,rgba(0,0,0,.18));border-radius:10px;padding:12px 14px;transition:border-color .18s}
.cp-form input:focus,.cp-form textarea:focus,.cp-form select:focus{outline:none;border-color:var(--cp-accent)}
.cp-form textarea{min-height:96px;resize:vertical}
.cp-form .cp-form-wide{grid-column:1/-1}
.cp-form .cp-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.cp-form-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.cp-form-status{font-size:14px;color:var(--muted,#6c6a66)}
.cp-form-status.is-ok{color:var(--cp-accent)}
.cp-form-status.is-error{color:var(--cp-error)}
.cp-form-note{grid-column:1/-1;font-size:13px;line-height:1.5;color:var(--muted,#6c6a66);opacity:.85;margin:0}

/* Turnstile renders in 'interaction-only' mode: nothing to show, nothing to
   reserve. The container only takes room once the widget draws a challenge. */
.cp-form-captcha{grid-column:1/-1;min-height:0;line-height:0;font-size:0}
.cp-form-captcha:empty{display:none}
.cp-form-captcha iframe{display:block;max-width:100%}

/* The application: one column of blocks, left aligned inside a centred section. */
.cp-form-partner{grid-template-columns:1fr;gap:30px;max-width:860px;margin:0 auto;text-align:left}
.cp-close .cp-form-partner input,.cp-close .cp-form-partner textarea,.cp-close .cp-form-partner select{
  border-color:var(--cp-field-line);color:var(--cp-band-ink);background:var(--cp-field-bg)}
.cp-close .cp-form-partner input::placeholder,.cp-close .cp-form-partner textarea::placeholder{color:var(--cp-field-ph)}
/* The option list is painted by the OS, not by the page: it stays on paper in
   both themes so the native popup is never white-on-white. */
.cp-close .cp-form-partner select option{color:#15171a;background:#fffdf8}
.cp-close .cp-form-partner label{color:var(--cp-band-dim)}
.cp-close .cp-form-partner label em{font-style:normal;opacity:.6}
.cp-close .cp-form-status{color:var(--cp-band-dim)}
.cp-close .cp-form-note{color:var(--cp-band-faint)}
.cp-close .cp-form-note a{color:var(--cp-accent)}

.cp-block{grid-column:1/-1;border:0;border-top:1px solid var(--cp-band-line);margin:0;padding:26px 0 0;display:grid;gap:18px}
.cp-block>legend{padding:0 12px 0 0;font-family:var(--serif,Fraunces,Georgia,serif);font-size:21px;line-height:1.2;color:var(--cp-band-strong)}
.cp-block-help{margin:0;font-size:14.5px;line-height:1.5;color:var(--cp-band-dim)}
.cp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px 24px}

/* Platform picker: a list of logos until one is chosen; only then does the
   chosen platform open its two inputs, full width. */
.cp-plats{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.cp-plat{border:1px solid var(--cp-plat-line);border-radius:12px;transition:border-color .18s,background .18s}
.cp-plat[hidden]{display:none}
.cp-plat:hover{border-color:var(--cp-plat-line-hover)}
.cp-plat.is-on{grid-column:1/-1;border-color:var(--cp-accent);background:var(--cp-plat-on)}
.cp-close .cp-form-partner .cp-plat-head{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;font-size:15px;letter-spacing:0;color:var(--cp-plat-ink)}
.cp-close .cp-form-partner .cp-plat-head input{appearance:auto;-webkit-appearance:auto;width:16px;height:16px;flex:0 0 auto;padding:0;border:0;border-radius:0;accent-color:var(--cp-accent)}
.cp-plat-logo{display:inline-flex;width:20px;height:20px;flex:0 0 auto;color:var(--cp-plat-logo-ink)}
.cp-plat-logo svg{width:100%;height:100%;display:block}
.cp-plat.is-on .cp-plat-logo{color:var(--cp-accent)}
.cp-plat-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cp-plat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px 18px;padding:0 14px 16px}
.cp-plat-row[hidden]{display:none}

.cp-close .cp-form-partner .cp-more{justify-self:start;background:transparent;border:1px solid var(--cp-btn-line);border-radius:999px;color:var(--cp-btn-ink);
  font:inherit;font-size:13px;letter-spacing:.08em;text-transform:uppercase;padding:9px 18px;cursor:pointer;transition:border-color .18s,color .18s}
.cp-close .cp-form-partner .cp-more:hover{border-color:var(--cp-accent);color:var(--cp-accent)}
.cp-more[hidden]{display:none}

.cp-close .cp-form-partner .cp-none{display:flex;align-items:center;gap:10px;font-size:15px;letter-spacing:0;color:var(--cp-btn-ink);cursor:pointer}
.cp-close .cp-form-partner .cp-none input{appearance:auto;-webkit-appearance:auto;width:16px;height:16px;flex:0 0 auto;padding:0;border:0;border-radius:0;accent-color:var(--cp-accent)}

/* Qualifying questions: one select each, no scores shown anywhere. Two
   columns from 760px so the five fit in three rows instead of five tall radio
   groups; each question keeps its full wording above a full-width select. */
.cp-qs{display:grid;grid-template-columns:1fr;gap:18px 24px}
@media(min-width:760px){.cp-qs{grid-template-columns:1fr 1fr}}
.cp-q{display:grid;min-width:0}
.cp-close .cp-form-partner .cp-q>label{grid-template-rows:1fr auto;gap:9px;height:100%;
  font-size:15px;letter-spacing:0;line-height:1.45;color:var(--cp-band-copy)}
.cp-q select{width:100%}

@media(max-width:640px){
  .cp-plats{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .cp-block>legend{font-size:19px}
}

/* Two fixes found in the browser: [hidden] loses to the grid display, and a
   long option list stretches the country select past its column. */
.cp-plats[hidden]{display:none}
.cp-form label,.cp-form .cp-grid > *{min-width:0}
.cp-form select{width:100%;max-width:100%;box-sizing:border-box}

/* The hero is a flex container, so its .wrap shrank to the width of the copy
   and drifted right of the navigation grid. Fill the row instead. */
.cp-hero .wrap{width:100%}

/* Live factory block: prose beside a wide screenshot-style photograph. */
.cp-live-grid{display:grid;grid-template-columns:1fr;gap:clamp(26px,4vw,48px);align-items:center}
@media(min-width:1000px){.cp-live-grid{grid-template-columns:.85fr 1.15fr}}
.cp-live-shot{margin:0;border-radius:16px;overflow:hidden;border:1px solid var(--line-2,rgba(0,0,0,.14));box-shadow:var(--cp-shot-shadow)}
.cp-live-shot img{display:block;width:100%;height:auto}
