@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F5F7F6;
  --paper-2: #EBEFED;
  --card: #FFFFFF;
  --ink: #0E0E10;
  --ink-2: #19191D;
  --ink-3: #26262C;
  --muted: #5A605D;
  --line: #DFE4E1;
  --green: #25D366;
  --green-hover: #1FBF5B;
  --violet: #8B5CF6;
  --violet-dark: #4A2BB5;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
  --radius: 28px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--violet-dark);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Cabecera */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 246, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-right: auto;
}
.brand img { width: auto; height: 28px; }

.nav { display: none; }

.lang {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 48px;
  text-decoration: none;
}
.lang a:hover, .lang a[aria-current] { color: var(--ink); }

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn .ext { font-weight: 600; }

.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--green-hover); }

.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: var(--ink-3); }

.btn-line { border-color: rgba(14, 14, 16, 0.22); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-white:hover { background: var(--paper); }

.btn-line-white { border-color: rgba(255, 255, 255, 0.5); color: #FFFFFF; }
.btn-line-white:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.1); }

.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }

.site-header .btn { padding: 0 18px; font-size: 0.9375rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Tipografía */

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 12.5vw, 6.75rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2.25rem, 8vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* El punto y la coma de Plus Jakarta Sans tienen mucho aire a la izquierda. */
.dot { margin-left: -0.07em; }
.comma { margin-left: -0.05em; }

.lead {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.card p, .step p, .faq p { text-wrap: pretty; }

/* Stickers troquelados */

.sticker {
  position: absolute;
  width: var(--s, 84px);
  height: auto;
  aspect-ratio: 1;
  border: 5px solid #FFFFFF;
  border-radius: 24%;
  background: #FFFFFF;
  object-fit: cover;
  rotate: var(--r, 0deg);
  box-shadow: 0 10px 24px rgba(14, 14, 16, 0.18);
}

/* Portada */

.hero { padding: 40px 0 0; }

.hero-text .actions { margin-top: 28px; }
.hero-text .actions .btn { flex: 1 1 auto; }
.hero-facts {
  margin: 20px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-facts span { white-space: nowrap; }
.hero-cta .hero-facts { text-align: center; }

.stage {
  position: relative;
  height: 420px;
  margin-top: 40px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/garabatos.svg") 0 0 / 240px repeat;
  opacity: 0.6;
}
.stage .phones {
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 640px;
  max-width: none;
  transform: translateX(-50%);
}
.stage .s1 { --s: 76px; --r: -9deg; left: 4%; top: 36px; }
.stage .s2 { --s: 64px; --r: 8deg; right: 5%; top: 22px; }
.stage .s3, .stage .s4 { display: none; }

/* Cinta */

.ticker {
  margin-top: 56px;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.ticker-track {
  display: flex;
  width: max-content;
}
.ticker ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 20px 14px;
  list-style: none;
}
.ticker li {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: clamp(1.5rem, 4.4vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}
.ticker img {
  width: 48px;
  height: 48px;
  border: 3px solid #FFFFFF;
  border-radius: 24%;
  object-fit: cover;
  rotate: -8deg;
  box-shadow: 0 4px 12px rgba(14, 14, 16, 0.16);
}
.ticker li:nth-child(even) img { rotate: 7deg; }

/* Secciones */

.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 44px; }

/* Qué hace */

.bento {
  display: grid;
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.card h3 + p { margin: 10px 0 0; color: var(--muted); }
.card-ui { margin-top: auto; }

/* Pequeñas réplicas de la interfaz de la app */

.ui {
  padding: 18px;
  border-radius: 22px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.ui-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ui-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}
.ui-import {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -26px;
}
.ui-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.ui-import .ui-pill { box-shadow: 0 0 0 6px var(--ink); }
.ui-pill svg { width: 18px; height: 18px; flex: none; }

.ui-seg {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ink-2);
  font-weight: 700;
}
.ui-seg::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(50% + 2px);
  width: calc(50% - 6px);
  border-radius: 999px;
  background: #34343C;
}
.ui-seg span {
  position: relative;
  flex: 1;
  padding: 12px 10px;
  border-radius: 999px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.ui-seg .on { color: #FFFFFF; }

.ui-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ui-row + .ui-row { margin-top: 14px; }
.ui-row img {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
}
.ui-row b { display: block; font-weight: 700; }
.ui-row small { display: block; margin-top: 2px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }
.ui-row .grow { flex: 1; min-width: 0; }

.ui-meter { margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; background: var(--ink-2); }
.ui-meter b { font-weight: 700; }
.ui-bar {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin-top: 10px;
}
.ui-bar i { height: 6px; border-radius: 3px; background: var(--ink-3); }
.ui-bar .on { background: var(--green); }

.ui-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
}
.ui-check svg { width: 18px; height: 18px; }

.ui-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-3);
  font-weight: 800;
}

.ui-toggle {
  position: relative;
  width: 52px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  background: var(--green);
}
.ui-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
}

