/* Durango one-pager landing, EL ESTUDIO. Built from the validated prototype
   prompts/deltas/prototypes/onepager-estudio.template.html, productionized:
   REDACCION (Schibsted Grotesk, self-hosted below), the warm mocha ramp, the
   CONTORNO Unete button, and the full design token system. The dev knobs and
   the type/color/button alternates do NOT ship. House rule: no em dashes, no
   en dashes, anywhere. All reader-facing copy is placeholder (M0). */

/* ============ BRAND FONT, self-hosted (latin subset) ============ */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(/landing/assets/fonts/schibsted-grotesk-400.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/landing/assets/fonts/schibsted-grotesk-500.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url(/landing/assets/fonts/schibsted-grotesk-600.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(/landing/assets/fonts/schibsted-grotesk-700.woff2) format("woff2"); }

:root {
  --ground: #fbfaf7;
  --panel: #f6f4ef;
  --ink: #1b1916;
  --ink-2: #6f6a62;
  --muted: #9a938a;
  --line: #d8d3ca;
  --line-soft: #eceae5;
  /* brand type tokens. --grot is the brand sans (REDACCION, Schibsted).
     --serif is for the two locked exceptions only: the card plate country
     name and the seal D glyph. --mono is data only. */
  --grot: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", Charter, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --w-display: 400;
  --w-accent: 600;
  --w-body: 400;
  --w-label: 500;
  --w-btn: 600;
  --tr-display: -0.006em;

  /* mocha ramp, PANTONE 19-1235 Brunette #664238 at 700 (warm HSL rebuild) */
  --mocha-50: #f8f2ed;
  --mocha-100: #f0e3db;
  --mocha-200: #dec6ba;
  --mocha-300: #c7a394;
  --mocha-400: #ac7a68;
  --mocha-500: #8b5a4b;
  --mocha-600: #734b3f;
  --mocha-700: #664238;
  --mocha-800: #56372e;
  --mocha-900: #462c25;
  --accent: var(--mocha-700);
  --accent-weak: var(--mocha-500);
  --on-accent: #f6f0e8;
  --accent-glass: color-mix(in srgb, var(--accent) 84%, transparent);
  --accent-glass-hover: color-mix(in srgb, var(--accent) 96%, transparent);
  --wash: color-mix(in srgb, var(--accent) 12%, transparent);

  --focus-ring: color-mix(in srgb, var(--accent) 32%, transparent);
  --state-ok: #4f6f52;
  --state-danger: #a4472f;

  --glass-white: rgba(255, 255, 255, 0.45);
  --glass-white-strong: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-hi: rgba(255, 255, 255, 0.45);
  --glass-blur: blur(14px) saturate(160%);
  --glass-blur-nav: blur(18px) saturate(150%);

  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-7: 32px; --sp-8: 40px;
  --sp-9: 48px; --sp-10: 64px; --sp-11: 80px; --sp-12: 120px;

  --r-xs: 8px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --r-ctl: var(--r-pill);
  --r-field: var(--r-md);
  --r-card: var(--r-lg);

  --hi-inset: inset 0 1px 0 var(--glass-hi);
  --e1: 0 1px 0 var(--line-soft);
  --e2: 0 8px 20px rgba(30, 24, 16, 0.08);
  --e3: 0 14px 34px rgba(30, 24, 16, 0.10);
  --e4: 0 22px 46px rgba(30, 24, 16, 0.14);
  --e5: 0 34px 60px rgba(30, 24, 16, 0.22);
  --glow-accent: 0 10px 26px color-mix(in srgb, var(--accent) 26%, transparent);
  --glow-accent-strong: 0 14px 34px color-mix(in srgb, var(--accent) 38%, transparent);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: ease-in-out;
  --dur-1: 0.3s;
  --dur-2: 0.4s;
  --dur-3: 0.55s;
  --dur-4: 1.1s;
  --dur-5: 1.4s;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--ground); overflow-x: clip; }
body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--grot);
  font-weight: var(--w-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden would make body a scroll container and break
     the atlas journey's position: sticky */
  overflow-x: clip;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 28px; }

.eyebrow {
  font-family: var(--grot);
  font-weight: var(--w-label);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.wash {
  position: fixed; z-index: -1; pointer-events: none;
  width: 64vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--wash), transparent 72%);
}
.wash--a { top: -18vw; left: -14vw; }
.wash--b { top: 110vh; right: -22vw; }
.wash--c { top: 260vh; left: -20vw; }

