/* ==========================================================================
   Maritima · LP implantes — VARIANTE C · "El Asterisco Tachado / Sin Anzuelo"
   Contract-modernism: ink on porcelain paper, monospace clauses as texture,
   blue ballpoint underlines, one red tachón as the only weapon.

   Red (#B8401F) is SEMANTIC ONLY: strike-throughs and errors. It never
   appears on a positive element. Blue (#2742C8) carries every CTA, link,
   underline and focus ring on light ground — it is the signature colour.
   Blue scores 1.93:1 on the ink sections, so .s-ink flips --ring to
   porcelain and its links to porcelain too.

   No inline JS: the signature motion is pure CSS, so the strike-through can
   never be late. /lp/_shared/funnel.js owns measurement, submit and sticky.
   ========================================================================== */

/* --------------------------------------------------------------- fonts */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/lp/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("/lp/fonts/fragmentmono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("/lp/fonts/supreme-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("/lp/fonts/supreme-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("/lp/fonts/supreme-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens */

:root {
  /* palette */
  --tinta: #0e2a32;
  --tinta-suave: #43524f;
  --clausula: #4e6065;
  --porcelana: #f4f6f5;
  --documento: #ffffff;
  --azul: #2742c8;
  --azul-dark: #1d34a4;
  --rojo: #b8401f;
  --verde: #3e7c6b;
  --bruma: #dce4e1;

  --ring: var(--tinta);

  /* type */
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Supreme", -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: "Fragment Mono", ui-monospace, "Courier New", monospace;

  --t-hero: clamp(2.6rem, 8.5vw, 5.5rem);
  --t-h2: clamp(1.9rem, 5.5vw, 3.25rem);
  --t-h3: clamp(1.25rem, 3vw, 1.5rem);
  --t-body: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --t-fine: 0.8125rem;

  /* rhythm — deliberately uneven: tight inside an argument, wide between them */
  --gut: 1.25rem;
  --sp-l: clamp(5rem, 4rem + 6vw, 9rem);
  --sp-s: clamp(2.5rem, 2rem + 2vw, 4rem);
  --overlap: clamp(3rem, 7vw, 5.5rem);

  /* radius is semantic: buttons soft, sheets foldable, write-lines square */
  --r-btn: 10px;
  --r-card: 12px;
  --ear: 46px;

  --shadow: 0 6px 24px rgba(14, 42, 50, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ink marks — hand-set strokes, not rectangles */
  --pen-azul: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M1.6 5.6C40 3.3 78 6.5 116 4.3c27-1.6 56 1 82.6-.8' fill='none' stroke='%232742C8' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --tachon-big: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 16' preserveAspectRatio='none'%3E%3Cpath d='M2 12.6C72 10.2 142 8.1 212 6.6c62-1.3 124-1.9 186-3.5' fill='none' stroke='%23B8401F' stroke-width='5.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --tachon-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 10' preserveAspectRatio='none'%3E%3Cpath d='M1.8 7.2C60 5.6 120 4.5 180 3.6c39-.6 78-1 117-1.7' fill='none' stroke='%23B8401F' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (min-width: 720px) {
  :root {
    --gut: clamp(1.75rem, 4vw, 3.5rem);
  }
}

/* ----------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--porcelana);
  color: var(--tinta);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--azul);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--azul-dark);
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--azul);
  color: #fff;
}

/* Paper grain. Static, pointer-transparent, one cached tile. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.u-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--documento);
  border: 2px solid var(--tinta);
  border-radius: var(--r-btn);
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

.s {
  position: relative;
  padding-block: var(--sp-s);
}

/* Ink sections. Blue is unreadable here (1.93:1), so links and the focus
   ring flip to porcelain; only surfaces that are white take blue back. */
.s-ink {
  background: var(--tinta);
  color: var(--porcelana);
  --ring: var(--porcelana);
}

.s-ink a {
  color: var(--porcelana);
  text-decoration-color: var(--bruma);
}

.s-ink a:hover {
  color: #fff;
}

/* ------------------------------------------------------------ typography */

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 18ch;
}

.h2--big {
  max-width: 15ch;
}

.h2--light {
  color: var(--porcelana);
}

.lede {
  margin-top: 1.25rem;
  max-width: 56ch;
  color: var(--tinta-suave);
}

.kicker {
  font-family: var(--mono);
  font-size: var(--t-fine);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clausula);
}

/* --------------------------------------------------------------- topbar */

.topbar {
  border-bottom: 1px solid var(--bruma);
}

.topbar__in {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1;
}

.mark__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.mark__sub {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clausula);
}

.topbar__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding-inline: 0.5rem;
  margin-right: -0.5rem;
  font-family: var(--mono);
  font-size: var(--t-fine);
  text-decoration: none;
  color: var(--azul);
}

