/*
 * Landing de Üni (spec 015, 015b y 015c): la estructura editorial de la propuesta de Marco con el estilo de Üni (Glass
 * Pop v2 / Iridescent Glass, D-1509), adaptable de 320 a 1440 px. Plus Jakarta Sans se sirve desde este mismo sitio (nada remoto, AC-015-05). Contraste AA,
 * foco visible y objetivos de 44 px (AC-015-10).
 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-top: #f2f0ff;
  --bg: #f5f7ff;
  --solid: #ffffff;
  --glass: rgb(255 255 255 / 0.64);
  --glass-edge: rgb(255 255 255 / 0.95);
  --shadow: 0 12px 30px rgb(123 140 255 / 0.16), inset 0 1px 0 #ffffff;
  --border: #e3e6f5;
  --text: #1f1f24;
  --text-2: #4a4e5e;
  --muted: #5f6374;
  --brand: #5b5fef;
  --brand-ink: #3e42c9;
  --tile: #e9ecff;
  --mint: #a7e6c1;
  --mint-bg: #ddf5e7;
  --mint-ink: #1e6b45;
  --border-strong: #c9cce3;
  --lav: #e4e2fc;
  --dark: #1d1c3b;
  --on-dark: #f5f6ff;
  --on-dark-2: #c9cbe6;
  --on-dark-accent: #b9b6ff;
  --store: #1f1f24;
  --grad: linear-gradient(90deg, #7e62f0 0%, #5b5fef 50%, #5e8fe8 100%);
  --iridescent: linear-gradient(135deg, #c9b8ff 0%, #a9e4ff 45%, #ffc4dd 78%, #ffe9a8 100%);
  --gutter: clamp(20px, 4.5vw, 64px);
  color-scheme: light;
}

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

html {
  font-size: 100%;
  background-color: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 12%, var(--bg) 88%, var(--bg-top) 100%);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--brand-ink);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--solid);
  color: var(--brand-ink);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}


/* --- Menú ------------------------------------------------------------------------------------------------------- */

/* Fijo arriba en escritorio; su vidrio aparece al bajar (motion.css) y, sin movimiento, está siempre. */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px var(--gutter);
  isolation: isolate;
}

.top::before {
  content: '';
  position: absolute;
  inset: 8px calc(var(--gutter) - 14px);
  z-index: -1;
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 8px 30px rgb(31 31 36 / 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1360px;
  min-height: 60px;
  margin: 0 auto;
}

.top nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.top nav a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

.brand {
  display: flex;
  min-height: 44px;
  align-items: center;
}

.brand svg {
  display: block;
  width: 88px;
  height: 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 10px 24px rgb(91 95 239 / 0.32), inset 0 1px 0 rgb(255 255 255 / 0.45);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .top nav .optional {
    display: none;
  }
}

@media (max-width: 720px) {
  .top {
    position: relative;
  }
  .top-bar {
    flex-wrap: wrap;
    padding: 4px 6px;
  }
  .top nav {
    order: 3;
    width: 100%;
  }
  .top nav ul {
    justify-content: space-between;
  }
}

/* --- Comunes ---------------------------------------------------------------------------------------------------- */

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: clamp(64px, 9vw, 110px);
}

.section-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-top span:last-child {
  text-align: right;
}

.display {
  margin: 0;
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

/* Lo destacado va en el azul de Üni (D-1509), no en cursiva serif como en la propuesta. */
.display em {
  display: block;
  color: var(--brand-ink);
  font-style: normal;
}

h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.overline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spark {
  color: var(--brand);
  font-size: 18px;
}

.little-label {
  margin: 0;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.glass {
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.note {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tile);
}

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

/* El ícono de Üni dentro de un orbe iridiscente: ocupa el lugar de la mascota de la propuesta. */
.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 28% 24%, rgb(255 255 255 / 0.9) 0, rgb(255 255 255 / 0) 30%), var(--iridescent);
  box-shadow: 0 34px 64px rgb(123 140 255 / 0.35), inset -20px -24px 44px rgb(255 255 255 / 0.5);
}

.orb svg {
  width: 42%;
  height: auto;
}