section { scroll-margin-top: 70px; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--ground) 55%, transparent);
  -webkit-backdrop-filter: var(--glass-blur-nav);
  backdrop-filter: var(--glass-blur-nav);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--e1);
}
.nav__row { display: flex; align-items: center; gap: 20px; height: 62px; }
.nav__brand {
  font-family: var(--grot);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.nav__links { display: flex; align-items: center; gap: 26px; overflow-x: auto; scrollbar-width: none; position: relative; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__link {
  font-family: var(--grot);
  font-weight: var(--w-label);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__ind {
  position: absolute; bottom: 0; height: 1px;
  background: var(--accent);
  transition: left var(--dur-2) var(--ease-out), width var(--dur-2) var(--ease-out), opacity 0.3s;
}
.nav__sep { width: 1px; height: 20px; background: var(--line); flex: none; margin-left: 8px; }
.nav__link--cta {
  padding: 12px 24px; cursor: pointer;
  font-size: 14px; letter-spacing: 0.002em; text-transform: none;
  position: relative;
}
@media (max-width: 720px) {
  .nav__brand { font-size: 12px; letter-spacing: 0.34em; }
  .nav__links { gap: 16px; }
  .nav__link { font-size: 9px; }
  .nav__sep { height: 16px; margin-left: 4px; }
  .nav__link--cta { padding: 10px 18px; font-size: 13px; }
}

/* ============ HERO ============ */
.hero { padding: 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: calc(100svh - 62px);
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; min-height: 0; } }
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 60px 60px max(28px, calc((100vw - 1240px) / 2 + 28px));
}
@media (max-width: 900px) { .hero__copy { padding: 60px 24px 44px; } }
.hero__status { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.hero__dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.5;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
.hero__status .eyebrow { color: var(--ink); }
.hero__rule { flex: 1; height: 1px; background: var(--line-soft); }

.hero h1 {
  font-family: var(--grot);
  font-weight: var(--w-display);
  font-size: clamp(36px, 4.4vw, 66px);
  line-height: 1.04;
  letter-spacing: var(--tr-display);
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; transform: translateY(112%); transition: transform 1.15s var(--ease-out); }
.hero h1 .ln:nth-child(2) > span { transition-delay: 0.12s; }
.hero h1.in .ln > span { transform: none; }
.hero__sub {
  font-weight: var(--w-body); font-size: 16px; color: var(--ink-2);
  max-width: 46ch; line-height: 1.7;
  margin: 0 0 var(--sp-8);
}

.mail {
  display: flex; align-items: center; gap: 6px;
  max-width: 460px;
  padding: 5px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-ctl);
  background: var(--glass-white);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--hi-inset), var(--e2);
  transition: box-shadow var(--dur-1), border-color var(--dur-1);
}
.mail:focus-within { border-color: color-mix(in srgb, var(--accent) 45%, white); box-shadow: var(--hi-inset), 0 0 0 4px var(--focus-ring); }
.mail input {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 12px;
  padding: 12px 16px;
  border: none; outline: none;
  background: transparent; color: var(--ink);
}
.mail input::placeholder { color: var(--muted); }
.mail button { padding: 13px 24px; }


/* ---- glassmorphic button system ---- */
.btnf {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-ctl);
  background-color: var(--accent-glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--on-accent);
  box-shadow: var(--hi-inset), var(--glow-accent);
  font-family: var(--grot); font-weight: var(--w-btn); font-size: 14.5px; letter-spacing: 0.002em;
  text-decoration: none;
  transition: background-color var(--dur-1), box-shadow var(--dur-1), border-color var(--dur-1);
}
.btnf:hover {
  background-color: var(--accent-glass-hover);
  border-color: var(--glass-white-strong);
  box-shadow: var(--hi-inset), var(--glow-accent-strong);
}
.btno {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-white-strong);
  border-radius: var(--r-ctl);
  background-color: var(--glass-white);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--ink);
  box-shadow: var(--hi-inset), var(--e2);
  font-family: var(--grot); font-weight: var(--w-btn); font-size: 14px; letter-spacing: 0.002em;
  text-decoration: none;
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-1);
}
.btno:hover {
  background-color: var(--accent-glass);
  color: var(--on-accent);
  border-color: var(--glass-border);
  box-shadow: var(--hi-inset), var(--glow-accent);
}
@media (hover: none) { .btnf:active, .btno:active { transform: scale(0.97); } }

/* one motion grammar: label floats left, arrow enters from the right */
.btnf, .btno { position: relative; }
.btnf .lbl, .btno .lbl {
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform var(--dur-2) var(--ease-out);
}
.btnf::after, .btno::after {
  content: "\2192";
  position: absolute; right: 14px; top: 50%;
  transform: translate(-6px, -50%);
  opacity: 0; font-weight: 600;
  transition: opacity 0.3s, transform var(--dur-2) var(--ease-out);
}
.btnf:hover::after, .btno:hover::after { opacity: 1; transform: translate(0, -50%); }
.btnf:hover .lbl, .btno:hover .lbl { transform: translateX(-8px); }

/* ============ UNETE, the special button (CONTORNO) ============ */
.btn-star { overflow: hidden; }
.btn-star::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.4) 50%, transparent 58%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.btn-star:hover::before { transform: translateX(130%); }
.btn-star::after { right: 12px; }
.btn-star:hover .lbl { transform: translateX(-5px); }
.un-contorno {
  background-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  animation: uncontorno 3.8s var(--ease-inout) infinite;
}
.un-contorno .lbl { margin-right: -0.16em; }
.un-contorno:hover {
  background-color: var(--mocha-700);
  border-color: var(--mocha-700);
  color: var(--on-accent);
}
@keyframes uncontorno {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
  50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
}

.hero__note { margin-top: 16px; font-family: var(--grot); font-size: 14px; color: var(--muted); }

