/* ============================================================
   OffRisk — sistema visual del sitio
   Tokens espejados de la app (lib/theme/*): #ECECEC, #0066FD,
   Clash Display en headlines, JetBrains Mono en todo lo demás,
   radios stadium y sombras elípticas bajo los objetos flotantes.
   ============================================================ */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "Clash Display";
  src: url("assets/fonts/ClashDisplay-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #ececec;
  --surface: #ffffff;
  --ink: #111111;
  --ink-true: #000000;
  --muted: #6b6b6b;
  --soft: #949494;
  --brand: #0066fd;
  --brand-deep: #0052cc;
  --secondary: #dcdcdc;
  --danger: #c8332a;
  --line: rgba(17, 17, 17, 0.08);
  /* Los mockups vienen renderizados sobre #EEE: las tarjetas del grid usan ese
     mismo gris para que la imagen no tenga borde visible dentro de la tarjeta. */
  --tile: #eeeeee;
  --rule: rgba(17, 17, 17, 0.14);

  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.46));
  --glass-line: rgba(255, 255, 255, 0.9);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(17, 17, 17, 0.04),
    0 14px 34px -16px rgba(17, 17, 17, 0.28);

  --r-pill: 999px;
  --r-card: 28px;
  --r-sm: 16px;

  --font-display: "Clash Display", "Archivo Black", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 12vw, 156px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

/* Grano finísimo: quita el banding del gris plano y da textura de material. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  /* Clash Display ya viene apretada: con tracking negativo las palabras se
     pegan entre sí, así que el aire se devuelve en el espacio de palabra. */
  letter-spacing: -0.02em;
  word-spacing: 0.16em;
  line-height: 0.88;
  margin: 0;
}
h1,
h2,
h3 {
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(2rem, 8.6vw, 7rem);
}
h2 {
  font-size: clamp(2rem, 5.6vw, 4.4rem);
}
h3 {
  font-size: clamp(1.3rem, 5vw, 1.9rem);
}
p {
  margin: 0;
}
.lead {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.35vw, 1.06rem);
  letter-spacing: -0.02em;
  max-width: 46ch;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 600;
}
/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
section {
  scroll-margin-top: 110px;
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}

/* Sombra elíptica difusa bajo los objetos flotantes (tokens §3). */
.ellipse-shadow {
  width: 62%;
  height: 22px;
  margin: 22px auto 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.22);
  filter: blur(16px);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
.btn:active {
  transform: scale(0.96);
}
.btn--brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 1px rgba(0, 102, 253, 0.3), 0 12px 28px -10px rgba(0, 102, 253, 0.62);
}
.btn--brand:hover {
  background: var(--brand-deep);
  box-shadow: 0 1px 1px rgba(0, 102, 253, 0.3), 0 18px 34px -10px rgba(0, 102, 253, 0.72);
}
.btn--ghost {
  background: var(--secondary);
  color: var(--ink);
}
.btn--ghost:hover {
  background: #d2d2d2;
}
.btn--sm {
  height: 42px;
  padding: 0 20px;
  font-size: 13px;
}
.btn[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}
/* Sin URL de App Store el botón no lleva a ningún lado, pero sigue siendo el
   ancla azul del hero: perder el color dejaba la página sin punto focal. */
.btn--brand[aria-disabled="true"] {
  box-shadow: 0 1px 1px rgba(0, 102, 253, 0.22), 0 10px 24px -12px rgba(0, 102, 253, 0.5);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 760px;
  height: 60px;
  padding: 0 8px 0 22px;
  border-radius: var(--r-pill);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}