/* --- Inicio ----------------------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  max-width: 1440px;
  min-height: min(calc(100vh - 84px), 900px);
  margin: 0 auto;
  padding: 24px var(--gutter) 72px;
  isolation: isolate;
  overflow: hidden;
}

.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.glow-a {
  right: -12%;
  top: -18%;
  width: 52vw;
  height: 52vw;
  background: #d9d4ff;
}

.glow-b {
  right: 22%;
  bottom: -40%;
  width: 36vw;
  height: 36vw;
  background: #ffdbe6;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-line,
.hero-bottom-line {
  width: 40px;
  height: 1px;
  background: var(--border-strong);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 86px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

/* Cada línea del título sube desde su propio recorte al cargar (motion.css). */
.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.title-line > span {
  display: block;
}

h1 em {
  color: var(--brand-ink);
  font-style: normal;
}

.period {
  color: var(--brand-ink);
}

.lead {
  margin: 0;
  max-width: 500px;
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--brand-ink);
}

.play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 9px;
}

.small-caps {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}

.hero-art::before {
  content: '';
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--iridescent);
  opacity: 0.6;
  filter: blur(4px);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid rgb(91 95 239 / 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-b {
  width: 74%;
  border-style: dashed;
}

.art-star {
  position: absolute;
  color: var(--brand);
  font-size: 34px;
}

.star-a {
  top: 14%;
  left: 10%;
}

.star-b {
  right: 8%;
  bottom: 18%;
  color: #ff8fb0;
}

.layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.phone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 260px;
  height: 530px;
  padding: 24px 16px 18px;
  border: 9px solid var(--text);
  border-radius: 42px;
  background: var(--bg);
  box-shadow: 0 35px 70px rgb(85 80 139 / 0.33), 0 5px 10px rgb(37 35 59 / 0.27);
  transform: rotate(-6deg);
}

.phone .hello {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phone .week-meta {
  margin-top: -6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.phone .card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding: 14px;
  border: 1px solid #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.9) 40%, #fff1c7);
}

.phone .overline {
  font-size: 8px;
}

.phone .level {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.phone .bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.phone .bars span {
  height: 8px;
  border-radius: 999px;
}

.phone-section {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
}

.phone-task {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}

.phone-task i {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.phone-task b,
.phone-task small {
  display: block;
}

.phone-task small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.phone .cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--grad);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.float-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #ffffff;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.88);
  box-shadow: 0 12px 35px rgb(85 80 139 / 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.float-note small,
.float-note b {
  display: block;
}

.float-note small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.float-note b {
  margin-top: 3px;
  font-size: 13px;
}

.note-top {
  top: 17%;
  right: 2%;
}

.note-bottom {
  bottom: 17%;
  left: 0;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tile);
  color: var(--brand-ink);
}

.note-icon.mint {
  background: var(--mint-bg);
  color: var(--mint-ink);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-art {
    min-height: 540px;
  }
}

@media (max-width: 600px) {
  .hero-art {
    min-height: 480px;
    margin-inline: calc(-1 * var(--gutter));
  }
  .phone {
    width: 220px;
    height: 450px;
    border-radius: 36px;
  }
  .float-note {
    padding: 10px 12px;
  }
  .note-top {
    top: 6%;
    right: 4%;
  }
  .note-bottom {
    bottom: 6%;
    left: 4%;
  }
}

/* --- 01 La idea --------------------------------------------------------------------------------------------------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 30px;
  padding-block: 40px 10px;
}

.intro-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.asterisk {
  display: block;
  color: var(--brand);
  font-size: 54px;
  line-height: 1;
}

.intro-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 780px;
  margin-top: 40px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
}

.intro-body p {
  margin: 0;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 40px);
}

.about h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about p {
  margin: 0;
  max-width: 760px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}

.about p.quiet {
  color: var(--muted);
  font-size: 14px;
}

.band {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px clamp(22px, 3.5vw, 40px);
  border: 2px solid var(--mint);
  border-radius: 28px;
  background: rgb(255 255 255 / 0.75);
  box-shadow: 0 12px 30px rgb(123 140 255 / 0.12);
}

.band .tile {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--mint-bg);
}

.band p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.45;
}

.manifesto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manifesto-line {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--border-strong);
}

@media (max-width: 900px) {
  .intro-grid,
  .intro-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro-body {
    gap: 18px;
    margin-top: 28px;
  }
  .intro-label {
    display: flex;
    align-items: center;
    gap: 14px;
  }
}

/* --- 02 Cómo funciona (sección oscura con el tablero fijo) --------------------------------------------------------- */

.story {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: clip;
  isolation: isolate;
}

/* Brillos iridiscentes sobre la tinta de Üni (D-1509). */
.story::before {
  content: '';
  position: absolute;
  right: -20%;
  top: -10%;
  z-index: -1;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(126 98 240 / 0.35), rgb(126 98 240 / 0) 65%);
}

.story :focus-visible,
.foot :focus-visible {
  outline-color: var(--on-dark-accent);
}

.story .section-top {
  border-color: rgb(255 255 255 / 0.22);
  color: var(--on-dark-2);
}

.story .display em {
  color: var(--on-dark-accent);
}

.story-heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: clamp(64px, 9vw, 110px);
}

