/* Spanish Residency Bureau — mobile first */

:root {
  --canvas: #F0F6FF;
  --frost: #E1EDFF;
  --dot: #CFDDF3;
  --paper: #FFFFFF;
  --ink: #111118;
  --ink-2: #4A4A5C;
  --sun: #FFDA00;
  --red: #FF4141;
  --sky: #91D8EC;
  --pink: #FFBAC4;
  --green: #16AB59;
  --iris: #2727E6;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 16px;
  --max: 1200px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sun); color: var(--ink); }

img, svg { display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--iris);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.skip:focus { left: 12px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.h2 {
  margin: 0 0 20px;
  font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw + 1rem, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 40ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}

.section { padding: 72px 0; }

.link {
  color: var(--iris);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--sun);
  --fg: var(--ink);
  --sh: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 4px 0 0 var(--sh);
  font: 600 16px/1.1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out);
}
.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 0 var(--sh); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--sh); }
  .btn:active { transform: translateY(4px); box-shadow: 0 0 0 0 var(--sh); }
}
.btn--dark { --bg: var(--ink); --fg: #fff; --sh: var(--iris); }
.btn--lg { min-height: 58px; padding: 14px 28px; font-size: 17px; }
.btn--sm { min-height: 42px; padding: 8px 16px 8px 13px; font-size: 15px; box-shadow: 0 3px 0 0 var(--sh); }
.btn--sm svg { width: 19px; height: 19px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Ticker + language switch ---------- */

.topbar {
  display: flex;
  background: var(--ink);
}
.ticker {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font: 400 11.5px/1 var(--mono);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0 16px 0 0;
  list-style: none;
}
.ticker svg { width: 11px; height: 11px; fill: var(--sun); }
.ticker__group li:nth-child(4n) svg { fill: var(--red); }
.ticker__group li:nth-child(6n) svg { fill: var(--sky); }
@keyframes marquee { to { transform: translateX(-50%); } }

.langs {
  position: relative;
  flex: none;
  display: flex;
  padding: 0 6px 0 2px;
  background: var(--ink);
}
.langs::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, rgba(17, 17, 24, 0), var(--ink));
  pointer-events: none;
}
.langs a {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 2px;
  color: rgba(255, 255, 255, .62);
  font: 500 11px/1 var(--mono);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.langs a span {
  padding: 6px 8px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.langs a:hover span { color: #fff; }
.langs a[aria-current="page"] span { background: var(--sun); color: var(--ink); }
.langs a:focus-visible { outline: none; }
.langs a:focus-visible span { outline: 2px solid var(--sun); outline-offset: 1px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 10px;
  z-index: 50;
  margin: 10px var(--gutter) 0;
}
.nav__inner {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 6px 8px;
  background: var(--paper);
  border: 1px solid var(--frost);
  border-radius: 999px;
  box-shadow: 0 10px 12px -6px rgba(17, 17, 24, .18);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { width: 38px; height: 38px; flex: none; transition: transform .6s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(45deg); }
.brand__name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.brand__name span { display: block; }
.nav__links { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 30px 0 0;
  margin-bottom: 36px;
  overflow: hidden;
  overflow: clip;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 30px;
}
.hero__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.55rem, 8.4vw + .6rem, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hero__title .w { display: inline-block; }
.nw { white-space: nowrap; }

.sticker {
  display: inline-block;
  width: 1.5em;
  height: .84em;
  margin: 0 .04em;
  vertical-align: -.06em;
  border-radius: 999px;
  border: .045em solid var(--ink);
  box-shadow: 0 .06em 0 var(--ink);
}
.sticker svg { width: 100%; height: 100%; }
.sticker--sun { background: var(--sun); rotate: -8deg; }
.sticker--laptop { background: var(--sky); rotate: 7deg; }

.hero__lead {
  margin: 20px 0 0;
  max-width: 34ch;
  font-size: 18.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.hero__cta {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}
.hero__note svg { width: 18px; height: 18px; color: var(--green); }

/* Collage */

.collage {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / .94;
  margin: 6px auto 0;
  container-type: inline-size;
}
.shape {
  position: absolute;
  display: block;
  transform: rotate(var(--r, 0deg));
}
.shape svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  animation: float 7s ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0) * -1.6s);
}
.shape--sun  { width: 52%; aspect-ratio: 1;       right: -14%; top: -5%;  color: var(--sun); }
.shape--semi { width: 58%; aspect-ratio: 2;       left: -12%;  bottom: 5%;  color: var(--red); }
.shape--oct  { width: 21%; aspect-ratio: 1;       left: 3%;    top: 7%;   color: var(--pink); }
.shape--tri  { width: 17%; aspect-ratio: 100/87;  right: 1%;   top: 33%;   color: var(--green); }
.shape--star { width: 13%; aspect-ratio: 1;       left: 37%;   top: 3%;   color: var(--iris); }

@keyframes float { to { transform: translateY(-5px) rotate(4deg); } }

.tie {
  position: absolute;
  left: 11%;
  top: 25%;
  width: 76cqw;
  aspect-ratio: 1.586;
  rotate: -7deg;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 3.4cqw;
  box-shadow: 0 1.8cqw 0 var(--ink);
  overflow: hidden;
}
.tie__band {
  height: 5cqw;
  background: linear-gradient(to bottom, var(--red) 0 25%, var(--sun) 25% 75%, var(--red) 75%);
  border-bottom: 2px solid var(--ink);
}
.tie__body {
  display: flex;
  gap: 4.5cqw;
  padding: 4.5cqw 5cqw;
}
.tie__photo {
  width: 21cqw;
  aspect-ratio: 5 / 6;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--sky);
  border-radius: 2.2cqw;
}
.tie__photo svg { width: 82%; height: auto; }
.tie__meta { flex: 1; min-width: 0; }
.tie__meta b {
  display: block;
  font-weight: 800;
  font-size: 11cqw;
  line-height: .9;
  letter-spacing: -0.05em;
}
.tie__meta small {
  display: block;
  margin: 1.6cqw 0 3.2cqw;
  font: 400 2.5cqw/1.35 var(--mono);
  color: var(--ink-2);
  white-space: nowrap;
}
.tie__meta i {
  display: block;
  height: 2.3cqw;
  width: 34cqw;
  margin-top: 2.2cqw;
  border-radius: 2cqw;
  background: var(--frost);
}
.tie__meta i.short { width: 22cqw; }

.seal {
  position: absolute;
  width: 41%;
  right: 1%;
  top: 45%;
  rotate: -14deg;
  color: var(--iris);
  mix-blend-mode: multiply;
}
.seal svg { width: 100%; height: auto; overflow: visible; }
.seal text {
  font: 500 15px var(--mono);
  fill: currentColor;
}
.seal__ring {
  transform-origin: 100px 100px;
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sea band */

.sea {
  position: relative;
  z-index: 2;
  height: 60px;
  margin-top: -44px;
  pointer-events: none;
}
.sea span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: repeat-x;
  background-position: 0 100%;
}
.sea__back {
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20Q25 0 50 20T100 20T150 20T200 20V40H0z' fill='%2391D8EC'/%3E%3C/svg%3E");
  background-size: 180px 100%;
  animation: sea-back 16s linear infinite;
}
.sea__front {
  height: 46%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20Q25 0 50 20T100 20T150 20T200 20V40H0z' fill='%232727E6'/%3E%3C/svg%3E");
  background-size: 130px 100%;
  animation: sea-front 11s linear infinite;
}
@keyframes sea-back { to { background-position-x: -180px; } }
@keyframes sea-front { to { background-position-x: 130px; } }

/* ---------- Trust band ---------- */

.band { padding: 0 var(--gutter); }
.band__list {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 6px 20px;
  list-style: none;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
}
.band__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
}
.band__list li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
.band__icon { width: 28px; height: 28px; flex: none; margin-top: 1px; fill: currentColor; }
.band__list b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.band__list span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .72);
}

