/* DuOpen · landing
   Display: Bricolage Grotesque (condensada, 800) · Texto: Instrument Sans · Letra a mano: Caveat (solo en el cuaderno)
   Motivo: la cinta correctora (franja blanca que tapa y deja escribir encima). */

:root {
  --navy: #14213D;
  --navy-deep: #0C1630;
  --navy-soft: #24345C;
  --teal: #2EC4B6;
  --teal-dark: #0F7F75;
  --coral: #FF6B6B;
  --coral-dark: #C93A3F;
  --cream: #F7F5EF;
  --paper: #FBF8EC;
  --white: #FFFFFF;
  --ink: #1B3FA6;

  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --gutter: 16px;
  --max: 1180px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; background: var(--white); color: var(--navy);
  font-weight: 600; border-radius: 8px;
}
.skip:focus { top: 12px; }

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

/* ---------- Tipografía compartida ---------- */

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(2.1rem, 6.2vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 17ch;
  text-wrap: balance;
}
.h2--light { color: var(--cream); }

.lead { margin-top: 20px; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.lead--light { color: #C9D2E6; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn--tape { background: var(--teal); color: var(--navy-deep); }
.btn--tape:hover { background: var(--white); }
.btn--ghost { border-color: rgba(247, 245, 239, .55); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: var(--cream); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--teal-dark); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--gutter);
  color: var(--cream);
  transition: background-color .3s, box-shadow .3s;
}
html:not(.js) .nav, .nav--solid {
  background: rgba(12, 22, 48, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(247, 245, 239, .08);
}
.nav__logo { display: block; flex: none; border-radius: 6px; }
.nav__logo img { height: calc(var(--nav-h) - 18px); width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); font-weight: 500; font-size: .98rem; }
.nav__links a { text-decoration: none; padding: 8px 2px; border-radius: 4px; }
.nav__links a:hover { color: var(--teal); }
.nav__links .nav__play {
  padding: 8px 18px; border-radius: 999px; background: var(--cream); color: var(--navy);
  font-family: var(--display); font-weight: 700;
}
.nav__links .nav__play:hover { background: var(--teal); color: var(--navy-deep); }
@media (max-width: 639px) {
  .nav__links a:nth-child(1), .nav__links a:nth-child(2) { display: none; }
}