.nav.is-stuck .nav__inner {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 6px rgba(17, 17, 17, 0.06),
    0 20px 44px -20px rgba(17, 17, 17, 0.4);
}
.nav__logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav__logo img {
  width: 96px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

/* ---------- Hero ----------
   Solo titular y teléfono. El rastro del cursor (carteras y tarjetas) vive en
   una capa por ENCIMA del texto y del teléfono: las piezas se amontonan sobre
   el hero como en un collage. */
.hero {
  position: relative;
  /* La sombra del teléfono cae ~100px por debajo de su último píxel opaco y la
     sección termina justo ahí: con overflow:hidden el borde la cortaba en seco.
     Se recorta solo a lo ancho (el titular grande no debe ensanchar la página)
     y se deja salir a lo alto para que la sombra se apague sola sobre el gris.
     El sobrante no ensucia nada: el contenido del hero vive en .wrap (z-index 2)
     y la tira negra, con el mismo z-index pero posterior, se pinta encima. */
  overflow-x: clip;
  overflow-y: visible;
  padding: clamp(126px, 18vh, 176px) 0 0;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title {
  position: relative;
  z-index: 3;
  font-size: clamp(2rem, 9.2vw, 7.15rem);
  line-height: 0.84;
}
.hero__device {
  position: relative;
  z-index: 3;
  width: clamp(232px, 30vw, 372px);
  margin-top: clamp(30px, 4.6vw, 62px);
  /* La sombra escala con el teléfono: en fijo medía 46+56px por debajo de un
     mockup que en el celular baja a 232px de ancho, y llegaba tan cargada a la
     tira negra que parecía cortada. Los tres valores mantienen la proporción de
     escritorio (12.4% y 15% del ancho) y topan cuando topa el ancho. */
  filter: drop-shadow(0 clamp(29px, 3.7vw, 46px) clamp(35px, 4.5vw, 56px) rgba(17, 17, 17, 0.26));
}
.hero__device img {
  width: 100%;
  height: auto;
}

/* Capa del rastro. Las piezas las crea y recicla main.js. Va por encima del
   titular (z-index 3) y del teléfono (z-index 3). */
.hero__trail {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}
.trail__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  opacity: 0;
  user-select: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 20px 26px rgba(17, 17, 17, 0.22));
}

/* ---------- Tira en movimiento ----------
   Dos copias idénticas del contenido: al desplazar la pista un 50% el corte
   cae justo donde empieza la segunda, y el bucle no se nota. */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  /* El piso no baja de 80px: es el hueco que necesita la sombra del teléfono
     para apagarse antes de que la tira la tape (ver .hero__device). */
  margin-top: clamp(80px, 8vw, 104px);
  padding: clamp(14px, 1.6vw, 20px) 0;
  background: var(--ink);
  color: #fff;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker__set {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
  padding: 0 clamp(9px, 1.2vw, 15px);
}
.ticker b {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  word-spacing: 0.14em;
  white-space: nowrap;
}
.ticker i {
  font-style: normal;
  font-size: clamp(0.75rem, 1.6vw, 1.15rem);
  color: var(--brand);
}
@keyframes ticker {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- Nota del desarrollador ----------
   Retrato a la izquierda y el mensaje en primera persona a la derecha. El
   recorte de la foto ya trae su propio borde poligonal: nada de marcos ni
   máscaras, solo la sombra que la despega del gris. */
.note {
  padding: var(--section) 0 0;
}
.note__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
.note__photo {
  margin: 0;
  max-width: 420px;
  justify-self: center;
}
.note__photo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 38px 46px rgba(17, 17, 17, 0.24));
}
.note__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Más chico que el resto de titulares: la columna es angosta y a 5vw el
   "Primero la hice" se parte por su cuenta y se pierde el corte del verso. */
.note h2 {
  font-size: clamp(1.9rem, 4vw, 3.6rem);
}
.note h2 em {
  font-style: normal;
  color: var(--brand);
}
.note__body p {
  color: var(--muted);
  letter-spacing: -0.02em;
  max-width: 42ch;
}
.note__body strong {
  color: var(--ink);
  font-weight: 700;
}
/* Firma: el nombre en la tipografía de titulares y el cargo en versalitas,
   separados del texto por la misma línea fina que usan los rótulos. */
.note__sign {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.note__sign span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mascot {
  width: 74px;
  margin-bottom: 12px;
}

/* ---------- Producto: rejilla de piezas ----------
   Rejilla de 3 con dos piezas anchas: la asimetría es la que evita que se lea
   como una fila de tarjetas iguales. */
.work {
  padding: var(--section) 0 0;
}
.work__title {
  margin-bottom: clamp(34px, 4.6vw, 62px);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 22px);
}
.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tile--wide {
  grid-column: span 2;
}
.tile__art {
  position: relative;
  overflow: hidden;
  height: clamp(300px, 33vw, 452px);
  margin-bottom: 20px;
  border-radius: clamp(18px, 2vw, 26px);
  /* Los mockups vienen sobre este mismo gris: la imagen no tiene costura. */
  background: var(--tile);
}
.tile__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.tile:hover .tile__art img {
  transform: scale(1.035);
}
.tile--blue .tile__art {
  background: var(--brand);
}
/* El teléfono de "recurrentes" tiene fondo transparente: se apoya en el borde
   de abajo, como si asomara desde fuera de la tarjeta. */
