/* ==========================================================================
   Amorny · amornyplanet.com
   Sistema visual tomado de la app (src/theme/tokens.ts): fondo luz #fbfdf4,
   teal #1fa3a3, púrpura #7b5c9a, naranja #ffa552, fuente Carlito, burbujas
   iridiscentes y "vibraciones" (RippleBackground). Colores en OKLCH.
   ========================================================================== */

/* ── Fuentes (alojadas aquí: sin peticiones a terceros) ─────────────────── */
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Respaldo con métricas de Carlito para evitar saltos al cargar la fuente */
@font-face {
  font-family: "Carlito Fallback";
  src: local("Calibri"), local("Arial"), local("Helvetica Neue");
  size-adjust: 92%;
  ascent-override: 103%;
  descent-override: 29%;
  line-gap-override: 0%;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  --luz: oklch(99% 0.012 116.8);
  --luz-mint: oklch(97.1% 0.01 140.5);
  --surface: oklch(100% 0 0);
  --teal-wash: oklch(96% 0.014 196.9);
  --purple-wash: oklch(93.9% 0.024 307);
  --sun-wash: oklch(97.3% 0.018 64.9);

  --ink: oklch(32.4% 0.038 195.5);
  --ink-2: oklch(43.9% 0.032 193.1);
  --ink-3: oklch(50.2% 0.033 193.4);
  --line: oklch(32.4% 0.038 195.5 / 0.12);
  --line-strong: oklch(32.4% 0.038 195.5 / 0.22);

  --teal: oklch(65.1% 0.105 194.9);
  --teal-ink: oklch(47.9% 0.079 194.8);
  --teal-top: oklch(55.4% 0.092 194.8);
  --teal-bottom: oklch(45.5% 0.092 230.8);
  --purple: oklch(53.2% 0.1 306.3);
  --purple-deep: oklch(42.5% 0.087 305.6);
  --magenta: oklch(54.5% 0.142 329.7);
  --sun: oklch(79.7% 0.144 60.8);
  --sun-ink: oklch(50.1% 0.128 52.5);
  --aqua: oklch(79.1% 0.132 183.8);
  --peach: oklch(82.1% 0.12 57.3);
  --danger-top: oklch(55.1% 0.156 45.5);
  --danger-bottom: oklch(45.9% 0.129 45.9);
  --error: oklch(50.1% 0.178 28.7);

  --cosmos: oklch(24.8% 0.049 253.4);
  --cosmos-violet: oklch(26% 0.083 298.5);
  --on-dark: oklch(96.3% 0.014 299.8);
  --on-dark-2: oklch(82.9% 0.042 296.2);

  --font-display: "Quicksand", ui-rounded, "Carlito", "Carlito Fallback", system-ui, sans-serif;
  --font-text: "Carlito", Calibri, "Carlito Fallback", system-ui, sans-serif;

  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lead: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  --text-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-h2: clamp(2.1rem, 1.45rem + 2.6vw, 3.5rem);
  --text-h1: clamp(2.6rem, 1.55rem + 4.2vw, 5.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-section: clamp(4.5rem, 2.5rem + 7vw, 9rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 2.5rem);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-card: 0 4px 12px oklch(32.4% 0.038 195.5 / 0.1);
  --shadow-soft: 0 18px 50px -20px oklch(32.4% 0.038 195.5 / 0.28);
  --shadow-fab: 0 6px 14px oklch(65.1% 0.105 194.9 / 0.28);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.5rem;

  --z-raised: 1;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-skip: 500;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--luz);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Los halos decorativos sobresalen de sus contenedores: se recortan aquí (no en
   body, cuyo overflow se propaga al viewport). */
main {
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--teal-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms var(--ease-out);
}

a:hover {
  color: var(--purple-deep);
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: oklch(79.1% 0.132 183.8 / 0.45);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--on-dark);
}

/* ── Cabecera ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-h);
  /* Fondo opaco siempre: el contenido que pasa por debajo nunca se transparenta
     sobre el logo ni sobre el menú, en ningún ancho ni en capturas largas. */
  background: var(--luz);
  transition: box-shadow 240ms var(--ease-out);
}

.site-header.is-scrolled,
.site-header--solid {
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  padding: 0.25rem 0;
  text-decoration: none;
}