/* Cómo funciona */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
}
.step p { margin: 10px 0 0; color: var(--muted); }
.step .card-ui { padding-top: 28px; }

.ui-code {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.ui-code span {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: var(--ink-2);
  font-size: 1.375rem;
  font-weight: 800;
}
.ui-code span:nth-child(4) { box-shadow: inset 0 0 0 2px var(--green); }
.ui-caption { margin: 12px 0 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); text-align: center; }

.ui-progress {
  height: 8px;
  margin: 14px 0 12px;
  border-radius: 4px;
  background: var(--ink-3);
  overflow: hidden;
}
.ui-progress i { display: block; width: 72%; height: 100%; border-radius: 4px; background: var(--green); }
.ui-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ui-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

.ui-stack {
  position: relative;
  height: 108px;
  margin-bottom: 14px;
}
.ui-stack .sticker { --s: 80px; top: 10px; border-width: 4px; box-shadow: none; }
.ui-stack .sticker:nth-child(1) { --r: -10deg; left: calc(50% - 104px); }
.ui-stack .sticker:nth-child(2) { --r: 2deg; left: calc(50% - 40px); top: 4px; z-index: 1; }
.ui-stack .sticker:nth-child(3) { --r: 11deg; left: calc(50% + 24px); }
.ui-stack + .ui-pill { display: flex; }

.note {
  margin: 16px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
}
.note b { color: var(--ink); }

/* Vídeos: la sección solo aparece si algún vídeo tiene dirección */

.videos { display: none; }
.videos:has(video[src]) { display: block; }
.video-list { display: grid; gap: 16px; }
.video { margin: 0; }
.video:not(:has(video[src])) { display: none; }
.video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: var(--ink);
  object-fit: cover;
}
.video figcaption { margin-top: 12px; font-weight: 700; }

/* Privacidad */

.privacy {
  display: grid;
  gap: 40px;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.privacy .actions { margin-top: 28px; }
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(14, 14, 16, 0.1);
}
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks svg { width: 28px; height: 28px; }
.checks b { display: block; font-size: 1.0625rem; }
.checks span { color: var(--muted); }

/* Bloque de apoyo */

