/* Página de presentación de Divall. Colores, fuente y formas de la app (app/lib/theme/):
   tema Día por defecto y Noche con prefers-color-scheme. Sin dependencias externas. */

@font-face {
  font-family: "MPLUS1";
  src: url("/fonts/MPLUS1-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MPLUS1";
  src: url("/fonts/MPLUS1-Medium.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "MPLUS1";
  src: url("/fonts/MPLUS1-Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
}

/* ---------- Tokens (DivallColors.dia / .noche) ---------- */
:root {
  --bg: #ffffff;
  --raised: #ffffff;
  --tint: #f5f7fe;
  --ink: #15203d;
  --muted: #566079;
  --brand: #2f48d4;
  --brand-ink: #2f48d4;
  --on-brand: #ffffff;
  --brand-soft: #e3e8fb;
  --line: #c5ccf3;
  --verde: #7ed957;
  --verde-soft: #e6f7dc;
  --verde-tint: #f3fbee;
  --positive: #1b7a43;
  --navy: #0d1428;
  --bezel: #15203d;
  --shadow: 0 30px 60px -24px rgba(21, 32, 61, 0.35), 0 12px 24px -12px rgba(21, 32, 61, 0.18);
  --shadow-sm: 0 10px 30px -18px rgba(21, 32, 61, 0.35);

  /* Relleno de cada módulo y herramienta (moduleFill). */
  --f-cena: #ffccbe;
  --f-fiesta: #facde0;
  --f-vacaciones: #bee4ff;
  --f-familia: #e0d6ff;
  --f-regalos: #ffe4a3;
  --f-eventos: #c5eeb3;

  /* Aviso de borrador y huecos por completar (páginas legales). */

  --font: "MPLUS1", "Hiragino Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1428;
    --raised: #17213f;
    --tint: #111a33;
    --ink: #eef1f8;
    --muted: #a9b1c7;
    --brand: #7d90ff;
    --brand-ink: #9aa9ff;
    --on-brand: #0d1428;
    --brand-soft: #22306a;
    --line: #344075;
    --verde: #3ddc84;
    --verde-soft: #163a2c;
    --verde-tint: #10231f;
    --positive: #3ddc84;
    --navy: #17213f;
    --bezel: #2a3557;
    --shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
    --f-cena: #5d4652;
    --f-fiesta: #5d3f62;
    --f-vacaciones: #355479;
    --f-familia: #4a4c79;
    --f-regalos: #5d5343;
    --f-eventos: #225954;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
figure {
  margin: 0;
}
a {
  color: var(--brand-ink);
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap--narrow {
  max-width: 800px;
}
.brand {
  color: var(--brand-ink);
}

/* ---------- Botones (píldora, como en la app) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  font: 700 1rem/1 var(--font);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px var(--brand);
}
.btn--ghost {
  background: transparent;
  color: var(--brand-ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--brand);
  box-shadow: none;
}
.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

/* ---------- Encabezado ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.top::before {
  /* La franja de color de la app, arriba. */
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0 50%, var(--verde) 50% 100%);
}
.top.is-scrolled {
  border-bottom-color: var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo svg {
  width: 34px;
  height: 34px;
}
.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9688rem;
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
  background: var(--brand-soft);
}
.top__cta {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.top__cta .btn {
  white-space: nowrap;
}
@media (max-width: 400px) {
  .top__in {
    gap: 12px;
  }
  .top__cta .btn {
    padding: 0 14px;
  }
}
@media (max-width: 359px) {
  /* En los teléfonos más angostos queda solo el ícono del logo. */
  .top .logo span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .top__cta {
    margin-left: 8px;
  }
}

/* ---------- Portada ---------- */
.hero {
  overflow: clip;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px);
}
.hero__in {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__in {
    grid-template-columns: 1.05fr 1fr;
  }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.875rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--verde) 30%, transparent);
}
/* Lo que es Divall, en palabras de búsqueda, arriba del lema (dentro del H1). */
.hero__kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.75rem, 1.5rem + 5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.lead {
  margin-top: 20px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9688rem;
}
.checks li,
.plan__list li,
.feats li {
  position: relative;
  padding-left: 28px;
}
.checks li::before,
.plan__list li::before {
  /* Visto verde dibujado con bordes. */
  content: "";
  position: absolute;
  left: 4px;
  top: 0.32em;
  width: 7px;
  height: 12px;
  border: solid var(--positive);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.hero__art {
  display: flex;
  justify-content: center;
}
.hero__stage {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1.3;
}
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 10% 2% 6% 4%;
  border-radius: 48px;
  background: var(--brand-soft);
  transform: rotate(-4deg);
}

/* Teléfono: marco oscuro y pantalla redondeada. */
.phone {
  --w: 260px;
  width: var(--w);
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.155);
  background: var(--bezel);
  box-shadow: var(--shadow);
}
.phone img {
  width: 100%;
  border-radius: calc(var(--w) * 0.125);
}
.phone--back,
.phone--front {
  position: absolute;
  --w: 51%;
}
.phone--back {
  left: 5%;
  top: 2%;
  transform: rotate(-7deg);
}
.phone--front {
  right: 5%;
  top: 9%;
  transform: rotate(4deg);
}
/* El marco en porcentaje no sirve para el radio: se fija por tamaño. */
.hero .phone {
  padding: 2%;
  border-radius: 36px;
}
.hero .phone img {
  border-radius: 29px;
}
@media (max-width: 480px) {
  .hero .phone {
    border-radius: 26px;
  }
  .hero .phone img {
    border-radius: 20px;
  }
}