.brand__mark {
  width: 2.5rem;
  height: auto;
}

.brand__word {
  width: 7.25rem;
  height: auto;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.6rem 0.1rem;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

@media (max-width: 56rem) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 30rem) {
  :root {
    --header-h: 4rem;
  }

  .brand__mark {
    width: 2.15rem;
  }

  .brand__word {
    width: 6.25rem;
  }
}

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn {
  --btn-shadow: var(--shadow-fab);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-text);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), box-shadow 220ms var(--ease-out), filter 220ms var(--ease-out),
    opacity 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

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

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--teal-top), var(--teal-bottom));
  box-shadow: var(--btn-shadow);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px oklch(55.4% 0.092 194.8 / 0.34);
}

.btn--danger {
  color: #fff;
  background: linear-gradient(180deg, var(--danger-top), var(--danger-bottom));
  box-shadow: 0 6px 14px oklch(55.1% 0.156 45.5 / 0.26);
}

.btn--danger:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px oklch(55.1% 0.156 45.5 / 0.32);
}

.btn--quiet {
  color: var(--ink);
  background: oklch(100% 0 0 / 0.6);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--quiet:hover {
  color: var(--ink);
  background: var(--surface);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-size: 1.0625rem;
  border-radius: 14px;
}

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

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  border: 2.5px solid oklch(100% 0 0 / 0.35);
  border-top-color: #fff;
  animation: spin 700ms linear infinite;
}

.link-button {
  padding: 0.5rem 0.25rem;
  border: 0;
  background: none;
  color: var(--teal-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.link-button:hover {
  color: var(--purple-deep);
}

.link-button[disabled] {
  color: var(--ink-3);
  font-weight: 400;
  text-decoration: none;
  cursor: default;
}

/* ── Insignias de tiendas ───────────────────────────────────────────────── */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 3rem;
  border-radius: 9px;
  transition: transform 200ms var(--ease-out), filter 200ms var(--ease-out);
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 14px oklch(32.4% 0.038 195.5 / 0.22));
}

.store-badge img {
  height: 3rem;
  width: auto;
}

/* El PNG oficial de Google Play trae margen transparente: se compensa */
.store-badge--play img {
  height: 3.9rem;
  margin-block: -0.45rem;
}

/* ── Portada ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: min(100svh, 62rem);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 2.5rem) 0 clamp(5rem, 3rem + 6vw, 8rem);
  overflow: hidden;
  border-bottom-left-radius: 50% clamp(2.5rem, 6vw, 6rem);
  border-bottom-right-radius: 50% clamp(2.5rem, 6vw, 6rem);
  text-align: center;
  background: var(--luz);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0.95;
}

.hero__ripples {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 46% at 50% 48%, oklch(99% 0.012 116.8 / 0.62), oklch(99% 0.012 116.8 / 0) 72%),
    linear-gradient(180deg, oklch(99% 0.012 116.8 / 0.55), oklch(99% 0.012 116.8 / 0) 22%);
}

.hero__content {
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.6rem);
}

.hero__logo {
  width: clamp(6.25rem, 4.5rem + 5vw, 9rem);
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 18px 30px oklch(42.5% 0.087 305.6 / 0.22));
  animation: breathe 6.5s ease-in-out infinite;
}

.hero__title {
  max-width: 13ch;
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero__title em {
  font-style: normal;
  /* "amor" en negrita (lo pidió el cliente). El resto del titular va en 600 y
     Quicksand no pasa de 700, así que el peso solo apenas se nota: el trazo
     del mismo color engorda la letra lo que le falta. */
  font-weight: 700;
  -webkit-text-stroke: 0.03em currentColor;
  color: var(--purple);
}