.tile__art--bleed img {
  position: absolute;
  left: 50%;
  bottom: -3%;
  width: auto;
  height: 108%;
  object-fit: contain;
  transform: translateX(-50%);
}
.tile:hover .tile__art--bleed img {
  transform: translateX(-50%) scale(1.035);
}
.tile h3 {
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  margin-bottom: 9px;
}
.tile p {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted);
  letter-spacing: -0.02em;
}

/* ---------- Extras: lista tipo libro de cuentas ---------- */
.extras {
  padding: var(--section) 0 0;
}
.extras__title {
  margin-bottom: clamp(30px, 4vw, 52px);
}
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.ledger__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 250px) minmax(0, 1fr) 74px;
  gap: clamp(12px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(20px, 2.4vw, 30px) 14px;
  margin: 0 -14px;
  border-bottom: 1px solid var(--rule);
  border-radius: 14px;
  transition: background 0.3s var(--ease);
}
.ledger__row:hover {
  background: rgba(255, 255, 255, 0.6);
}
.ledger__num {
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
  letter-spacing: 0.04em;
}
.ledger__row h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.38rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  word-spacing: 0.14em;
  line-height: 1;
}
.ledger__row p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.tag {
  justify-self: end;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(0, 102, 253, 0.11);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tag--free {
  background: rgba(17, 17, 17, 0.07);
  color: var(--muted);
}

/* ---------- Precios ---------- */
.pricing {
  padding: var(--section) 0 0;
}
.pricing__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 22px 24px;
  margin-bottom: clamp(34px, 4.6vw, 58px);
}

/* Interruptor mensual/anual. Las dos opciones miden lo mismo (flex: 1) para
   que la píldora que se desliza sea siempre media anchura exacta. */
/* `margin-left: auto` y no `space-between`: así queda a la derecha tanto si
   cabe junto al titular como si baja a su propia línea. */