/* ---------- Fit ---------- */

.fit__card {
  padding: 6px 20px 22px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 6px 0 var(--ink);
}
.checks { margin: 0; padding: 0; list-style: none; }
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--frost);
}
.checks p { margin: 7px 0 0; font-size: 18px; line-height: 1.42; }
.check {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
}
.check__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--c);
}
.check__tick {
  position: absolute;
  inset: 10px;
  width: 22px;
  height: 22px;
  color: var(--ink);
}
.fit__note { padding-top: 18px; }
.fit__note p { margin: 0 0 12px; color: var(--ink-2); }

.js .fit__card .check { transform: scale(0) rotate(-90deg); }
.fit__card.is-in .check {
  transform: none;
  transition: transform .7s var(--ease-spring);
}
.fit__card.is-in li:nth-child(2) .check { transition-delay: .12s; }
.fit__card.is-in li:nth-child(3) .check { transition-delay: .24s; }

/* ---------- Steps ---------- */

.steps__grid { display: grid; gap: 34px; }
.steps__counter { display: none; }
.steps__body { position: relative; }
.steps__rail {
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 40px;
  width: 3px;
  overflow: hidden;
  background: var(--frost);
  border-radius: 3px;
}
.steps__fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.steps__list {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}
.step__num {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-top: 8px;
}
.step__num svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #D5E3F8;
  transform: scale(.78) rotate(-24deg);
  transition: fill .4s, transform .7s var(--ease-spring);
}
.step__num b {
  position: relative;
  font-size: 18px;
  font-weight: 800;
  transition: color .3s;
}
.step__card {
  position: relative;
  padding: 18px 18px 20px;
  background: var(--paper);
  border: 2px solid var(--frost);
  border-radius: 22px;
  transition: border-color .35s, box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.step__card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.step__card p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.step.is-on .step__num svg { fill: var(--c); transform: none; }
.step.is-on .step__num--light b { color: #fff; }
.step.is-on .step__card {
  border-color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transform: translateY(-2px);
}

.done-stamp {
  position: absolute;
  right: 14px;
  top: -18px;
  padding: 7px 11px 6px;
  border: 2.5px solid currentColor;
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  color: var(--iris);
  font: 500 13px/1 var(--mono);
  rotate: 8deg;
  opacity: 0;
}
.step--last.is-on .done-stamp { animation: thud .5s cubic-bezier(.2, .7, .3, 1.3) .15s both; }
.step--last.is-on .step__card { animation: jolt .35s ease .45s; }

@keyframes thud {
  0% { opacity: 0; transform: scale(2.4); }
  55% { opacity: 1; transform: scale(.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes jolt {
  0%, 100% { translate: 0 0; }
  35% { translate: 0 3px; }
  70% { translate: 0 -1px; }
}

/* ---------- Price ---------- */

.price {
  position: relative;
  padding-bottom: 150px;
  background: var(--pink);
  overflow: hidden;
  overflow: clip;
}
.price__shape { position: absolute; display: block; pointer-events: none; }
.price__shape svg { width: 100%; height: 100%; }
.price__shape--a { width: 250px; aspect-ratio: 2; left: -40px; bottom: -2px; fill: var(--red); }
.price__shape--b { width: 150px; aspect-ratio: 1; right: -70px; top: -70px; fill: var(--sun); rotate: 18deg; }
.price__grid {
  position: relative;
  display: grid;
  gap: 30px;
}

.calc {
  padding: 22px 20px 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 32px;
  box-shadow: 0 6px 0 var(--ink);
}
.calc__label { margin: 0; font-size: 15px; color: var(--ink-2); }
.calc__total {
  display: block;
  margin: 2px 0 18px;
  font-weight: 800;
  font-size: clamp(3.4rem, 16vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc__total.bump { animation: bump .35s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.04) rotate(-1deg); } }
.calc__rows { margin-bottom: 20px; border-top: 1px solid var(--frost); }
.calc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--frost);
  font-size: 16.5px;
}
.calc__row small { display: block; font-size: 13.5px; color: var(--ink-2); }
.calc__sum { font-weight: 700; white-space: nowrap; }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  flex: none;
  background: var(--frost);
  border-radius: 999px;
}
.stepper__btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--ink);
  color: var(--ink);
  font: 600 22px/1 var(--font);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, box-shadow .12s, opacity .2s;
}
.stepper__btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }
.stepper__btn:disabled { opacity: .3; cursor: default; transform: none; box-shadow: 0 2px 0 var(--ink); }
.stepper__val {
  min-width: 30px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: 7px 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.3;
}
.fineprint { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- FAQ ---------- */

.faq__list {
  padding: 2px 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 28px;
}
.qa + .qa { border-top: 1px solid var(--frost); }
.qa h3 { margin: 0; }
.qa button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: 600 18px/1.3 var(--font);
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.qa__icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--frost);
  border-radius: 999px;
  transition: background .3s, transform .5s var(--ease-spring);
}
.qa__icon::before, .qa__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2.5px;
  margin: -1.25px 0 0 -7px;
  background: var(--ink);
  border-radius: 2px;
}
.qa__icon::after { transform: rotate(90deg); }
.qa.is-open .qa__icon { background: var(--sun); transform: rotate(135deg); }
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.qa__a > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s .45s;
}
.qa__a p { margin: 0 0 22px; max-width: 60ch; color: var(--ink-2); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a > div { visibility: visible; transition-delay: 0s; }

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  padding: 92px var(--gutter);
  background: var(--sun);
  overflow: hidden;
  overflow: clip;
}
.cta__shape { position: absolute; display: block; transform: rotate(var(--r, 0deg)); }
.cta__shape svg { width: 100%; height: 100%; }
.cta__shape--a { width: 190px; aspect-ratio: 1; left: -70px; top: -60px; fill: var(--red); }
.cta__shape--b { width: 170px; aspect-ratio: 100/87; right: -40px; bottom: -30px; fill: var(--green); --r: -14deg; }
.cta__shape--c { width: 96px; aspect-ratio: 1; right: 6%; top: 22px; fill: var(--iris); --r: 12deg; }
.cta__shape--d { width: 120px; aspect-ratio: 1; left: 4%; bottom: -54px; fill: var(--pink); --r: 20deg; }
.js .cta__shape { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r, 0deg) - 40deg)) scale(.6); }
.cta.is-in .cta__shape {
  opacity: 1;
  transform: rotate(var(--r, 0deg));
  transition: opacity .3s, transform .9s var(--ease-spring);
}
.cta.is-in .cta__shape--b { transition-delay: .08s; }
.cta.is-in .cta__shape--c { transition-delay: .16s; }
.cta.is-in .cta__shape--d { transition-delay: .24s; }