.topbar__tel svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.topbar__tel:hover .topbar__telnum {
  text-decoration: underline;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: var(--sp-s);
}

/* The market's own symbol, blown up and cropped. Lives behind everything,
   inside `overflow: clip`, so it can never widen the page. */
.hero__glyph {
  position: absolute;
  top: -0.34em;
  right: -0.1em;
  z-index: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 46vw;
  line-height: 0.8;
  color: var(--bruma);
  pointer-events: none;
  user-select: none;
}

.hero > .wrap,
.hero__lie {
  position: relative;
  z-index: 1;
}

/* --- the signature -------------------------------------------------- */

/* `<s>` matters: if the stylesheet ever fails, the browser's own
   line-through still lands and the page never shows a clean price teaser. */
.hero__lie {
  margin: clamp(0.75rem, 2.5vw, 1.25rem) 0 clamp(1rem, 3vw, 1.75rem);
  padding-inline: var(--gut);
  max-width: 1200px;
  margin-inline: auto;
}

.lie {
  display: block;
  position: relative;
  width: max-content;
  max-width: 100%;
  font-family: var(--mono);
  /* 15 glyphs × 0.618 advance ≈ 9.27em; 9.4 leaves slack for the fallback
     monospace, so the line spans the viewport and never overflows it. */
  font-size: min(4.6rem, calc((100vw - 2 * var(--gut)) / 9.4));
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--tinta);
  text-decoration: none;
}

.lie__blank {
  color: var(--clausula);
}

.lie__ast {
  display: inline-block;
  transform-origin: 50% 20%;
  animation: astFall 300ms var(--ease) 450ms both;
}

/* Already 60% struck in the first paint. The animation only finishes the
   job — there is no frame in which this reads as our own price. */
.lie::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.09em;
  top: 0.5em;
  height: 0.15em;
  background: var(--tachon-big) center / 100% 100% no-repeat;
  transform: scaleX(0.6);
  transform-origin: left center;
  animation: tachon 450ms var(--ease) 300ms forwards;
}

@keyframes tachon {
  to {
    transform: scaleX(1);
  }
}

@keyframes astFall {
  to {
    transform: translateY(0.18em) rotate(12deg);
    opacity: 0;
  }
}

/* --- hero copy ------------------------------------------------------- */

.hero__h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-hero);
  line-height: 0.95;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 19ch;
}

.hero__sub {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 52ch;
  color: var(--tinta-suave);
}

.hero__act {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.hero__micro {
  margin-top: 0.875rem;
  font-family: var(--mono);
  font-size: var(--t-fine);
  color: var(--clausula);
}

/* --------------------------------------------------------------- botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: var(--r-btn);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
    background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.btn--primary {
  position: relative;
  background: var(--azul);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 42, 50, 0.12);
}

/* The label underlines itself on hover — the page's own pen gesture. */
.btn--primary::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0.85rem;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 250ms var(--ease);
}

.btn--primary:hover {
  background: var(--azul-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 42, 50, 0.18);
}

.btn--primary:hover::after {
  transform: scaleX(1);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--full {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn[disabled]::after {
  display: none;
}

/* Outlined: the fill wipes in from the left, same direction as every
   other mark on the page. */
.btn--out {
  position: relative;
  isolation: isolate;
  border: 1.5px solid var(--tinta);
  background: transparent;
  color: var(--tinta);
  font-weight: 500;
}

.btn--out::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--bruma);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 250ms var(--ease);
}

.btn--out:hover {
  border-color: var(--azul);
  color: var(--tinta);
}