.hero__lead {
  max-width: 36ch;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

.hero__lead strong {
  color: var(--ink);
}

.hero .store-badges {
  margin-top: 0.6rem;
}

.hero__note {
  font-size: 1.0625rem;
  color: var(--ink-2);
}

/* ── Secciones comunes ──────────────────────────────────────────────────── */
.section {
  position: relative;
  padding-block: var(--space-section);
}

.section-intro {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
}

.section-intro--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-intro h2 {
  font-size: var(--text-h2);
}

.section-intro p {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

/* ── Tres direcciones ───────────────────────────────────────────────────── */
.directions__list {
  display: grid;
  gap: clamp(4rem, 2rem + 7vw, 8rem);
  margin-top: clamp(3.5rem, 2rem + 5vw, 6rem);
}

.direction {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5.5rem);
}

@media (min-width: 52rem) {
  .direction {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .direction:nth-child(even) .direction__visual {
    order: 2;
  }
}

.direction__visual {
  position: relative;
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 1 / 0.92;
  margin-inline: auto;
}

.direction__visual::before {
  content: "";
  position: absolute;
  inset: -6% -10%;
  z-index: -1;
  background: url("../img/bg-ripple.webp") center / cover no-repeat;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

.orb {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  width: var(--orb-size, 40%);
  animation: float 9s ease-in-out infinite;
}

.orb img {
  width: 100%;
  filter: drop-shadow(0 16px 26px oklch(42.5% 0.087 305.6 / 0.18));
}

.orb figcaption {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
  color: var(--ink);
  white-space: nowrap;
}

.orb--main {
  --orb-size: 54%;
  left: 23%;
  top: 4%;
}

.orb--a {
  --orb-size: 31%;
  left: 2%;
  top: 56%;
  animation-delay: -3s;
  animation-duration: 10s;
}

.orb--b {
  --orb-size: 29%;
  right: 1%;
  top: 50%;
  animation-delay: -6s;
  animation-duration: 11s;
}

/* Cuerpo, Mente y Emociones son tres caras de Mi Ser, ninguna manda sobre las
   otras: en esa tarjeta las tres burbujas miden lo mismo y se reparten en
   triangulo. Las otras dos tarjetas si tienen una burbuja principal. */
.direction__visual--triada .orb {
  --orb-size: 35%;
}

.direction__visual--triada .orb--main {
  left: 32.5%;
  /* Arriba queda hueco para los 12px que sube la animacion float. */
  top: 2%;
}

.direction__visual--triada .orb--a {
  left: 3%;
  top: 50%;
}

.direction__visual--triada .orb--b {
  right: 3%;
  top: 50%;
}

.direction__text {
  display: grid;
  gap: var(--space-4);
  max-width: 34rem;
}

.direction__name {
  font-size: var(--text-h2);
  color: var(--purple);
}

.direction__claim {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.direction__body {
  color: var(--ink-2);
}

.feature-list {
  display: grid;
  margin-top: var(--space-2);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  gap: 0.15rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.feature-list strong {
  font-size: 1.1875rem;
  color: var(--teal-ink);
}

.feature-list span {
  color: var(--ink-2);
}

/* ── Mi tiempo, mi cuidado (noche) ──────────────────────────────────────── */
.tiempo {
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--cosmos);
  border-radius: var(--radius-xl);
  margin-inline: clamp(0.5rem, 1.5vw, 1.5rem);
}

.tiempo__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0.9;
}

.tiempo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, oklch(24.8% 0.049 253.4 / 0.92) 0%, oklch(24.8% 0.049 253.4 / 0.72) 45%,
      oklch(26% 0.083 298.5 / 0.35) 100%);
}

.tiempo h2,
.tiempo h3 {
  color: var(--on-dark);
}

.tiempo__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .tiempo__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.tiempo .section-intro p {
  color: var(--on-dark-2);
}

.tiempo__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h3);
  line-height: 1.3;
  color: var(--on-dark);
}

.tiempo__options {
  display: grid;
  gap: 0.6rem;
  margin: var(--space-6) 0 0;
  padding: 0;
  border: 0;
}

.time-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: oklch(100% 0 0 / 0.06);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.14);
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.time-option:hover {
  background: oklch(100% 0 0 / 0.1);
}

.time-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-option__dot {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px oklch(100% 0 0 / 0.55);
  transition: box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.time-option__label {
  flex: 1;
  font-weight: 700;
  font-size: 1.125rem;
}

.time-option__value {
  color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}

.time-option:has(input:checked) {
  background: oklch(100% 0 0 / 0.14);
  box-shadow: inset 0 0 0 1.5px oklch(79.1% 0.132 183.8 / 0.9);
}

.time-option:has(input:checked) .time-option__dot {
  background: var(--aqua);
  box-shadow: inset 0 0 0 4px var(--cosmos), 0 0 0 2px var(--aqua);
}

.time-option:has(input:focus-visible) {
  outline: 3px solid var(--on-dark);
  outline-offset: 3px;
}

.tiempo__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 24rem);
  margin-inline: auto;
}