.hero__photo { position: relative; overflow: hidden; min-height: 48vh; cursor: pointer; }
.hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.84) contrast(1.02);
  opacity: 0;
  transition: opacity var(--dur-5) ease;
}
.hero__photo img.is-on { opacity: 1; animation: heroken 8s ease-out forwards; }
@keyframes heroken { from { transform: scale(1.07); } to { transform: scale(1.0); } }
.hero__photo .cap {
  position: absolute; left: 26px; bottom: 22px; z-index: 3;
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.hero__photo .cap .idx { opacity: 0.75; }
.hero__photo .hint {
  position: absolute; right: 24px; bottom: 22px; z-index: 3;
  font-family: var(--grot); font-weight: var(--w-label); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  opacity: 0; transition: opacity 0.4s;
}
.hero__photo:hover .hint { opacity: 1; }

/* ============ SECTION SHELLS ============ */
section { padding: var(--sp-12) 0; }
.sec-head { margin-bottom: var(--sp-10); }
.sec-head .eyebrow { display: block; margin-bottom: var(--sp-4); }
.sec-head h2 {
  font-family: var(--grot);
  font-weight: var(--w-display);
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: var(--tr-display);
  margin: 0;
  text-wrap: balance;
}
.sec-head p { max-width: 56ch; color: var(--ink-2); font-size: 15.5px; margin: 20px 0 0; }
.sec-head--xl h2 { font-size: clamp(42px, 5.8vw, 80px); }

/* ============ ATLAS: el viaje ============ */
/* Vertical scroll pans a horizontal track inside a sticky viewport. The
   section's height is set by landing.js (one stretch per panel). */
#atlas { padding: 0; --cw: 225px; }
/* svh, not vh: on mobile the toolbar collapse changes vh mid-scroll and the
   pinned scene would resize under the finger */
.atlas-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.atlas-head { padding-top: 96px; width: 100%; }
.atlas-head .sec-head { margin-bottom: 18px; }
.atlas-nav .plabels { display: flex; gap: 8px; flex-wrap: wrap; }
.plabel {
  font-family: var(--grot); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 10px 16px; border-radius: var(--r-pill);
  transition: color var(--dur-1), background-color var(--dur-1);
}
.plabel:hover { color: var(--ink); background: var(--line-soft); }
.plabel.is-on { color: var(--on-accent); background: var(--accent); }
.pbar { margin-top: 14px; height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.pfill { display: block; height: 100%; width: 0%; background: var(--accent); }

.atlas-viewport { flex: 1; position: relative; overflow: hidden; min-height: 420px; }
/* bottom inset biases the centered content upward, halving the gap under
   the continent selector; the route line (inside the track) follows */
.atlas-track { position: absolute; top: 0; bottom: 9vh; left: 0; z-index: 2; display: flex; align-items: stretch; will-change: transform; }
.routeline { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 9px, transparent 9px 20px); }

/* the map cursor travels the route BEHIND the cards */
.atlas-marker { position: absolute; top: calc(50% - 4.5vh); z-index: 1; width: 26px; height: 26px; margin: -13px 0 0 -13px; color: var(--accent); transition: transform 0.2s ease-out; }
.atlas-marker svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(30, 24, 16, 0.35)); }

/* volume panels. Header and ghost name anchor to the panel's first viewport,
   so a long card row never drags them off center. */
.panelE { position: relative; flex: none; width: auto; min-width: max(50vw, 620px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 4.5vw; overflow: hidden; }
.panelE .bigname {
  position: absolute; bottom: 4%; left: min(50%, calc((100vw - 9vw) / 2)); transform: translateX(-50%); z-index: 0;
  font-family: var(--grot); font-weight: 700; font-size: clamp(80px, 9.5vw, 150px); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em;
  color: rgba(27, 25, 22, 0.045);
  white-space: nowrap; pointer-events: none;
}
.panelE .meta { position: relative; z-index: 2; display: flex; justify-content: center; align-items: baseline; gap: 14px; margin-bottom: 20px; width: min(100%, calc(100vw - 9vw)); }
.panelE .cname { font-family: var(--grot); font-weight: var(--w-accent); font-size: 16px; }
.panelE .count { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.panelE .cardsE { position: relative; z-index: 2; display: flex; gap: 24px; width: fit-content; align-self: center; perspective: 900px; }

/* liquid glass cards: hairline frame at rest, alive under the pointer */
.ecard {
  position: relative; width: var(--cw); aspect-ratio: 3 / 4.1; flex: none;
  border-radius: 16px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 44px rgba(30, 24, 16, 0.2);
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), box-shadow 0.5s, margin 0.45s var(--ease-out), opacity 0.45s, border-color 0.35s, background-color 0.35s;
  will-change: transform;
  transform-style: preserve-3d;
}
.ecard:hover { border-color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.5); }
.ecard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ecard .ph {
  position: absolute; inset: 3px; border-radius: 13px;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(27, 25, 22, 0.05);
}
.ecard__plate {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(251, 250, 247, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--hi-inset);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  text-align: left;
}
.ecard__vol { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em; color: var(--mocha-600); }
.ecard__country { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); margin-top: 2px; }
.ecard .open-hint {
  position: absolute; top: 12px; left: 12px; z-index: 4; padding: 6px 11px; border-radius: var(--r-pill);
  background: rgba(251, 250, 247, 0.75); border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); font-family: var(--grot); font-weight: var(--w-accent); font-size: 11.5px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.ecard:hover .open-hint { opacity: 1; transform: none; }