.btn--out:hover::before {
  transform: scaleX(1);
}

.btn--out:active {
  transform: scale(0.98);
}

.btn--out svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.link {
  font-size: 1rem;
  text-decoration: underline;
}

/* ------------------------------------------- 1 · la letra pequeña ------ */

.s-letra {
  padding-bottom: var(--sp-l);
}

/* Wider than the viewport so the −2° tilt leaves no bare corners; the page
   is `overflow-x: clip`, so nothing here can create a scrollbar. */
.clauses {
  width: 106%;
  margin: clamp(2rem, 5vw, 3rem) -3% clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem) 3.6%;
  background: var(--bruma);
  transform: rotate(-2deg);
}

.clause {
  position: relative;
  width: max-content;
  max-width: 100%;
  font-family: var(--mono);
  /* 43 glyphs on the longest line; the divisor keeps every clause on one
     line down to 320px, where it settles at true fine-print size. */
  font-size: clamp(0.6875rem, calc((100vw - 1.25rem) / 27.2), 1.25rem);
  line-height: 2.1;
  white-space: nowrap;
  color: var(--clausula);
}

.clause s {
  text-decoration: none;
}

.clause__strike {
  position: absolute;
  left: -0.05em;
  right: -0.07em;
  top: 50%;
  height: 0.2em;
  margin-top: -0.1em;
  background: var(--tachon-sm) center / 100% 100% no-repeat;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms var(--ease);
}

.clauses.is-in .clause:nth-child(1) .clause__strike { transition-delay: 60ms; }
.clauses.is-in .clause:nth-child(2) .clause__strike { transition-delay: 180ms; }
.clauses.is-in .clause:nth-child(3) .clause__strike { transition-delay: 300ms; }
.clauses.is-in .clause:nth-child(4) .clause__strike { transition-delay: 420ms; }
.clauses.is-in .clause__strike { transform: scaleX(1); }

.letra__close {
  max-width: 34ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* --------------------------------------------- 2 · nuestro trato ------ */

.s-trato {
  padding-block: var(--sp-l) 0;
}

/* --- the document sheet --------------------------------------------- */

/* border-radius survives a mask (it would not survive clip-path), so the
   sheet keeps its 12px corners and still loses one corner to the fold. */
.doc {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: var(--tinta);
  --ring: var(--tinta);
}

.doc > *:not(.doc__sheet) {
  position: relative;
  z-index: 1;
}

.doc__sheet {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--documento);
  border-radius: var(--r-card);
  -webkit-mask-image: linear-gradient(#000 0 0),
    linear-gradient(to bottom left, #000 50%, transparent 50%);
  mask-image: linear-gradient(#000 0 0),
    linear-gradient(to bottom left, #000 50%, transparent 50%);
  -webkit-mask-size: 100% 100%, var(--ear) var(--ear);
  mask-size: 100% 100%, var(--ear) var(--ear);
  -webkit-mask-position: 0 0, 100% 0;
  mask-position: 0 0, 100% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(var(--shadow));
}

/* The folded-back corner, drawn on the parent so the mask cannot eat it. */
.doc::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: var(--ear);
  height: var(--ear);
  background: linear-gradient(to top right, var(--bruma) 50%, transparent 50%);
  filter: drop-shadow(-1px 1px 0 rgba(14, 42, 50, 0.13));
  pointer-events: none;
}

/* The sheet slides forward out of the ink and onto the paper below it. */
.doc--trato {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: calc(-1 * var(--overlap));
  max-width: 46rem;
}

.terms {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.375rem);
}

.term {
  display: flex;
  gap: 0.875rem;
  align-items: baseline;
}

.term__n {
  flex: none;
  font-family: var(--mono);
  font-size: var(--t-fine);
  color: var(--clausula);
}

.term__t {
  position: relative;
  display: inline-block;
  font-weight: 500;
  font-size: clamp(1.0625rem, 2.6vw, 1.3125rem);
  line-height: 1.35;
}

.pen {
  position: absolute;
  left: 0;
  right: -0.1em;
  bottom: -0.18em;
  height: 0.24em;
  background: var(--pen-azul) center / 100% 100% no-repeat;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 250ms var(--ease);
}

.doc.is-in .term:nth-child(1) .pen { transition-delay: 240ms; }
.doc.is-in .term:nth-child(2) .pen { transition-delay: 400ms; }
.doc.is-in .term:nth-child(3) .pen { transition-delay: 560ms; }
.doc.is-in .pen { transform: scaleX(1); }

.doc__seal {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--bruma);
  font-family: var(--mono);
  font-size: var(--t-fine);
  line-height: 1.65;
  color: var(--tinta);
}

.doc__fact {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: var(--t-fine);
  line-height: 1.65;
  color: var(--clausula);
}

.doc__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.25rem;
  margin-top: clamp(1.5rem, 3.5vw, 2rem);
}

