/* ==========================================================================
   Cuadre · landing principal
   Layout: one 12-column grid with equal outer margins; every section owns a
   whole field of brand colour (morado → blanco → lima → indigo …) and the only
   shape on the page is the logo's tile, a square with a 10% radius.
   ========================================================================== */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour: the identity manual's five, plus the olive of the isotipo and two tone steps */
  --morado: #1d1348;
  --morado-2: #291d5e;
  --azul: #596afe;
  --indigo: #4350bf;
  --lima: #c2de55;
  --oliva: #92a740;
  --grafito: #0d0d0d;
  --blanco: #f5f5f5;
  --blanco-2: #e8e7f0;

  /* Type: Source Serif 4 speaks, IBM Plex Sans explains */
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  --step-statement: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem);
  --step-head: clamp(2.25rem, 1.45rem + 3.3vw, 4.5rem);
  --step-display: clamp(2.75rem, 0.6rem + 6.6vw, 7.25rem);

  /* Space */
  --margin: clamp(20px, 4.4vw, 72px);
  --gutter: clamp(12px, 1.6vw, 28px);
  --section: clamp(96px, 11vw, 200px);
  --header-h: 76px;
  --radius: clamp(14px, 1.4vw, 22px);

  /* Motion (Emil Kowalski's curves + an expo-out for long reveals) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 900ms;

  color-scheme: light;
}

/* Fields: each section declares its ground and the inks that belong on it */
.f-morado {
  --bg: var(--morado); --ink: var(--blanco); --muted: #c9c4e4;
  --surface: var(--morado-2); --accent: var(--lima); --accent-ink: var(--morado);
  --btn: var(--lima); --btn-ink: var(--morado); --btn-hover: #d4ec72;
  --logo-tile: var(--blanco); --logo-letter: var(--morado); --logo-plate: transparent;
  --focus: var(--lima); --sel: var(--lima); --sel-ink: var(--morado);
}
.f-blanco {
  --bg: var(--blanco); --ink: var(--morado); --muted: #4b4470;
  --surface: var(--blanco-2); --accent: var(--azul); --accent-ink: #fff;
  --btn: var(--morado); --btn-ink: var(--blanco); --btn-hover: #31246e;
  --logo-tile: var(--morado); --logo-letter: var(--blanco); --logo-plate: transparent;
  --focus: var(--azul); --sel: var(--lima); --sel-ink: var(--morado);
}
.f-lima {
  --bg: var(--lima); --ink: var(--morado); --muted: #38325a;
  --surface: var(--blanco); --accent: var(--morado); --accent-ink: var(--lima);
  --btn: var(--morado); --btn-ink: var(--blanco); --btn-hover: #31246e;
  --logo-tile: var(--blanco); --logo-letter: var(--morado); --logo-plate: var(--morado);
  --focus: var(--morado); --sel: var(--morado); --sel-ink: var(--lima);
}
.f-indigo {
  --bg: var(--indigo); --ink: var(--blanco); --muted: #e1e4fc;
  --surface: #3a46ad; --accent: var(--lima); --accent-ink: var(--morado);
  --btn: var(--lima); --btn-ink: var(--morado); --btn-hover: #d4ec72;
  --logo-tile: var(--blanco); --logo-letter: var(--morado); --logo-plate: var(--morado);
  --focus: var(--lima); --sel: var(--lima); --sel-ink: var(--morado);
}
.f-morado, .f-blanco, .f-lima, .f-indigo {
  background-color: var(--bg);
  color: var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--morado);
  scroll-padding-top: calc(var(--header-h) + 8px);
  scrollbar-color: var(--azul) var(--morado);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  color: var(--morado);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--azul);
}
/* paints the phone's top safe-area band in the header's current colour */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--band, var(--morado));
  transition: background-color 300ms ease;
}
img, svg { display: block; max-width: 100%; }
/* components set their own display, so the hidden attribute needs to win over them */
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
i { font-style: normal; }
img { height: auto; }
p, h1, h2, h3, figure, blockquote, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--sel, var(--lima)); color: var(--sel-ink, var(--morado)); }
:focus-visible {
  outline: 3px solid var(--focus, var(--azul));
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: max(16px, env(safe-area-inset-left, 0px));
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--lima);
  color: var(--morado);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-ui) var(--ease-out);
}
.skip:focus-visible { transform: none; }