.ecard__save {
  position: absolute; top: 12px; right: 12px; z-index: 4; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6); cursor: pointer;
  background: rgba(251, 250, 247, 0.72); color: var(--ink-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.25s, transform 0.25s;
}
.ecard__save:hover { transform: scale(1.1); }
.ecard__save.is-saved { color: var(--accent); }
.ecard__save svg { width: 16px; height: 16px; }

/* deck fold, gradual: --open runs 0 (closed) to 1 (spread) with the scroll.
   Closed, the first three cards stay visible as a fanned stack. */
.cardsE.multi .ecard:nth-child(1) { z-index: 4; transform: rotate(calc(-2deg * (1 - var(--open, 1)))); }
.cardsE.multi .ecard:nth-child(2) { z-index: 3; margin-left: calc((var(--cw) + -18px) * (var(--open, 1) - 1)); transform: rotate(calc(1.8deg * (1 - var(--open, 1)))) translateY(calc(7px * (1 - var(--open, 1)))); }
.cardsE.multi .ecard:nth-child(3) { z-index: 2; margin-left: calc((var(--cw) + -18px) * (var(--open, 1) - 1)); transform: rotate(calc(4deg * (1 - var(--open, 1)))) translateY(calc(15px * (1 - var(--open, 1)))); }
.cardsE.multi .ecard:nth-child(n+4) { z-index: 1; margin-left: calc((var(--cw) + -18px) * (var(--open, 1) - 1)); opacity: var(--open, 1); }
.cardsE.multi .ecard .ecard__plate, .cardsE.multi .ecard .ecard__save, .cardsE.multi .ecard .open-hint { transition: opacity 0.3s; }
.cardsE.multi .ecard:not(:first-child) .ecard__plate,
.cardsE.multi .ecard:not(:first-child) .ecard__save { opacity: var(--open, 1); }

/* waypoints: continents still without a route */
.waypoint { position: relative; flex: none; width: 22vw; min-width: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.waypoint .ring { width: 40px; height: 40px; border: 1.5px dashed var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-family: var(--grot); font-size: 16px; background: var(--ground); position: relative; z-index: 2; }
.waypoint .wname { font-family: var(--grot); font-weight: 700; font-size: 14px; }
.waypoint .wnote { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* the blank card that closes the atlas */
.finalpanel { position: relative; flex: none; width: 44vw; min-width: 520px; display: flex; align-items: center; justify-content: center; }
.blankcard {
  position: relative; width: var(--cw); aspect-ratio: 3 / 4.1;
  border-radius: 16px; border: 1.5px dashed var(--line);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--ink-2); cursor: pointer; text-align: center; padding: 20px;
  font-family: var(--grot);
  transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.5s;
}
.blankcard:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 24px 50px rgba(30, 24, 16, 0.16); }
.blankcard .ring { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--accent); }
.blankcard .bt { font-weight: 700; font-size: 16px; color: var(--ink); }
.blankcard .bs { font-size: 12.5px; color: var(--muted); }

/* nav arrows: vanish at the ends */
.atlas-arrow {
  position: absolute; top: calc(50% - 4.5vh); z-index: 5; width: 46px; height: 46px; margin-top: -23px;
  border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: rgba(251, 250, 247, 0.8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 17px;
  transition: background-color 0.25s, color 0.25s, transform 0.25s, opacity 0.35s;
}
.atlas-arrow:hover { background: var(--accent); color: var(--on-accent); transform: scale(1.06); }
.atlas-arrow.prev { left: 22px; }
.atlas-arrow.next { right: 22px; }
.atlas-arrow.is-gone { opacity: 0; pointer-events: none; }

@media (max-width: 700px) {
  #atlas { --cw: 190px; }
  .panelE { min-width: 92vw; padding: 0 6vw; }
  .panelE .meta { width: min(100%, 88vw); }
  .panelE .bigname { left: min(50%, 44vw); font-size: clamp(64px, 18vw, 110px); }
  .waypoint { min-width: 56vw; }
  .finalpanel { min-width: 80vw; }
  .atlas-arrow { display: none; }
  .plabel { font-size: 13px; padding: 8px 12px; }
}

/* ============ INTERLUDIO ============ */
.interlude { position: relative; height: 62vh; min-height: 380px; overflow: hidden; padding: 0; margin: 0; }
.interlude img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.84) contrast(1.02);
}
.interlude figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 90px 28px 26px;
  background: linear-gradient(to top, rgba(15, 12, 8, 0.5), transparent);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.interlude .verse { font-family: var(--grot); font-weight: var(--w-body); font-style: normal; font-size: clamp(17px, 2.4vw, 24px); color: #fff; margin: 0; }
.interlude .who { font-family: var(--mono); font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }

/* ============ COMO FUNCIONA ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 22px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-4) var(--ease-out);
}
.steps.in .step:nth-child(1)::before { transition-delay: 0s; }
.steps.in .step:nth-child(2)::before { transition-delay: 0.12s; }
.steps.in .step:nth-child(3)::before { transition-delay: 0.24s; }
.steps.in .step:nth-child(4)::before { transition-delay: 0.36s; }
.steps.in .step::before { transform: none; }
.step__num {
  font-family: var(--grot); font-weight: var(--w-display);
  font-size: 44px; line-height: 1; color: var(--muted);
  display: block; margin-bottom: 14px;
}
.step__name { font-family: var(--grot); font-weight: 400; font-size: 19px; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.7; }

/* ============ NOSOTROS ============ */
#nosotros { background: var(--panel); border-block: 1px solid var(--line-soft); }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: start; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 34px; } }
.about__quote {
  font-family: var(--grot); font-weight: var(--w-display);
  font-size: clamp(30px, 3.8vw, 50px);
  letter-spacing: var(--tr-display);
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}
.about__body p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 18px; max-width: 52ch; }
.about__promise { font-family: var(--grot); font-style: normal; color: var(--ink); font-size: 17px; }
.about__sig { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.about__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-family: var(--grot); font-weight: var(--w-accent); font-size: 14px; color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 3px;
  transition: border-color var(--dur-1), gap var(--dur-1);
}
.about__more:hover { border-color: var(--accent); gap: 12px; }
.about__seal {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 19px; color: var(--ink);
}