.float {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(64px, 15%, 84px);
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--fill);
  box-shadow: var(--shadow-sm);
}
.float img {
  width: 62%;
}
.float--a {
  left: -1%;
  bottom: 10%;
  transform: rotate(-8deg);
}
.float--b {
  right: -2%;
  top: 0;
  transform: rotate(9deg);
}

/* ---------- Secciones ---------- */
.section {
  padding-block: clamp(64px, 9vw, 120px);
}
.section--tint {
  background: var(--tint);
}
.head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.head h2,
.split h2 {
  font-size: clamp(2rem, 1.25rem + 2.6vw, 3rem);
  letter-spacing: -0.03em;
}
.head p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}
.kicker {
  margin-bottom: 12px;
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.9688rem;
}
.kicker--divme {
  color: var(--positive);
}

/* Las tarjetas de módulo: relleno del módulo y un círculo claro para la ilustración. */
.tile-cena,
.tile-ingreso,
.tile-presupuesto {
  --fill: var(--f-cena);
}
.tile-fiesta,
.tile-gasto,
.tile-listas {
  --fill: var(--f-fiesta);
}
.tile-vacaciones,
.tile-tarjetas,
.tile-mercado {
  --fill: var(--f-vacaciones);
}
.tile-familia,
.tile-roomies,
.tile-prestamos,
.tile-cuentas {
  --fill: var(--f-familia);
}
.tile-regalos,
.tile-fijos {
  --fill: var(--f-regalos);
}
.tile-eventos,
.tile-ahorro {
  --fill: var(--f-eventos);
}

/* ---------- DivMe y Divall ---------- */
.duo {
  display: grid;
  gap: 20px;
}
@media (min-width: 860px) {
  .duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.duo__card {
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--r-lg);
  border: 1.5px solid;
}
.duo__card--divme {
  background: var(--verde-tint);
  border-color: var(--verde);
}
.duo__card--divall {
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--bg));
  border-color: var(--line);
}
.duo__card h3 {
  margin-top: 14px;
  font-size: 1.75rem;
}
.duo__card > p:not(.tag) {
  margin-top: 8px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
}
.tag--divme {
  background: var(--verde);
  color: #15203d;
}
.tag--divall {
  background: var(--brand);
  color: var(--on-brand);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}