.wrap {
  width: 100%;
  max-width: 1760px;
  margin-inline: auto;
  padding-left: max(var(--margin), env(safe-area-inset-left, 0px));
  padding-right: max(var(--margin), env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 560;
  font-size: var(--step-display);
  line-height: 0.98;
  letter-spacing: -0.032em;
  font-optical-sizing: auto;
}
.h2 {
  font-family: var(--serif);
  font-weight: 540;
  font-size: var(--step-head);
  line-height: 1.02;
  letter-spacing: -0.024em;
  text-wrap: balance;
  hyphens: none;
}
.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-lead);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.lead {
  font-size: var(--step-lead);
  line-height: 1.4;
}
.statement {
  font-family: var(--serif);
  font-weight: 460;
  font-size: var(--step-statement);
  line-height: 1.2;
  letter-spacing: -0.012em;
  max-width: 28ch;
}
.f-morado .lead, .f-indigo .lead { color: var(--muted); }
.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.24em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
.pending {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  padding: 0.2em 0.65em;
  border-radius: 8px;
  background: color-mix(in srgb, var(--azul) 18%, transparent);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
}
.pending::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-radius: 2px;
  background: var(--azul);
  transform: translateY(-0.04em);
}
p.pending { display: flex; max-width: 52ch; }
.f-lima .pending { background: color-mix(in srgb, var(--morado) 12%, transparent); }
.f-lima .pending::before { background: var(--morado); }
.f-indigo .pending { background: color-mix(in srgb, #fff 16%, transparent); }
.f-indigo .pending::before { background: var(--lima); }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: var(--h);
  padding: 0 1.4em;
  border: 0;
  border-radius: 12px;
  background: var(--btn);
  color: var(--btn-ink);
  font: 600 1rem/1.15 var(--sans);
  letter-spacing: 0.002em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--t-press) var(--ease-out),
    background-color var(--t-hover) ease,
    color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--lg { --h: 60px; font-size: 1.0625rem; padding: 0 1.55em; }
.btn--sm { --h: 44px; padding: 0 1.1em; font-size: 0.9375rem; border-radius: 10px; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 55%, transparent);
}
.btn-arrow {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background-color: var(--btn-hover); }
  .btn--ghost:hover { background-color: color-mix(in srgb, var(--ink) 10%, transparent); }
  .btn:hover .btn-arrow { transform: translateX(3px); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  transition: background-color 300ms ease, color 300ms ease;
}
.header-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 40px);
  height: var(--header-h);
}
.brand {
  display: block;
  flex: none;
  width: 50px;
  height: 50px;
  padding: 4px;
  margin-left: -4px;
  border-radius: 10px;
  background: var(--logo-plate);
  transition: background-color 300ms ease, transform var(--t-press) var(--ease-out);
}
.brand:active { transform: scale(0.96); }
.logo { width: 100%; height: 100%; overflow: visible; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 38px); list-style: none; }
.nav a {
  position: relative;
  display: block;
  padding-block: 10px;
  font-size: 0.96875rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-ui) var(--ease-out);
}
.nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: scaleX(1); }
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.menu-btn-ico { display: grid; grid-template-columns: repeat(2, 7px); gap: 3px; }
.menu-btn-ico i { width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.menu-btn-ico i:nth-child(2) { background: var(--accent); }

@media (max-width: 920px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .header-cta + .menu-btn { margin-left: 0; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .header-cta { display: none; }
  .header-cta + .menu-btn { margin-left: auto; }
  .brand { width: 44px; height: 44px; }
}
[tabindex="-1"]:focus { outline: none; }

/* Mobile menu sheet */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  clip-path: inset(0 0 100% 0);
  transition: clip-path 460ms var(--ease-drawer);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu-logo { width: 44px; height: 44px; }
.menu-close {
  min-height: 44px;
  border: 0;
  background: none;
  font-weight: 600;
  cursor: pointer;
}
.menu-nav { display: grid; align-content: center; gap: 4px; }
.menu-nav a {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding-block: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .menu-nav a {
    transform: translateY(18px);
    opacity: 0;
    transition: transform 520ms var(--ease-expo), opacity 300ms ease;
    transition-delay: calc(120ms + var(--i) * 45ms);
  }
  .menu.is-open .menu-nav a { transform: none; opacity: 1; }
}
.menu-foot .btn { width: 100%; }

/* ---------- Sections ---------- */
main > section { padding-block: var(--section); position: relative; }

/* 1 · Hero ----------------------------------------------------------------- */
.hero {
  padding-block: clamp(36px, 5.5vw, 88px) clamp(96px, 10vw, 168px) !important;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 64px;
  align-items: center;
}
.hero-copy { grid-column: 1 / span 8; display: grid; gap: clamp(26px, 2.8vw, 40px); min-width: 0; }
.hero-copy .display { margin-left: -0.04em; }
.hero-copy .lead { max-width: 34ch; }
.line {
  display: block;
  overflow: clip;
  padding-block: 0.08em 0.1em;
  margin-block: -0.08em -0.1em;
}
.line > [data-line] { display: block; }
.hl {
  position: relative;
  z-index: 0;
  padding: 0 0.1em;
  margin: 0 -0.04em;
  background: none;
  color: inherit;
  transition: color 360ms ease 120ms;
}
.hl::before {
  content: "";
  position: absolute;
  inset: 0.14em -0.02em 0.04em;
  z-index: -1;
  border-radius: 0.07em;
  background: var(--lima);
  clip-path: inset(-2px calc(100% + 4px) -2px -2px);
  transition: clip-path 560ms var(--ease-in-out);
}
.hl.is-on { color: var(--morado); }
.hl.is-on::before { clip-path: inset(-2px -2px -2px -2px); }
.no-js .hl, html:not(.js) .hl { color: var(--morado); }
html:not(.js) .hl::before { clip-path: none; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
}
.facts li { display: inline-flex; align-items: center; gap: 10px; }
.sq { width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }

.hero-stage {
  grid-column: 9 / -1;
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 500px;
  display: grid;
  justify-items: end;
}
.tiles {
  position: relative;
  width: 100%;
  aspect-ratio: 520.81 / 519.34;
}
.tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 32.018%;
  aspect-ratio: 1;
  border-radius: 10.15%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 220ms ease;
}
.tile svg { width: 100%; height: 100%; pointer-events: none; }
.tile.is-drag {
  cursor: grabbing;
  z-index: 4;
  box-shadow: 0 22px 40px -12px rgba(6, 2, 26, 0.6);
}
.js .tile { opacity: 0; animation: tile-failsafe 0s linear 2.4s forwards; }
.js .tiles.is-live .tile { opacity: 1; animation: none; }
@keyframes tile-failsafe { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .tile { opacity: 1; animation: none; }
}

.hero-mascot {
  position: absolute;
  z-index: 3;
  left: -35%;
  bottom: 60px;
  width: 27%;
  pointer-events: none;
}
.stage-toggle {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.stage-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 420ms var(--ease-out);
}
.stage-toggle:active { transform: scale(0.97); }
.stage-toggle[aria-pressed="true"] svg { transform: rotate(-12deg) scale(0.92); }
@media (hover: hover) and (pointer: fine) {
  .stage-toggle:hover { color: var(--ink); }
}

/* Mascot (vector, eyes follow the pointer) */
.mascot { width: 100%; height: auto; overflow: visible; }
.mascot .m-body, .mascot .m-leg { fill: var(--m, var(--azul)); }
.mascot .m-white { fill: #fff; }
.mascot .m-pupil { fill: var(--morado); transition: transform 300ms var(--ease-out); transform-box: fill-box; transform-origin: center; }
.mascot .m-eyes { transform-box: fill-box; transform-origin: 50% 50%; }
.mascot .m-look { will-change: transform; }
.is-scared .mascot .m-pupil { transform: scale(0.68); }
.is-scared .mascot .m-eyes { transform: scale(1.06); transition: transform 300ms var(--ease-out); }
.mascot .m-eyes { transition: transform 300ms var(--ease-out); }

/* Load sequence: everything is in the HTML; motion only adds arrival */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] {
    transform: translateY(102%);
    animation: line-up 880ms var(--ease-expo) forwards;
    animation-delay: calc(90ms + var(--i) * 95ms);
  }
  .js .hero [data-load] {
    opacity: 0;
    transform: translateY(14px);
    animation: load-rise 640ms var(--ease-out) forwards;
    animation-delay: var(--d);
  }
  .js .hero-mascot {
    opacity: 0;
    transform: translateY(24px);
    animation: load-rise 700ms var(--ease-expo) 980ms forwards;
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }

@media (max-width: 920px) {
  .hero-grid { row-gap: 40px; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-stage { grid-column: 1 / -1; justify-self: center; justify-items: center; max-width: min(64vw, 420px); margin-left: 14vw; }
  .hero-mascot { left: -34%; width: 27%; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: 14px; }
  .hero-actions .link { padding-block: 6px; }
  .facts { flex-direction: column; gap: 10px; }
  /* phones: the logo comes first and smaller, so its assembly is seen on load */
  .hero-grid { row-gap: 22px; }
  .hero-stage { grid-row: 1; max-width: 50vw; margin-left: 16vw; }
  .hero-copy { grid-row: 2; }
  .hero-mascot { left: -40%; width: 31%; bottom: 52px; }
  .stage-toggle { margin-top: 6px; white-space: nowrap; }
}
@media (max-width: 560px) and (max-height: 700px) {
  .hero-stage { max-width: 40vw; margin-left: 13vw; }
}
@media (max-width: 360px) {
  .hero .display { font-size: 2.375rem; }
}

/* Scroll entrances: content is already visible, it only settles into place.
   The individual `translate` property keeps each element's own transform free for :active. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise]:not(.is-in) { translate: 0 34px; }
}

/* 2 · Pains ---------------------------------------------------------------- */
.pains-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(36px, 4vw, 56px);
}
.pains .h2 { grid-column: 1 / -1; }
.pains .pain-count { grid-column: 1 / span 7; margin-top: calc(-1 * clamp(36px, 4vw, 56px) + 14px); }
.pain-list {
  grid-column: 1 / span 7;
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.pain {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 260ms ease,
    color 260ms ease,
    transform var(--t-press) var(--ease-out);
}
.pain:active { transform: scale(0.985); }
.pain input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pain:has(input:focus-visible) { outline: 3px solid var(--azul); outline-offset: 3px; }
.tick {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blanco);
  box-shadow: inset 0 0 0 2px var(--morado);
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 300ms var(--ease-out);
}
.tick svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--morado);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 260ms var(--ease-out);
}
.pain-text {
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(1.25rem, 1rem + 0.85vw, 1.75rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.pain:has(input:checked) { background: var(--morado); color: var(--blanco); }
.pain:has(input:checked) .tick { background: var(--lima); box-shadow: inset 0 0 0 2px var(--lima); transform: rotate(-6deg); }
.pain:has(input:checked) .tick svg { stroke-dashoffset: 0; }
@media (hover: hover) and (pointer: fine) {
  .pain:not(:has(input:checked)):hover { background: #dedcea; }
}

.pain-mascot {
  grid-column: 9 / -1;
  grid-row: 2 / span 3;
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  aspect-ratio: 1;
}
.pain-mascot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.94) rotate(-3deg);
  filter: blur(6px);
  transition:
    opacity 300ms ease,
    transform 520ms var(--ease-out),
    filter 300ms ease;
}
.pain-mascot img.is-on { opacity: 1; transform: none; filter: none; }
.pain-close { grid-column: 1 / span 7; display: grid; gap: 14px; }
.pain-close .statement { max-width: 33ch; }
.pain-count {
  font-weight: 600;
  color: var(--indigo);
  min-height: 1.55em;
}

@media (max-width: 920px) {
  .pains-grid { row-gap: 28px; }
  .pains .h2, .pain-list { grid-column: 1 / -1; }
  .pain-close { display: contents; }
  .pains .pain-count { grid-column: 1 / span 8; grid-row: 2; align-self: center; margin-top: 0; }
  .pain-list { grid-row: 3; }
  .pain-close .statement { grid-column: 1 / -1; grid-row: 4; }
  .pain-mascot {
    grid-column: 9 / -1;
    grid-row: 2;
    position: relative;
    top: auto;
    width: 100%;
    max-width: 200px;
    margin-top: -12px;
  }
}

/* 3 · Suma (calculator) ---------------------------------------------------- */
.suma-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 48px;
  align-items: start;
}
.suma-photo {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 18px;
}
.suma-photo-frame {
  overflow: clip;
  border-radius: var(--radius);
  aspect-ratio: 768 / 1376;
  max-height: calc(100svh - var(--header-h) - 150px);
  background: #c1d457;
}
.suma-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.06); }
.suma-photo figcaption {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .suma-photo-frame img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes drift {
  from { transform: scale(1.08) translateY(-3%); }
  to { transform: scale(1.08) translateY(3%); }
}
.suma-main { grid-column: 6 / -1; display: grid; gap: 24px; min-width: 0; }

.calc { display: grid; gap: 14px; margin-top: 20px; }
.calc-in {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.6vw, 36px);
  border-radius: var(--radius);
  background: var(--blanco);
  min-width: 0;
}
.calc-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.calc-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--muted);
}
.calc-tag::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--oliva);
  transition: background-color 240ms ease;
}
.calc-tag.is-mine::before { background: var(--azul); }
.text-btn {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.24em;
  cursor: pointer;
}
.field { display: grid; gap: 8px; }
.field label, .debts-head span, .wa-field label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--muted);
}
.calc input, .wa-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--blanco-2);
  color: var(--morado);
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}
.calc input:hover, .wa-field input:hover { background: #dddbe8; }
.calc input:focus-visible, .wa-field input:focus-visible {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--azul);
}
.field--income input { max-width: 260px; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.debts-head, .debt {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) minmax(96px, 150px) minmax(88px, 136px) 40px;
  gap: 10px;
  align-items: center;
}
.debts-head span:first-child { grid-column: 2; }
.debts-head { margin-bottom: -8px; }
.debts { list-style: none; display: grid; gap: 10px; }
.debt { transition: opacity 220ms ease; }
.debt-chip { width: 14px; height: 14px; border-radius: 3px; background: var(--c); transition: background-color 240ms ease; }
.debt-num { text-align: right; }
.num-wrap { display: grid; gap: 4px; min-width: 0; }
.num-lbl {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.debt-x {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.debt-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.debt-x:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
  .debt-x:hover { background: var(--blanco-2); color: var(--morado); }
}
@supports (transition-behavior: allow-discrete) {
  .debt { @starting-style { opacity: 0; } }
}
.add-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px 0 10px;
  border: 0;
  border-radius: 12px;
  background: var(--blanco-2);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.add-btn:active { transform: scale(0.97); }
.add-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.add-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--morado); color: var(--lima); }
.add-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) {
  .add-btn:not([disabled]):hover { background: #dddbe8; }
}

.calc-out {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "waffle figures"
    "waffle share"
    "waffle cta";
  column-gap: clamp(24px, 3.4vw, 56px);
  row-gap: 18px;
  align-items: start;
  padding: clamp(22px, 2.8vw, 40px);
  border-radius: var(--radius);
}
.waffle {
  grid-area: waffle;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  width: clamp(190px, 19vw, 268px);
  align-self: center;
}
.waffle i {
  aspect-ratio: 1;
  border-radius: 22%;
  background-color: rgba(245, 245, 245, 0.12);
  transition: background-color 300ms ease;
  transition-delay: calc(var(--n) * 3ms);
}
.figures { grid-area: figures; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.fig dt { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.fig dd {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.fig--big dd { font-size: clamp(2.5rem, 1.6rem + 2.8vw, 4.25rem); line-height: 1; letter-spacing: -0.025em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.share { grid-area: share; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; color: var(--muted); }
.share strong {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.25em;
  border-radius: 6px;
  background: var(--lima);
  color: var(--morado);
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.calc-cta { grid-area: cta; justify-self: start; margin-top: 6px; }

@media (max-width: 1100px) {
  .suma-photo { grid-column: 1 / span 4; }
  .suma-main { grid-column: 5 / -1; }
  .calc-out { grid-template-columns: 1fr; grid-template-areas: "figures" "waffle" "share" "cta"; }
  .waffle { width: min(100%, 300px); justify-self: start; }
}
@media (max-width: 920px) {
  .suma-photo {
    grid-column: 1 / -1;
    position: relative;
    top: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--gutter);
  }
  .suma-photo-frame { aspect-ratio: 4 / 5; max-height: none; }
  .suma-main { grid-column: 1 / -1; }
  .suma-photo figcaption { padding-bottom: 8px; }
}
@media (max-width: 640px) {
  .debts-head { display: none; }
  .debt {
    grid-template-columns: 14px minmax(0, 1fr) minmax(0, 1fr) 40px;
    grid-template-areas: "chip name name x" ". saldo cuota .";
    row-gap: 8px;
    padding-bottom: 6px;
  }
  .debt-chip { grid-area: chip; }
  .debt-name { grid-area: name; }
  .num-wrap--s { grid-area: saldo; }
  .num-wrap--c { grid-area: cuota; }
  .debt-x { grid-area: x; }
  .num-lbl {
    position: static;
    width: auto; height: auto;
    overflow: visible; clip: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
  }
  .debt-num::placeholder { color: var(--muted); }
  .calc-cta { width: 100%; }
}

/* 4 · Método ------------------------------------------------------------------ */
.metodo-intro { display: grid; gap: 24px; }
.metodo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: clamp(24px, 4vw, 64px);
}
.square-stage {
  grid-column: 1 / span 6;
  justify-self: center;
  position: sticky;
  top: calc(50svh - min(21vw, 250px) + var(--header-h) / 2);
  align-self: start;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin-block: 4vh;
}
.square { width: 100%; height: 100%; overflow: visible; }
.sq-track path { fill: none; stroke: rgba(245, 245, 245, 0.1); stroke-width: 22; stroke-linejoin: round; }
.sq-side {
  stroke: var(--sc);
  stroke-width: 22;
  stroke-linecap: round;
  stroke-dasharray: 362;
  stroke-dashoffset: 362;
  transition: stroke-dashoffset 820ms var(--ease-in-out);
}
.sq-side.is-on { stroke-dashoffset: 0; }
.sq-iso rect {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.8) rotate(-8deg);
  transition: opacity 360ms ease, transform 640ms var(--ease-out);
  transition-delay: calc(var(--k) * 55ms);
}
.square.is-done .sq-iso rect { opacity: 1; transform: none; }
.sq-label {
  position: absolute;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 300ms ease;
}
.sq-label.is-on { color: var(--blanco); }
.sq-label--t, .sq-label--b, .sq-label--r, .sq-label--l { line-height: 1.2; }
.sq-label--t { left: 50%; top: calc(4% - 1em); transform: translate(-50%, -50%); }
.sq-label--b { left: 50%; top: calc(96% + 1em); transform: translate(-50%, -50%); }
.sq-label--r { top: 50%; left: calc(96% + 1em); transform: translate(-50%, -50%) rotate(90deg); }
.sq-label--l { top: 50%; left: calc(4% - 1em); transform: translate(-50%, -50%) rotate(-90deg); }
html:not(.js) .sq-side { stroke-dashoffset: 0; }
html:not(.js) .sq-iso rect { opacity: 1; transform: none; }

.sides { grid-column: 8 / -1; list-style: none; }
.side {
  min-height: 64svh;
  display: grid;
  align-content: center;
  gap: 14px;
  padding-block: 4vh;
  opacity: 0.5;
  transition: opacity 420ms ease;
}
.side.is-active { opacity: 1; }
.side .h3 { font-family: var(--serif); font-weight: 520; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; }
.side p { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; color: var(--muted); }
.side-ico { width: 40px; height: 40px; fill: none; stroke-linecap: round; }
.side-ico rect { stroke: rgba(245, 245, 245, 0.22); stroke-width: 3; }
.side-ico path { stroke: var(--sc); stroke-width: 6; }

@media (max-width: 920px) {
  .metodo-grid { display: grid; grid-template-columns: 1fr; }
  .sides { grid-column: 1; }
  .side { min-height: 0; padding-block: 28px; opacity: 1; }
  .square-stage {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    top: auto;
    width: min(76vw, 400px);
    justify-self: center;
    margin-block: 64px 24px;
  }
}

/* 5 · Pasos ------------------------------------------------------------------ */
.pasos-head > .h2, .pg-intro { flex: 1 1 100%; }
.pasos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px 40px;
}
/* Segmented control: a morado copy of the tabs is clipped to the active one,
   so text and fill change together (Emil Kowalski's clip-path tab recipe). */
.seg {
  position: relative;
  border-radius: 14px;
  background: var(--surface);
  padding: 6px;
}
.seg-list, .seg-active { display: flex; gap: 4px; }
.seg-tab, .seg-active span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 clamp(14px, 1.6vw, 22px);
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.seg-tab {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.seg-tab:active { transform: scale(0.97); }
.seg-tab:focus-visible { outline-offset: -2px; }
.seg-active {
  position: absolute;
  inset: 6px;
  pointer-events: none;
  background: var(--morado);
  color: var(--blanco);
  border-radius: 10px;
  clip-path: inset(0 var(--clip-r, 50%) 0 var(--clip-l, 0) round 10px);
  transition: clip-path 340ms var(--ease-in-out);
}
@media (hover: hover) and (pointer: fine) {
  .seg-tab:hover { color: var(--ink); }
}

.dx-panels { display: grid; margin-top: clamp(40px, 5vw, 72px); }
.dx-panel {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  gap: clamp(40px, 5vw, 64px);
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, filter 180ms ease, visibility 0s linear 180ms;
  filter: blur(2px);
}
.dx-panel.is-current {
  opacity: 1;
  visibility: visible;
  filter: none;
  transition: opacity 260ms ease 90ms, filter 260ms ease 90ms, visibility 0s;
}
html:not(.js) .seg { display: none; }
html:not(.js) .dx-panel { grid-area: auto; opacity: 1; visibility: visible; filter: none; }
.dx-sum { font-size: var(--step-lead); line-height: 1.35; color: var(--muted); }
.dx-sum strong { color: var(--ink); font-weight: 600; }

.steps {
  --node: 56px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  column-gap: var(--gutter);
  list-style: none;
}
.steps::before, .steps::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 3px);
  left: calc(var(--node) / 2);
  right: calc((100% - (var(--cols, 4) - 1) * var(--gutter)) / var(--cols, 4) - var(--node) / 2);
  height: 6px;
  border-radius: 3px;
  background: var(--blanco-2);
}
.steps::after {
  background: var(--morado);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1300ms var(--ease-in-out);
}
html:not(.js) .steps::after, .steps.is-in::after { transform: none; }
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: calc(var(--node) + 26px);
  padding-right: clamp(0px, 1.6vw, 24px);
}
.step-node {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border-radius: 14px;
  background: var(--morado);
  color: var(--blanco);
}
.step--end .step-node { background: var(--lima); color: var(--morado); }
.step-ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-title {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(1.5rem, 1.05rem + 1.3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.dur {
  display: inline-block;
  margin-left: 0.3em;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--blanco-2);
  font-family: var(--sans);
  font-size: var(--step-small);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: nowrap;
  vertical-align: 0.32em;
}
.step p { max-width: 30ch; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .js .steps .step-node { transform: scale(0.9); transition: transform 560ms var(--ease-out); }
  .js .steps.is-in .step-node { transform: none; }
  .js .steps.is-in .step:nth-child(2) .step-node { transition-delay: 260ms; }
  .js .steps.is-in .step:nth-child(3) .step-node { transition-delay: 520ms; }
  .js .steps.is-in .step:nth-child(4) .step-node { transition-delay: 780ms; }
  .js .steps.is-in .step:nth-child(5) .step-node { transition-delay: 1040ms; }
}

.review {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 18px;
  align-items: center;
}
.review-title { grid-column: 1 / span 3; font-family: var(--serif); font-weight: 520; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem); letter-spacing: -0.012em; }
.review-list { grid-column: 4 / -1; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.review-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  font-weight: 600;
  line-height: 1.25;
}
.rv-ico { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--indigo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1100px) {
  .review-title { grid-column: 1 / -1; }
  .review-list { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .steps, .steps[style] { grid-template-columns: 1fr; row-gap: 36px; }
  .steps::before, .steps::after {
    top: calc(var(--node) / 2);
    bottom: calc(var(--node) / 2);
    left: calc(var(--node) / 2 - 3px);
    right: auto;
    width: 6px;
    height: auto;
  }
  .steps::after { transform-origin: top; transform: scaleY(0); }
  .steps.is-in::after { transform: none; }
  .step { padding: 0 0 0 calc(var(--node) + 22px); min-height: var(--node); }
  .dx-panel:not(.is-current) { display: none; }
}
@media (max-width: 560px) {
  .steps { --node: 48px; }
  .seg { width: 100%; }
  .seg-list, .seg-active { display: grid; grid-template-columns: 1fr 1.6fr; }
  .seg-tab, .seg-active span { justify-content: center; padding: 0 8px; font-size: 0.9375rem; }
  .review-list li { min-height: 56px; padding: 12px; font-size: 0.9375rem; }
}

/* Shared: square-bullet lists and notes --------------------------------- */
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ticks li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-0.08em);
}
.note { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 70ch; color: var(--muted); }