.cycle {
  position: relative;
  display: flex;
  width: min(100%, 320px);
  margin-left: auto;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(17, 17, 17, 0.07);
}
.cycle__pill {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--r-pill);
  background: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.14), 0 8px 18px -8px rgba(17, 17, 17, 0.5);
  transition: transform 0.42s var(--ease);
}
.cycle.is-year .cycle__pill {
  transform: translateX(100%);
}
.cycle__opt {
  position: relative;
  z-index: 1;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.cycle__opt.is-on {
  color: #fff;
}
.cycle__save {
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(0, 102, 253, 0.14);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cycle__opt.is-on .cycle__save {
  background: var(--brand);
  color: #fff;
}
.plan__equiv {
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.55);
}
.plan__equiv[hidden] {
  display: none;
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.2vw, 42px);
  border-radius: var(--r-card);
  background: var(--tile);
}
.plan--pro {
  background: var(--ink);
  color: #fff;
}
.plan__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  word-spacing: 0.2em;
}
.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan__price .fill {
  font-family: var(--font-mono);
  font-size: 0.36em;
  font-weight: 700;
}
.plan__period {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--soft);
}
.plan__blurb {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: -0.02em;
  min-height: 42px;
}
.plan--pro .plan__blurb {
  color: rgba(255, 255, 255, 0.6);
}
.plan__list {
  flex: 1;
  list-style: none;
  margin: 24px 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.plan--pro .plan__list {
  border-top-color: rgba(255, 255, 255, 0.16);
}
.plan__list li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.plan--pro .plan__list li::before {
  background: #fff;
}
.plan--pro .btn--brand {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.plan--pro .btn--brand:hover {
  background: #f0f0f0;
}
.pricing__foot {
  margin-top: 22px;
  font-size: 12px;
  color: var(--soft);
}

/* ---------- Preguntas ---------- */
.faq {
  padding: var(--section) 0 0;
}
.faq__inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq__list {
  border-top: 1px solid var(--rule);
}
.qa {
  border-bottom: 1px solid var(--rule);
}
.qa__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 0.2s var(--ease);
}
.qa__q:hover {
  color: var(--brand);
}
.qa__icon {
  margin-left: auto;
  flex: none;
  position: relative;
  width: 15px;
  height: 15px;
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.qa__icon::after {
  transform: translateY(-50%) rotate(90deg);
}
.qa.is-open .qa__icon::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.qa.is-open .qa__a {
  grid-template-rows: 1fr;
}
.qa__a > div {
  overflow: hidden;
}
.qa__a p {
  padding: 0 40px 24px 4px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: -0.02em;
}

/* ---------- Cierre ---------- */
.closer {
  padding: var(--section) 0 clamp(70px, 9vw, 112px);
  text-align: center;
}
.closer__card {
  border-radius: clamp(28px, 3.6vw, 44px);
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 8vw, 112px) var(--gutter);
}
.closer h2 {
  color: #fff;
  font-size: clamp(2rem, 5.6vw, 4.4rem);
}
.closer p {
  margin: 24px auto 0;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.02em;
}
.closer__cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.closer__note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.closer .btn--brand {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.closer .btn--brand:hover {
  background: #ececec;
}
.closer .btn[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Footer ---------- */
.footer {
  padding: 0 0 46px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 0.8fr);
  gap: 40px;
  padding-top: 46px;
  border-top: 1px solid var(--rule);
}
.footer__logo {
  width: 104px;
  margin-bottom: 16px;
}
.footer p {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: -0.02em;
  max-width: 34ch;
}
.footer h5 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 600;
  margin: 0 0 16px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer ul a {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}
.footer ul a:hover {
  color: var(--brand);
}
/* Marca gigante en contorno: cierra la página sin añadir otro bloque de texto.
   No es texto tipografiado sino el SVG del logo (index.html), así que el dibujo
   es el de la marca y no el que aproxime la fuente. Crece hasta llenar la
   columna y se detiene en los 857px que ocupaba el titular en escritorio: en el
   teléfono va de borde a borde del texto, que es lo que le devuelve el peso que
   tenía en pantalla grande (con un ancho atado a vw se quedaba a media caja). */
.footer__mark {
  display: block;
  width: min(100%, 857px);
  height: auto;
  margin: clamp(40px, 6vw, 78px) auto 0;
  /* El trazo sobresale media pluma del viewBox y el SVG lo recortaría. */
  overflow: visible;
}
.footer__mark path {
  /* Contorno limpio: el relleno se pinta DESPUÉS del trazo y tapa las líneas
     interiores de los contornos superpuestos (los palos y la barra de las ff).
     non-scaling-stroke mantiene la pluma en 1.4px pase lo que pase con la
     escala, igual que hacía -webkit-text-stroke. */
  fill: var(--bg);
  stroke: rgba(17, 17, 17, 0.17);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  paint-order: stroke fill;
}
@supports not (paint-order: stroke) {
  .footer__mark path {
    fill: rgba(17, 17, 17, 0.09);
    stroke: none;
  }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  margin-top: clamp(30px, 4vw, 46px);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  color: var(--soft);
}

/* ---------- Páginas legales ---------- */
.legal {
  padding: clamp(130px, 17vh, 180px) 0 0;
}
.legal__head {
  max-width: 720px;
  margin-bottom: clamp(34px, 4vw, 50px);
}
.legal__head h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
}
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
/* Pastilla de la fecha de actualización. Le faltaba su regla: como es un
   <span>, con solo `.glass` el cristal se pintaba sin radio y con el borde
   pegado al texto, porque los rellenos verticales no levantan una caja en
   línea. Con `inline-flex` vuelve a ser una pastilla de verdad. */
.fact {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.legal__doc {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(70px, 9vw, 110px);
}
.toc {
  position: sticky;
  top: 100px;
  border-radius: var(--r-card);
  padding: 22px 20px;
  /* Los documentos legales son largos: el índice nunca debe salirse de
     la pantalla, o los últimos apartados quedan fuera de alcance. */
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 17, 0.18) transparent;
}
.toc::-webkit-scrollbar {
  width: 6px;
}
.toc::-webkit-scrollbar-track {
  background: transparent;
}
.toc::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.16);
  border-radius: var(--r-pill);
}
.toc h5 {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 600;
  margin: 0 0 14px;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: -0.02em;
  line-height: 1.4;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.toc a::before {
  content: counter(toc);
  flex: none;
  width: 16px;
  color: var(--soft);
  font-size: 11px;
}
.toc a:hover,
.toc a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
}
.toc a.is-active::before {
  color: var(--brand);
}
/* ---------- El documento legal ----------
   Un texto largo se lee o no se lee, y lo que decide es la prosa. Dentro de la
   columna de lectura no hay tarjetas, cristal ni mayúsculas: solo párrafos con
   aire, un numeral por apartado y una línea que lo separa del anterior. */