@media (min-width: 520px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Con las dos tarjetas lado a lado y poco ancho, tres fichas no caben: van de a dos. */
@media (min-width: 860px) and (max-width: 1099px) {
  .duo .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--fill);
  font-weight: 700;
  font-size: 0.9688rem;
}
.tile img {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--raised) 60%, transparent);
}
/* El botón de la app para pasar de DivMe a Divall: las dos partes en una sola app. */
.modo {
  display: inline-flex;
  margin-top: 18px;
  padding: 4px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--raised);
  font-weight: 700;
}
.modo span {
  padding: 6px 18px;
  border-radius: 999px;
}
.modo__divme {
  background: var(--verde);
  color: #15203d;
}
.modo__divall {
  background: var(--brand);
  color: var(--on-brand);
}
/* Lo que cada parte trae además de sus fichas. */
.extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.875rem;
}
.extras li {
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--raised) 75%, transparent);
  border: 1px solid var(--line);
}
.extras li:first-child {
  padding-inline: 0;
  border: 0;
  background: none;
  font-weight: 700;
}
/* Lo que une las dos partes: tu parte de una cuenta de Divall llega sola a DivMe. */
.puente {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--verde-tint) 60%, var(--brand-soft));
  font-weight: 700;
  text-align: center;
}
.puente svg {
  flex: none;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Pasos de la cena ---------- */
.steps {
  display: grid;
  gap: 48px;
  counter-reset: paso;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.phone--sm {
  --w: 240px;
}
.step__text {
  margin-top: 28px;
  max-width: 320px;
}
.step__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}
.step h3 {
  font-size: 1.3125rem;
}
.step p {
  margin-top: 8px;
  color: var(--muted);
}

/* ---------- Ocasiones ---------- */
.mods {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .mods {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .mods {
    grid-template-columns: repeat(3, 1fr);
  }
}
.mod {
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--raised);
}
.mod__art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--fill);
}
.mod__art img {
  width: 44px;
}
.mod h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
}
.mod p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

/* ---------- DivMe ---------- */
.section--divme {
  background: var(--verde-tint);
  overflow: clip;
}
.split {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.feats {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  color: var(--muted);
}
.feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--verde);
}
.feats strong {
  color: var(--ink);
}
.split__art {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  padding-block: 12px 48px;
}
.phone--md {
  --w: min(250px, 42vw);
}
.phone--tilt-l {
  transform: rotate(-3deg);
}
.phone--tilt-r {
  transform: rotate(3deg) translateY(40px);
}

/* ---------- La web ---------- */
.section--web {
  background: var(--navy);
  color: #eef1f8;
}
.section--web .head p:not(.kicker) {
  color: #a9b1c7;
}
.section--web .kicker {
  color: #9aa9ff;
}
.badge--inv {
  background: #22306a;
  color: #c9d2ff;
}
/* El marco cabe entero en la pantalla: su ancho se limita por el alto disponible y la forma de la
   captura (--ratio = ancho / alto; Familia es más alta). */