/* 7 · Origen ----------------------------------------------------------------- */
.origen-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 48px;
  align-items: center;
}
.origen-title { grid-column: 1 / -1; }
.founder { grid-column: 1 / span 5; display: grid; gap: 18px; }
/* the photo sits on a morado tile cut from the brand pattern, which slides out from behind it,
   and the logo's three colour tiles sit on its corner */
.founder-photo { position: relative; aspect-ratio: 4 / 5; }
.founder-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--morado) url("../img/patron-morado.svg") 0 0 / 56px 84px;
  transform: translate(clamp(12px, 1.6vw, 22px), clamp(12px, 1.6vw, 22px));
}
.founder-photo img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--blanco-2);
}
.founder-tiles {
  position: absolute;
  left: clamp(14px, 1.6vw, 22px);
  bottom: clamp(14px, 1.6vw, 22px);
  display: flex;
  gap: 5px;
}
.founder-tiles i { width: clamp(16px, 1.8vw, 24px); aspect-ratio: 1; border-radius: 22%; }
.founder-tiles i:nth-child(1) { background: var(--azul); }
.founder-tiles i:nth-child(2) { background: var(--lima); }
.founder-tiles i:nth-child(3) { background: var(--indigo); }
@media (prefers-reduced-motion: no-preference) {
  .js .founder-photo::before { transform: none; transition: transform 1100ms var(--ease-expo) 250ms; }
  .js .founder.is-in .founder-photo::before { transform: translate(clamp(12px, 1.6vw, 22px), clamp(12px, 1.6vw, 22px)); }
  .js .founder-tiles i { opacity: 0; transform: scale(0.6); transition: opacity 300ms ease, transform 520ms var(--ease-out); }
  .js .founder.is-in .founder-tiles i { opacity: 1; transform: none; }
  .js .founder.is-in .founder-tiles i:nth-child(1) { transition-delay: 600ms; }
  .js .founder.is-in .founder-tiles i:nth-child(2) { transition-delay: 680ms; }
  .js .founder.is-in .founder-tiles i:nth-child(3) { transition-delay: 760ms; }
}
.founder figcaption { display: grid; gap: 2px; padding-top: clamp(12px, 1.6vw, 22px); font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.founder figcaption b { font-size: 1rem; font-weight: 600; color: var(--ink); }
.creds { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li {
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
}
.origen-copy { grid-column: 7 / -1; display: grid; gap: 26px; align-content: center; }
.origen-copy > p:not(.statement):not(.pending) { max-width: 52ch; }
.origen-copy .statement { max-width: none; }
@media (max-width: 920px) {
  /* heading, then Yara's photo, then the story */
  .origen-grid { row-gap: 24px; }
  .origen-copy { display: contents; }
  .origen-copy > * { grid-column: 1 / -1; }
  .origen-title { order: -2; }
  .founder { order: -1; grid-column: 1 / span 10; margin-block: 8px 12px; }
}

/* 8 · Voces ------------------------------------------------------------------- */
.voces-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(40px, 5vw, 72px);
}
.voces-head { grid-column: 1 / -1; display: grid; gap: 22px; justify-items: start; }
.quote { display: grid; gap: 18px; }
.quote p { font-family: var(--serif); font-weight: 450; font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.008em; text-indent: -0.42em; }
.voces-note { font-size: var(--step-small); color: var(--muted); }
.quote footer { display: flex; align-items: center; gap: 12px; }
.who-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--t, var(--lima));
  color: var(--morado);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.who-txt { display: grid; gap: 1px; font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.who-txt b { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.quote--main { grid-column: 1 / span 7; align-content: start; }
.quote--main p { font-size: var(--step-statement); line-height: 1.2; max-width: 24ch; }
.quote-side { grid-column: 8 / -1; display: grid; gap: clamp(36px, 4vw, 56px); align-content: start; padding-top: 0.5em; }
.quote-side .quote { padding: clamp(20px, 2.2vw, 30px); border-radius: var(--radius); background: var(--surface); }
@media (max-width: 920px) {
  .quote--main, .quote-side { grid-column: 1 / -1; }
}

/* 9 · Precios ----------------------------------------------------------------- */
.precios-head { display: grid; gap: 22px; }
.plans {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  column-gap: var(--gutter);
  row-gap: 0;
  margin-top: clamp(40px, 5vw, 72px);
}
.plan {
  grid-column: span 6;
  grid-row: span 6;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 18px;
  padding: clamp(26px, 3.2vw, 52px);
  border-radius: clamp(18px, 2vw, 30px);
}
.plan-start { font-weight: 600; font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 10px; }
.plan-start::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.plan-title { font-family: var(--serif); font-weight: 540; font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem); line-height: 1.02; letter-spacing: -0.024em; text-wrap: balance; }
.plan-for { max-width: 44ch; }
.f-morado .plan-for { color: var(--muted); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-top: 8px; }
.price-num { font-family: var(--serif); font-weight: 520; font-size: clamp(3rem, 2rem + 3.4vw, 5.25rem); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.price-cond { font-weight: 600; max-width: 26ch; line-height: 1.3; }
.f-morado .price-cond { color: var(--lima); }
.plan .ticks { align-self: start; }
.plan--main .ticks li::before { background: var(--morado); }
.plan .btn { justify-self: start; align-self: end; margin-top: 10px; }
.precios .note { margin-top: 28px; }
.precios .note--tight { margin-top: 12px; }
@media (max-width: 920px) {
  .plans { grid-template-rows: none; row-gap: var(--gutter); }
  .plan { grid-column: 1 / -1; grid-row: auto; grid-template-rows: none; }
}

/* 9b · Acompañamiento 90 días --------------------------------------------------
   Twelve week tiles, grouped by month: lima tiles are the six 1:1 sessions,
   outlined tiles are the weeks that only carry the Monday check-in. */
.pg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px 40px;
}
.pg-intro { display: grid; gap: 22px; }
/* the segmented control's morado highlight would disappear on a morado field */
.f-morado .seg-active { background: var(--lima); color: var(--morado); }

.pg-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; }
.pg-meta .dx-sum { max-width: 46ch; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 9px; }
.lg::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 38%, transparent);
}
.lg--s::before { background: var(--lima); box-shadow: none; }