.prose {
  counter-reset: sec;
  /* El renglón corto es lo que hace legible un texto largo: con la columna
     entera el ojo se pierde al volver al principio de la línea siguiente. */
  max-width: 78ch;
}
/* Preámbulo: qué es el documento y qué aceptas al usar la App. Va antes del
   primer apartado y no lleva numeral porque no es una cláusula, así que es un
   <div> y no una <section> (el contador solo avanza con las secciones). */
.prose__intro {
  padding-bottom: clamp(48px, 6vw, 74px);
}
.prose__intro p {
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: -0.01em;
  /* Un punto más de tinta que el cuerpo: se lee como la entrada del documento
     sin necesidad de una caja ni de un titular que la anuncie. */
  color: #3a3a3a;
}
.prose__intro p + p {
  margin-top: 18px;
}
.prose > section {
  counter-increment: sec;
  padding-bottom: clamp(48px, 6vw, 74px);
}
.prose > section:last-child {
  padding-bottom: 0;
}
/* Ritmo vertical único: todo lo que sigue a algo respira igual. Antes cada
   bloque traía su propio margen y los párrafos que iban detrás de un
   destacado se quedaban pegados. */
.prose > section > * + * {
  margin-top: 18px;
}
.prose > section > * + h3 {
  margin-top: 36px;
}
.prose > section > * + .callout {
  margin-top: 26px;
}
.prose h2 {
  display: flex;
  gap: 0.55em;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.16;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.prose h2::before {
  content: counter(sec) ".";
  flex: none;
  color: var(--soft);
}
.prose h3 {
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.prose p,
.prose li {
  font-size: 14.5px;
  line-height: 1.95;
  color: #4b4b4b;
  letter-spacing: -0.01em;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* En bloque, no en flex: los <li> llevan «<strong>etiqueta.</strong> texto» y
   con flex el texto suelto se convertía en otra columna que no alineaba. */
.prose ul li {
  position: relative;
  padding-left: 24px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  /* A media altura del primer renglón, que con interlineado 1.95 no cae
     donde caería con el interlineado normal. */
  top: 0.82em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.3);
}
/* Dato que el founder debe completar antes de publicar. Visible a propósito. */
.fill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: rgba(245, 166, 35, 0.16);
  border: 1px dashed rgba(200, 130, 0, 0.5);
  color: #8a5b00;
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Un aparte sigue siendo un párrafo: la marca es una línea al margen y la
   tinta más oscura, no una caja que corta la lectura. */
.callout {
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--rule);
}
.callout p {
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.callout p + p {
  margin-top: 16px;
}
/* Aviso que no se puede leer en diagonal: seguridad, riesgo y dinero. */
.callout--warn {
  border-left-color: rgba(200, 130, 0, 0.6);
}
/* Renuncias que la ley pide destacar de forma visible. En versales eran un
   muro que nadie leía: en redonda, con la tinta del titular, se leen. */
.prose .caps {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* ---------- Contacto ---------- */
.contact {
  position: relative;
  padding: clamp(130px, 17vh, 180px) 0 0;
}
.contact__head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.contact__head h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
}
.contact__col {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: clamp(70px, 9vw, 110px);
}

/* ---------- Formulario ---------- */
.form-card {
  border-radius: var(--r-card);
  padding: clamp(22px, 3.2vw, 38px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field--wide {
  grid-column: 1 / -1;
}
.field__label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 600;
}
.field__label .req {
  color: var(--brand);
}
.input,
.textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(17, 17, 17, 0.04);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
/* Una línea = píldora con alto explícito (igual que los campos de la app). */
.input {
  height: 52px;
  padding: 0 20px;
  border-radius: var(--r-pill);
}
.textarea {
  min-height: 168px;
  padding: 15px 20px;
  border-radius: 22px;
  line-height: 1.65;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--soft);
  font-weight: 400;
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 102, 253, 0.14);
}
/* El anillo azul ya es la señal de foco; el outline global sobraría encima. */
.input:focus-visible,
.textarea:focus-visible {
  outline: none;
}
.field__err {
  display: none;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--danger);
  letter-spacing: -0.01em;
}
.field.has-error .field__err {
  display: block;
}
.field.has-error .input,
.field.has-error .textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(200, 51, 42, 0.12);
}