/* ------------------------------------------------- 3 · el proceso ----- */

.s-proceso {
  padding-top: calc(var(--sp-s) + var(--overlap));
  padding-bottom: var(--sp-s);
}

.steps {
  margin-top: clamp(2rem, 5vw, 3rem);
}

/* Each step carries its own rail segment, so the line grows step by step
   as they enter — no scroll handler, and no single tall observer target. */
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0 1rem;
  padding: 0 0 clamp(2rem, 5vw, 3rem) 1.75rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step__rail {
  position: absolute;
  left: 0;
  top: 0.6em;
  bottom: 0;
  width: 2px;
  background: var(--tinta);
  opacity: 0.28;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 520ms var(--ease);
}

.step__rail--last {
  bottom: auto;
  height: 2.75rem;
}

.step.is-in .step__rail {
  transform: scaleY(1);
}

.step__n {
  grid-column: 1;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--verde);
}

.step__body {
  grid-column: 2;
}

.step__t {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.step__d {
  margin-top: 0.4rem;
  max-width: 44ch;
  color: var(--tinta-suave);
}

.step__ill {
  grid-column: 2;
  display: block;
  width: clamp(64px, 18vw, 84px);
  margin-top: 1rem;
  color: var(--tinta);
  opacity: 0.85;
}

.step__ill svg {
  display: block;
  width: 100%;
  height: auto;
}

.steps__note {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-family: var(--mono);
  font-size: var(--t-fine);
  color: var(--clausula);
}

/* -------------------------------------------------- 4 · el registro --- */

.s-equipo {
  padding-bottom: var(--sp-l);
}

.register {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  border-top: 1px solid var(--tinta);
  max-width: 54rem;
}

.reg {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 1.5rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--bruma);
  transition: transform 200ms var(--ease);
}

.reg:last-child {
  border-bottom-color: var(--tinta);
}

.reg__name {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.125rem, 3.2vw, 1.4375rem);
  letter-spacing: -0.015em;
}

.reg__num {
  font-family: var(--mono);
  font-size: var(--t-fine);
  color: var(--clausula);
  white-space: nowrap;
}

.reg__pen {
  position: absolute;
  left: 0;
  right: -0.08em;
  bottom: -0.22em;
  height: 0.22em;
  background: var(--pen-azul) center / 100% 100% no-repeat;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 250ms var(--ease);
}

.reg:hover {
  transform: translateX(4px);
}

.reg:hover .reg__pen {
  transform: scaleX(1);
}

/* -------------------------------------------------------- 5 · FAQ ----- */

.s-faq {
  padding-bottom: var(--sp-l);
}

.faq {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  max-width: 54rem;
  border-top: 1px solid var(--bruma);
}

.q {
  border-bottom: 1px solid var(--bruma);
}

.q__s {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 56px;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.0625rem, 2.8vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.q__s::-webkit-details-marker {
  display: none;
}

.q__s > span {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms var(--ease);
}

.q__s:hover > span {
  text-decoration-color: var(--tinta);
}

.q__i {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  transition: transform 250ms var(--ease);
}

.q__i::before,
.q__i::after {
  content: "";
  position: absolute;
  background: var(--azul);
  border-radius: 1px;
}

.q__i::before {
  left: 0;
  right: 0;
  top: 6.5px;
  height: 2px;
}

.q__i::after {
  top: 0;
  bottom: 0;
  left: 6.5px;
  width: 2px;
}

.q[open] .q__i {
  transform: rotate(45deg);
}

.q__b {
  padding: 0 0 1.375rem;
  max-width: 58ch;
  color: var(--tinta-suave);
}

.q[open] .q__b {
  animation: qIn 260ms var(--ease) both;
}

@keyframes qIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------------------------------------------------- 6 · formulario -- */

.s-form {
  padding-bottom: var(--sp-l);
}

.doc--form {
  margin-top: clamp(2rem, 5vw, 3rem);
  max-width: 44rem;
}

.field {
  margin-bottom: clamp(1.25rem, 3vw, 1.625rem);
}

.field__l {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-fine);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clausula);
  transition: transform 180ms var(--ease), color 180ms var(--ease);
}