.months {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  column-gap: var(--gutter);
}
.month {
  grid-row: span 4;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 14px;
  align-content: start;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 36px);
  border-radius: clamp(18px, 2vw, 30px);
  background: var(--surface);
}
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.wk { display: grid; gap: 8px; justify-items: start; }
.wk b {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 64px;
  aspect-ratio: 1;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 26%, transparent);
  font-weight: 600;
  font-size: 0.9375rem;
}
.wk--s b { background: var(--lima); color: var(--morado); box-shadow: none; }
.wk i { font-size: 0.75rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.month-n { font-weight: 600; font-size: 0.9375rem; color: var(--lima); }
.month-title {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(1.625rem, 1.15rem + 1.2vw, 2.375rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.month-out { max-width: 34ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .months .wk b {
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 300ms ease, transform 560ms var(--ease-out);
    transition-delay: calc(var(--w) * 70ms);
  }
  .js .months.is-in .wk b { opacity: 1; transform: none; }
}

.pg-extra {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
}
.pg-checkin { grid-column: 1 / span 5; display: grid; gap: 14px; align-content: start; }
.pg-checkin p { color: var(--muted); max-width: 44ch; }
.pg-gets { grid-column: 7 / -1; display: grid; gap: 18px; align-content: start; }
.pg-sub { font-family: var(--serif); font-weight: 520; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem); line-height: 1.15; letter-spacing: -0.012em; }

.pg-price {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 32px;
  margin-top: clamp(56px, 6vw, 96px);
  padding: clamp(26px, 3.2vw, 52px);
  border-radius: clamp(18px, 2vw, 30px);
}
.pg-price-side { grid-column: 1 / span 5; display: grid; gap: 16px; align-content: start; justify-items: start; }
.pg-price-side .pg-price-title { margin-bottom: 10px; }
.pg-price-main { grid-column: 6 / -1; display: grid; gap: 14px; align-content: start; }
.pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 5px;
  border: 0;
  border-radius: 13px;
  background: color-mix(in srgb, var(--morado) 10%, transparent);
}
.pill { position: relative; display: flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color var(--t-ui) var(--ease-out), color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.pill input:checked + span { background: var(--morado); color: var(--lima); }
.pill input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.pill:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover input:not(:checked) + span { color: var(--ink); }
}
.pg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 24px;
  padding-block: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--morado) 18%, transparent);
}
.pg-row:first-child { padding-top: 0; }
.pg-row dt { font-weight: 600; max-width: 30ch; }
.pg-row dd { margin: 0; }
.pg-num {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.028em;
  text-align: right;
  white-space: nowrap;
}
.pg-price[data-pay="cuotas"] .pg-num { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); letter-spacing: -0.02em; }
.pg-save {
  grid-column: 2;
  justify-self: end;
  padding: 3px 10px;
  border-radius: 7px;
  background: var(--morado);
  color: var(--lima);
  font-size: var(--step-small);
  font-weight: 600;
}
.pg-fine { font-size: 0.9375rem; color: var(--muted); max-width: 56ch; }
.pg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 14px; }
.months-nav { display: none; }
@media (max-width: 920px) {
  /* the three months turn into a swipe row with the next one peeking in */
  .months {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--margin));
    padding-inline: var(--margin);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--margin);
    scrollbar-width: none;
  }
  .months::-webkit-scrollbar { display: none; }
  .month { flex: 0 0 min(84%, 380px); grid-row: auto; grid-template-rows: none; scroll-snap-align: start; }
  .months-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: calc(-1 * clamp(40px, 5vw, 64px) + 16px);
    font-size: var(--step-small);
    font-weight: 500;
    color: var(--muted);
  }
  .months-dots { display: flex; gap: 6px; }
  .months-dots i { width: 8px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 25%, transparent); transition: width 260ms var(--ease-out), background-color 200ms ease; }
  .months-dots i.on { width: 22px; background: var(--lima); }
  .pg-checkin, .pg-gets, .pg-price-side, .pg-price-main { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .weeks { gap: 6px; }
  .pg-row { grid-template-columns: minmax(0, 1fr); }
  .pg-num { text-align: left; white-space: normal; }
  .pg-save { grid-column: 1; justify-self: start; }
  .pills { display: flex; width: 100%; }
  .pill { flex: 1; }
  .pill span { width: 100%; padding: 0 10px; }
  .pg-actions .btn { width: 100%; }
}