.tiempo__ring svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: oklch(100% 0 0 / 0.12);
  stroke-width: 14;
}

.ring-progress {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 700ms var(--ease-out-expo);
  filter: drop-shadow(0 0 12px oklch(79.1% 0.132 183.8 / 0.45));
}

.tiempo__ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.1rem;
  text-align: center;
}

.ring-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.25rem, 2.4rem + 3vw, 4.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ring-unit {
  font-size: 1.125rem;
  color: var(--on-dark-2);
}

.ring-name {
  margin-top: 0.4rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.ring-cost {
  font-size: 1rem;
  color: var(--peach);
}

.tiempo__facts {
  display: grid;
  gap: 1.1rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .tiempo__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.tiempo__facts li {
  padding-top: 1rem;
  border-top: 1px solid oklch(100% 0 0 / 0.18);
  color: var(--on-dark-2);
}

.tiempo__facts strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--on-dark);
}

.tiempo :focus-visible {
  outline-color: var(--on-dark);
}

/* ── Partículas de Amor ─────────────────────────────────────────────────── */
.particulas__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}

@media (min-width: 58rem) {
  .particulas__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.particulas__visual {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  margin-inline: auto;
}

.particulas__visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: url("../img/bg-sun.webp") center / cover no-repeat;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
}

.particulas__orb {
  position: absolute;
  inset: 14%;
  width: 72%;
  animation: float 10s ease-in-out infinite;
  filter: drop-shadow(0 20px 34px oklch(50.1% 0.128 52.5 / 0.25));
}

.particle {
  position: absolute;
  width: var(--size, 10px);
  height: var(--size, 10px);
  border-radius: 50%;
  background: radial-gradient(circle, oklch(100% 0 0) 0%, var(--peach) 45%, oklch(82.1% 0.12 57.3 / 0) 72%);
  animation: drift 7s ease-in-out infinite;
}

.particle:nth-child(2) { --size: 14px; left: 8%; top: 22%; animation-delay: -1s; }
.particle:nth-child(3) { --size: 9px; left: 84%; top: 14%; animation-delay: -3.2s; background: radial-gradient(circle, #fff 0%, var(--aqua) 45%, transparent 72%); }
.particle:nth-child(4) { --size: 12px; left: 90%; top: 64%; animation-delay: -5s; }
.particle:nth-child(5) { --size: 8px; left: 4%; top: 70%; animation-delay: -2.4s; background: radial-gradient(circle, #fff 0%, var(--magenta) 45%, transparent 72%); }
.particle:nth-child(6) { --size: 16px; left: 62%; top: 94%; animation-delay: -4.1s; }
.particle:nth-child(7) { --size: 10px; left: 30%; top: 2%; animation-delay: -6s; background: radial-gradient(circle, #fff 0%, var(--aqua) 45%, transparent 72%); }

.particulas__lists {
  display: grid;
  gap: 2rem;
  margin-top: var(--space-6);
}

@media (min-width: 40rem) {
  .particulas__lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.particulas__lists h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.dot-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.dot-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-2);
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px oklch(79.7% 0.144 60.8 / 0.22);
}

.particulas__welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
  margin-top: var(--space-6);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--sun-wash);
  box-shadow: inset 0 0 0 1px oklch(79.7% 0.144 60.8 / 0.35);
}

.particulas__welcome b {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--sun-ink);
}

.particulas__note {
  margin-top: var(--space-5);
  font-size: 1rem;
  color: var(--ink-3);
}

.particulas__note + .particulas__note {
  margin-top: var(--space-4);
}

/* ── Lo que está naciendo ───────────────────────────────────────────────── */
.naciendo {
  padding-top: 0;
}

.naciendo__row {
  /* Rejilla con subgrid: todas las esferas comparten fila y todos los
     nombres arrancan a la misma altura, aunque alguno ocupe dos líneas. */
  --naciendo-col: clamp(7rem, 5.5rem + 5vw, 9.5rem);
  display: grid;
  grid-template-columns: repeat(2, var(--naciendo-col));
  justify-content: center;
  gap: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  margin-top: var(--space-7);
  padding: 0;
  list-style: none;
}

.naciendo__row li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  align-items: start;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--ink-2);
}