.browser {
  --ratio: 1.6;
  width: min(100%, 1040px, calc((100vh - 150px) * var(--ratio)));
  width: min(100%, 1040px, calc((100svh - 150px) * var(--ratio)));
  min-width: min(100%, 560px);
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.browser--tall {
  --ratio: 1.236;
}
.browser__bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: #e9ecf6;
}
.browser__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c5ccf3;
}
@media (prefers-color-scheme: dark) {
  .browser {
    background: #0d1428;
  }
  .browser__bar {
    background: #1f2b4d;
  }
  .browser__bar i {
    background: #344075;
  }
}
/* La captura ancha del histórico, sobre fondo claro. */
.browser--ancho {
  --ratio: 1.735;
}
.section--tint .browser {
  border-color: var(--line);
  box-shadow: var(--shadow);
}
/* Tres pasos cortos con su número. */
.pasos3 {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  counter-reset: paso3;
}
@media (min-width: 860px) {
  .pasos3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.pasos3 li {
  position: relative;
  padding: 20px 20px 20px 62px;
  border-radius: var(--r-md);
  background: var(--raised);
  color: var(--muted);
  counter-increment: paso3;
}
.pasos3 li::before {
  content: counter(paso3);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}
.pasos3 strong {
  color: var(--ink);
}

/* ---------- El widget ---------- */
/* La pantalla de inicio con los dos widgets, dibujados como en ios/DivallWidget: pestañas arriba
   y botones con el relleno y la ilustración de cada herramienta. Sin montos, como el de verdad. */
.inicio {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: clamp(12px, 4cqi, 18px);
  width: min(100%, 420px);
  padding: clamp(16px, 5cqi, 24px);
  border-radius: 40px;
  background: linear-gradient(160deg, #8fa0ff 0%, #2f48d4 55%, #1b2a8a 100%);
  box-shadow: var(--shadow);
}
.wdg {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: 6px;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 22px;
  background: var(--raised);
  color: var(--ink);
  font-size: clamp(0.75rem, 3.6cqi, 0.9375rem);
  font-weight: 700;
  box-shadow: 0 10px 24px -14px rgba(13, 20, 40, 0.6);
}
.wdg--ancho {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
  aspect-ratio: 2.1;
}
.wdg__tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}
.wdg__tabs b {
  flex: 1;
  display: grid;
  place-items: center;
  height: 26px;
  border-radius: 999px;
  color: var(--muted);
}
.wdg__tabs b.on {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.wdg__tabs svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.wdg__btn {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 8px;
  border-radius: 14px;
  background: var(--fill);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
}
.wdg__btn img {
  flex: none;
  width: clamp(20px, 7cqi, 28px);
  height: clamp(20px, 7cqi, 28px);
}
.wdg__btn > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wdg__btn small {
  display: block;
  color: var(--muted);
  font-size: 0.75em;
  font-weight: 400;
}
.wdg__btn--nueva {
  background: var(--brand-soft);
}
.wdg__btn--nueva i {
  flex: none;
  color: var(--brand-ink);
  font-size: 1.3em;
  font-style: normal;
  line-height: 1;
}
.app-ico {
  aspect-ratio: 1;
  border-radius: 23%;
  background: rgba(255, 255, 255, 0.28);
}
.app-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Confianza ---------- */
.trust {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}
.trust li {
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--tint);
}
.trust svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--brand-soft);
  fill: none;
  stroke: var(--brand-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust h3 {
  margin-top: 16px;
  font-size: 1.125rem;
}
.trust p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Planes ---------- */
.period {
  display: flex;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raised);
}
.period[hidden] {
  display: none;
}
.period button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 0.9375rem/1 var(--font);
  cursor: pointer;
}
.period button[aria-checked="true"] {
  background: var(--brand);
  color: var(--on-brand);
}
.save {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--verde);
  color: #15203d;
  font-size: 0.75rem;
}
.plans {
  display: grid;
  gap: 20px;
  max-width: 880px;
  margin-inline: auto;
}
@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--raised);
}
.plan--pro {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-sm);
}
.plan__flag {
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--verde);
  color: #15203d;
  font-weight: 700;
  font-size: 0.8125rem;
}
.plan h3 {
  font-size: 1.375rem;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
}
.price__n {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price__per {
  color: var(--muted);
  font-weight: 500;
}
.price__note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.plan__list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.plan__list li.no {
  color: var(--muted);
}
.plan__list li.no::before {
  top: 0.75em;
  left: 3px;
  width: 12px;
  height: 0;
  border-width: 2px 0 0;
  border-color: var(--muted);
  transform: none;
}
.fine {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* ---------- Preguntas ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--brand-ink);
  transition: transform 0.2s ease;
}
.faq summary::before {
  transform: rotate(90deg);
}
.faq details[open] summary::before {
  transform: rotate(0deg);
}
.faq details p {
  padding: 0 44px 22px 0;
  color: var(--muted);
}