/* 10 · Material ---------------------------------------------------------------- */
.material-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 24px; align-items: end; }
.material-head .h2, .material-head .lead { grid-column: 1 / -1; }
.resources {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(48px, 5vw, 80px);
}
.res { display: grid; align-content: start; gap: 12px; }
.res-desc { color: var(--muted); max-width: 34ch; }
.res-kind { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.res-soon {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.1em 0.55em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--morado) 12%, transparent);
  color: var(--morado);
  white-space: nowrap;
}
.res-cta { justify-self: start; margin-top: 6px; }
.res-art {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--blanco);
  overflow: clip;
}
.res-art > * { transition: transform 520ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .res:hover .res-art > * { transform: translateY(-6px) rotate(-1.5deg); }
}
.sheet {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 4px;
  width: 72%;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 30px -18px rgba(29, 19, 72, 0.45);
}
.sheet span { height: 16px; border-radius: 3px; background: var(--blanco-2); }
.sheet .h { background: var(--morado); }
.sheet .v { background: #d9d7e6; }
.sheet .p { background: var(--lima); }
.sheet .n { background: var(--azul); }
.gantt {
  display: grid;
  gap: 10px;
  width: 72%;
  padding: 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 30px -18px rgba(29, 19, 72, 0.45);
}
.gantt span { position: relative; height: 16px; border-radius: 4px; background: var(--blanco-2); }
.gantt span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--c); }
.gantt span::after { content: ""; position: absolute; top: -3px; left: calc(var(--w) - 11px); width: 22px; height: 22px; border-radius: 5px; background: var(--lima); box-shadow: inset 0 0 0 3px #fff; }
.book {
  display: grid;
  align-content: space-between;
  width: 46%;
  aspect-ratio: 3 / 4;
  padding: 14px;
  border-radius: 6px 12px 12px 6px;
  background: var(--morado);
  color: var(--blanco);
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.22), 0 18px 30px -16px rgba(29, 19, 72, 0.55);
  --logo-tile: var(--blanco);
  --logo-letter: var(--morado);
}
.book-logo { width: 34%; }
.book-title { font-family: var(--serif); font-size: clamp(0.8125rem, 0.6rem + 0.5vw, 1rem); line-height: 1.12; }
.wa-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px 18px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius);
  background: var(--blanco);
}
.wa-field { display: grid; gap: 8px; }
.wa-field input { font-size: 1.125rem; }
.wa-form .btn { margin-top: 29px; }
.wa-msg { font-size: var(--step-small); color: var(--muted); min-height: 1.45em; }
.wa-msg.is-error { color: #b0262f; font-weight: 600; }
.wa-field.is-error input { box-shadow: inset 0 0 0 2px #b0262f; }
.wa-done { grid-column: 1 / -1; display: grid; gap: 6px; }
.wa-done strong { font-family: var(--serif); font-weight: 520; font-size: var(--step-statement); line-height: 1.15; }
@media (max-width: 920px) {
  .material-head .h2, .material-head .lead { grid-column: 1 / -1; }
  .resources { grid-template-columns: 1fr; }
  .res { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 20px; align-items: start; }
  .res-art { grid-row: 1 / span 4; margin: 0; }
  .res-cta { grid-column: 2; }
}
@media (max-width: 640px) {
  /* compact cards: a small square of the artwork beside the text */
  .resources { gap: 14px; }
  .res {
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    padding: 14px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--blanco) 55%, transparent);
  }
  .res-art { grid-row: 1 / span 3; align-self: start; aspect-ratio: 1; margin: 0; border-radius: 12px; }
  .res .h3 { font-size: 1.125rem; }
  .res-desc { font-size: 0.9375rem; }
  .book-title { display: none; }
  /* the artwork scaled down to fit its small square */
  .sheet { width: 76%; gap: 3px; padding: 7px; border-radius: 7px; }
  .sheet span { height: 8px; border-radius: 2px; }
  .gantt { width: 76%; gap: 8px; padding: 10px; border-radius: 7px; }
  .gantt span { height: 8px; border-radius: 2px; }
  .gantt span::before { border-radius: 2px; }
  .gantt span::after { top: -2px; left: calc(var(--w) - 6px); width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 2px #fff; }
  .book { width: 48%; padding: 8px; }
  .wa-form { grid-template-columns: 1fr; }
  .wa-form .btn { margin-top: 0; width: 100%; }
}

/* 11 · FAQ ------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  align-items: start;
}
.faq .h2 { grid-column: 1 / -1; }
.faq-list { grid-column: 1 / -1; display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--surface); transition: background-color 240ms ease; }
.faq details[open] { background: #e2e1ec; }
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 18px clamp(18px, 2.2vw, 28px);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1875rem, 1rem + 0.55vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.pm {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--morado);
  transition: background-color 240ms ease, transform 360ms var(--ease-out);
}
.pm::before, .pm::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2.4px;
  margin: -1.2px 0 0 -7px;
  border-radius: 2px;
  background: var(--lima);
  transition: transform 360ms var(--ease-out);
}
.pm::after { transform: rotate(90deg); }
details[open] .pm { background: var(--azul); transform: rotate(-8deg); }
details[open] .pm::after { transform: rotate(0deg); }
details[open] .pm::before, details[open] .pm::after { background: #fff; }
.faq-a { overflow: clip; }
.faq-a > p { padding: 0 clamp(18px, 2.2vw, 28px) 24px; max-width: 62ch; }
.faq-a > p.pending { margin: 0 clamp(18px, 2.2vw, 28px) 24px; padding: 0.4em 0.8em; }
@media (hover: hover) and (pointer: fine) {
  .faq details:not([open]):hover { background: #dedcea; }
}
@media (max-width: 920px) {
  .faq .h2 { grid-column: 1 / -1; position: static; }
  .faq-list { grid-column: 1 / -1; }
}

/* 12 · Cierre ---------------------------------------------------------------- */
.cierre { overflow: clip; padding-block: clamp(140px, 14vw, 240px) clamp(80px, 9vw, 150px) !important; }
.cierre-pattern {
  position: absolute;
  inset: -12% 0;
  background: url("../img/patron-morado.svg") 0 0 / 56px 84px;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cierre-pattern { animation: pattern-drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes pattern-drift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
.cierre-box { position: relative; max-width: 1080px; margin-inline: auto; }
.cierre-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: clamp(56px, 7vw, 112px) clamp(22px, 5vw, 80px);
  border-radius: clamp(22px, 3vw, 44px);
  background: var(--morado);
  text-align: center;
}
.cierre-alt { font-size: 0.9375rem; color: var(--muted); }
.cierre-mascot {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  width: clamp(110px, 13vw, 168px);
  transform: translate(-50%, -64%);
  transition: transform 420ms var(--ease-out);
}
.cierre-mascot.is-hop { transform: translate(-50%, -76%); }
.cierre-mascot .mascot { --m: var(--lima); }

/* Footer --------------------------------------------------------------------- */
.site-footer { padding-block: clamp(56px, 7vw, 104px) max(32px, env(safe-area-inset-bottom, 0px)); }
.foot-tiles {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(6px, 0.9vw, 14px);
}
.ftile {
  aspect-ratio: 1;
  border-radius: 10.15%;
  transition: transform 520ms var(--ease-out);
}
.ftile svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .js .foot-tiles .ftile {
    transform: translateY(-28%) rotate(var(--rot));
    transition: transform 1000ms var(--ease-expo);
    transition-delay: calc(var(--k) * 60ms);
  }
  .js .foot-tiles.is-in .ftile { transform: none; }
  .js .foot-tiles.is-in .ftile.is-settled { transition: transform 420ms var(--ease-out); transition-delay: 0ms; }
}
@media (hover: hover) and (pointer: fine) {
  .js .foot-tiles.is-in .ftile.is-settled:hover { transform: translateY(-8%) rotate(-4deg); }
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(32px, 4vw, 56px);
  font-size: var(--step-small);
  color: var(--muted);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; }
.foot-links a { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: 0.24em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .foot-links a:hover { color: var(--blanco); text-decoration-color: currentColor; }
}
@media (max-width: 640px) {
  .foot-links a { padding-block: 12px; }
  .foot-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 280px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

/* 13 · Reserva ------------------------------------------------------------------
   A drawer from the right on desktop and a full sheet on phones. The steps
   swap in place and the four bars at the top fill as the client moves on. */
.rsv {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(600px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}
.rsv[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.rsv::backdrop { background: rgb(13 13 13 / 0.5); }
@media (min-width: 601px) {
  .rsv { border-radius: 24px 0 0 24px; }
}
.rsv-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: max(20px, env(safe-area-inset-top, 0px)) clamp(20px, 4vw, 36px) 16px;
}
.rsv-where { display: grid; gap: 12px; }
.rsv-heading { font-weight: 600; font-size: 0.9375rem; }
.rsv-progress { display: flex; gap: 6px; }
.rsv-progress i {
  width: 34px;
  height: 8px;
  border-radius: 3px;
  background: var(--blanco-2);
  transition: background-color 320ms ease;
}
.rsv-progress i.is-done { background: var(--morado); }
.rsv-progress i.is-now { background: var(--azul); }
.rsv-stepname { font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.rsv-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--blanco-2);
  color: var(--morado);
  cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.rsv-close:active { transform: scale(0.94); }
.rsv-close svg, .rsv-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rsv-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--morado) 25%, transparent) transparent;
  padding: 10px clamp(20px, 4vw, 36px) 40px;
}
.rsv-step { display: grid; gap: 22px; align-content: start; }
.rsv-step[hidden] { display: none; }
.rsv-step:focus { outline: none; }
.rsv-title {
  font-family: var(--serif);
  font-weight: 540;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.rsv-title:focus { outline: none; }
.rsv-lead { margin-top: -8px; color: var(--muted); }
.rsv-hint { font-size: 0.9375rem; color: var(--muted); }
.rsv-hint .link { color: var(--ink); }
.rsv-sub { margin-top: 10px; font-family: var(--serif); font-weight: 520; font-size: 1.5rem; letter-spacing: -0.012em; }
.rsv .pending { justify-self: start; }

/* step 1 · package cards */
.rsv-opts { display: grid; gap: 12px; }
.rsv-opt {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 64px 20px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--blanco-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.rsv-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.rsv-opt::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--morado) 30%, transparent);
  background: center / 16px no-repeat;
  transition: background-color var(--t-ui) var(--ease-out), box-shadow var(--t-ui) ease;
}
.rsv-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--morado); }
.rsv-opt:has(input:checked)::after {
  background-color: var(--morado);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23c2de55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: none;
}
.rsv-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.rsv-opt:active { transform: scale(0.985); }
.rsv-opt-for { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.rsv-opt-name { font-family: var(--serif); font-weight: 540; font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.014em; }
.rsv-opt-meta { font-size: 0.9375rem; color: var(--muted); }
.rsv-opt-price { margin-top: 8px; font-size: 0.9375rem; }
.rsv-opt-price b { margin-right: 4px; font-family: var(--serif); font-weight: 560; font-size: 1.5rem; letter-spacing: -0.016em; }
@media (hover: hover) and (pointer: fine) {
  .rsv-opt:hover:not(:has(input:checked)) { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--morado) 40%, transparent); }
  .rsv-close:hover { background: #dddbe8; }
}