.form-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.btn--full {
  width: 100%;
}
.btn.is-loading {
  pointer-events: none;
}
.spinner {
  display: none;
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .spinner {
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--soft);
  letter-spacing: -0.01em;
}
.form-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Fallo de red al enviar: el correo directo siempre queda como salida. */
.form-alert {
  display: none;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(200, 51, 42, 0.14), rgba(200, 51, 42, 0.06));
  border: 1px solid rgba(200, 51, 42, 0.28);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.form-alert.is-on {
  display: block;
}
.form-alert a {
  color: var(--danger);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Estado enviado: la tarjeta cambia de contenido, no de sitio. */
.sent {
  display: none;
  text-align: center;
  padding: clamp(16px, 3vw, 34px) 0 clamp(10px, 2vw, 20px);
}
.form-card.is-sent .form-body {
  display: none;
}
.form-card.is-sent .sent {
  display: block;
}
.sent__check {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 1px 1px rgba(0, 102, 253, 0.3), 0 16px 34px -12px rgba(0, 102, 253, 0.7);
}
.sent h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}
.sent p {
  margin: 18px auto 0;
  max-width: 40ch;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.sent__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- Página de gracias ---------- */
.thanks {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: clamp(130px, 17vh, 180px) 0 clamp(70px, 9vw, 110px);
}
.thanks .form-card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
.thanks .sent {
  display: block;
}

/* ---------- Animación de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile--wide {
    grid-column: span 2;
  }
  .tile__art {
    height: clamp(280px, 42vw, 430px);
  }
}
@media (max-width: 940px) {
  .note__inner,
  .faq__inner {
    grid-template-columns: 1fr;
  }
  /* Apilado, el retrato a tamaño completo se comería la pantalla. */
  .note__photo {
    max-width: 300px;
    justify-self: start;
  }
  /* Tres columnas y dos filas: el texto largo baja debajo del título y la
     etiqueta se queda arriba a la derecha (si no, el auto-placement la manda
     a una tercera fila y se sale por la izquierda). */
  .ledger__row {
    grid-template-columns: 38px minmax(0, 1fr) 70px;
    row-gap: 8px;
  }
  .ledger__row h4 {
    grid-area: 1 / 2;
  }
  .ledger__row .tag {
    grid-area: 1 / 3;
  }
  .ledger__row p {
    grid-area: 2 / 2 / 3 / -1;
  }
  .legal__doc {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__inner > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
  .nav__inner {
    max-width: 420px;
    padding-right: 6px;
  }
  /* Sin los enlaces, el hueco lo tiene que empujar el propio botón. */
  .nav__inner .btn--sm {
    margin-left: auto;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .tiles {
    grid-template-columns: 1fr;
  }
  .tile--wide {
    grid-column: auto;
  }
  .tile__art {
    height: clamp(300px, 82vw, 430px);
  }
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  /* Ya en el teléfono el retrato casi llena la columna: pegado a la izquierda
     el sobrante se acumula todo de un lado y se ve descuadrado. En tablet se
     queda a la izquierda, que ahí sí hay caja para el escalonado. */
  .note__photo {
    justify-self: center;
  }
}
@media (max-width: 520px) {
  .sent__cta .btn {
    width: 100%;
  }
  .closer__cta .btn {
    width: 100%;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ledger__row {
    grid-template-columns: 32px minmax(0, 1fr) 62px;
  }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  /* La tira dejaría de moverse a medio recorrido: mejor pararla en su sitio. */
  .ticker__track {
    animation: none;
  }
  .hero__trail {
    display: none;
  }
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
