/* Landing de Noveo (noveo.es). La app vive en /app. Mismos colores y letras que la app. */

@font-face {
  font-family: 'Literata';
  src: url('/fonts/literata-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/fonts/literata-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0b10;
  --surface: #14131c;
  --surface-2: #1c1a27;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f1f7;
  --text-2: #c9c6d8;
  --text-3: #8e8aa3;
  --accent: #7352f2;
  --accent-soft: #b3a4ff;
  --grad: linear-gradient(135deg, #b9a6ff 0%, #7352f2 55%, #5b32fb 100%);
  --serif: 'Literata', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
/* Nada se sale por los lados (los libros que llegan volando, los brillos): sin desplazamiento horizontal */
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--accent);
  border-radius: 8px;
}

.kicker {
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.center {
  text-align: center;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Iconos (los de la app: trazos de 24 × 24) */
.i {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i.fill {
  fill: currentColor;
  stroke: none;
}

/* Las secciones a las que lleva el menú no quedan bajo la cabecera */
section[id] {
  scroll-margin-top: 84px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(115, 82, 242, 0.35);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(115, 82, 242, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 0.92rem;
}

/* Cabecera */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: 0 var(--gutter);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.nav.solid {
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand img {
  height: 34px;
  width: auto;
}
.nav nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav nav a {
  color: var(--text-2);
  font-size: 0.94rem;
  text-decoration: none;
}
.nav nav a:hover {
  color: var(--text);
}
@media (max-width: 760px) {
  .nav nav {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

/* Aparecer al bajar */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ─── Portada ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow-x: clip;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 40px;
  max-width: var(--max);
  min-height: 100svh;
  margin: 0 auto;
  padding: 110px var(--gutter) 60px;
}
.hero-glow {
  position: absolute;
  inset: -10% -20% auto;
  height: 900px;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 70% 40%, rgba(115, 82, 242, 0.35), transparent 70%),
    radial-gradient(30% 30% at 20% 30%, rgba(185, 166, 255, 0.18), transparent 70%);
  filter: blur(10px);
  animation: glow 12s ease-in-out infinite alternate;
}
@keyframes glow {
  to {
    transform: translate(-4%, 3%) scale(1.08);
  }
}
.hero-text {
  display: grid;
  gap: 22px;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1;
}
.lead {
  max-width: 34rem;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 0.84rem;
}
.hero-text [data-reveal]:nth-child(2) {
  --d: 0.08s;
}
.hero-text [data-reveal]:nth-child(3) {
  --d: 0.16s;
}
.hero-text [data-reveal]:nth-child(4) {
  --d: 0.24s;
}
.hero-text [data-reveal]:nth-child(5) {
  --d: 0.32s;
}

/* Portadas flotando al fondo */
.floaters {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.floaters .fl {
  position: absolute;
  width: 92px;
  height: 138px;
  padding: 0;
  opacity: 0.22;
  filter: blur(1.5px);
  animation: drift 18s ease-in-out infinite;
}
.fl1 {
  left: 4%;
  top: 14%;
  rotate: -14deg;
}
.floaters .fl2 {
  left: 42%;
  top: 6%;
  width: 70px;
  height: 105px;
  rotate: 10deg;
  animation-delay: -6s;
}
.fl3 {
  right: 3%;
  bottom: 10%;
  rotate: 16deg;
  animation-delay: -3s;
}
.floaters .fl4 {
  left: 30%;
  bottom: 4%;
  width: 64px;
  height: 96px;
  rotate: -8deg;
  animation-delay: -9s;
}
.floaters .fl5 {
  right: 34%;
  top: 4%;
  width: 56px;
  height: 84px;
  rotate: 22deg;
  opacity: 0.14;
  animation-delay: -12s;
}
@keyframes drift {
  50% {
    transform: translate(18px, -26px) rotate(6deg);
  }
}

/* La tablet */
.tilt {
  width: min(100%, 420px);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
}
.stage {
  position: relative;
  text-align: left;
  display: grid;
  justify-items: center;
  gap: 18px;
  perspective: 1400px;
}
.tablet {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2a2838, #13121a);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
  transform: rotateY(-14deg) rotateX(6deg);
  transform-style: preserve-3d;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: rotateY(-10deg) rotateX(3deg) translateY(-10px);
  }
}
.tablet::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.09) 0%, transparent 35%);
  pointer-events: none;
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 22px;
  background: #0d0c13;
  overflow: visible;
}
.scr {
  position: absolute;
  inset: 0;
  padding: 18px 18px 16px;
  border-radius: 22px;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.scr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scr-top img {
  height: 18px;
}
.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
}
.scr-title {
  margin: 16px 0 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}
.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 12px;
}
.slot {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Portadas dibujadas (como las de la app, con el título) */
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 9% 9% 8%;
  border-radius: 6px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(160deg, hsl(var(--h) 55% 42%), hsl(calc(var(--h) + 35) 55% 18%));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    inset 3px 0 0 rgba(255, 255, 255, 0.12);
}
.cover::before {
  content: '';
  position: absolute;
  inset: auto -20% -30% auto;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
}
.cover b {
  font-family: var(--serif);
  font-size: clamp(0.62rem, 1.7vw, 0.8rem);
  line-height: 1.15;
}
.cover i {
  font-style: normal;
  font-size: clamp(0.5rem, 1.2vw, 0.6rem);
  opacity: 0.8;
}
.c1 {
  --h: 18;
}
.c2 {
  --h: 330;
}
.c3 {
  --h: 205;
}
.c4 {
  --h: 230;
}
.c5 {
  --h: 268;
}
.c6 {
  --h: 120;
}

/* Fase 1: llegan los libros volando y caen en su sitio */
.stage .shelf .cover {
  opacity: 0;
}
.stage.p-library .shelf .cover {
  animation: fly 1.1s var(--ease) both;
}
.stage.p-library .slot:nth-child(2) .cover {
  animation-delay: 0.35s;
}
.stage.p-library .slot:nth-child(3) .cover {
  animation-delay: 0.7s;
}
.stage.p-library .slot:nth-child(4) .cover {
  animation-delay: 1.05s;
}
.stage.p-library .slot:nth-child(5) .cover {
  animation-delay: 1.4s;
}
.stage.p-library .slot:nth-child(6) .cover {
  animation-delay: 1.75s;
}
@keyframes fly {
  0% {
    opacity: 0;
    transform: translate(calc(var(--fx) * var(--k, 1)), calc(var(--fy) * var(--k, 1))) rotate(var(--fr)) scale(1.7);
  }
  20% {
    opacity: 1;
  }
  75% {
    transform: translate(0, -10px) rotate(0) scale(1.06);
  }
  88% {
    transform: translate(0, 2px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.stage.p-open .shelf .cover,
.stage.p-read .shelf .cover,
.stage.p-ai .shelf .cover {
  opacity: 1;
}

/* Fase 2: se abre el primero */
.scr-reader {
  opacity: 0;
  transform: scale(0.35) translate(-60%, -70%);
  transform-origin: 18% 22%;
  padding: 22px 22px 18px;
  background: #121110;
  overflow: hidden;
}
.stage.p-open .scr-library,
.stage.p-read .scr-library,
.stage.p-ai .scr-library {
  opacity: 0;
  transform: scale(1.06);
}
.stage.p-open .scr-reader,
.stage.p-read .scr-reader,
.stage.p-ai .scr-reader {
  opacity: 1;
  transform: none;
}
.rd-head {
  color: #8f877c;
  font-size: 0.7rem;
  text-align: center;
}
.rd-text {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: #ddd6cc;
  font-family: var(--serif);
  font-size: clamp(0.72rem, 1.7vw, 0.86rem);
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
}
/* Fase 3: se subraya una frase y sale una nota */
.hl {
  color: inherit;
  background: linear-gradient(rgba(245, 197, 24, 0.38), rgba(245, 197, 24, 0.38)) no-repeat 0 0 / 0% 100%;
  transition: background-size 1.6s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.stage.p-read .hl,
.stage.p-ai .hl {
  background-size: 100% 100%;
}
.note-pop {
  position: absolute;
  right: 16px;
  bottom: 9%;
  max-width: 62%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8d6;
  color: #3b2f00;
  font-size: 0.72rem;
  line-height: 1.4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(10px) rotate(2deg) scale(0.9);
  transition:
    opacity 0.5s var(--ease) 1.4s,
    transform 0.5s var(--ease) 1.4s;
}
.stage.p-read .note-pop {
  opacity: 1;
  transform: rotate(2deg);
}
/* Fase 4: el panel de la IA con el resumen escribiéndose */
.ai-sheet {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 16px 20px;
  border-radius: 18px 18px 22px 22px;
  background: rgba(24, 22, 34, 0.96);
  box-shadow:
    0 -20px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(105%);
  transition: transform 0.7s var(--ease);
}
.stage.p-ai .ai-sheet {
  transform: none;
}
.ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
.ai-head em {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(115, 82, 242, 0.22);
  color: var(--accent-soft);
  font-size: 0.66rem;
  font-style: normal;
}
.spark .i {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
.reco .spark .i {
  width: 22px;
  height: 22px;
  fill: rgba(255, 255, 255, 0.25);
}
.spark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-size: 0.8rem;
}
.ai-text {
  min-height: 5.6em;
  margin-top: 10px;
  color: #e9e5ff;
  font-family: var(--serif);
  font-size: clamp(0.72rem, 1.6vw, 0.84rem);
  line-height: 1.5;
}
.ai-text::after {
  content: '▍';
  margin-left: 1px;
  color: var(--accent-soft);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.stage-caption {
  position: relative;
  height: 1.6em;
  width: 100%;
  text-align: center;
  color: var(--text-3);
  font-size: 0.95rem;
}
.cap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.stage.p-library .cap-1,
.stage.p-open .cap-2,
.stage.p-read .cap-2,
.stage.p-ai .cap-3 {
  opacity: 1;
  transform: none;
}
.stage.p-out .tablet .scr {
  opacity: 0;
  transition: opacity 0.6s;
}

/* ─── Formatos ───────────────────────────────────────────────────────────────────────────────────────────────── */
.formats {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 40px 0 80px;
}
.formats-title {
  color: var(--text-3);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}
.marquee-track span:nth-child(3n + 1) {
  color: var(--accent-soft);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.formats-sub {
  max-width: 46rem;
  padding: 0 var(--gutter);
  color: var(--text-2);
  text-align: center;
}
/* Tarjeta con contorno entero, nunca franja a un lado */
.only-reader {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 46rem;
  margin: 6px var(--gutter) 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(179, 164, 255, 0.28);
  color: var(--text-2);
}
.or-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(115, 82, 242, 0.18);
  color: var(--accent-soft);
}
.or-ic .i {
  width: 24px;
  height: 24px;
}

/* ─── Cómo funciona ──────────────────────────────────────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 30px;
}
.steps h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.step-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
/* La línea que une los pasos se dibuja al llegar */
.step-list::before {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  top: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease) 0.3s;
}
.step-list.drawn::before {
  transform: none;
}
.step-list li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 22px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.step-list li:nth-child(2) {
  --d: 0.15s;
}
.step-list li:nth-child(3) {
  --d: 0.3s;
}
.step-ic {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(115, 82, 242, 0.4);
}
.num {
  position: absolute;
  top: 14px;
  left: 18px;
  color: var(--text-3);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 800;
  opacity: 0.5;
}
.step-list h3 {
  font-size: 1.2rem;
}
.step-list p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ─── Funciones ──────────────────────────────────────────────────────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--gutter);
}
.feature.reverse .feature-text {
  order: 2;
}
.feature-text {
  display: grid;
  gap: 18px;
}
.feature h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}
.feature-text > p:not(.kicker) {
  color: var(--text-2);
}
.feature strong {
  color: var(--text);
}
.ticks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-soft);
  font-weight: 800;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips span {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(115, 82, 242, 0.14);
  box-shadow: inset 0 0 0 1px rgba(115, 82, 242, 0.35);
  color: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 600;
}
.demo {
  position: relative;
  min-height: 360px;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(80% 80% at 80% 0%, rgba(115, 82, 242, 0.22), transparent 60%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

/* Voz: ondas y la frase que suena */
.player {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 56px;
}
.wave i {
  flex: 1;
  height: 20%;
  border-radius: 999px;
  background: var(--grad);
}
.demo-voice.play .wave i {
  animation: wave 1.1s ease-in-out infinite;
}
.wave i:nth-child(3n) {
  animation-delay: -0.2s !important;
}
.wave i:nth-child(3n + 1) {
  animation-delay: -0.5s !important;
}
.wave i:nth-child(4n) {
  animation-delay: -0.8s !important;
}
@keyframes wave {
  0%,
  100% {
    height: 18%;
  }
  50% {
    height: 100%;
  }
}
.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.9rem;
}
.player-row .play {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
}
.speed {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}
.karaoke {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.6;
  color: var(--text-3);
}
.karaoke span {
  border-radius: 6px;
  transition:
    color 0.4s,
    background 0.4s;
}
.karaoke span.on {
  color: var(--text);
  background: rgba(115, 82, 242, 0.28);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* IA: conversación */
.chat {
  display: grid;
  gap: 12px;
}
.msg {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.msg.me {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: var(--accent);
  color: #fff;
}
.msg.ai {
  border-bottom-left-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--serif);
}
.msg.show {
  opacity: 1;
  transform: none;
}
.msg .txt {
  display: none;
}
.msg.done .txt {
  display: inline;
}
.msg.done .typing {
  display: none;
}
.typing {
  display: inline-flex;
  gap: 4px;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
  animation: dot 1s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dot {
  50% {
    transform: translateY(-5px);
    opacity: 0.4;
  }
}
.badge-nospoil {
  justify-self: start;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6) rotate(-6deg);
  transition:
    opacity 0.5s,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge-nospoil.show {
  opacity: 1;
  transform: rotate(-3deg);
}

/* Subrayados */
.page {
  position: relative;
  padding: 26px 24px;
  border-radius: 16px;
  background: #f4efe4;
  color: #2b2620;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  line-height: 1.7;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.5deg);
}
.mk {
  color: inherit;
  background: no-repeat 0 0 / 0% 100%;
  transition: background-size 1.1s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mk.y {
  background-image: linear-gradient(rgba(245, 197, 24, 0.55), rgba(245, 197, 24, 0.55));
}
.mk.g {
  background-image: linear-gradient(rgba(79, 209, 139, 0.5), rgba(79, 209, 139, 0.5));
  transition-delay: 0.9s;
}
.mk.p {
  background-image: linear-gradient(rgba(255, 111, 174, 0.45), rgba(255, 111, 174, 0.45));
  transition-delay: 1.8s;
}
.demo-marks.play .mk {
  background-size: 100% 100%;
}
.sticky {
  position: absolute;
  right: -10px;
  bottom: -26px;
  width: 52%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8d6;
  color: #3b2f00;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(14px) rotate(5deg);
  transition:
    opacity 0.6s var(--ease) 2.6s,
    transform 0.6s var(--ease) 2.6s;
}
.demo-marks.play .sticky {
  opacity: 1;
  transform: rotate(3deg);
}
.pdf {
  position: absolute;
  left: 30px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.6s var(--ease) 3.2s,
    transform 0.6s var(--ease) 3.2s;
}
.pdf span {
  padding: 3px 7px;
  border-radius: 6px;
  background: #e5484d;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.demo-marks.play .pdf {
  opacity: 1;
  transform: none;
}
.demo-marks {
  display: grid;
  align-content: start;
  padding-bottom: 90px;
}

/* Objetivo */
.demo-goal {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 26px;
}
.ring {
  position: relative;
  width: 170px;
}
.ring svg {
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 12;
}
.ring .track {
  stroke: rgba(255, 255, 255, 0.07);
}
.ring .fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  transition: stroke-dashoffset 2.2s var(--ease);
}
.demo-goal.play .ring .fill {
  stroke-dashoffset: 94;
}
.ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ring-text b {
  font-family: var(--serif);
  font-size: 1.7rem;
}
.ring-text span {
  color: var(--text-3);
  font-size: 0.85rem;
}
.week {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
}
.week span {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  height: 100%;
  color: var(--text-3);
  font-size: 0.8rem;
  text-align: center;
}
.week i {
  align-self: end;
  height: 0;
  min-height: 4px;
  border-radius: 6px;
  background: var(--grad);
  transition: height 1.2s var(--ease);
}
.demo-goal.play .week i {
  height: var(--h);
}
.week span:nth-child(2) i {
  transition-delay: 0.1s;
}
.week span:nth-child(3) i {
  transition-delay: 0.2s;
}
.week span:nth-child(4) i {
  transition-delay: 0.3s;
}
.week span:nth-child(5) i {
  transition-delay: 0.4s;
}
.week span:nth-child(6) i {
  transition-delay: 0.5s;
}
.week span:nth-child(7) i {
  transition-delay: 0.6s;
}
.streak {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}
.flame {
  color: #ff8a3d;
  fill: rgba(255, 138, 61, 0.25);
}

/* Tu año */
.demo-year {
  display: grid;
  place-items: center;
  perspective: 1000px;
}
.year-card {
  width: min(100%, 330px);
  padding: 26px 24px;
  border-radius: 22px;
  background:
    radial-gradient(90% 60% at 10% 0%, rgba(155, 132, 255, 0.55), transparent 60%),
    linear-gradient(160deg, #2c1b78, #16112e 60%, #0b0b10);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-12deg) rotateX(8deg) rotate(2deg);
  transition: transform 0.6s var(--ease);
  animation: float-card 6s ease-in-out infinite;
}
@keyframes float-card {
  50% {
    transform: rotateY(-6deg) rotateX(4deg) rotate(1deg) translateY(-8px);
  }
}
.year-card img {
  height: 22px;
  width: auto;
}
.yc-kicker {
  margin-top: 18px;
  font-weight: 700;
  font-size: 1.2rem;
}
.yc-year {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}
.yc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.yc-grid b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}
.yc-grid span {
  color: #cfc8ef;
  font-size: 0.82rem;
}
.yc-covers {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.yc-covers .cover {
  width: 52px;
  height: 78px;
  padding: 0;
}

/* Sincronización */
.demo-sync {
  display: grid;
  place-items: center;
  min-height: 380px;
}
.dev {
  position: absolute;
  padding: 7px;
  border-radius: 14px;
  background: linear-gradient(160deg, #2a2838, #13121a);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.dev-screen {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 9px;
  background:
    repeating-linear-gradient(transparent 0 12px, rgba(255, 255, 255, 0.06) 12px 14px) 14% 18% / 72% 55% no-repeat,
    #121110;
}
.laptop {
  width: 62%;
  height: 46%;
  left: 6%;
  top: 12%;
}
.laptop::after {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -14px;
  height: 14px;
  border-radius: 0 0 14px 14px;
  background: #23212f;
}
.tab {
  width: 34%;
  height: 50%;
  right: 6%;
  top: 28%;
}
.phone {
  width: 18%;
  height: 38%;
  left: 30%;
  bottom: 6%;
  border-radius: 18px;
}
.dev-pct {
  position: absolute;
  bottom: 12%;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dev-pct.on {
  transform: scale(1);
}
.dev-bar {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.dev-bar::after {
  content: '';
  position: absolute;
  inset: 0 48% 0 0;
  border-radius: inherit;
  background: var(--accent-soft);
}
.pulse {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 20px var(--accent);
  opacity: 0;
}
.demo-sync.play .p1 {
  animation: travel1 3.2s var(--ease) infinite;
}
.demo-sync.play .p2 {
  animation: travel2 3.2s var(--ease) 1.6s infinite;
}
@keyframes travel1 {
  0% {
    left: 36%;
    top: 34%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 80%;
    top: 52%;
    opacity: 0;
  }
}
@keyframes travel2 {
  0% {
    left: 80%;
    top: 52%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 38%;
    top: 74%;
    opacity: 0;
  }
}

/* Amigos */
.demo-friends {
  display: grid;
  align-content: center;
  gap: 14px;
}
.friend,
.reco {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.friend b,
.reco b {
  color: var(--text);
}
.friend em {
  color: var(--accent-soft);
  font-style: normal;
}
.av {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(160deg, hsl(var(--h) 70% 65%), hsl(calc(var(--h) + 30) 60% 40%));
  color: #fff;
  font-weight: 800;
}
.reco {
  margin-left: 26px;
  box-shadow: inset 0 0 0 1.5px var(--accent);
  transition-delay: 0.8s;
}
.reco .spark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1.1rem;
}
.f2 {
  transition-delay: 0.35s;
}
.demo-friends.play .friend,
.demo-friends.play .reco {
  opacity: 1;
  transform: none;
}

/* ─── Leer juntos ────────────────────────────────────────────────────────────────────────────────────────────── */
.plus-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  vertical-align: 1px;
}
.together {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--gutter);
}
.together::before {
  content: '';
  position: absolute;
  inset: 10% 0 auto;
  height: 70%;
  background:
    radial-gradient(40% 50% at 22% 50%, rgba(255, 155, 84, 0.12), transparent 70%),
    radial-gradient(40% 50% at 78% 50%, rgba(115, 82, 242, 0.18), transparent 70%);
  pointer-events: none;
}
.together-head {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.together-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
}
.together-head > p:last-child {
  color: var(--text-2);
}
.tg-scene {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(250px, 290px) 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.tg-person {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: center;
}
.tg-ana {
  justify-items: end;
}
.tg-you {
  justify-items: start;
}
.tg-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tg-ana .tg-who {
  flex-direction: row-reverse;
  text-align: right;
}
.tg-av {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(160deg, hsl(var(--h) 75% 66%), hsl(calc(var(--h) + 30) 62% 42%));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  animation: tg-float 5s ease-in-out infinite;
}
.tg-you .tg-av {
  animation-delay: -2.5s;
}
/* Leyendo: un anillo que late */
.tg-av::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid hsl(var(--h) 80% 65% / 0.5);
  animation: tg-ring 2.4s ease-out infinite;
}
@keyframes tg-float {
  50% {
    transform: translateY(-6px);
  }
}
@keyframes tg-ring {
  from {
    transform: scale(0.9);
    opacity: 1;
  }
  to {
    transform: scale(1.35);
    opacity: 0;
  }
}
/* Escribiendo… */
.tg-typing {
  position: absolute;
  right: -18px;
  bottom: -6px;
  display: flex;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease);
}
.tg-typing b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-2);
  animation: tg-dots 1s infinite;
}
.tg-typing b:nth-child(2) {
  animation-delay: 0.15s;
}
.tg-typing b:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes tg-dots {
  50% {
    transform: translateY(-3px);
    opacity: 0.4;
  }
}
.tg-scene.typing .tg-typing {
  opacity: 1;
  transform: none;
}
.tg-name {
  display: grid;
  line-height: 1.3;
}
.tg-name b {
  font-size: 1.05rem;
}
.tg-name span {
  color: var(--text-3);
  font-size: 0.85rem;
}
.tg-name i {
  font-style: normal;
}

/* Bocadillos: la nota de Ana apunta al móvil por la derecha; tu respuesta, por la izquierda */
.tg-bubble {
  position: relative;
  max-width: 280px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1.5px var(--c);
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.tg-bubble::after {
  content: '';
  position: absolute;
  top: 22px;
  width: 14px;
  height: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--c);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.tg-note {
  --c: #ff9b54;
  text-align: left;
  transform-origin: right center;
}
.tg-note::after {
  right: -7px;
  transform: rotate(45deg);
}
.tg-reply {
  --c: var(--accent);
  transform-origin: left center;
}
.tg-reply::after {
  left: -7px;
  transform: rotate(-135deg);
}
.tg-label {
  display: block;
  margin-bottom: 4px;
  color: #ffb27f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tg-scene.s-note .tg-note,
.tg-scene.s-reply .tg-reply {
  opacity: 1;
  transform: none;
}
.tg-chips {
  position: absolute;
  left: 12px;
  bottom: -14px;
  display: flex;
  gap: 4px;
}
.tg-chips span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.82rem;
  animation: tg-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tg-chips span.bump {
  animation: tg-bump 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes tg-pop {
  from {
    transform: scale(0);
  }
}
@keyframes tg-bump {
  50% {
    transform: scale(1.3);
  }
}

/* Reaccionar tú (se puede tocar) */
.tg-react {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tg-react > span {
  margin-right: 4px;
  color: var(--text-3);
  font-size: 0.8rem;
}
.tg-react button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.tg-react button:hover {
  background: var(--surface-2);
  transform: translateY(-3px) scale(1.15);
}
.tg-react button:active {
  transform: scale(0.9);
}
.tg-react button:focus-visible {
  outline: 2px solid var(--accent-soft);
}

/* El móvil con el capítulo */
.tg-phone {
  position: relative;
  aspect-ratio: 9 / 17;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2a2838, #13121a);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.tg-phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 70px;
  height: 18px;
  border-radius: 999px;
  background: #0b0b10;
  transform: translateX(-50%);
}
.tg-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 46px 20px 18px;
  border-radius: 30px;
  background: #f4efe4;
  color: #2b2620;
  overflow: hidden;
}
.tg-chap {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}
/* El texto se corta con un degradado: el aviso y la barra siempre a la vista */
.tg-text {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.75;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.tg-hl {
  color: inherit;
  background-color: transparent;
  padding-bottom: 2px;
  background-repeat: no-repeat;
  background-size:
    0% 100%,
    0% 2px;
  background-position:
    0 0,
    0 100%;
  transition: background-size 1.2s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* Los de Ana: línea de puntos de su color; los tuyos, tu color */
.tg-hl-ana {
  background-image:
    linear-gradient(rgba(255, 155, 84, 0.22), rgba(255, 155, 84, 0.22)),
    repeating-linear-gradient(90deg, #f07a2a 0 5px, transparent 5px 9px);
}
.tg-hl-you {
  background-image:
    linear-gradient(rgba(115, 82, 242, 0.22), rgba(115, 82, 242, 0.22)),
    linear-gradient(#7352f2, #7352f2);
}
.tg-scene.s-ana .tg-hl-ana,
.tg-scene.s-you .tg-hl-you {
  background-size:
    100% 100%,
    100% 2px;
}
.tg-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(43, 38, 32, 0.3);
  color: #6b6152;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.tg-scene.s-locked .tg-locked {
  opacity: 1;
  transform: none;
}
.tg-bar {
  position: relative;
  height: 24px;
  margin: 0 6px;
}
.tg-bar i {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 2px;
  background: rgba(43, 38, 32, 0.14);
}
.tg-dot {
  position: absolute;
  top: 50%;
  left: var(--from);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(160deg, hsl(var(--h) 75% 62%), hsl(calc(var(--h) + 30) 62% 42%));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 0 0 3px #f4efe4;
  transform: translate(-50%, -50%);
  transition: left 1.8s var(--ease);
}
.tg-scene.s-locked .tg-dot {
  left: var(--at);
}

/* Emojis que vuelan de un lado al otro (los crea landing.js) */
.tg-flyer {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  font-size: 1.6rem;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Lo que trae */
.tg-points {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.tg-points li {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tg-points span {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .tg-scene {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'ana you'
      'phone phone';
    gap: 22px 14px;
  }
  .tg-ana {
    grid-area: ana;
    justify-items: start;
  }
  .tg-you {
    grid-area: you;
    justify-items: end;
  }
  .tg-ana .tg-who {
    flex-direction: row;
    text-align: left;
  }
  .tg-you .tg-who {
    flex-direction: row-reverse;
    text-align: right;
  }
  .tg-phone {
    grid-area: phone;
    justify-self: center;
    width: min(280px, 78vw);
  }
  .tg-text {
    font-size: 0.9rem;
  }
  /* Los bocadillos apuntan hacia abajo, al móvil */
  .tg-bubble::after {
    top: auto;
    bottom: -7px;
  }
  .tg-note::after {
    right: auto;
    left: 26px;
    transform: rotate(135deg);
  }
  .tg-reply::after {
    left: auto;
    right: 26px;
    transform: rotate(135deg);
  }
  .tg-av {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
  .tg-points {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .tg-bubble {
    font-size: 0.86rem;
    padding: 12px 13px;
  }
  /* El pico del bocadillo va abajo a la izquierda: las reacciones, a la derecha */
  .tg-chips {
    left: auto;
    right: 12px;
  }
  .tg-name i {
    display: none;
  }
  .tg-react > span {
    display: none;
  }
  .tg-react button {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .tg-points {
    grid-template-columns: 1fr;
  }
}

/* ─── Y además ───────────────────────────────────────────────────────────────────────────────────────────────── */
.more {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--gutter) 100px;
}
.more h2 {
  margin-bottom: 30px;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid article {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s,
    opacity 0.9s var(--ease);
}
.grid article:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(179, 164, 255, 0.35);
}
.grid article:nth-child(2) {
  --d: 0.06s;
}
.grid article:nth-child(3) {
  --d: 0.12s;
}
.grid article:nth-child(4) {
  --d: 0.18s;
}
.grid article:nth-child(5) {
  --d: 0.24s;
}
.grid article:nth-child(6) {
  --d: 0.3s;
}
.ic .i {
  width: 22px;
  height: 22px;
}
.ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(115, 82, 242, 0.18);
  color: var(--accent-soft);
  font-weight: 800;
}
.grid h3 {
  font-size: 1.15rem;
}
.grid p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ─── Planes ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.plans {
  display: grid;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 80px var(--gutter);
}
.plans h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}
.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan h3 {
  font-size: 1.6rem;
}
.price {
  color: var(--text-2);
  font-size: 1.05rem;
}
.plan .btn {
  align-self: flex-start;
  margin-top: auto;
}
.plan.plus .price {
  color: var(--text-2);
}
.plan.plus .price b {
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.plan.plus .price span {
  color: var(--text-3);
}
.price-sub {
  margin-top: -8px;
  color: var(--text-2);
}
/* Oferta de fundador: dos ventajas de un vistazo; contorno entero, nunca una franja a un lado */
.founders {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(115, 82, 242, 0.14);
  box-shadow: inset 0 0 0 1px rgba(155, 132, 255, 0.4);
}
.f-badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}
.f-perks {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.f-perks > span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.3;
}
.f-perks b {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
}
.f-perks s {
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 500;
}
.founders small {
  color: var(--text-3);
  font-size: 0.78rem;
}
.plan.plus {
  background:
    radial-gradient(100% 70% at 100% 0%, rgba(115, 82, 242, 0.35), transparent 60%),
    var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  --d: 0.12s;
}
.soon {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.fine {
  color: var(--text-3);
  font-size: 0.88rem;
}

/* ─── Privacidad, preguntas y final ──────────────────────────────────────────────────────────────────────────── */
.privacy {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 900px;
  margin: 40px auto;
  padding: 34px var(--gutter);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.privacy h2 {
  font-size: 1.8rem;
}
.privacy p {
  margin-top: 10px;
  color: var(--text-2);
}
.lock .i {
  width: 42px;
  height: 42px;
  stroke-width: 1.6;
}
.lock {
  flex: none;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 26px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 20px 40px rgba(115, 82, 242, 0.4);
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.links a {
  color: var(--accent-soft);
  font-weight: 600;
}
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  padding: 80px var(--gutter);
}
.faq h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.faq details {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.faq summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  color: var(--accent-soft);
  font-size: 1.5rem;
  transition: transform 0.3s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 22px 20px;
  color: var(--text-2);
}
/* ─── Descargar ──────────────────────────────────────────────────────────────────────────────────────────────── */
.download {
  display: grid;
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter);
}
/* Un panel con el texto a un lado y el móvil (y el QR) al otro; contorno entero, nunca una franja */
.dl-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(115, 82, 242, 0.42), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(91, 50, 251, 0.18), transparent 60%),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(155, 132, 255, 0.28);
}
.dl-text {
  display: grid;
  justify-items: start;
  gap: 16px;
}
.dl-text h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.05;
}
.dl-lead {
  color: var(--text-2);
  font-size: 1.05rem;
}
.dl-perks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dl-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.dl-perks .i {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(115, 82, 242, 0.3);
  color: var(--accent-soft);
  stroke-width: 2.6;
}
/* El botón grande: descarga directa */
.dl-main {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 12px 22px 12px 12px;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(91, 50, 251, 0.45);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.dl-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(91, 50, 251, 0.55);
}
.dl-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}
.dl-ico .i {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}
.dl-label {
  display: grid;
  text-align: left;
}
.dl-label b {
  font-size: 1.12rem;
}
.dl-label small {
  opacity: 0.85;
  font-size: 0.82rem;
}
/* Insignias de tienda, en negro como las de verdad, apagadas hasta que estén */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge-store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  padding: 8px 16px 8px 12px;
  border-radius: 12px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  color: #fff;
  opacity: 0.72;
}
.badge-store svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: #fff;
}
.badge-store:last-child svg {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.badge-store span {
  display: grid;
  line-height: 1.15;
}
.badge-store small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-store b {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.dl-note {
  color: var(--text-3);
  font-size: 0.88rem;
}
.dl-note a {
  color: var(--accent-soft);
}

/* El móvil con la app y el QR para quien entra desde el ordenador */
.dl-visual {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 10px 0 30px;
}
.dl-phone {
  width: min(260px, 70vw);
  aspect-ratio: 9 / 18.5;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2b2838, #121119);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 8px rgba(115, 82, 242, 0.08);
  transform: rotate(-4deg);
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  50% {
    transform: rotate(-4deg) translateY(-10px);
  }
}
.dl-phone-screen {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  padding: 18px 14px 14px;
  border-radius: 29px;
  background: #0d0c13;
  overflow: hidden;
}
.ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ph-top img {
  height: 18px;
}
.ph-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
}
.ph-label {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.66rem;
  font-weight: 700;
}
.ph-hero {
  display: flex;
  gap: 10px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}
.ph-hero .cover {
  width: 62px;
  height: 92px;
  flex: none;
}
.dl-phone .cover b {
  font-size: 0.5rem;
}
.dl-phone .cover i {
  font-size: 0.42rem;
}
.ph-info {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}
.ph-info b {
  font-size: 0.7rem;
}
.ph-info i {
  color: var(--text-3);
  font-size: 0.6rem;
  font-style: normal;
}
.ph-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.ph-bar span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}
.ph-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ph-row .cover {
  height: auto;
  aspect-ratio: 2 / 3;
}
.ph-player {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 9px 11px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(115, 82, 242, 0.45), rgba(91, 50, 251, 0.25));
}
.ph-play {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  clip-path: polygon(30% 22%, 30% 78%, 78% 50%);
}
.ph-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.ph-wave i {
  flex: 1;
  height: 40%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: wave 1.1s ease-in-out infinite;
}
.ph-wave i:nth-child(2n) {
  animation-delay: -0.4s;
}
.ph-wave i:nth-child(3n) {
  animation-delay: -0.75s;
}
@keyframes wave {
  50% {
    height: 100%;
  }
}
.ph-voice {
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}
.qr-card {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: #fff;
  color: #14131c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(3deg);
}
.qr {
  width: 84px;
  height: 84px;
}
.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.qr-card span {
  display: grid;
  max-width: 120px;
  font-size: 0.8rem;
  line-height: 1.3;
}
.qr-card b {
  font-size: 0.9rem;
}

/* Instalar: tres pasos */
.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.install-steps li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.install-steps .n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
}
.install-steps b {
  font-size: 1.02rem;
}
.install-steps li > span:last-child {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .dl-panel {
    grid-template-columns: 1fr;
  }
  /* En el móvil el QR no sirve: se queda el móvil, más pequeño */
  .qr-card {
    display: none;
  }
  .dl-phone {
    width: min(220px, 62vw);
  }
  .install-steps {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dl-phone,
  .ph-wave i {
    animation: none;
  }
}
.final .cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.final {
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: 100px var(--gutter) 120px;
  text-align: center;
  background: radial-gradient(50% 60% at 50% 60%, rgba(115, 82, 242, 0.25), transparent 70%);
}
.final h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.foot {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 40px var(--gutter) 60px;
  color: var(--text-3);
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 -1px 0 var(--line);
}
.foot img {
  height: 30px;
  width: auto;
}
.foot-note {
  font-size: 0.82rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.foot-links a {
  color: var(--text-2);
}

/* ─── Móvil ──────────────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-list {
    grid-template-columns: 1fr;
  }
  .step-list::before {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 100px;
    text-align: center;
  }
  .hero-text {
    justify-items: center;
  }
  .lead {
    margin: 0 auto;
  }
  .cta,
  .pills {
    justify-content: center;
  }
  .tilt {
    width: min(78vw, 380px);
  }
  /* En el móvil los libros llegan desde más cerca */
  .stage {
    --k: 0.5;
  }
  .feature,
  .plan-cards {
    grid-template-columns: 1fr;
  }
  .feature.reverse .feature-text {
    order: 0;
  }
  .demo {
    min-height: 300px;
    padding: 22px;
  }
  .demo-goal {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .week {
    width: 100%;
  }
  .privacy {
    flex-direction: column;
    text-align: center;
    margin: 20px var(--gutter);
  }
  .links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 28px;
    padding-top: 92px;
  }
  .hero-text {
    gap: 16px;
  }
  .lead {
    font-size: 1rem;
  }
  .cta {
    flex-wrap: nowrap;
    width: 100%;
  }
  .cta .btn {
    flex: 1;
    min-height: 48px;
    padding: 0 12px;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .cta .long {
    display: none;
  }
  .pills li {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
  .fl3,
  .fl4 {
    display: none;
  }
}

/* Sin animaciones si el sistema lo pide: todo en su estado final */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .stage .shelf .cover,
  .msg,
  .badge-nospoil,
  .friend,
  .reco,
  .tg-bubble,
  .tg-locked,
  .sticky,
  .pdf {
    opacity: 1;
    transform: none;
  }
  .msg .txt {
    display: inline;
  }
  .msg .typing {
    display: none;
  }
  .mk {
    background-size: 100% 100%;
  }
  .ring .fill {
    stroke-dashoffset: 94;
  }
  .week i {
    height: var(--h);
  }
  .dev-pct {
    transform: scale(1);
  }
  .step-list::before {
    transform: none;
  }
}