.field__opt {
  text-transform: none;
  letter-spacing: 0;
}

.field__w {
  position: relative;
  display: block;
}

/* Write-lines: the field is a rule on a page, not a box. */
.field__i {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 1.75rem 0.5rem 0;
  border: 0;
  border-bottom: 1.5px solid var(--tinta);
  border-radius: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tinta);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.field__i--area {
  min-height: 76px;
  resize: vertical;
}

/* Focus has to stay unmistakable even though there is no box: the rule
   doubles, tints and turns blue all at once. */
.field__i:focus {
  outline: none;
  border-bottom-color: var(--azul);
  border-bottom-width: 2px;
  background: rgba(39, 66, 200, 0.045);
  box-shadow: 0 3px 0 -1px rgba(39, 66, 200, 0.3);
}

.field:has(.field__i:focus) .field__l {
  transform: translateY(-4px);
  color: var(--azul);
}

.field__i:user-invalid,
.field__i[aria-invalid="true"] {
  border-bottom-color: var(--rojo);
  border-bottom-width: 2px;
}

.field__ok {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.6 6 12l7.5-8.6' fill='none' stroke='%233E7C6B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  pointer-events: none;
}

.field__i:user-valid ~ .field__ok {
  opacity: 1;
  transform: scale(1);
}

.field__m {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--clausula);
}

.field__e {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: var(--t-fine);
  line-height: 1.5;
  color: var(--rojo);
}

.field__e[hidden] {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3.5vw, 2rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--bruma);
}

.consent__box {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 1.5px solid var(--tinta);
  border-radius: 4px;
  background: var(--documento);
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.consent__box:checked {
  border-color: var(--azul);
  background: var(--azul)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4 6.4 11.8 13 4.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px 16px no-repeat;
}

.consent__l {
  padding: 0.15rem 0 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}

.rgpd {
  margin-top: 0.625rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--clausula);
}

.form__act {
  margin-top: clamp(1.375rem, 3vw, 1.75rem);
}

/* This page is about fine print, so its own fine print says the quiet
   part out loud: why the button is not clickable yet. */
.form__note {
  display: block;
  margin-top: 0.625rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--clausula);
}

.alert {
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--rojo);
  background: rgba(184, 64, 31, 0.06);
  font-family: var(--mono);
  font-size: var(--t-fine);
  line-height: 1.55;
  color: var(--rojo);
}

.alert[hidden],
.ok[hidden] {
  display: none;
}

.ok {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1.5px solid var(--verde);
  border-radius: var(--r-btn);
  background: rgba(62, 124, 107, 0.06);
}

.ok:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 4px;
}

.ok__stamp {
  font-family: var(--mono);
  font-size: var(--t-fine);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verde);
}

.ok__t {
  margin-top: 0.5rem;
  font-weight: 500;
}

.routes {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  padding-top: clamp(1.5rem, 3.5vw, 2rem);
  border-top: 1px solid var(--bruma);
}

.routes__t {
  font-family: var(--mono);
  font-size: var(--t-fine);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clausula);
}

.routes__b {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.875rem;
}

.routes__h {
  margin-top: 0.875rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--clausula);
}

.place {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3.5vw, 2rem);
  padding-top: clamp(1.25rem, 3vw, 1.5rem);
  border-top: 1px solid var(--bruma);
}

.place__img {
  flex: none;
  width: clamp(88px, 26vw, 132px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bruma);
}

.place__a {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--clausula);
}

/* -------------------------------------------------------------- footer */