/* ============ EL LIBRO ============ */
.book { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } }

.book__scene {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(26px, 4.5vw, 64px);
  padding: clamp(30px, 4.5vw, 60px) clamp(22px, 3.5vw, 48px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  background: radial-gradient(120% 140% at 20% 0%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 55%), var(--panel);
  overflow: hidden;
  perspective: 1200px;
}
@media (max-width: 640px) { .book__scene { flex-direction: column; } }

/* the closed tome, standing */
.tome { position: relative; width: clamp(150px, 15vw, 200px); aspect-ratio: 3 / 4.05; flex: none; transform-style: preserve-3d; }
.tome__pages {
  position: absolute; top: 4px; bottom: 4px; right: -8px; width: 10px;
  background: repeating-linear-gradient(to bottom, #f6f1e6 0 2px, #e6ddcb 2px 3px);
  border-radius: 0 2px 2px 0;
  box-shadow: 2px 3px 8px rgba(27, 25, 22, 0.18);
}
.tome__cover {
  position: absolute; inset: 0;
  border-radius: 3px 9px 9px 3px;
  background: linear-gradient(128deg, color-mix(in srgb, var(--mocha-700) 84%, white) 0%, var(--mocha-700) 42%, color-mix(in srgb, var(--mocha-700) 74%, black) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    16px 26px 44px rgba(27, 25, 22, 0.26);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  overflow: hidden;
}
.tome__cover::before {
  content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 1px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.16);
}
.tome__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  transform: translateX(-130%);
  animation: tomesheen 6s var(--ease-out) 2.2s infinite;
}
@keyframes tomesheen {
  0% { transform: translateX(-130%); }
  32%, 100% { transform: translateX(130%); }
}
.tome__d {
  font-family: var(--serif); font-size: 30px; color: #f3e9dc;
  width: 52px; height: 52px; border: 1px solid rgba(243, 233, 220, 0.55); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tome__country { font-family: var(--serif); font-size: 21px; letter-spacing: 0.05em; color: #f3e9dc; }
.tome__vol { font-family: var(--mono); font-size: 8px; letter-spacing: 0.22em; color: rgba(243, 233, 220, 0.72); text-align: center; line-height: 1.7; padding: 0 18px; }

/* the open spread with the punched huecos */
.spread {
  flex: 1; max-width: 400px; min-width: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 6px;
  background: linear-gradient(#fdfbf5, #f5efe3);
  box-shadow: 0 20px 44px rgba(27, 25, 22, 0.15), inset 0 0 0 1px rgba(27, 25, 22, 0.05);
}
.spread__page { padding: 20px 16px 15px; display: grid; gap: 11px; align-content: start; min-width: 0; }
.spread__page:first-child { border-right: 1px solid rgba(27, 25, 22, 0.1); box-shadow: inset -16px 0 20px -16px rgba(27, 25, 22, 0.2); }
.spread__page:last-child { box-shadow: inset 16px 0 20px -16px rgba(27, 25, 22, 0.2); }
.hueco {
  position: relative; display: block; aspect-ratio: 1 / 1.04;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 34%, transparent);
  border-radius: 2px;
  background: rgba(27, 25, 22, 0.028);
  box-shadow: inset 0 2px 9px rgba(27, 25, 22, 0.07);
}
.hueco__tape {
  position: absolute; top: -7px; left: 50%; width: 44px; height: 14px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(27, 25, 22, 0.08);
}
.spread__page:last-child .hueco__tape { transform: translateX(-50%) rotate(2.5deg); }
.spread__cap { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.18em; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* entry choreography, keyed on the scene's reveal */
.js .book__scene .tome { opacity: 0; transform: rotateY(-46deg) translateY(22px); transition: transform 1.3s var(--ease-out) 0.15s, opacity 0.9s ease 0.15s; }
.js .book__scene.in .tome { opacity: 1; transform: rotateY(-15deg) rotateX(1.5deg); animation: tomefloat 7s ease-in-out 2s infinite; }
@keyframes tomefloat {
  0%, 100% { transform: rotateY(-15deg) rotateX(1.5deg) translateY(0); }
  50% { transform: rotateY(-13deg) rotateX(1.5deg) translateY(-6px); }
}
.js .book__scene .spread { opacity: 0; transform: translateY(26px); transition: transform 1.1s var(--ease-out) 0.4s, opacity 0.9s ease 0.4s; }
.js .book__scene.in .spread { opacity: 1; transform: none; }
.js .book__scene .hueco { opacity: 0; transform: scale(0.94); transition: transform 0.9s var(--ease-out), opacity 0.7s ease; }
.js .book__scene .spread__page:first-child .hueco { transition-delay: 0.75s; }
.js .book__scene .spread__page:last-child .hueco { transition-delay: 0.95s; }
.js .book__scene.in .hueco { opacity: 1; transform: none; }

/* placeholder frames for photos of the bound pilot */
.book__slots { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .book__slots { grid-template-rows: none; grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .book__slots { grid-template-columns: 1fr; } }
.book__slot {
  margin: 0; position: relative; overflow: hidden;
  min-height: 170px;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: var(--r-card);
  background: var(--glass-white);
  display: flex; align-items: center; justify-content: center;
}
.book__slot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: tomesheen 5s var(--ease-out) 1s infinite;
}
.book__slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book__slot-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--muted); }
.book__note { margin-top: 18px; font-family: var(--grot); font-size: 13px; color: var(--muted); }

/* ============ PLANES ============ */
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 1240px) { .plans { gap: 10px; } .plan { padding: 22px 16px 22px; } }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; gap: 12px; } }
/* on phones the five tiers become one swipeable row (snap, edge peek),
   not a five-screen vertical stack */