/* ---------- 1 · Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(20px, 5vh, 56px));
  background:
    radial-gradient(60% 46% at 68% 78%, rgba(46, 196, 182, .2), transparent 70%),
    var(--navy);
  color: var(--cream);
  overflow: hidden;
}

.hero__copy { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.hero__title { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; }

.hero__ask {
  position: relative; display: inline-block;
  font-size: clamp(1.45rem, 3.8vw, 3rem); font-weight: 600; font-stretch: 88%; line-height: 1.1;
  color: rgba(247, 245, 239, .78);
}
.hero__strike {
  position: absolute; left: -2%; right: -3%; top: 50%;
  height: .17em; margin-top: -.02em;
  background: var(--white);
  transform: rotate(-1.4deg); transform-origin: left center;
  box-shadow: 0 2px 0 rgba(12, 22, 48, .35);
}
.hero__answer {
  display: block; margin-top: .04em;
  font-size: clamp(3.5rem, 13.2vw, 11.5rem); font-stretch: 75%; line-height: .86;
  color: var(--cream);
}
.hero__title .w { display: inline-block; }

.hero__lead { margin-top: clamp(18px, 2.4vw, 30px); max-width: 40ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #C9D2E6; }
.hero__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stage {
  position: relative; z-index: 1; flex: 1 1 auto;
  width: 100%; max-width: 1360px; margin-inline: auto;
  min-height: clamp(170px, 30vw, 380px);
  touch-action: pan-y;
  cursor: ew-resize;
  -webkit-user-select: none; user-select: none;
}
.hero__pen {
  position: absolute; left: 50%; top: 50%;
  width: 118%; max-width: 1500px;
  transform: translate(-50%, -52%) rotate(-5deg);
  pointer-events: none;
}
@media (min-width: 900px) { .hero__pen { width: 100%; } }
.hero__pen .seq { width: 100%; aspect-ratio: 16 / 9; filter: drop-shadow(0 34px 30px rgba(4, 10, 28, .5)); }

.hero__stage.is-fallback { min-height: 0; padding: 28px var(--gutter) 56px; cursor: default; }
.hero__stage.is-fallback .hero__pen { position: static; width: 100%; max-width: 900px; margin-inline: auto; transform: none; animation: none; }
.hero__stage.is-fallback .seq { filter: none; }
.hero__stage.is-fallback .hero__hint { display: none; }

.hero__hint {
  position: absolute; right: var(--gutter); bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--hand); font-size: 1.6rem; font-weight: 700; color: var(--teal);
  transform: rotate(-4deg);
  transition: opacity .4s;
  pointer-events: none;
}
.hero__hint.is-used { opacity: 0; }

.hero__sweep { display: none; }

.seq-noscript { width: 100%; border-radius: 18px; }
html.js .seq-noscript { display: none; }
html:not(.js) canvas.seq { display: none; }
html:not(.js) .hero__pen { position: static; transform: none; width: 100%; padding: 24px var(--gutter); }

/* Entrada del hero: una sola secuencia orquestada */
@media (prefers-reduced-motion: no-preference) {
  .hero__sweep {
    display: block; position: absolute; z-index: 5; left: -20%; right: -20%; top: 34%;
    height: clamp(70px, 16vh, 150px);
    background: var(--white);
    transform: rotate(-5deg) translateX(-110%);
    animation: sweep 1.05s cubic-bezier(.7, 0, .2, 1) .05s both;
    pointer-events: none;
  }
  .hero__ask .w { animation: rise .7s var(--ease-out) both; }
  .hero__ask .w:nth-child(1) { animation-delay: .45s; }
  .hero__ask .w:nth-child(2) { animation-delay: .53s; }
  .hero__ask .w:nth-child(3) { animation-delay: .61s; }
  .hero__strike { animation: strike .45s cubic-bezier(.7, 0, .2, 1) 1.45s both; }
  .hero__answer .w { animation: slam .8s var(--ease-out) both; }
  .hero__answer .w:nth-child(1) { animation-delay: 1.55s; }
  .hero__answer .w:nth-child(2) { animation-delay: 1.75s; }
  .hero__answer .w:nth-child(3) { animation-delay: 1.83s; }
  .hero__answer .w:nth-child(4) { animation-delay: 1.91s; }
  .hero__lead { animation: rise .8s var(--ease-out) 2.25s both; }
  .hero__cta { animation: rise .8s var(--ease-out) 2.4s both; }
  .hero__pen { animation: fly 1.5s var(--ease-out) 1.35s both; }
  .hero__hint { animation: hint .6s ease 3.1s both; }
  .hero__hint svg { animation: nudge 1.6s ease-in-out 3.4s 3; }
}

@keyframes sweep {
  0% { transform: rotate(-5deg) translateX(-110%); }
  100% { transform: rotate(-5deg) translateX(110%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(.7em); }
  to { opacity: 1; transform: none; }
}
@keyframes slam {
  from { opacity: 0; transform: translateY(.5em) rotate(4deg) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes strike {
  from { transform: rotate(-1.4deg) scaleX(0); }
  to { transform: rotate(-1.4deg) scaleX(1); }
}
@keyframes fly {
  from { opacity: 0; transform: translate(40%, -90%) rotate(-28deg) scale(.7); }
  to { opacity: 1; transform: translate(-50%, -52%) rotate(-5deg) scale(1); }
}
@keyframes hint { from { opacity: 0; } to { opacity: 1; } }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-6px); } 70% { transform: translateX(6px); } }

/* ---------- 2 · Problema ---------- */