.story-heading > p {
  margin: 0;
  color: var(--on-dark-2);
  font-size: 17px;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8%;
  padding-bottom: clamp(64px, 9vw, 110px);
}

.story-visual {
  position: sticky;
  top: 12vh;
  display: grid;
  place-items: center;
  height: 76vh;
  min-height: 520px;
}

.visual-orbit {
  position: absolute;
  width: 90%;
  max-width: 560px;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 50%;
}

.board {
  position: relative;
  width: min(380px, 84%);
  padding: 24px;
  border-radius: 26px;
  background: var(--bg);
  box-shadow: 0 30px 70px rgb(8 8 30 / 0.5);
  color: var(--text);
  transform: rotate(-5deg);
}

.board-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Sin movimiento se ve solo el primer rótulo; con movimiento, uno por paso (motion.css). */
.board-states {
  display: grid;
  color: var(--brand-ink);
}

.board-states span {
  grid-area: 1 / 1;
}

.board-states span + span {
  display: none;
}

.board-title {
  margin: 22px 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.board-title span {
  color: var(--brand-ink);
}

.board-calendar {
  display: flex;
  gap: 8px;
}

.board-calendar span {
  flex: 1;
  padding: 10px 4px;
  border-radius: 10px;
  background: var(--tile);
  text-align: center;
}

.board-calendar small,
.board-calendar b {
  display: block;
}

.board-calendar small {
  color: var(--muted);
  font-size: 9px;
}

.board-calendar b {
  margin-top: 4px;
  font-size: 14px;
}

.board-calendar i {
  display: block;
  width: 5px;
  height: 5px;
  margin: 7px auto 0;
  border-radius: 50%;
  background: var(--brand);
}

.board-calendar .active {
  background: #cdc8ff;
}

.board-tasks {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.board-task {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px;
  border-radius: 12px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.board-task b {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}

.board-task .mark {
  color: var(--brand-ink);
}

.board-progress {
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.board-progress .bar {
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 6px;
  background: #e6e4ee;
  overflow: hidden;
}

.board-progress i {
  display: block;
  width: 85%;
  height: 100%;
  border-radius: 6px;
  background: var(--grad);
  transform: scaleX(0.45);
  transform-origin: 0 50%;
}

.visual-sticker {
  position: absolute;
  right: 2%;
  bottom: 12%;
  display: grid;
  place-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--iridescent);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transform: rotate(12deg);
}

.visual-spark {
  position: absolute;
  top: 10%;
  left: 4%;
  color: var(--on-dark-accent);
  font-size: 44px;
}

.story-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 66vh;
  border-bottom: 1px solid rgb(255 255 255 / 0.16);
}

.step-number,
.step-tag {
  color: var(--on-dark-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-step h3 {
  margin: 24px 0 14px;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.story-step .dot {
  color: var(--on-dark-accent);
}

.story-step p {
  margin: 0;
  max-width: 380px;
  color: var(--on-dark-2);
  font-size: 16px;
  line-height: 1.75;
}

.step-tag {
  margin-top: 26px;
}

/* En el teléfono, el tablero queda fijo arriba y los pasos pasan por debajo, como en la propuesta. */
@media (max-width: 720px) {
  .story-layout {
    display: block;
  }
  .story-visual {
    top: 0;
    z-index: 2;
    height: 400px;
    min-height: 0;
    background: var(--dark);
    -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent);
    mask-image: linear-gradient(to bottom, #000 92%, transparent);
  }
  .visual-orbit {
    width: 300px;
  }
  .board {
    width: 240px;
    padding: 16px;
    transform: rotate(-3deg);
  }
  .board-title {
    margin: 12px 0;
    font-size: 24px;
  }
  .board-calendar span {
    padding: 6px 2px;
  }
  .board-calendar b {
    font-size: 11px;
  }
  .board-task {
    margin: 0;
    padding: 9px;
    font-size: 10px;
  }
  .board-tasks {
    gap: 6px;
    margin-top: 8px;
  }
  .board-progress {
    margin-top: 10px;
  }
  .visual-sticker {
    width: 74px;
    height: 74px;
    font-size: 7px;
  }
  .visual-spark {
    font-size: 30px;
  }
  .story-step {
    min-height: 50vh;
    padding: 32px 0;
  }
  .story-step h3 {
    font-size: 52px;
  }
}

/* --- 03 Tu espacio (las seis funciones del 015b) ------------------------------------------------------------------- */

.product-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
}

.product-heading > p {
  margin: 0;
  max-width: 300px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  padding: 28px;
  border: 1px solid var(--glass-edge);
  border-radius: 26px;
  background: var(--glass);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-organizador {
  grid-row: span 2;
  background: linear-gradient(160deg, #e9e6ff 0%, #e2efff 100%);
}

.card-checkin {
  background: #ffeef4;
}

.card-semana {
  background: #fff6dc;
}

.card-bienestar {
  background: var(--mint-bg);
}

.card-autoevaluacion {
  grid-column: 1 / -1;
  min-height: 0;
  background: #eef0ff;
}

.card-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-top: 14px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.product-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.mini {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 8px 0;
}

.calendar-ui {
  width: 100%;
  max-width: 360px;
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgb(116 112 165 / 0.14);
  transform: rotate(-3deg);
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  font-size: 12px;
  text-align: center;
}

.calendar-days span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.calendar-days .dow {
  color: var(--muted);
}

.calendar-days .today {
  border-radius: 50%;
  background: var(--brand-ink);
  color: #ffffff;
}

.calendar-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.calendar-event i {
  width: 5px;
  height: 30px;
  border-radius: 5px;
}

.calendar-event b,
.calendar-event small {
  display: block;
}

.calendar-event small {
  margin-top: 3px;
  color: var(--muted);
}

.checkin-ui {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.checkin-ui .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: #ffffff;
}

.checkin-ui small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pips {
  display: flex;
  gap: 5px;
}

.pips i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f6dde6;
}

.pips i.on {
  background: #ff9fb8;
}

.week-ui {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgb(116 112 165 / 0.12);
}

.week-ui b {
  font-size: 18px;
  font-weight: 800;
}

.chip {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--tile);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 700;
}

.breath-ui {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
}

.breath-ui .ring {
  position: absolute;
  border: 1px solid rgb(30 107 69 / 0.2);
  border-radius: 50%;
}

.breath-ui .r1 {
  inset: 0;
  background: rgb(167 230 193 / 0.3);
}

.breath-ui .r2 {
  inset: 20px;
  background: rgb(167 230 193 / 0.5);
}

.breath-ui .r3 {
  inset: 40px;
  background: rgb(255 255 255 / 0.85);
}

.breath-ui b {
  position: relative;
  color: var(--mint-ink);
  font-size: 14px;
}

.community-ui .post {
  display: block;
  max-width: 290px;
  padding: 14px 16px;
  border-radius: 16px 16px 16px 4px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgb(116 112 165 / 0.12);
  font-size: 13px;
  line-height: 1.5;
}

.community-ui small {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-ink);
  font-weight: 800;
}

.community-ui .helpful {
  display: block;
  margin-top: 8px;
  color: var(--mint-ink);
  font-size: 11px;
  font-weight: 700;
}

.quiz-ui {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-ui i {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: #d5d8f0;
}

.quiz-ui i.on {
  background: var(--brand);
}

.quiz-ui small {
  margin-left: 8px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
}

.concept-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-organizador {
    grid-row: auto;
  }
  .product-card {
    min-height: 0;
    padding: 24px;
  }
}

/* --- 04 Tu semana en tres niveles (015b) --------------------------------------------------------------------------- */

.levels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 56px;
  align-items: start;
  margin-top: 8px;
}

.level-steps {
  display: flex;
  flex-direction: column;
}

/* Cada nivel ocupa casi una pantalla para que el teléfono fijo tenga tramo; su tarjeta se ajusta al texto. */
.level-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72vh;
}

.level-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3.5vw, 44px);
  isolation: isolate;
}