.block {
  position: relative;
  overflow: hidden;
  padding: 48px 28px 200px;
  border-radius: var(--radius);
  background: var(--violet-dark);
  color: #FFFFFF;
}
.block > :not(.sticker) { position: relative; z-index: 1; }
.block h2 { max-width: 12em; color: #FFFFFF; }
.block p {
  margin: 20px 0 0;
  max-width: 30em;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.block .actions { margin-top: 32px; }
.block :focus-visible { outline-color: #FFFFFF; }
.block .sticker { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.block .s1 { --s: 104px; --r: -12deg; left: 8%; bottom: -14px; }
.block .s2 { --s: 92px; --r: 9deg; left: 42%; bottom: 44px; }
.block .s3 { --s: 84px; --r: -4deg; right: 6%; bottom: -22px; }

/* Preguntas frecuentes */

.faq-layout { display: grid; gap: 32px; }
.faq-aside p { margin: 18px 0 0; color: var(--muted); }
.faq-aside a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }

.faq { 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: 20px;
  min-height: 48px;
  padding: 22px 0;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform 0.2s, border-color 0.15s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { border-color: var(--ink); }
.faq details p { margin: -6px 0 24px; max-width: 40em; color: var(--muted); }

/* Pie */

.site-footer {
  padding: 64px 0 32px;
  background: var(--card);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-grid { display: grid; gap: 36px; }
.footer-brand .brand { margin: 0; }
.footer-brand p { margin: 12px 0 20px; max-width: 18em; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.footer-col h2 {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }

/* Tableta */

@media (min-width: 720px) {
  :root { --gutter: 32px; }

  .site-header .wrap { gap: 16px; min-height: 76px; }
  .brand img { height: 30px; }

  .stage { height: 520px; }
  .stage .phones { width: 820px; bottom: -150px; }
  .stage .s1 { --s: 104px; left: 6%; top: 64px; }
  .stage .s2 { --s: 88px; right: 7%; top: 40px; }
  .stage .s3 { display: block; --s: 80px; --r: 6deg; left: 3%; bottom: 60px; }
  .stage .s4 { display: block; --s: 72px; --r: -7deg; right: 3%; bottom: 120px; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .c-import { grid-column: span 2; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .video-list { grid-template-columns: repeat(2, minmax(0, 340px)); }

  .privacy { padding: 56px; }
  .block { padding: 72px 64px 220px; }

  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

/* Escritorio */

@media (min-width: 1040px) {
  .nav {
    display: flex;
    gap: 4px;
    margin-right: 12px;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
  }
  .nav a:hover { color: var(--ink); background: var(--paper-2); }

  .hero { padding-top: 72px; }
  .hero-text {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 56px;
  }
  .hero-text .lead { margin-top: 0; }
  .hero-text .actions .btn { flex: 0 0 auto; }
  .hero-cta { width: fit-content; }

  .stage { height: 600px; margin-top: 56px; }
  .stage .phones { width: 940px; bottom: -170px; }
  .stage .s1 { --s: 128px; left: 7%; top: 84px; }
  .stage .s2 { --s: 108px; right: 8%; top: 56px; }
  .stage .s3 { --s: 96px; left: 3%; bottom: 72px; }
  .stage .s4 { --s: 88px; right: 3%; bottom: 150px; }

  .section { padding: 120px 0; }
  .section-head { margin-bottom: 56px; }

  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento .card { grid-column: span 6; }
  .bento .c-import { grid-column: 1 / span 7; grid-row: span 2; }
  .bento .c-collection, .bento .c-packs { grid-column: 8 / span 5; }
  .card { padding: 36px; }
  .c-import .ui { padding: 24px; }

  .privacy {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    padding: 72px;
  }

  .block { padding: 96px 88px; }
  .block h2 { max-width: 9.5em; }
  .block p { max-width: 26em; }
  .block .s1 { --s: 150px; left: auto; right: 25%; bottom: 60px; }
  .block .s2 { --s: 132px; left: auto; right: 7%; bottom: auto; top: 64px; }
  .block .s3 { --s: 118px; right: 12%; bottom: -30px; }

  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
  .faq-aside { position: sticky; top: 120px; align-self: start; }
}

/* Política de privacidad */

.doc-head {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}
.doc-head h1 { font-size: clamp(2.75rem, 10vw, 5rem); }
.doc-head .lead { max-width: 36em; }
.doc-meta {
  margin: 20px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}
.doc-layout {
  display: grid;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.toc { display: none; }
.doc { max-width: 44rem; color: #2E3330; }
.doc > :first-child { margin-top: 0; }
.doc h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.625rem, 4.5vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  scroll-margin-top: 100px;
}
.doc p { margin: 0 0 16px; text-wrap: pretty; }
.doc ul { margin: 0 0 16px; padding: 0; list-style: none; }
.doc li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 24px;
  text-wrap: pretty;
}
.doc li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.doc strong { color: var(--ink); font-weight: 700; }
.doc code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--paper-2);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.875em;
}
.doc a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

.summary {
  margin-bottom: 48px;
  padding: 24px 24px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.summary .eyebrow { margin-bottom: 14px; }

@media (min-width: 1040px) {
  .doc-head { padding: 80px 0 56px; }
  .doc-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 80px;
    padding-top: 72px;
    padding-bottom: 120px;
  }
  .toc {
    display: block;
    position: sticky;
    top: 110px;
    align-self: start;
  }
  .toc .eyebrow { margin-bottom: 8px; }
  .toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
  .toc a {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-left: -1px;
    padding-left: 16px;
    border-left: 2px solid transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
  }
  .toc a:hover { color: var(--ink); border-left-color: var(--green); }
  .summary { padding: 28px 32px 16px; }
}

/* Movimiento: solo si no se ha pedido reducirlo */

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes phones-in {
  from { opacity: 0; translate: 0 140px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes pop {
  from { opacity: 0; scale: 0.3; }
  to { opacity: 1; scale: 1; }
}
@keyframes float {
  from { translate: 0 0; }
  to { translate: 0 -12px; }
}
@keyframes ticker { to { translate: -50% 0; } }
@keyframes doodles { to { background-position: 240px -240px; } }
@keyframes reveal {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: none; }
}
@keyframes nudge {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 3px; }
}
@keyframes seg {
  0%, 42% { translate: 0 0; }
  50%, 92% { translate: calc(-100% - 4px) 0; }
  100% { translate: 0 0; }
}
@keyframes seg-on {
  0%, 42%, 100% { color: #FFFFFF; }
  50%, 92% { color: rgba(255, 255, 255, 0.6); }
}
@keyframes seg-off {
  0%, 42%, 100% { color: rgba(255, 255, 255, 0.6); }
  50%, 92% { color: #FFFFFF; }
}
@keyframes bar-fill {
  0%, 18% { background: var(--ink-3); }
  24%, 100% { background: var(--green); }
}
@keyframes check-pop {
  0%, 24% { scale: 0; }
  32% { scale: 1.2; }
  38%, 100% { scale: 1; }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
@keyframes knob {
  0%, 55% { translate: 0 0; }
  62%, 82% { translate: -20px 0; }
  89%, 100% { translate: 0 0; }
}
@keyframes toggle-bg {
  0%, 55% { background: var(--green); }
  62%, 82% { background: var(--ink-3); }
  89%, 100% { background: var(--green); }
}
/* Las cifras del código aparecen una a una y se borran a la vez */
@keyframes code-1 {
  0% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
  1%, 8% { color: transparent; box-shadow: inset 0 0 0 2px var(--green); }
  10% { color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--green); }
  11%, 80% { color: #FFFFFF; box-shadow: inset 0 0 0 0 transparent; }
  86%, 100% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
}
@keyframes code-2 {
  0%, 10% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
  11%, 18% { color: transparent; box-shadow: inset 0 0 0 2px var(--green); }
  20% { color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--green); }
  21%, 80% { color: #FFFFFF; box-shadow: inset 0 0 0 0 transparent; }
  86%, 100% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
}
@keyframes code-3 {
  0%, 20% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
  21%, 28% { color: transparent; box-shadow: inset 0 0 0 2px var(--green); }
  30% { color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--green); }
  31%, 80% { color: #FFFFFF; box-shadow: inset 0 0 0 0 transparent; }
  86%, 100% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
}
@keyframes code-4 {
  0%, 30% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
  31%, 38% { color: transparent; box-shadow: inset 0 0 0 2px var(--green); }
  40% { color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--green); }
  41%, 80% { color: #FFFFFF; box-shadow: inset 0 0 0 0 transparent; }
  86%, 100% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
}
@keyframes code-5 {
  0%, 40% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
  41%, 48% { color: transparent; box-shadow: inset 0 0 0 2px var(--green); }
  50% { color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--green); }
  51%, 80% { color: #FFFFFF; box-shadow: inset 0 0 0 0 transparent; }
  86%, 100% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
}
@keyframes code-6 {
  0%, 50% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
  51%, 58% { color: transparent; box-shadow: inset 0 0 0 2px var(--green); }
  60% { color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--green); }
  61%, 80% { color: #FFFFFF; box-shadow: inset 0 0 0 0 transparent; }
  86%, 100% { color: transparent; box-shadow: inset 0 0 0 0 transparent; }
}
@keyframes progress {
  0% { width: 0; }
  70%, 88% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}
@keyframes thumb {
  0% { opacity: 0; scale: 0.4; }
  6% { opacity: 1; scale: 1.08; }
  9%, 80% { opacity: 1; scale: 1; }
  90%, 100% { opacity: 0; scale: 0.4; }
}
@keyframes fan {
  0%, 12% { translate: var(--x0, 0) 0; rotate: 0deg; }
  30%, 82% { translate: 0 0; rotate: var(--r); }
  100% { translate: var(--x0, 0) 0; rotate: 0deg; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
@keyframes details-in {
  from { opacity: 0; translate: 0 -6px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }

  .btn { transition: background-color 0.15s, border-color 0.15s, color 0.15s, translate 0.2s; }
  .btn:hover { translate: 0 -2px; }
  .btn .ext { display: inline-block; transition: translate 0.2s; }
  .btn:hover .ext { translate: 2px -2px; }

  .card, .step { transition: border-color 0.2s, translate 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .card:hover, .step:hover { border-color: #C6CDC9; translate: 0 -4px; }

  .sticker { transition: scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .sticker:hover { scale: 1.1; }

  /* Entrada de la portada */
  .hero .eyebrow { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero h1 .w { display: inline-block; animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero h1 .w:nth-child(1) { animation-delay: 0.06s; }
  .hero h1 .w:nth-child(2) { animation-delay: 0.14s; }
  .hero h1 .w:nth-child(3) { animation-delay: 0.22s; }
  .hero h1 .w:nth-child(4) { animation-delay: 0.30s; }
  .hero h1 .w:nth-child(5) { animation-delay: 0.38s; }
  .hero .lead { animation: rise 0.8s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero .actions { animation: rise 0.8s 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .doc-head > * { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .doc-head > :nth-child(2) { animation-delay: 0.08s; }
  .doc-head > :nth-child(3) { animation-delay: 0.16s; }
  .doc-head > :nth-child(4) { animation-delay: 0.24s; }
  .hero-facts { animation: rise 0.8s 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .stage { animation: rise 0.9s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .stage::before { animation: doodles 40s linear infinite; }
  .stage .phones { animation: phones-in 1.2s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }

  .stage .sticker, .block .sticker {
    animation:
      pop 0.7s var(--d, 1s) cubic-bezier(0.34, 1.56, 0.64, 1) backwards,
      float var(--f, 3.2s) calc(var(--d, 1s) + 0.7s) ease-in-out infinite alternate;
  }
  .stage .s1, .block .s1 { --d: 1s; --f: 3.4s; }
  .stage .s2, .block .s2 { --d: 1.15s; --f: 2.9s; }
  .stage .s3, .block .s3 { --d: 1.3s; --f: 3.8s; }
  .stage .s4 { --d: 1.45s; --f: 3.1s; }

  /* Cinta */
  .ticker-track { animation: ticker 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }

  /* Réplicas de la app */
  .ui-import .ui-pill svg { animation: nudge 1.6s ease-in-out infinite; }
  .ui-import .ui-pill { animation: pulse 2.4s ease-out infinite; }
  .ui-seg::before { animation: seg 5s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .ui-seg .on { animation: seg-on 5s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .ui-seg span:not(.on) { animation: seg-off 5s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .ui-bar .next { animation: bar-fill 4s ease infinite; }
  .ui-check { animation: check-pop 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
  .ui-avatar { animation: ping 2.6s ease-out infinite; }
  .ui-toggle { animation: toggle-bg 5s ease infinite; }
  .ui-toggle::after { animation: knob 5s cubic-bezier(0.65, 0, 0.35, 1) infinite; }

  .ui-code span:nth-child(1) { animation: code-1 6.5s linear infinite; }
  .ui-code span:nth-child(2) { animation: code-2 6.5s linear infinite; }
  .ui-code span:nth-child(3) { animation: code-3 6.5s linear infinite; }
  .ui-code span:nth-child(4) { animation: code-4 6.5s linear infinite; }
  .ui-code span:nth-child(5) { animation: code-5 6.5s linear infinite; }
  .ui-code span:nth-child(6) { animation: code-6 6.5s linear infinite; }

  .ui-progress i { animation: progress 5s ease-in-out infinite; }
  .ui-thumbs img { animation: thumb 5s ease infinite both; }
  .ui-thumbs img:nth-child(1) { animation-delay: 0.6s; }
  .ui-thumbs img:nth-child(2) { animation-delay: 1.3s; }
  .ui-thumbs img:nth-child(3) { animation-delay: 2s; }
  .ui-thumbs img:nth-child(4) { animation-delay: 2.7s; }

  .ui-stack .sticker { animation: fan 4.5s cubic-bezier(0.34, 1.4, 0.64, 1) infinite; }
  .ui-stack .sticker:nth-child(1) { --x0: 64px; }
  .ui-stack .sticker:nth-child(3) { --x0: -64px; }
  .ui-stack + .ui-pill { animation: pulse 2.4s ease-out infinite; }

  /* Preguntas que se abren con suavidad */
  .faq details::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), content-visibility 0.35s allow-discrete;
  }
  .faq details[open]::details-content { height: auto; }
  .faq details[open] p { animation: details-in 0.35s ease both; }
}

/* Aparición al hacer scroll, donde el navegador lo permite */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head, .bento .card, .step, .note, .privacy, .block, .faq-aside, .faq details, .video, .footer-grid {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
  }
}

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