/* Con dos columnas y un numero impar de esferas la ultima queda sola en su
   fila: se estira a las dos columnas y se centra dentro de ellas. El ancho fijo
   es obligatorio, porque la imagen va al 100% y si no se dibujaria al doble. */
.naciendo__row li:nth-child(odd):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: var(--naciendo-col);
}

.naciendo__row img {
  width: 100%;
  opacity: 0.9;
}

/* Reparto de las cuatro esferas: 2 + 2 y, con sitio, las cuatro en una fila.
   (Con tres columnas la cuarta quedaba sola a la izquierda.) */
@media (min-width: 56rem) {
  .naciendo__row {
    grid-template-columns: repeat(4, var(--naciendo-col));
  }

  .naciendo__row li:nth-child(odd):last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

/* Sin subgrid: el nombre reserva dos líneas para que no bailen entre sí. */
@supports not (grid-template-rows: subgrid) {
  .naciendo__row li {
    grid-row: auto;
    grid-template-rows: none;
  }

  .naciendo__row li span {
    display: block;
    min-height: 2.8em;
  }
}

/* ── Compromiso ─────────────────────────────────────────────────────────── */
.compromiso {
  background: var(--luz-mint);
}

.compromiso__quote {
  max-width: 24ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
}

.compromiso__quote em {
  font-style: normal;
  color: var(--teal-ink);
}

.promise-list {
  display: grid;
  gap: 0;
  max-width: 62rem;
  margin: clamp(3rem, 2rem + 3vw, 4.5rem) auto 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .promise-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3.5rem;
  }
}

.promise-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.promise-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px oklch(65.1% 0.105 194.9 / 0.3);
  color: var(--teal-ink);
}

.icon,
.promise-icon svg,
.summary-card svg,
.field-error svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.promise-list strong {
  display: block;
  font-size: 1.1875rem;
  color: var(--ink);
}

.promise-list span {
  color: var(--ink-2);
}

/* ── Descarga final ─────────────────────────────────────────────────────── */
.descargar {
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  border-top-left-radius: 50% clamp(2.5rem, 6vw, 6rem);
  border-top-right-radius: 50% clamp(2.5rem, 6vw, 6rem);
  background: var(--sun-wash);
}

.descargar__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.descargar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 52%, oklch(99% 0.012 116.8 / 0.55), oklch(99% 0.012 116.8 / 0) 75%);
}

.descargar__inner {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}

.descargar__inner > img {
  /* Lleva los tres puntos encima de la flor: se estrecha para que el conjunto
     ocupe casi el mismo alto que el logo sin puntos. */
  width: 5rem;
  height: auto;
  filter: drop-shadow(0 14px 24px oklch(42.5% 0.087 305.6 / 0.2));
}

.descargar h2 {
  max-width: 16ch;
  font-size: var(--text-h2);
}

.descargar p {
  max-width: 40ch;
  font-size: var(--text-lead);
  color: var(--ink-2);
}

/* ── Pie ────────────────────────────────────────────────────────────────── */
.site-footer {
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 2rem;
  background: var(--luz);
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 52rem) {
  .site-footer__grid {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  }
}

/* Los correos del pie no caben en su columna entre 832 y 968 px: sin esto,
   desbordan y aparece scroll horizontal en todo el sitio. */
.site-footer__grid a {
  overflow-wrap: anywhere;
}

.site-footer__brand p {
  max-width: 30ch;
  margin-top: 1rem;
  color: var(--ink-2);
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.site-footer ul {
  display: grid;
  gap: 0.2rem;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--teal-ink);
  text-decoration: underline;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink-3);
}

/* ── Páginas de documento (legal, soporte) ──────────────────────────────── */
.doc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 5rem)) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-bottom-left-radius: 50% clamp(1.5rem, 4vw, 3.5rem);
  border-bottom-right-radius: 50% clamp(1.5rem, 4vw, 3.5rem);
  background: var(--luz);
}

.doc-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% -10% 35%;
  z-index: -1;
  background: url("../img/bg-aurora.webp") 50% 40% / cover no-repeat;
  opacity: 0.75;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}

.doc-hero--danger::before {
  background-image: url("../img/bg-sun.webp");
}