.cta__card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 22px 26px;
  text-align: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 32px;
  box-shadow: 0 8px 0 var(--ink);
}
.cta__card .h2 { margin-bottom: 14px; }
.cta__card p {
  max-width: 34ch;
  margin: 0 auto 26px;
  font-size: 18px;
  color: var(--ink-2);
}
.cta__phone {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--ink);
  font: 500 14.5px/1.4 var(--mono);
  text-decoration: none;
}

/* ---------- Footer ---------- */

.footer {
  padding: 44px 0 calc(40px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: #fff;
  font-size: 15px;
}
.footer__grid { display: grid; gap: 22px; }
.footer p { margin: 0; color: rgba(255, 255, 255, .8); }
.footer a { color: #fff; }
.brand--footer { color: #fff; }
.footer__fine { font-size: 13px; color: rgba(255, 255, 255, .55) !important; }
.footer__langs { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__langs a {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
}
.footer__langs a[aria-current="page"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }

/* ---------- Mobile dock ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 14px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(240, 246, 255, .97) 55%, rgba(240, 246, 255, 0));
  transform: translateY(115%);
  transition: transform .5s var(--ease-out);
  pointer-events: none;
}
.dock.is-shown { transform: none; pointer-events: auto; }

/* ---------- Load sequence ---------- */

.js:not(.is-ready) .hero__title .w,
.js:not(.is-ready) .sticker,
.js:not(.is-ready) .hero__lead,
.js:not(.is-ready) .hero__cta,
.js:not(.is-ready) .hero__note,
.js .collage:not(.is-in) .shape,
.js .collage:not(.is-in) .tie,
.js .collage:not(.is-in) .seal { opacity: 0; }

.is-ready .hero__title .w {
  animation: wordIn .8s var(--ease-out) both;
  animation-delay: calc(var(--i) * 55ms + 80ms);
}
.is-ready .sticker {
  animation: stickerIn .9s var(--ease-spring) both;
  animation-delay: calc(var(--i) * 55ms + 260ms);
}
.is-ready .hero__lead { animation: fadeUp .8s var(--ease-out) .55s both; }
.is-ready .hero__cta  { animation: fadeUp .8s var(--ease-out) .65s both; }
.is-ready .hero__note { animation: fadeUp .8s var(--ease-out) .75s both; }
.collage.is-in .shape {
  animation: drop 1s var(--ease-spring) both;
  animation-delay: calc(var(--d) * 90ms + 100ms);
}
.collage.is-in .tie { animation: cardIn 1.05s var(--ease-spring) .4s both, jolt .35s ease 1.32s; }
.collage.is-in .seal { animation: thud .55s cubic-bezier(.2, .7, .3, 1.3) 1.1s both; }

@keyframes wordIn {
  from { opacity: 0; transform: translateY(.4em) rotate(3deg); }
  to { opacity: 1; transform: none; }
}
@keyframes stickerIn {
  from { opacity: 0; transform: scale(0) rotate(-60deg); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-38%) rotate(calc(var(--r) - 35deg)) scale(.6); }
  to { opacity: 1; transform: rotate(var(--r)); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translate(26%, 22%) rotate(20deg) scale(.82); }
  to { opacity: 1; transform: none; }
}

/* ---------- ≥ 600px ---------- */

@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .brand__name { font-size: 16px; }
  .brand__name span { display: inline; }
  .hero__cta { display: flex; flex-wrap: wrap; }
  .band__list { padding: 6px 28px; }
  .fit__card, .faq__list { padding-left: 30px; padding-right: 30px; }
  .calc { padding: 28px 30px 28px; }
  .cta__card { padding: 44px 40px 32px; }
}

/* ---------- ≥ 960px ---------- */

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  body { font-size: 18px; }
  .section { padding: 120px 0; }

  .nav { top: 14px; margin-top: 14px; }
  .nav__inner { padding: 8px 8px 8px 12px; }
  .nav__links { display: flex; gap: 30px; }
  .nav__links a {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
  }
  .nav__links a:hover { text-decoration: underline; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 17px; }
  .btn--sm { min-height: 46px; padding: 9px 20px 9px 15px; font-size: 16px; }

  .hero { padding: 48px 0 0; margin-bottom: 56px; }
  .hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: end;
    gap: 32px;
  }
  .hero__text { padding-bottom: 92px; }
  .hero__title { font-size: clamp(3.6rem, 4.4vw + .6rem, 4.9rem); }
  html[lang="es"] .hero__title { font-size: clamp(3.2rem, 3.8vw + .5rem, 4.25rem); }
  .sea { height: 104px; margin-top: -72px; }
  .sea__back { background-size: 300px 100%; }
  .sea__front { background-size: 210px 100%; }
  @keyframes sea-back { to { background-position-x: -300px; } }
  @keyframes sea-front { to { background-position-x: 210px; } }
  .hero__lead { font-size: 21px; margin-top: 26px; }
  .hero__cta { margin-top: 34px; }
  .collage { width: calc(100% + 72px); max-width: 600px; margin: 0 -24px 0 auto; justify-self: end; }

  .band__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 12px;
    border-radius: 32px;
  }
  .band__list li { padding: 22px 22px; }
  .band__list li + li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .14); }

  .fit__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
  }
  .fit__card { padding: 12px 40px 32px; }
  .checks p { font-size: 20px; }

  .steps__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }
  .steps__head { position: sticky; top: 130px; }
  .steps__counter {
    display: flex;
    align-items: baseline;
    margin: 40px 0 0;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: .9;
  }
  .steps__now {
    display: inline-block;
    font-size: 150px;
    font-variant-numeric: tabular-nums;
  }
  .steps__now.flip { animation: flip .45s var(--ease-spring); }
  @keyframes flip { from { transform: translateY(30%) rotate(-6deg); opacity: 0; } }
  .steps__total { font-size: 44px; color: var(--ink-2); margin-left: 6px; }
  .steps__list { gap: 22px; }
  .step { grid-template-columns: 56px 1fr; gap: 22px; }
  .step__num { width: 56px; height: 56px; margin-top: 14px; }
  .step__num b { font-size: 20px; }
  .steps__rail { left: 27px; top: 28px; }
  .step__card { padding: 26px 30px 28px; border-radius: 26px; }
  .step__card h3 { font-size: 25px; }
  .step__card p { font-size: 17.5px; }

  .price__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head calc" "inc calc";
    column-gap: 64px;
    row-gap: 36px;
    align-items: start;
  }
  .price__head { grid-area: head; }
  .calc { grid-area: calc; padding: 34px 40px 36px; }
  .included { grid-area: inc; }
  .price { padding-bottom: 120px; }
  .price__shape--a { width: 560px; left: auto; right: -140px; }
  .price__shape--b { width: 230px; right: -100px; top: -110px; }

  .faq__grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
  }
  .faq__list { padding: 6px 36px; }
  .qa button { font-size: 20px; padding: 26px 0; }

  .cta { padding: 140px var(--gutter); }
  .cta__shape--a { width: 360px; left: -110px; top: -120px; }
  .cta__shape--b { width: 300px; right: -60px; bottom: -60px; }
  .cta__shape--c { width: 140px; right: 16%; top: 48px; }
  .cta__shape--d { width: 200px; left: 14%; bottom: -80px; }
  .cta__card { padding: 56px 56px 40px; max-width: 640px; }
  .cta__card p { font-size: 20px; }

  .footer__grid {
    grid-template-columns: auto 1fr auto;
    column-gap: 56px;
    row-gap: 28px;
    align-items: center;
  }
  .footer__fine { grid-column: 1 / -1; }

  .dock { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .ticker__track { animation: none !important; }
}