/* step 2 · QR */
.rsv-pay {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
}
.rsv-qr { display: grid; gap: 10px; justify-items: center; margin: 0; }
.rsv-qr img { width: 200px; height: 200px; padding: 10px; border-radius: 14px; background: #fff; }
.rsv-qr figcaption { display: grid; justify-items: center; gap: 6px; text-align: center; }
.rsv-qr .pending { justify-self: center; font-size: 0.75rem; }
.rsv-qr-holder { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.rsv-amount { display: grid; gap: 4px; justify-items: start; }
.rsv-amount span { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.rsv-amount b {
  font-family: var(--serif);
  font-weight: 540;
  font-size: clamp(2.75rem, 2.2rem + 2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.rsv-amount small { font-size: 0.875rem; color: var(--muted); }
.rsv-dl { margin-top: 14px; }
.rsv-howto { list-style: none; counter-reset: howto; display: grid; gap: 12px; }
.rsv-howto li { counter-increment: howto; position: relative; min-height: 26px; padding-left: 38px; }
.rsv-howto li::before {
  content: counter(howto);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--morado);
  color: var(--blanco);
  font-size: 0.8125rem;
  font-weight: 600;
}
.rsv-howto b { font-weight: 600; }
@media (max-width: 520px) {
  .rsv-pay { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .rsv-amount { justify-items: center; }
}

/* step 3 · receipt and details */
.rsv-drop {
  position: relative;
  border: 2px dashed color-mix(in srgb, var(--morado) 28%, transparent);
  border-radius: 16px;
  background: #fff;
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.rsv-drop.is-over { border-color: var(--azul); background: color-mix(in srgb, var(--azul) 7%, #fff); }
.rsv-drop.is-full { border-style: solid; border-color: var(--blanco-2); }
.rsv-drop.is-error { border-color: #b0262f; }
.rsv-drop:has(.rsv-file:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.rsv-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.rsv-drop-empty { display: grid; justify-items: center; gap: 4px; padding: 30px 20px; text-align: center; cursor: pointer; }
.rsv-drop-ico { width: 34px; height: 34px; margin-bottom: 8px; fill: none; stroke: var(--azul); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rsv-drop-main { font-weight: 600; }
.rsv-drop-main u { text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; }
.rsv-drop-sub { font-size: var(--step-small); color: var(--muted); }
.rsv-drop-full { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; }
.rsv-drop-full[hidden], .rsv-drop.is-full .rsv-drop-empty { display: none; }
.rsv-thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--blanco-2) center / cover no-repeat;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.rsv-file-meta { display: grid; min-width: 0; }
.rsv-file-meta b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rsv-file-meta small { font-size: var(--step-small); color: var(--muted); }
.rsv-change { padding: 8px 0; font-size: 0.9375rem; cursor: pointer; }
.rsv-fields { display: grid; gap: 16px; }
.rsv-field { display: grid; gap: 8px; }
.rsv-field[hidden] { display: none; }
.rsv-field label { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.rsv-field .opt { font-weight: 500; }
.rsv-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--blanco-2);
  color: var(--morado);
  font-size: 1.0625rem;
  transition: box-shadow var(--t-hover) ease;
}
.rsv-field input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--azul); }
.rsv-field.is-error input { box-shadow: inset 0 0 0 2px #b0262f; }
.rsv-help { font-size: var(--step-small); color: var(--muted); }
.rsv-err { margin-top: -4px; font-size: var(--step-small); font-weight: 600; color: #b0262f; }
.rsv-err:empty { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rsv-drop:not(.is-full):hover { border-color: color-mix(in srgb, var(--morado) 50%, transparent); }
  .rsv-field input:hover:not(:focus-visible) { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--morado) 30%, transparent); }
  .if-touch { display: none; }
}
@media not ((hover: hover) and (pointer: fine)) {
  .if-fine { display: none; }
}

/* step 4 · day strip and time slots */
.rsv-days, .rsv-slots { min-width: 0; margin: 0; padding: 0; border: 0; }
.rsv-days-row {
  display: flex;
  gap: 8px;
  margin: -4px;
  padding: 4px 4px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  /* the fade at the right edge says there are more days to swipe to */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}
.rsv-days-row::-webkit-scrollbar { display: none; }
.rsv-day, .rsv-slot { position: relative; display: flex; flex: none; -webkit-tap-highlight-color: transparent; }
.rsv-day { scroll-snap-align: start; }
.rsv-day input, .rsv-slot input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.rsv-day input:disabled { cursor: not-allowed; }
.rsv-day span, .rsv-slot span {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--blanco-2);
  transition: background-color var(--t-ui) var(--ease-out), color var(--t-hover) ease, box-shadow var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.rsv-day span { gap: 1px; width: 66px; padding: 10px 0 11px; }
.rsv-day small { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.rsv-day b { font-family: var(--serif); font-weight: 540; font-size: 1.5rem; line-height: 1.1; }
.rsv-day em { font-style: normal; font-size: 0.75rem; color: var(--muted); }
.rsv-day input:disabled + span { background: transparent; opacity: 0.5; }
.rsv-slot span { width: 100%; min-height: 48px; border-radius: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rsv-day input:checked + span, .rsv-slot input:checked + span { background: var(--morado); color: var(--blanco); box-shadow: none; }
.rsv-day input:checked + span small, .rsv-day input:checked + span em { color: #c9c4e4; }
.rsv-day input:focus-visible + span, .rsv-slot input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.rsv-day:active span, .rsv-slot:active span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .rsv-day input:not(:checked):not(:disabled):hover + span,
  .rsv-slot input:not(:checked):hover + span { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--morado) 40%, transparent); }
}
.rsv-slots-legend { display: block; margin-bottom: 12px; padding: 0; font-weight: 600; }
.rsv-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.rsv-slots-empty { grid-column: 1 / -1; color: var(--muted); }
.rsv-sum { display: grid; padding: 4px 18px; border-radius: 16px; background: var(--surface); }
.rsv-sum div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--morado) 10%, transparent);
}
.rsv-sum div:last-child { border-bottom: 0; }
.rsv-sum dt { flex: none; font-size: 0.9375rem; color: var(--muted); }
.rsv-sum dd { min-width: 0; margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* step 5 · sent */
.rsv-done { justify-items: start; padding-top: 12px; }
.rsv-check { width: 72px; height: 72px; }
.rsv-check rect { fill: var(--lima); }
.rsv-check path { fill: none; stroke: var(--morado); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; }
.rsv-code { padding: 1px 8px; border-radius: 6px; background: var(--lima); font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.rsv-track { list-style: none; display: grid; width: 100%; margin-top: 6px; }
.rsv-track li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 40px; }
.rsv-track li:last-child { padding-bottom: 0; }
.rsv-track li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #fff center / 14px no-repeat;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--morado) 28%, transparent);
}
.rsv-track li::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 4px;
  left: 11px;
  width: 2px;
  border-radius: 1px;
  background: var(--blanco-2);
}
.rsv-track li:last-child::after { display: none; }
.rsv-track li.is-done::before {
  background-color: var(--morado);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23c2de55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: none;
}
.rsv-track li.is-now::before { background: var(--lima); box-shadow: none; }
.rsv-track b { font-weight: 600; }
.rsv-track li > span { font-size: 0.9375rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .rsv-track li.is-now::before { animation: rsv-pulse 1800ms ease-in-out infinite; }
}
@keyframes rsv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lima) 70%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--lima) 0%, transparent); }
}