/* ---------- Cierre y pie ---------- */
.closing {
  background: var(--brand);
  color: #ffffff;
  text-align: center;
  padding-block: clamp(64px, 8vw, 104px);
}
@media (prefers-color-scheme: dark) {
  .closing {
    background: #22306a;
  }
}
.closing__in {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing__logo {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}
.closing h2 {
  font-size: clamp(2rem, 1.25rem + 3vw, 3.25rem);
  letter-spacing: -0.03em;
}
.closing p {
  margin-top: 12px;
  font-size: 1.125rem;
  opacity: 0.9;
}
.foot {
  padding-block: 28px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.foot__in nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
/* El pie común (tools/build.py): marca y tres columnas de enlaces. */
.foot:has(.foot__cols) {
  padding-block: clamp(48px, 6vw, 72px) 36px;
  border-top: 1px solid var(--line);
}
.foot__cols {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.foot__brand {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  align-content: start;
}
.foot__brand .logo {
  margin-bottom: 4px;
  color: var(--ink);
}
@media (min-width: 900px) {
  .foot__cols {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
  .foot__brand {
    grid-column: auto;
  }
}
.foot__cols h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.9375rem;
  letter-spacing: 0;
}
.foot__cols ul {
  display: grid;
  gap: 10px;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover,
.foot a[aria-current="page"] {
  color: var(--ink);
}
/* "Cookies": vuelve a mostrar el aviso (m.js). Se ve como un enlace más del pie. */
.foot__btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.foot__btn:hover {
  color: var(--ink);
}

/* ---------- 404 ---------- */
.lost {
  font-size: clamp(2rem, 1.25rem + 2.6vw, 3rem);
  letter-spacing: -0.03em;
}
.lost__cta {
  margin-top: 32px;
}

/* ---------- Privacidad, términos y borrar la cuenta ---------- */
.legal {
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px);
}
.legal__head h1 {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.25rem);
  letter-spacing: -0.03em;
}
.legal__meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.legal__lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.125rem;
}
/* Las legales en inglés son traducción: prevalece la versión en español. */
.legal__note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--tint);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* En pocas palabras. */
.summary {
  margin-top: 36px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--verde);
  background: var(--verde-tint);
}
.summary h2 {
  font-size: 1.25rem;
}
.summary ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.summary li {
  position: relative;
  padding-left: 28px;
}
.summary li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.32em;
  width: 7px;
  height: 12px;
  border: solid var(--positive);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Contenido. */
.toc {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--tint);
}
.toc h2 {
  font-size: 1rem;
  color: var(--muted);
}
.toc ol {
  display: grid;
  gap: 6px 24px;
  margin-top: 12px;
  counter-reset: toc;
}
@media (min-width: 640px) {
  .toc ol {
    grid-template-columns: 1fr 1fr;
  }
}
.toc li {
  counter-increment: toc;
}
.toc li::before {
  content: counter(toc) ".";
  display: inline-block;
  min-width: 2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.toc a {
  font-weight: 500;
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}

.prose h2 {
  margin-top: 56px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}
.prose h3 {
  margin-top: 32px;
  font-size: 1.1875rem;
  scroll-margin-top: 96px;
}
.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin-top: 14px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.prose li + li {
  margin-top: 8px;
}
.prose ol.pasos {
  display: grid;
  gap: 14px;
  counter-reset: paso;
}
.prose ol.pasos li {
  position: relative;
  min-height: 32px;
  margin: 0;
  padding: 3px 0 0 46px;
  counter-increment: paso;
}
.prose ol.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 0.9375rem;
}
.prose .ui {
  font-weight: 700;
  white-space: nowrap;
}

/* Filas de dos columnas que se apilan en el celular. */
.rows {
  border-top: 1px solid var(--line);
}
.rows > div {
  display: grid;
  gap: 2px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .rows > div {
    grid-template-columns: 230px 1fr;
  }
}
.rows dt {
  font-weight: 700;
}
.rows dd {
  margin: 0;
  color: var(--muted);
}