@media (max-width: 640px) {
  .plans {
    display: flex; align-items: stretch;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: -28px; padding: 4px 28px 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 80vw; max-width: 340px; scroll-snap-align: center; }
}
.plan {
  padding: 26px 22px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--glass-white);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--hi-inset), var(--e3);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-1);
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--hi-inset), var(--e4); }
.plan.is-selected {
  border-color: color-mix(in srgb, var(--accent) 55%, white);
  box-shadow: var(--hi-inset), 0 0 0 4px var(--focus-ring), var(--e4);
}
.plan.is-selected::after {
  content: "ELEGIDO";
  position: absolute; top: 18px; right: 18px;
  font-family: var(--grot); font-weight: var(--w-label); font-size: 9px; letter-spacing: 0.2em;
  color: var(--accent);
}
.plan__kind { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.plan__name { font-family: var(--grot); font-weight: var(--w-accent); font-size: 18px; letter-spacing: 0.002em; color: var(--ink); margin-top: -6px; }
.plan__price { font-family: var(--grot); font-weight: var(--w-display); font-size: 30px; line-height: 1.15; }
.plan__price small { display: block; margin-top: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; }
.plan__blurb { font-family: var(--grot); font-style: normal; font-size: 14px; color: var(--ink-2); margin: 0; }
.plan__feats { list-style: none; margin: 4px 0 8px; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; font-size: 13px; font-weight: var(--w-body); color: var(--ink-2); }
.plan__feats li { display: flex; align-items: flex-start; gap: 10px; }
.plan__feats svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--accent); }
.plan__pick, .plan__free { margin-top: auto; padding: 12px 14px; font-size: 13.5px; }
.plan.is-selected .plan__pick { background-color: var(--accent-glass); color: var(--on-accent); }
.plans__foot { margin-top: 18px; font-family: var(--grot); font-style: normal; font-size: 13px; color: var(--muted); max-width: 72ch; }

/* the featured plan: the membership is the main offer */
.plan--featured {
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, white);
  box-shadow: var(--hi-inset), var(--e4), var(--glow-accent);
}
.plan__badge {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--grot); font-weight: var(--w-label); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, white);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  padding: 5px 11px;
  border-radius: 999px;
}
.plan.is-selected .plan__badge { display: none; }