.doc-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 1.7rem + 3vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.doc-hero__lead {
  max-width: 48ch;
  margin-top: 1.1rem;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

.doc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--ink-3);
}

.doc-layout {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) var(--space-section);
}

@media (min-width: 64rem) {
  .doc-layout {
    grid-template-columns: 15.5rem minmax(0, 1fr);
  }
}

.doc-toc {
  align-self: start;
}

@media (min-width: 64rem) {
  .doc-toc {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow: auto;
  }
}

.doc-toc h2 {
  margin-bottom: 0.6rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-3);
}

.doc-toc ol {
  display: grid;
  gap: 0.1rem;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.doc-toc a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.doc-toc a:hover {
  background: var(--teal-wash);
  color: var(--ink);
}

.doc-toc a[aria-current="true"] {
  background: var(--teal-wash);
  color: var(--teal-ink);
  font-weight: 700;
}

@media (max-width: 63.99rem) {
  .doc-toc {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
  }

  .doc-toc ol {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    column-gap: 1rem;
  }
}

.prose {
  max-width: 44rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: clamp(2.75rem, 2rem + 2vw, 3.75rem);
  font-size: clamp(1.65rem, 1.35rem + 1.2vw, 2.15rem);
  line-height: 1.15;
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.9rem;
  font-family: var(--font-text);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.prose p,
.prose li,
.prose dd {
  color: var(--ink-2);
  line-height: 1.68;
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.4rem;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul > li {
  position: relative;
  padding-left: 1.4rem;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.66em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
}

.prose ol > li::marker {
  color: var(--teal-ink);
  font-weight: 700;
}

.summary-card {
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--teal-wash), oklch(96% 0.02 250 / 0.6));
  box-shadow: inset 0 0 0 1px oklch(65.1% 0.105 194.9 / 0.22);
}

.summary-card h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.summary-card ul {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.summary-card ul > li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  padding-left: 0;
  color: var(--ink);
  line-height: 1.5;
}

.summary-card ul > li::before {
  content: none;
}

.summary-card svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  color: var(--teal-ink);
}

.callout {
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--sun-wash);
  box-shadow: inset 0 0 0 1px oklch(79.7% 0.144 60.8 / 0.4);
  color: var(--ink);
}

.callout p {
  color: var(--ink);
}

.callout--info {
  background: var(--purple-wash);
  box-shadow: inset 0 0 0 1px oklch(53.2% 0.1 306.3 / 0.25);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}

.data-table caption {
  padding-bottom: 0.6rem;
  text-align: left;
  color: var(--ink-3);
}

.data-table th,
.data-table td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.data-table thead th {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--line-strong);
  white-space: nowrap;
}

.data-table td {
  color: var(--ink-2);
}

.data-table th[scope="row"] {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 47.99rem) {
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tr {
    display: grid;
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--line);
  }

  .data-table th,
  .data-table td {
    display: block;
    padding: 0.15rem 0;
    border: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink-3);
  }
}

.contact-block {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .contact-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-card {
  display: grid;
  gap: 0.2rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}

.contact-card span {
  font-size: 1rem;
  color: var(--ink-3);
}

.contact-card a {
  font-weight: 700;
  font-size: 1.1875rem;
  overflow-wrap: anywhere;
}

/* ── Preguntas frecuentes ───────────────────────────────────────────────── */
.faq {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2.5px solid var(--teal-ink);
  border-bottom: 2.5px solid var(--teal-ink);
  transform: translateY(-25%) rotate(45deg);
  transition: transform 260ms var(--ease-out);
}

.faq details[open] summary::after {
  transform: translateY(15%) rotate(-135deg);
}

.faq details > div {
  padding: 0 0.25rem 1.4rem;
}

.faq details > div > * + * {
  margin-top: 0.75rem;
}

.faq details p,
.faq details li {
  color: var(--ink-2);
}

/* ── Eliminar cuenta ────────────────────────────────────────────────────── */
.delete-layout {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) var(--space-section);
}