/* Recuadro para lo que hay que saber antes de actuar. */
.box {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--raised);
}
.box h3 {
  margin-top: 0;
}
.box--brand {
  border: 2px solid var(--brand);
}
.legal__more {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.prose .box > :first-child {
  margin-top: 0;
}
.prose .box h2 {
  font-size: 1.375rem;
}

/* ---------- Entrar ---------- */
.cta--center {
  justify-content: center;
}

/* ---------- Aviso de cookies (m.js, solo donde la ley pide permiso) ---------- */
.consent {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  width: min(680px, calc(100% - 32px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--raised);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}
.consent p {
  flex: 1 1 280px;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.consent__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* ---------- Páginas de contenido (tools/build.py): ocasiones, precios, calculadoras y guías ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.crumbs [aria-current] {
  color: var(--ink);
  font-weight: 500;
}
.crumbs__sep {
  opacity: 0.6;
}

.page-hero {
  overflow: clip;
  padding-block: clamp(24px, 4vw, 40px) clamp(56px, 8vw, 104px);
}
.page-hero__in {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
  margin-top: clamp(28px, 5vw, 56px);
}
@media (min-width: 960px) {
  .page-hero__in {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.page-hero--text {
  padding-bottom: clamp(40px, 5vw, 64px);
}
.page-hero--text .page-hero__in {
  grid-template-columns: minmax(0, 1fr);
}
.page-hero--text .page-hero__text {
  max-width: 820px;
}
.page-hero h1,
.article__head h1 {
  font-size: clamp(2.25rem, 1.35rem + 3.4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.page-hero__phone {
  position: relative;
  isolation: isolate;
  justify-self: center;
  --w: min(300px, 70vw);
}
.page-hero__phone::before {
  /* La mancha de color detrás del teléfono, como en la portada. */
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -18% 4% -18%;
  border-radius: 48px;
  background: var(--fill, var(--brand-soft));
  transform: rotate(-5deg);
}
.page-hero__phone.tile-divme::before {
  background: var(--verde-soft);
}
.phone--center {
  margin: 40px auto 0;
}
.split__more {
  margin-top: 28px;
  font-weight: 700;
}
.steps + .fine {
  margin-top: 40px;
}

.btn--light {
  background: #ffffff;
  border-color: #ffffff;
  color: #2f48d4;
}
.btn--light:hover {
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.5);
}

/* Filas de texto y captura que se alternan. */
@media (min-width: 960px) {
  .split--flip .split__art {
    order: -1;
  }
}
.split__text h2 + p:not(.lead),
.split__text p + p {
  margin-top: 16px;
  color: var(--muted);
}

/* Tarjetas cortas: ventajas, ejemplos y datos. */
.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 980px) {
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.card {
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--raised);
}
.section--tint .card {
  border-color: transparent;
}
.card h3 {
  font-size: 1.1875rem;
}
.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

/* Una ocasión que lleva a su página: toda la tarjeta es el enlace. */
.mod {
  position: relative;
}
.mod__link {
  color: inherit;
  text-decoration: none;
}
.mod__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
}
.mod__link:focus-visible {
  outline: none;
}
.mod__link:focus-visible::after {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.mod:has(.mod__link) {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.mod:has(.mod__link):hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.mod__more {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Ejemplo con números (ocasiones y guías). */
.example {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--r-md);
  background: var(--tint);
}
.section--tint .example {
  background: var(--raised);
}
.example h3 {
  margin-top: 0;
  font-size: 1.125rem;
}
.example p {
  margin-top: 10px;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
.prose table,
.example table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.9688rem;
}
.prose th,
.prose td,
.example th,
.example td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th,
.example th {
  color: var(--muted);
  font-weight: 500;
}
.prose .n,
.example .n {
  text-align: right;
  white-space: nowrap;
}
.prose tfoot td,
.example tfoot td {
  font-weight: 700;
  border-bottom: 0;
}

/* ---------- Comparativa: Divall frente a otras apps ---------- */
.compare {
  margin-top: 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--raised);
}
.compare table {
  width: 100%;
  min-width: 720px;
  /* "separate": con "collapse" la columna fija deja ver un borde del contenido al deslizar. */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9688rem;
}
.compare th,
.compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare thead th {
  font-size: 0.9375rem;
  vertical-align: bottom;
}
.compare thead th small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8125rem;
}
/* La primera columna se queda fija al deslizar la tabla en el teléfono. */
.compare tbody th,
.compare thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 170px;
  background: var(--raised);
  font-weight: 500;
  /* A la izquierda tapa lo que asoma al deslizar; a la derecha, la línea que la separa. */
  box-shadow: -4px 0 0 var(--raised), 1px 0 0 var(--line);
}
@media (max-width: 639px) {
  .compare table {
    min-width: 640px;
    font-size: 0.875rem;
  }
  .compare th,
  .compare td {
    padding: 10px;
  }
  .compare tbody th,
  .compare thead th:first-child {
    min-width: 0;
    width: 120px;
    max-width: 120px;
  }
}
.compare .us {
  background: color-mix(in srgb, var(--brand-soft) 60%, var(--raised));
  font-weight: 700;
}
.compare .group > * {
  color: var(--brand-ink);
  font-weight: 700;
  background: var(--tint);
}
.compare .group > th {
  box-shadow: -4px 0 0 var(--tint), 1px 0 0 var(--line);
}
.compare .yes::before {
  content: "✓ ";
  color: var(--positive);
  font-weight: 700;
}
.compare .no {
  color: var(--muted);
}
.sources {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}
.sources a {
  color: var(--muted);
}

/* ---------- Calculadoras ---------- */
.calc {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .calc {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}
.calc__form,
.calc__out {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--raised);
}
.calc__out {
  border: 0;
  background: var(--brand-soft);
  container-type: inline-size;
}
@media (min-width: 900px) {
  .calc__out {
    position: sticky;
    top: 96px;
  }
}
.calc__form {
  display: grid;
  gap: 22px;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field > label,
.field > legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9688rem;
}
.field > label {
  margin-bottom: 0;
}
.field__hint {
  color: var(--muted);
  font-size: 0.9375rem;
}
.input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 500 1.0625rem/1 var(--font);
  font-variant-numeric: tabular-nums;
}
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
select.input {
  padding: 0 4px 0 12px;
}
/* Gastos hormiga: la lista necesita más ancho que el resultado. */
@media (min-width: 900px) {
  .calc:has(.ants) {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  }
}
.fields-2 {
  display: grid;
  gap: 16px;
}
@media (min-width: 520px) {
  .fields-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-weight: 700;
  font-size: 0.9688rem;
}
.chip input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepper .input {
  max-width: 110px;
  text-align: center;
}
.stepper button,
.calc__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--brand-ink);
  font: 700 1.25rem/1 var(--font);
  cursor: pointer;
}
.stepper button:hover,
.calc__icon:hover {
  border-color: var(--brand);
}
.calc__out h3 {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0;
}
.field[hidden] {
  display: none;
}
.calc__big {
  margin-top: 6px;
  color: var(--brand-ink);
  /* Según el ancho de la tarjeta, para que "US$240,50" quepa en una línea. */
  font-size: clamp(1.75rem, 15cqi, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calc__lines {
  margin: 20px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.calc__lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  font-variant-numeric: tabular-nums;
}
.calc__lines dt {
  color: var(--muted);
}
.calc__lines dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.calc__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.calc__out .btn {
  margin-top: 20px;
}
/* Gastos hormiga: una fila por gasto. */
.ants {
  display: grid;
  gap: 12px;
}
.ant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--tint);
}
/* En el teléfono: el nombre arriba, valor y veces lado a lado, y cada cuánto abajo. */
.ant__fields,
.ants__head {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.ant__fields > [name="nombre"],
.ant__fields > [name="cada"] {
  grid-column: 1 / -1;
}
.ants__head {
  display: none;
}
@media (min-width: 640px) {
  .ant__fields,
  .ants__head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.5fr) minmax(0, 1.35fr);
  }
  .ant__fields > [name="nombre"],
  .ant__fields > [name="cada"] {
    grid-column: auto;
  }
  .ants__head {
    display: grid;
    padding: 0 64px 0 12px;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
  }
}
.ant .calc__icon {
  align-self: center;
}
.calc__add {
  justify-self: start;
}
.noscript {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--tint);
  color: var(--muted);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Guías ---------- */