/* socio fundador: the patronage band, inverted to carry its weight */
.founders {
  margin-top: 26px;
  display: grid; grid-template-columns: 1.6fr auto; gap: 30px 60px; align-items: center;
  padding: 40px 44px;
  border: 1px solid color-mix(in srgb, var(--mocha-700) 55%, black);
  border-radius: var(--r-card);
  color: #f3e9dc;
  background:
    radial-gradient(130% 170% at 88% 0%, color-mix(in srgb, var(--mocha-500) 34%, transparent), transparent 58%),
    linear-gradient(132deg, var(--mocha-800), var(--mocha-900));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--e4);
}
.founders .eyebrow { color: rgba(243, 233, 220, 0.68); }
.founders__title { font-family: var(--grot); font-weight: 700; font-size: 30px; letter-spacing: 0.002em; margin: 12px 0 8px; color: #fbf6ec; }
.founders__blurb { font-family: var(--grot); font-size: 14.5px; color: rgba(243, 233, 220, 0.82); margin: 0 0 14px; }
.founders__deal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 28px; font-size: 13.5px; color: rgba(243, 233, 220, 0.82); }
@media (max-width: 640px) { .founders__deal { grid-template-columns: 1fr; } }
.founders__deal li { padding-left: 20px; position: relative; }
.founders__deal li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 1px; background: var(--mocha-300); }
.founders__side { display: grid; justify-items: center; gap: 12px; text-align: center; }
.founders__ticket { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243, 233, 220, 0.68); }
.founders__price { font-family: var(--grot); font-weight: var(--w-display); font-size: 26px; white-space: nowrap; color: #fbf6ec; margin-top: -6px; }
.founders__cta {
  padding: 13px 40px;
  background-color: rgba(251, 250, 247, 0.94);
  border-color: transparent;
  color: var(--mocha-800);
  box-shadow: var(--e2);
}
.founders__cta:hover { background-color: #ffffff; border-color: transparent; color: var(--mocha-900); box-shadow: var(--e3); }
.founders__note { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 233, 220, 0.55); }
@media (max-width: 860px) {
  .founders { grid-template-columns: 1fr; padding: 30px 26px; }
  .founders__side { justify-items: start; text-align: left; }
}

/* intake */
.intake {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.9s var(--ease-out), opacity 0.7s ease 0.1s;
}
.intake.is-open { max-height: 1600px; opacity: 1; }
.intake__box { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 44px; }
.intake__head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 40px; }
.intake__title { font-family: var(--grot); font-weight: var(--w-display); font-size: 30px; margin: 0; }
.intake__plan-chip {
  font-family: var(--grot); font-weight: var(--w-label); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, white);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  padding: 6px 13px;
  border-radius: 999px;
}
.intake__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
@media (max-width: 720px) { .intake__grid { grid-template-columns: 1fr; gap: 28px; } }
.field { display: flex; flex-direction: column; gap: 4px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--grot); font-style: normal; font-size: 14.5px; font-weight: 400; color: var(--ink); }
.field input, .field select {
  border: 1px solid var(--glass-white-strong);
  background: var(--glass-white);
  border-radius: var(--r-field);
  padding: 13px 16px;
  font-family: var(--grot); font-weight: var(--w-body); font-size: 15px; color: var(--ink);
  outline: none;
  box-shadow: var(--hi-inset);
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus {
  border-color: color-mix(in srgb, var(--accent) 45%, white);
  box-shadow: var(--hi-inset), 0 0 0 4px var(--focus-ring);
}
.intake__send { margin-top: 40px; padding: 16px 36px; }
.intake__hint { margin-top: 14px; font-family: var(--grot); font-style: normal; font-size: 13.5px; color: var(--muted); }

/* ============ CONTACTO ============ */
#contacto { padding-bottom: 70px; }
.contact { text-align: center; padding: 20px 0 8px; }
.contact h2 {
  font-family: var(--grot); font-weight: var(--w-display);
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: var(--tr-display);
  margin: 0 0 20px;
}
.contact p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 36px; font-size: 15.5px; }
.contact__wa { padding: 17px 40px; }
.foot {
  margin-top: 80px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--grot); font-weight: var(--w-label); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.foot__link { text-decoration: none; }
.foot__link:hover { color: var(--ink); }