.foot {
  padding-block: var(--sp-s);
  padding-bottom: calc(var(--sp-s) + 76px + env(safe-area-inset-bottom));
}

.mark--foot .mark__name {
  font-size: 1.375rem;
  color: var(--porcelana);
}

.mark--foot .mark__sub {
  color: var(--bruma);
}

/* Second and last return of the motif: the asterisk, struck out, small. */
.mark__ast {
  position: relative;
  align-self: center;
  margin-left: 0.15rem;
  font-family: var(--mono);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--bruma);
  text-decoration: none;
}

.mark__ast::after {
  content: "";
  position: absolute;
  left: -0.14em;
  right: -0.14em;
  top: 0.42em;
  height: 0.16em;
  background: var(--tachon-sm) center / 100% 100% no-repeat;
}

.foot__legal {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  display: grid;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--t-fine);
  line-height: 1.6;
  color: var(--bruma);
  max-width: 62ch;
}

/* ---------------------------------------------------------- sticky bar */

.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem var(--gut);
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--porcelana);
  border-top: 1.5px solid var(--tinta);
  transform: translateY(110%);
  transition: transform 300ms var(--ease);
}

.sticky.is-visible {
  transform: translateY(0);
}

.sticky__cta {
  flex: 1 1 auto;
  min-height: 52px;
  padding-inline: 1rem;
}

.sticky__cta::after {
  left: 1rem;
  right: 1rem;
}

.sticky__sq {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 52px;
  border: 1.5px solid var(--tinta);
  border-radius: var(--r-btn);
  color: var(--tinta);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.sticky__sq svg {
  width: 22px;
  height: 22px;
}

.sticky__sq:hover {
  background: var(--bruma);
  border-color: var(--azul);
  color: var(--tinta);
}

.sticky__sq:active {
  transform: scale(0.97);
}

/* --------------------------------------------------------- reveals ---- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 350ms var(--ease), transform 350ms var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------ desktop - */

@media (min-width: 720px) {
  .hero {
    padding-bottom: var(--sp-s);
  }

  .hero__glyph {
    font-size: 40vw;
    top: -0.3em;
    right: 0.02em;
  }

  .hero__h1 {
    max-width: 17ch;
  }

  .clauses {
    padding-block: clamp(2rem, 4vw, 3rem);
  }

  .clause {
    line-height: 2.4;
  }

  /* the register keeps the page's stagger: every other row steps in */
  .reg:nth-child(even) {
    padding-left: 2rem;
  }

  /* same rhythm in the process, so the two lists read as one document */
  .step:nth-child(even) {
    margin-left: 4rem;
  }

  .step {
    grid-template-columns: auto 1fr auto;
    gap: 0 1.5rem;
    padding-left: 2.25rem;
  }

  .step__body {
    grid-column: 2;
  }

  .step__ill {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
    width: clamp(76px, 8vw, 96px);
  }

  .routes__b {
    grid-template-columns: 1fr 1fr;
  }

  .sticky {
    justify-content: flex-end;
    padding-block: 0.625rem;
  }

  .sticky > * {
    flex: none;
  }

  .sticky__cta {
    min-width: 17rem;
  }
}

/* Short phones: the fold is the only thing that matters, so the hero
   tightens rather than pushing the CTA out of the first screen. */
@media (max-height: 720px) and (max-width: 620px) {
  .hero {
    padding-top: 0.75rem;
  }

  .hero__h1 {
    font-size: clamp(2rem, 7.4vw, 2.6rem);
  }

  .hero__sub {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero__lie {
    margin-block: 0.6rem 0.8rem;
  }

  .hero__act {
    margin-top: 1rem;
  }

  .hero__micro {
    margin-top: 0.625rem;
  }
}

/* ------------------------------------------------------ reduced motion - */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  /* Everything that would have been drawn is simply already drawn. */
  .lie::after,
  .clause__strike,
  .pen,
  .step__rail {
    transform: scaleX(1) scaleY(1);
  }

  .step__rail {
    transform: scaleY(1);
  }

  .lie__ast {
    opacity: 0;
    transform: translateY(0.18em) rotate(12deg);
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn--primary:hover {
    transform: none;
  }

  .reg:hover {
    transform: none;
  }
}