.article__head {
  padding-block: clamp(24px, 4vw, 40px) 8px;
}
.article__head .kicker {
  margin-top: clamp(28px, 5vw, 48px);
}
.article__meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.article__head .lead {
  max-width: none;
}
.article__body {
  padding-bottom: clamp(56px, 8vw, 96px);
}
/* "En resumen" dentro de una guía: el mismo recuadro de las legales, sin los estilos de .prose. */
.prose .summary {
  margin-top: 32px;
}
.prose .summary h2 {
  margin-top: 0;
  font-size: 1.25rem;
}
.prose .summary ul {
  margin-top: 16px;
}
.prose .summary li {
  padding-left: 28px;
}
.prose .summary li::before {
  left: 4px;
  top: 0.32em;
  width: 7px;
  height: 12px;
  border-radius: 0;
  background: none;
  border: solid var(--positive);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.prose .cta {
  margin-top: 24px;
}
.prose .faq {
  margin-top: 20px;
}
.guide-list {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.guide-card a {
  display: grid;
  align-content: start;
  gap: 8px;
  height: 100%;
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--raised);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.guide-card a:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.guide-card .kicker {
  margin: 0;
  font-size: 0.875rem;
}
.guide-card__title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.guide-card__lead {
  color: var(--muted);
  font-size: 1rem;
}
.closing .cta {
  margin-top: 28px;
}