/* El vidrio detrás de cada nivel; con movimiento, se enciende el que está al centro. */
.level-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.level-step h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.level-step p {
  margin: 0;
  max-width: 460px;
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
}

.seg-bar {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 6px;
}

.seg-bar span,
.level-stack .bars span {
  height: 10px;
  border-radius: 999px;
}

.seg-bar .off,
.level-stack .off {
  opacity: 0.35;
}

.levels-phone {
  position: sticky;
  top: max(24px, calc(50vh - 290px));
  display: flex;
  justify-content: center;
  padding-block: 24px;
}

.phone-frame {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
  height: 560px;
  padding: 24px 18px;
  border: 9px solid var(--text);
  border-radius: 44px;
  background: var(--bg);
  box-shadow: 0 30px 60px rgb(31 31 36 / 0.25);
}

.phone-frame .hello {
  font-size: 15px;
  font-weight: 800;
}

.phone-frame .week-meta {
  margin-top: -8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.level-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.level-stack .card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.92) 40%, color-mix(in srgb, var(--tint) 45%, #ffffff));
}

.level-stack .overline {
  font-size: 9px;
}

.level-stack .level {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.level-stack .bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.level-stack .bars span {
  height: 8px;
}

.phone-frame > .overline {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ffffff;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.75);
}