/* footer */
.rsv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(20px, 4vw, 36px) max(14px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--blanco-2);
  background: var(--bg);
}
.rsv-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font: 600 1rem/1 var(--sans);
  cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.rsv-back:active { transform: scale(0.97); }
.rsv-back.is-hidden { visibility: hidden; }
.rsv-next { position: relative; min-width: 200px; }
.rsv-next > span, .rsv-next .btn-arrow { transition: opacity 160ms ease; }
.rsv-next.is-busy > span:not(.rsv-spin), .rsv-next.is-busy .btn-arrow { opacity: 0; }
.rsv-spin {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  margin: auto;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
  animation: rsv-spin 700ms linear infinite;
}
.rsv-next.is-busy .rsv-spin { opacity: 1; }
@keyframes rsv-spin { to { transform: rotate(1turn); } }
@media (hover: hover) and (pointer: fine) {
  .rsv-back:hover { background: var(--blanco-2); }
}
@media (max-width: 600px) {
  .rsv-next { flex: 1; min-width: 0; }
}

/* Reduced motion: keep colour and opacity changes, drop travel */
@media (prefers-reduced-motion: reduce) {
  .sq-side, .waffle i, .steps::after, .step-node, .sq-iso rect, .pain-mascot img, .menu, .seg-active, .dx-panel, .pill span {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .pain-mascot img { transform: none; filter: none; }
}