.pain { background: var(--cream); padding-block: clamp(72px, 11vw, 150px); }
.pain__list { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: 40px var(--gutter); }
@media (min-width: 820px) { .pain__list { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

.pain__item { position: relative; padding-top: 22px; border-top: 3px solid var(--navy); }
.pain__icon { width: 56px; height: 56px; color: var(--navy); }
.pain__num {
  margin-top: 14px;
  font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(3.4rem, 7.5vw, 5.6rem); line-height: .9; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.pain__title { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.15; }
.pain__text { margin-top: 8px; max-width: 34ch; color: #38445F; }

@media (prefers-reduced-motion: no-preference) {
  .pain__item.is-in .pain__hand { transform-origin: 32px 36px; animation: tick 4s steps(47, end) both; }
  .pain__item.is-in .pain__zip { animation: zip 1.2s ease-in-out both; }
  .pain__item.is-in .pain__drop { animation: drop .7s var(--ease-out) .2s both; }
}
@keyframes tick { from { transform: rotate(0); } to { transform: rotate(282deg); } }
@keyframes zip { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 3 · Cómo funciona ---------- */

.how {
  position: relative;
  background:
    radial-gradient(50% 40% at 50% 50%, rgba(46, 196, 182, .16), transparent 72%),
    var(--navy-deep);
  color: var(--cream);
}
.how__sticky { padding: clamp(72px, 10vw, 130px) var(--gutter); max-width: 1400px; margin-inline: auto; }
.how__stage { margin-top: clamp(24px, 4vw, 48px); }
.how__stage .seq { width: 100%; max-width: 1200px; margin-inline: auto; aspect-ratio: 16 / 9; }
.how__stage.is-fallback .seq { max-width: 900px; }

.how__steps { margin-top: clamp(24px, 4vw, 48px); display: grid; gap: 28px var(--gutter); counter-reset: paso; }
@media (min-width: 720px) { .how__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .how__steps { grid-template-columns: repeat(4, 1fr); } }
.how__step { counter-increment: paso; padding-top: 14px; border-top: 2px solid rgba(247, 245, 239, .25); }
.how__step h3 {
  font-family: var(--display); font-weight: 800; font-stretch: 78%;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; letter-spacing: -.015em;
}
.how__step h3::before { content: counter(paso) ". "; color: var(--teal); }
.how__step p { margin-top: 10px; max-width: 34ch; color: #C9D2E6; }
.how__rail { display: none; }

/* Modo escena: lo activa main.js (clase .scrub) cuando hay JS y se permite movimiento */
.how.scrub { height: 460vh; }
.how.scrub .how__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; max-width: none;
  padding: calc(var(--nav-h) + 12px) var(--gutter) 24px;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}
.how.scrub .h2 { font-size: clamp(1.25rem, 2.4vw, 1.9rem); max-width: 30ch; color: rgba(247, 245, 239, .72); font-stretch: 85%; line-height: 1.08; }
.how.scrub .how__stage { margin: 0; display: grid; place-items: center; min-height: 0; }
.how.scrub .how__stage .seq {
  width: min(100%, 1400px, calc((100svh - var(--nav-h) - 250px) * 16 / 9));
  max-width: none;
}
@media (max-width: 719px) {
  .how.scrub .how__stage .seq { width: 100%; }
}
.how.scrub .how__steps {
  position: relative; display: block; margin: 0 auto; width: 100%; max-width: 1100px;
  height: clamp(150px, 22vh, 190px);
}
.how.scrub .how__step {
  position: absolute; inset: 0; padding: 0; border: 0;
  opacity: 0; transform: translateY(26px); visibility: hidden;
  transition: opacity .45s ease, transform .6s var(--ease-out), visibility 0s linear .45s;
}
.how.scrub .how__step.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.how.scrub .how__step h3 { font-size: clamp(2.5rem, 7.4vw, 5.4rem); line-height: .92; letter-spacing: -.025em; font-stretch: 75%; }
.how.scrub .how__step p { margin-top: 12px; max-width: 44ch; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.how.scrub .how__rail {
  display: block; position: relative; width: 100%; max-width: 1100px; margin: 14px auto 0;
  height: 6px; border-radius: 3px; overflow: hidden;
  background: rgba(247, 245, 239, .2);
}
.how__rail-fill {
  position: absolute; inset: 0; background: var(--white);
  transform: scaleX(0); transform-origin: left center;
}
.how__rail::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 4px), var(--navy-deep) calc(25% - 4px), var(--navy-deep) 25%);
}

/* ---------- 4 · Partes ---------- */

.parts { background: var(--cream); padding-block: clamp(72px, 11vw, 150px); }

.parts__stage {
  position: relative; margin-top: clamp(36px, 5vw, 64px);
  aspect-ratio: 16 / 7.4;
}
@media (min-width: 900px) { .parts__stage { aspect-ratio: 16 / 5.6; } }
.parts__stage .seq, .parts__dots {
  position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 16 / 9;
  transform: translateY(-50%);
}
.parts__stage .seq { filter: drop-shadow(0 18px 16px rgba(20, 33, 61, .22)); }
.parts__dots { pointer-events: none; }

.parts__stage.is-fallback { aspect-ratio: 16 / 9; max-width: 900px; margin-inline: auto; }
.parts__stage.is-fallback .seq { filter: none; }
.parts__stage.is-fallback .parts__dots, html:not(.js) .parts__dots { display: none; }
html:not(.js) .parts__stage { aspect-ratio: auto; }

.dot {
  --off: -54px;
  position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0;
  border: 2px solid var(--navy); border-radius: 50%;
  background: var(--cream); color: var(--navy);
  font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1;
  cursor: pointer; pointer-events: auto;
  transform: translateY(var(--off));
  transition: background-color .2s, color .2s, transform .3s var(--ease-out);
}
.dot[data-side="down"] { --off: 54px; }
.dot::after {
  content: ""; position: absolute; left: 50%; width: 2px; height: 34px; margin-left: -1px;
  background: var(--navy);
  top: 100%;
}
.dot[data-side="down"]::after { top: auto; bottom: 100%; }
.dot::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.dot:hover, .dot.is-on { background: var(--navy); color: var(--cream); }
.dot.is-on { transform: translateY(var(--off)) scale(1.18); }
@media (max-width: 599px) {
  .dot { --off: -40px; width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: .85rem; }
  .dot[data-side="down"] { --off: 40px; }
  .dot::after { height: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .dot.is-on { animation: ping 1.6s ease-out infinite; }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(46, 196, 182, .9); }
  100% { box-shadow: 0 0 0 16px rgba(46, 196, 182, 0); }
}

.parts__now {
  margin-top: 8px; min-height: 4.6em;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 50ch;
}
.parts__now strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.015em; }

.parts__list { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 0 var(--gutter); }
@media (min-width: 720px) { .parts__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .parts__list { grid-template-columns: repeat(4, 1fr); } }
.part {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 12px; margin-inline: -12px;
  border-top: 1px solid rgba(20, 33, 61, .18); border-radius: 0;
  cursor: pointer; transition: background-color .2s;
}
html:not(.js) .part { cursor: default; }
.part h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.part p { margin-top: 4px; font-size: .97rem; color: #38445F; }
.part__n {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--navy);
  font-family: var(--display); font-weight: 800; font-size: .9rem; line-height: 1;
  transition: background-color .2s, color .2s;
}
.part.is-on { background: rgba(46, 196, 182, .2); }
.part.is-on .part__n { background: var(--navy); color: var(--cream); }

/* ---------- 5 · Demo ---------- */

.demo { background: var(--teal); padding-block: clamp(72px, 10vw, 130px); }
.demo__wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .demo__wrap { grid-template-columns: 5fr 6fr; gap: 64px; } }
.demo .btn { margin-top: 26px; }
.demo .btn--navy:hover { background: var(--navy-deep); }
html:not(.js) #demo-replay { display: none; }

.note {
  position: relative;
  padding: 26px 20px 30px 58px;
  background:
    linear-gradient(90deg, transparent 43px, rgba(201, 58, 63, .55) 43px, rgba(201, 58, 63, .55) 45px, transparent 45px),
    repeating-linear-gradient(180deg, transparent 0, transparent 51px, rgba(27, 63, 166, .22) 51px, rgba(27, 63, 166, .22) 53px),
    var(--paper);
  background-position: 0 0, 0 22px, 0 0;
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(12, 22, 48, .12), 0 26px 40px -18px rgba(12, 22, 48, .55);
  transform: rotate(-1.6deg);
  font-family: var(--hand); color: var(--ink);
  overflow: hidden;
}
.note__holes {
  position: absolute; left: 14px; top: 0; bottom: 0; width: 16px;
  background: radial-gradient(circle at 8px 8px, var(--teal) 0, var(--teal) 7px, transparent 8px) 0 34px / 16px 104px repeat-y;
}
.note__line { font-size: clamp(1.75rem, 5.4vw, 2.9rem); line-height: 52px; font-weight: 500; white-space: nowrap; }
@media (min-width: 600px) { .note { padding-left: 76px; padding-right: 32px; } .note__line { line-height: 52px; } }
.note__line--q { color: #3C4660; font-size: clamp(1.3rem, 3.6vw, 1.9rem); white-space: normal; line-height: 52px; }
.note__line--a { margin-top: 52px; font-weight: 700; }
@media (max-width: 420px) { .note__line--q { line-height: 26px; min-height: 52px; } }

.note__ink, .note__fix { display: inline-block; }
.note__word { position: relative; display: inline-block; margin-left: .12em; }
.note__ink--2 { opacity: .0; }
.note__tape {
  position: absolute; left: -5px; right: -10px; top: 9px; bottom: 5px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(12, 22, 48, .14), 0 3px 6px rgba(12, 22, 48, .1);
  transform-origin: left center;
}
.note__fix { position: absolute; left: 0; top: 0; white-space: nowrap; color: var(--navy); }
.note__mark {
  position: absolute; left: -4px; right: -4px; bottom: 6px; height: 8px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' preserveAspectRatio='none'%3E%3Cpath d='M0 5 5 2l5 4 5-4 5 4 5-4 5 4 5-4 5 3' fill='none' stroke='%23C93A3F' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 40px 8px repeat-x;
}

@media (prefers-reduced-motion: no-preference) {
  .note.play .note__ink--1 { animation: write .45s linear .2s both; }
  .note.play .note__ink--2 { animation: write 1s linear .7s both, fade-ink .01s linear 3.3s forwards; }
  .note.play .note__mark { animation: mark 1.5s ease 1.9s both; }
  .note.play .note__tape { animation: tape .5s cubic-bezier(.7, 0, .2, 1) 2.9s both; }
  .note.play .note__fix { animation: write .9s linear 3.6s both; }
}
@keyframes write {
  from { clip-path: inset(-10% 100% -10% 0); opacity: 1; }
  to { clip-path: inset(-10% -4% -10% 0); opacity: 1; }
}
@keyframes fade-ink { to { opacity: 0; } }
@keyframes mark { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tape { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 6 · Comparación ---------- */

.compare { background: var(--cream); padding-block: clamp(72px, 11vw, 150px); }
.compare__scroll { margin-top: clamp(32px, 5vw, 64px); }
.compare__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare__table th, .compare__table td { padding: 16px 6px; text-align: center; vertical-align: middle; }
.compare__table thead th {
  font-family: var(--display); font-weight: 700; font-size: clamp(.82rem, 1.7vw, 1.2rem); line-height: 1.15;
  vertical-align: bottom; padding-bottom: 18px; hyphens: auto;
}
.compare__table thead td { width: 32%; }
@media (max-width: 519px) {
  .compare__table thead td { width: 27%; }
  .compare__table th, .compare__table td { padding-inline: 3px; }
  .compare__table thead th { font-size: .78rem; font-stretch: 80%; }
  .compare__table thead .is-duopen { font-size: 1rem; font-stretch: 90%; }
}
.compare__table tbody th {
  text-align: left; padding-left: 0;
  font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.1vw, 1.45rem); line-height: 1.15;
}
.compare__table tbody tr { border-top: 1px solid rgba(20, 33, 61, .18); }
.compare__table .is-duopen { background: var(--navy); color: var(--cream); }
.compare__table thead .is-duopen { border-radius: 16px 16px 0 0; font-size: clamp(1.05rem, 2.4vw, 1.7rem); font-weight: 800; padding-top: 22px; }
.compare__table tbody tr:last-child .is-duopen { border-radius: 0 0 16px 16px; padding-bottom: 24px; }

.mark { display: block; width: 30px; height: 30px; margin-inline: auto; background: center / contain no-repeat; }
.mark--yes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='15' fill='%232EC4B6'/%3E%3Cpath d='m8 15.5 5 5 9-10' fill='none' stroke='%230C1630' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mark--no { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='m8 8 14 14M22 8 8 22' fill='none' stroke='%23C93A3F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mark--some { height: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 14'%3E%3Cpath d='M6 7h18' fill='none' stroke='%2314213D' stroke-width='3.2' stroke-linecap='round' stroke-dasharray='1 7'/%3E%3C/svg%3E"); }
.mark__txt { display: block; font-size: .85rem; color: #38445F; line-height: 1.2; }

/* ---------- 7 · Precios ---------- */

.prices { background: var(--navy); color: var(--cream); padding-block: clamp(72px, 11vw, 150px); }
.prices__grid { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 16px; }
@media (min-width: 820px) { .prices__grid { grid-template-columns: 1.35fr 1fr 1fr; gap: 20px; align-items: stretch; } }

.price {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 24px; border-radius: 22px;
  background: var(--navy-soft); color: var(--cream);
}
.price--main { background: var(--cream); color: var(--navy); }
.price__name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.price__what { margin-top: 6px; max-width: 30ch; color: #C9D2E6; }
.price--main .price__what { color: #38445F; }
.price__num {
  margin-top: auto; padding-top: 28px;
  font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(4.4rem, 9vw, 6.4rem); line-height: .85; letter-spacing: -.03em;
}
.price--main .price__num { font-size: clamp(5.6rem, 13vw, 9.5rem); }
.price__cur { font-size: .5em; vertical-align: .62em; margin-right: .04em; }
.price__mxn { font-size: 1.05rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0; font-family: var(--body); }
.price__tag {
  align-self: flex-start; margin-top: 16px; padding: 4px 12px;
  background: var(--white); color: var(--navy);
  font-size: .9rem; font-weight: 600;
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 0 rgba(12, 22, 48, .18);
}
.prices__note { margin-top: 28px; max-width: 60ch; font-size: .95rem; color: #AEB9D2; }

/* ---------- 8 · Juego ---------- */

.play { background: var(--cream); padding-block: clamp(72px, 10vw, 130px); }
.play__frame { margin-top: clamp(28px, 4vw, 48px); padding-inline: var(--gutter); }
#duopen-game { width: 100%; max-width: 900px; margin-inline: auto; }

/* ---------- 9 · Footer ---------- */

.foot { background: var(--navy-deep); color: #C9D2E6; padding-block: 56px 40px; }
.foot__wrap { display: grid; gap: 14px; justify-items: start; }
.foot__logo { width: min(240px, 60vw); height: auto; margin-left: -8px; }
.foot__legal { max-width: 46ch; color: var(--cream); font-weight: 500; }
.foot__credit { font-size: .95rem; }
.foot__top { font-size: .95rem; text-underline-offset: 4px; border-radius: 4px; }
.foot__top:hover { color: var(--teal); }