.task .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.task .lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.skeleton {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
}

.skeleton.short {
  width: 60%;
}

.phone-frame .cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--grad);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

/* En el teléfono no cabe el teléfono fijo: cada nivel lleva su propia barra. */
@media (max-width: 900px) {
  .levels {
    grid-template-columns: minmax(0, 1fr);
  }
  .levels-phone {
    display: none;
  }
  .level-steps {
    gap: 16px;
  }
  .level-step {
    min-height: 0;
  }
  .level-card {
    padding: 28px 24px;
  }
}


/* --- 05 Bienestar --------------------------------------------------------------------------------------------------- */

.wellbeing {
  background: linear-gradient(180deg, var(--bg) 0%, #ece9ff 100%);
}

.wellbeing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 600px;
}

.wellbeing-copy > p:last-child {
  max-width: 400px;
  margin: 28px 0 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.75;
}

.wellbeing-copy .display {
  margin-top: 24px;
}

.wellbeing-art {
  position: relative;
  height: 560px;
}

.sticky-note {
  position: absolute;
  z-index: 2;
  width: 160px;
  height: 160px;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 15px 30px rgb(119 115 155 / 0.14);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.sticky-note > span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 22px;
}

.sticky-a {
  left: 4%;
  top: 8%;
  background: #fff4c2;
  transform: rotate(-9deg);
}

.sticky-b {
  right: 2%;
  top: 4%;
  background: #ffd6e2;
  font-size: 12px;
  transform: rotate(8deg);
}