@media (min-width: 62rem) {
  .delete-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.delete-panel {
  padding: clamp(1.4rem, 0.8rem + 2.4vw, 2.6rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line);
}

@media (min-width: 62rem) {
  .delete-panel {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.stepper li {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-3);
  counter-increment: step;
}

.stepper li::before {
  content: "";
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 300ms var(--ease-out);
}

.stepper li[aria-current="step"],
.stepper li.is-done {
  color: var(--ink);
}

.stepper li[aria-current="step"]::before {
  background: linear-gradient(90deg, var(--teal), var(--purple));
}

.stepper li.is-done::before {
  background: var(--teal);
}

.delete-step {
  display: grid;
  gap: 1.25rem;
}

.delete-step[hidden] {
  display: none;
}

.delete-step__title {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
}

.delete-step__title:focus {
  outline: none;
}

.delete-step > p {
  color: var(--ink-2);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 700;
  color: var(--ink);
}

.field__hint {
  font-size: 1rem;
  color: var(--ink-3);
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--luz);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  transition: box-shadow 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.input::placeholder {
  color: var(--ink-3);
}

.input:hover {
  box-shadow: inset 0 0 0 1.5px oklch(32.4% 0.038 195.5 / 0.35);
}

.input:focus {
  outline: none;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--teal-ink), 0 0 0 4px oklch(65.1% 0.105 194.9 / 0.22);
}

.input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--error);
}

.input--password {
  padding-right: 6.5rem;
}

.input-toggle {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--teal-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  transform: translateY(-50%);
  cursor: pointer;
}

.input-toggle:hover {
  background: var(--teal-wash);
}

.input--code {
  min-height: 4.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.45em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding-left: calc(1rem + 0.45em);
}

.field-error {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--error);
}

.field-error[hidden] {
  display: none;
}

.field-error svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
}

.check {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--sun-wash);
  box-shadow: inset 0 0 0 1px oklch(79.7% 0.144 60.8 / 0.4);
  cursor: pointer;
  line-height: 1.45;
}

.check input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.1rem 0 0;
  accent-color: var(--danger-bottom);
  cursor: pointer;
}

.delete-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.delete-success {
  justify-items: center;
  text-align: center;
}

.delete-success img {
  width: 7rem;
  animation: breathe 6.5s ease-in-out infinite;
}

.delete-success p {
  max-width: 34ch;
}

.form-status {
  font-size: 1.0625rem;
  color: var(--ink-2);
}

ol.steps-list {
  counter-reset: paso;
  display: grid;
  gap: 0.9rem;
  padding: 0;
  list-style: none;
}

.steps-list > li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.9rem;
  align-items: start;
  counter-increment: paso;
  color: var(--ink-2);
}

.steps-list > li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--teal-wash);
  color: var(--teal-ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 1rem;
  color: var(--ink);
}

/* ── 404 ────────────────────────────────────────────────────────────────── */
.lost {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: 3rem 6rem;
  text-align: center;
}

.lost__inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.lost img {
  width: 9rem;
  animation: float 9s ease-in-out infinite;
}

.lost h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
}

.lost p {
  max-width: 36ch;
  color: var(--ink-2);
  font-size: var(--text-lead);
}

/* ── Movimiento ─────────────────────────────────────────────────────────── */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.95;
  }
  50% {
    transform: translate3d(6px, -16px, 0) scale(0.8);
    opacity: 0.55;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes enter {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes orb-arrive {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

/* Entrada de portada: solo se activa desde JS si la pestaña está visible */
.js-enter [data-enter] {
  animation: enter 900ms var(--ease-out-expo) both;
}

.js-enter [data-enter]:nth-child(2) { animation-delay: 90ms; }
.js-enter [data-enter]:nth-child(3) { animation-delay: 180ms; }
.js-enter [data-enter]:nth-child(4) { animation-delay: 270ms; }
.js-enter [data-enter]:nth-child(5) { animation-delay: 360ms; }

.js-enter .hero__logo[data-enter] {
  animation: enter 900ms var(--ease-out-expo) both, breathe 6.5s ease-in-out 900ms infinite;
}

/* Las burbujas "llegan" al entrar en pantalla (visibles por defecto sin JS) */
.direction__visual.is-arriving .orb img {
  animation: orb-arrive 1100ms var(--ease-out-expo) both;
}

.direction__visual.is-arriving .orb--a img { animation-delay: 140ms; }
.direction__visual.is-arriving .orb--b img { animation-delay: 260ms; }

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

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

  /* El indicador de carga comunica estado: se mantiene, más lento */
  .btn.is-loading::after {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}