/* ============ VISTA EXPANDIDA ============ */
.exp {
  position: fixed; inset: 0; z-index: 150;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease;
}
.exp.is-open { opacity: 1; pointer-events: auto; }
.exp__backdrop {
  position: absolute; inset: 0;
  background: rgba(22, 18, 12, 0.4);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  backdrop-filter: blur(16px) saturate(110%);
}
.exp__panel {
  position: absolute; inset: 3vh 3vw;
  background: var(--ground);
  border-radius: var(--r-card);
  box-shadow: 0 60px 120px rgba(20, 14, 6, 0.4);
  overflow: hidden;
  display: grid;
  grid-template-columns: 340px 1fr;
  transform: translateY(24px) scale(0.978);
  transition: transform var(--dur-3) var(--ease-out);
}
.exp.is-open .exp__panel { transform: translateY(0) scale(1); }
.exp__rail { padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.exp__minicard {
  width: 132px; aspect-ratio: 160 / 220; border-radius: 10px;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 32px rgba(30, 24, 16, 0.2);
  transform: rotate(-2deg);
  margin-bottom: 6px;
}
.exp__country { font-family: var(--grot); font-weight: var(--w-display); font-size: 38px; line-height: 1.02; margin: 0; }
#exp-vol { font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: 0.2em; }
.exp__pitch { font-family: var(--grot); font-style: normal; color: var(--ink-2); font-size: 15.5px; margin: 0; }
.exp__dossier { border-top: 1px solid var(--line-soft); padding-top: 16px; display: grid; gap: 10px; margin: 0; }
.exp__row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 13px; }
.exp__row dt { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.exp__row dd { margin: 0; color: var(--ink-2); font-weight: var(--w-body); }
.exp__ctas { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.exp__go { padding: 15px 18px; }
.exp__demo { padding: 13px 18px; font-size: 13.5px; color: var(--ink-2); }
.exp__stage { position: relative; overflow: hidden; background: #14100a; }
.exp__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.1s ease;
}
.exp__photo.is-on { opacity: 1; animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
.exp__scrim {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 80px 32px 26px;
  background: linear-gradient(to top, rgba(15, 12, 8, 0.6), transparent);
  color: #fdfcf9;
}
.exp__verse {
  font-family: var(--grot); font-style: normal; font-weight: var(--w-body);
  font-size: clamp(17px, 2.2vw, 23px);
  margin: 0 0 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}
.exp__verse.is-on { opacity: 1; transform: translateY(0); }
.exp__dots { display: flex; gap: 8px; }
.exp__dot { width: 24px; height: 2px; background: rgba(253, 252, 249, 0.35); border: none; padding: 0; transition: background 0.3s; }
.exp__dot.is-on { background: #fdfcf9; }
.exp__close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 12, 8, 0.35); color: #fdfcf9;
  font-size: 16px; line-height: 1;
  transition: transform 0.3s, background 0.3s;
}
.exp__close:hover { transform: rotate(90deg); background: rgba(15, 12, 8, 0.55); }
@media (max-width: 860px) {
  .exp__panel { inset: 0; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: 44vh 1fr; }
  .exp__stage { order: -1; }
  .exp__rail { padding: 24px; }
  .exp__minicard { display: none; }
  .exp__country { font-size: 30px; }
}

/* ============ TOAST + REVEALS ============ */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 210;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--ground);
  padding: 13px 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
  max-width: min(90vw, 470px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ REGISTRO (el cuestionario) ============ */
.quiz { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.quiz__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink) 26%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.38s ease;
}
.quiz.is-open .quiz__backdrop { opacity: 1; }
.quiz__panel {
  position: relative; width: min(760px, 100%); max-height: min(88vh, 860px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 40px 42px 36px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: color-mix(in srgb, #fbfaf7 92%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--hi-inset), var(--e5);
  opacity: 0; transform: translateY(26px) scale(0.985);
  transition: opacity 0.4s ease 0.05s, transform 0.55s var(--ease-out) 0.05s;
}
.quiz.is-open .quiz__panel { opacity: 1; transform: none; }
@media (max-width: 640px) { .quiz { padding: 10px; } .quiz__panel { padding: 28px 20px 24px; } }
.quiz__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  font-size: 14px; cursor: pointer;
  transition: background-color var(--dur-1), color var(--dur-1);
}
.quiz__close:hover { background: var(--glass-white); color: var(--ink); }
.quiz__head { margin-bottom: 28px; }
.quiz__head .eyebrow { overflow-wrap: anywhere; }
.quiz__title { font-family: var(--grot); font-weight: var(--w-display); font-size: 28px; margin: 10px 0 8px; }
.quiz__title em { font-style: normal; font-weight: var(--w-accent); }
.quiz__sub { font-family: var(--grot); font-size: 14.5px; color: var(--ink-2); margin: 0; }
.quiz__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
@media (max-width: 640px) { .quiz__grid { grid-template-columns: 1fr; } }
.quiz__grid .field input, .quiz__grid .field select { background: rgba(255, 255, 255, 0.6); }
#q-otro { margin-top: 10px; width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px;
  border: 1px solid var(--glass-white-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--grot); font-weight: var(--w-body); font-size: 13px; color: var(--ink-2);
  cursor: pointer;
  box-shadow: var(--hi-inset);
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.chips--months .chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; padding: 8px 12px; }
.chip:hover { border-color: color-mix(in srgb, var(--accent) 45%, white); }
.chip.is-on { background: var(--accent-glass); border-color: var(--glass-border); color: var(--on-accent); }

/* the pide-tu-ruta variant reuses the quiz shell, narrower */
.quiz--req .quiz__panel { width: min(560px, 100%); }
.req__fields { display: grid; gap: 16px; }

.quiz__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.qcard {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-xs, 8px);
  border: 1.5px solid var(--glass-white-strong);
  background-size: cover; background-position: center;
  cursor: pointer; overflow: hidden;
  filter: saturate(0.84);
  transition: border-color var(--dur-1), transform var(--dur-2) var(--ease-out), filter var(--dur-1);
}
.qcard:hover { transform: translateY(-3px); }
.qcard.is-on { border-color: var(--accent); filter: saturate(1); }
.qcard__name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 8px 7px;
  background: linear-gradient(transparent, rgba(27, 25, 22, 0.62));
  color: #fbfaf7; font-family: var(--grot); font-weight: var(--w-accent); font-size: 12px; text-align: center;
}
.qcard__check {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-size: 12px; line-height: 22px; text-align: center;
  opacity: 0; transform: scale(0.6);
  transition: opacity var(--dur-1), transform var(--dur-2) var(--ease-out);
}
.qcard.is-on .qcard__check { opacity: 1; transform: none; }

.quiz__consent { margin: 24px 0 0; font-family: var(--grot); font-size: 12.5px; color: var(--muted); }
.quiz__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.quiz__send { padding: 14px 32px; }
.quiz__skip {
  border: none; background: none; padding: 4px 0; cursor: pointer;
  font-family: var(--grot); font-weight: var(--w-body); font-size: 13px; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px;
}
.quiz__skip:hover { color: var(--ink); }

.rv { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }

.hero h1 em,
.sec-head h2 em,
.about__quote em,
.contact h2 em,
.intake__title em { font-family: var(--grot); font-style: normal; font-weight: var(--w-accent); }
.plan__price em { font-family: var(--grot); font-style: normal; font-weight: var(--w-display); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .hero h1 .ln > span { transform: none !important; }
  html { scroll-behavior: auto; }
}