.sticky-b b {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.well-star {
  position: absolute;
  right: 14%;
  bottom: 22%;
  color: #b9b6ff;
  font-size: 54px;
}

.well-caption {
  position: absolute;
  right: 0;
  bottom: 2%;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 900px) {
  .wellbeing-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .wellbeing-art {
    height: 440px;
  }
  .wellbeing-art .orb {
    width: 170px;
  }
  .sticky-note {
    width: 124px;
    height: 124px;
    padding: 14px;
    font-size: 13px;
  }
  .sticky-b b {
    font-size: 14px;
  }
}

/* --- 06 Empieza ----------------------------------------------------------------------------------------------------- */

.final {
  background: var(--lav);
  overflow: hidden;
}

.final .section-top {
  border-color: rgb(62 66 201 / 0.3);
}

.final-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  min-height: 560px;
}

.final-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.final .display {
  font-size: clamp(52px, 9vw, 140px);
}

.final-copy > p:not(.little-label):not(.note) {
  margin: 0;
  max-width: 460px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

.final-art {
  position: relative;
  height: 460px;
}

.final-art .orb {
  width: 240px;
  transform: translate(-50%, -50%) rotate(10deg);
}

.final-ring {
  position: absolute;
  inset: 5%;
  border: 1px solid rgb(91 95 239 / 0.35);
  border-radius: 50%;
}

.final-ring::after {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px dashed rgb(91 95 239 / 0.35);
  border-radius: 50%;
}

.final-star {
  position: absolute;
  right: 8%;
  top: 12%;
  color: #ffffff;
  font-size: 64px;
}

.final-art-text {
  position: absolute;
  left: 0;
  bottom: 10%;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  transform: rotate(-8deg);
}

.final-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgb(62 66 201 / 0.3);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .final-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .final-art {
    height: 360px;
  }
  .final-art .orb {
    width: 180px;
  }
}

/* Barra de lectura: solo existe donde hay animación ligada al scroll (motion.css). */
.progress {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 4px;
  background: var(--grad);
  transform-origin: 0 50%;
}

.section-lead {
  margin: 0;
  max-width: 640px;
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
}


/* --- Botones de tienda (D-1502) --------------------------------------------------------------------------------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--store);
  box-shadow: 0 14px 30px rgb(31 31 36 / 0.25);
  color: #ffffff;
  text-decoration: none;
}

.store svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.store .lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.store .small {
  font-size: 11px;
  font-weight: 500;
}

.store .name {
  font-size: 16px;
  font-weight: 700;
}

/* La nota del APK de Android (spec 021b). */
.apk-note {
  max-width: 420px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* Todavía sin enlace: se ve igual pero no invita a tocar. */
.store.soon {
  background: #4a4e5e;
  box-shadow: none;
  cursor: default;
}

/* --- Documentos (consentimiento y privacidad) ------------------------------------------------------------------- */

.doc {
  max-width: 820px;
  padding-block: 24px 90px;
}

.doc .sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 48px);
}

.doc .sheet + .sheet {
  margin-top: 24px;
}

.doc h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  overflow-wrap: break-word;
  hyphens: auto;
}

.doc .sheet h2 {
  font-size: 20px;
  margin-top: 12px;
}

.doc p,
.doc li {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}

.doc ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.doc strong {
  color: var(--text);
}

.doc .meta {
  color: var(--muted);
  font-size: 14px;
}

.doc .draft {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff7dd;
  color: #6e5100;
  font-size: 13px;
  font-weight: 700;
}


/* --- Pie (oscuro, como en la propuesta) ------------------------------------------------------------------------------- */

.foot {
  padding: 64px var(--gutter) 28px;
  background: var(--dark);
  color: var(--on-dark);
}

.foot-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 30px;
  max-width: 1360px;
  margin: 0 auto;
}

/* El logotipo en claro sobre la tinta. */
.foot .brand svg path[fill='#1F1F24'] {
  fill: var(--on-dark);
}

.foot-main > p {
  margin: 0;
  color: var(--on-dark-2);
  font-size: 15px;
  line-height: 1.6;
}

.foot ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.foot ul a:hover {
  color: var(--on-dark-accent);
  text-decoration: underline;
}

.back-top {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 50%;
  color: var(--on-dark);
  text-decoration: none;
}

.foot-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 35px;
  max-width: 1360px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  color: var(--on-dark-2);
  font-size: 13px;
  line-height: 1.7;
}

.foot-legal p {
  margin: 0;
}

.foot-legal small {
  font-size: 12px;
}

@media (max-width: 900px) {
  .foot-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .foot-legal {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
/*
 * Movimiento de la landing (spec 015b y 015c, D-1507): solo CSS, sin JavaScript. Lo que la propuesta hacía con
 * `script.js` (aparición de bloques, tablero que cambia con cada paso, menú compacto) va ligado al scroll. Todo vive
 * dentro de @supports y de prefers-reduced-motion: no-preference; sin soporte (Firefox) o si se pide menos movimiento,
 * la página se ve completa y quieta (AC-015-14). Los fotogramas solo tocan transform y opacity (AC-015-15).
 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress {
      display: block;
      animation: grow-x linear both;
      animation-timeline: scroll(root);
    }

    /* El vidrio del menú aparece en los primeros 120 px. */
    .top::before {
      animation: fade-in linear both;
      animation-timeline: scroll(root);
      animation-range: 0 120px;
    }

    /* Inicio: el título sube línea por línea al cargar; el resto entra después. */
    .title-line > span {
      animation: title-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    .title-line:nth-child(2) > span {
      animation-delay: 0.13s;
    }
    .title-line:nth-child(3) > span {
      animation-delay: 0.26s;
    }
    .hero-copy > :not(h1) {
      animation: rise 0.8s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    /* El teléfono flota y sube al bajar; las notas bajan, para que se separen. */
    .phone {
      animation: phone-float 6s ease-in-out infinite;
    }
    .float-note {
      animation: float 5s ease-in-out infinite;
    }
    .note-bottom {
      animation-delay: -2s;
    }
    .layer-phone {
      animation: lift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    .layer-notes {
      animation: sink linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    /* En una columna el teléfono va debajo del texto: si sube con el scroll, lo tapa (visto en iPhone; spec 021b). */
    @media (max-width: 900px) {
      .layer-phone,
      .layer-notes {
        animation: none;
      }
    }
    .orbit-b {
      animation: spin 40s linear infinite;
    }
    .glow {
      animation: breathe 9s ease-in-out infinite alternate;
    }
    .glow-b {
      animation-delay: -4s;
    }

    /* Bloques que suben al entrar en pantalla; en las tarjetas, uno tras otro. */
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    .product-grid .reveal:nth-child(3n + 2) {
      animation-range: entry 8% entry 88%;
    }
    .product-grid .reveal:nth-child(3n + 3) {
      animation-range: entry 16% entry 96%;
    }

    /*
     * Cómo funciona: el tablero queda fijo y cambia de estado con cada paso, siguiendo el recorrido de la sección entera
     * (--story): rótulo del paso, tareas que se reordenan al priorizar, barra que avanza y el tablero que se relaja al final.
     */
    .story-layout {
      view-timeline: --story block;
    }
    .board-states span + span {
      display: block;
    }
    .board-states span {
      animation: state-1 linear both;
      animation-timeline: --story;
      animation-range: contain 0% contain 100%;
    }
    .board-states span:nth-child(2) {
      animation-name: state-2;
    }
    .board-states span:nth-child(3) {
      animation-name: state-3;
    }
    .board-states span:nth-child(4) {
      animation-name: state-4;
    }
    .board-tasks {
      --task-gap: 10px;
    }
    .board-task.first {
      animation: swap-down linear both;
      animation-timeline: --story;
      animation-range: contain 0% contain 100%;
    }
    .board-task.second {
      animation: swap-up linear both;
      animation-timeline: --story;
      animation-range: contain 0% contain 100%;
    }
    .board-task.second::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: rgb(91 95 239 / 0.14);
      animation: highlight linear both;
      animation-timeline: --story;
      animation-range: contain 0% contain 100%;
    }
    .board-progress i {
      animation: progress-fill linear both;
      animation-timeline: --story;
      animation-range: contain 0% contain 100%;
    }
    .board {
      animation: board-relax linear both;
      animation-timeline: --story;
      animation-range: contain 0% contain 100%;
    }
    /* Cada paso se enciende al llegar al centro y queda encendido; apagado sigue en AA (AC-015-16). */
    .story-step {
      animation: step-focus linear both;
      animation-timeline: view();
      animation-range: cover 20% cover 45%;
    }

    /* Tu espacio: la respiración de la tarjeta de bienestar. */
    .breath-ui .r2,
    .breath-ui .r1 {
      animation: breath 8s ease-in-out infinite;
    }
    .breath-ui .r1 {
      animation-delay: -0.6s;
    }

    /*
     * Tu semana en tres niveles: el teléfono queda fijo mientras pasan los niveles, y su tarjeta cambia de uno a otro
     * siguiendo el recorrido de la sección entera (--levels).
     */
    .levels {
      view-timeline: --levels block;
    }
    .level-stack {
      display: grid;
    }
    .level-stack .card {
      grid-area: 1 / 1;
      animation: level-1 linear both;
      animation-timeline: --levels;
      animation-range: contain 0% contain 100%;
    }
    .level-stack [data-level='INTENSE'] {
      animation-name: level-2;
    }
    .level-stack [data-level='PRIORITY'] {
      animation-name: level-3;
    }
    .phone-frame {
      animation: sway linear both;
      animation-timeline: --levels;
      animation-range: contain 0% contain 100%;
    }
    .level-card::before {
      animation: spotlight linear both;
      animation-timeline: view();
      animation-range: cover 10% cover 90%;
    }
  }

  @media (prefers-reduced-motion: no-preference) and (max-width: 720px) {
    .board-tasks {
      --task-gap: 6px;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes title-in {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

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

@keyframes phone-float {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(-6deg) translateY(-12px);
  }
}

@keyframes lift {
  to {
    transform: translateY(-120px);
  }
}

@keyframes sink {
  to {
    transform: translateY(80px);
  }
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes breathe {
  to {
    transform: translate(8%, 5%) scale(1.1);
  }
}

@keyframes breath {
  0%,
  100% {
    transform: scale(0.88);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes state-1 {
  0%,
  20% {
    opacity: 1;
  }
  26%,
  100% {
    opacity: 0;
  }
}

@keyframes state-2 {
  0%,
  20% {
    opacity: 0;
  }
  26%,
  45% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes state-3 {
  0%,
  45% {
    opacity: 0;
  }
  51%,
  70% {
    opacity: 1;
  }
  76%,
  100% {
    opacity: 0;
  }
}

@keyframes state-4 {
  0%,
  70% {
    opacity: 0;
  }
  76%,
  100% {
    opacity: 1;
  }
}

@keyframes swap-down {
  0%,
  20% {
    transform: none;
  }
  30%,
  100% {
    transform: translateY(calc(100% + var(--task-gap)));
  }
}

@keyframes swap-up {
  0%,
  20% {
    transform: none;
  }
  30%,
  100% {
    transform: translateY(calc(-100% - var(--task-gap)));
  }
}

@keyframes highlight {
  0%,
  22% {
    opacity: 0;
  }
  30%,
  46% {
    opacity: 1;
  }
  54%,
  100% {
    opacity: 0;
  }
}

@keyframes progress-fill {
  0%,
  48% {
    transform: scaleX(0.45);
  }
  60%,
  100% {
    transform: scaleX(1);
  }
}

@keyframes board-relax {
  0%,
  72% {
    transform: rotate(-5deg);
  }
  82%,
  100% {
    transform: rotate(3deg) scale(0.96);
  }
}

@keyframes step-focus {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

@keyframes level-1 {
  0%,
  28% {
    opacity: 1;
    transform: none;
  }
  36%,
  100% {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }
}

@keyframes level-2 {
  0%,
  28% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  36%,
  62% {
    opacity: 1;
    transform: none;
  }
  70%,
  100% {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }
}

@keyframes level-3 {
  0%,
  62% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  70%,
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes sway {
  from {
    transform: rotate(-4deg);
  }
  50% {
    transform: none;
  }
  to {
    transform: rotate(4deg);
  }
}

@keyframes spotlight {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  35%,
  65% {
    opacity: 1;
    transform: none;
  }
}
