/* ==========================================================================
   MELODÍA EN PASOS — styles.css
   Arquetipo: Editorial Light Cream
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:        #f4efe6;
  --bg-2:      #e8dfd0;
  --bg-3:      #efe7da;
  --paper:     #fffdf9;
  --ink:       #1c1915;
  --ink-soft:  #2e2a24;
  --ink-mute:  #6b645a;
  --accent:    #b85c3a;
  --accent-d:  #9a4a2c;
  --moss:      #4a5d3a;
  --line:      rgba(28,25,21,.12);
  --line-2:    rgba(28,25,21,.22);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(.22, 1, .36, 1);
  --ease-io:   cubic-bezier(.65, 0, .35, 1);
  --ease-emil: cubic-bezier(.32, .72, 0, 1);

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --radius: 22px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

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

/* ---------- 3. Tipografía ---------- */
.kicker {
  font: 600 12px/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.num {
  font: italic 400 15px/1 var(--f-display); color: var(--ink-mute);
  font-variation-settings: "SOFT" 100;
}
.h2 {
  margin-top: 14px;
  font: 500 clamp(2rem, 4.4vw, 3.6rem)/1.04 var(--f-display);
  letter-spacing: -.022em; text-wrap: balance;
  font-variation-settings: "SOFT" 30;
}
.h2 em, .hero-title em, .close-title em {
  font-style: italic; font-weight: 400; color: var(--accent);
  font-variation-settings: "SOFT" 100;
}
.lead { margin-top: 18px; max-width: 58ch; font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--ink-mute); text-wrap: pretty; }
.logo { font: 600 20px/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.logo em { font-style: italic; font-weight: 400; color: var(--accent); font-variation-settings: "SOFT" 100; }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, border-color .2s, color .2s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--paper); box-shadow: 0 10px 28px -14px rgba(184,92,58,.8); }
.btn-accent:hover { background: var(--accent-d); box-shadow: 0 16px 36px -14px rgba(184,92,58,.9); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,253,249,.45); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-price { opacity: .7; font-weight: 500; }
.btn-block { width: 100%; }

/* ---------- 5. Reveal (defensivo) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- 6. Cursor ---------- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; mix-blend-mode: difference; pointer-events: none; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid #fff;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background-color .3s;
}
.cursor.is-hover .cursor-ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(255,255,255,.12); }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 7. Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), backdrop-filter .35s;
}
.nav.is-solid {
  background: rgba(244,239,230,.94);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .nav.is-solid { background: rgba(244,239,230,.78); backdrop-filter: blur(14px) saturate(1.2); }
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav-links a { position: relative; padding: 6px 0; color: var(--ink-soft); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 0; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; height: 64px; }
}

/* ---------- 8. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; isolation: isolate; overflow: clip; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 112%; object-fit: cover; object-position: 75% center; transform: translate3d(0,0,0); will-change: transform; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(244,239,230,.96) 30%, rgba(244,239,230,.55) 52%, rgba(244,239,230,0) 72%);
}
.hero-in { padding-top: 130px; padding-bottom: 80px; }
.hero-title {
  margin-top: 20px; max-width: 17ch;
  font: 500 clamp(2.5rem, 5.6vw, 5rem)/1.02 var(--f-display);
  letter-spacing: -.03em; text-wrap: balance; font-variation-settings: "SOFT" 30;
}
.hero-sub { margin-top: 24px; max-width: 46ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 52px; max-width: 560px; border-top: 1px solid var(--line-2); }
.hero-facts li { flex: 1 1 0; min-width: 120px; padding: 16px 18px 0 0; }
.hero-facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-facts b { display: block; font: 500 26px/1.1 var(--f-display); letter-spacing: -.02em; }
.hero-facts span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--ink-mute); }

@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero-media img { object-position: 72% 60%; height: 100%; }
  .hero-veil { background: linear-gradient(180deg, rgba(244,239,230,0) 0%, rgba(244,239,230,.15) 28%, rgba(244,239,230,.88) 46%, var(--bg) 60%); }
  .hero-in { padding-top: 42svh; padding-bottom: 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { margin-top: 36px; }
  .hero-facts li { min-width: 0; padding-right: 10px; }
  .hero-facts li + li { padding-left: 12px; }
  .hero-facts b { font-size: 21px; }
  .hero-facts span { font-size: 12px; }
}

/* ---------- 9. Marquee ---------- */
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; flex-shrink: 0; }
.marquee-row li {
  display: flex; align-items: center; white-space: nowrap;
  font: italic 400 clamp(1.15rem, 2vw, 1.6rem)/1 var(--f-display); font-variation-settings: "SOFT" 100;
}
.marquee-row li::after { content: "✦"; margin: 0 28px; font-style: normal; font-size: .6em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 10. Secciones ---------- */
.sec { padding: clamp(84px, 11vw, 150px) 0; }
.sec-head { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 0 24px; }
.sec-head .num { padding-top: 4px; }
@media (max-width: 700px) { .sec-head { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- 11. La diferencia (tablero) ---------- */
.diff { background: var(--bg); }
.board-wrap { margin-top: clamp(44px, 6vw, 72px); }
.board-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line);
}
.board-switch button {
  position: relative; z-index: 1; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-mute); transition: color .3s var(--ease-out);
}
.board-switch button[aria-pressed="true"] { color: var(--paper); }
.board-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: var(--ink); transition: transform .45s var(--ease-emil), background-color .3s;
}
.board-switch[data-state="camino"] .board-pill { transform: translateX(100%); background: var(--accent); }

.board {
  position: relative; margin-top: 18px; height: clamp(420px, 44vw, 520px);
  border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(28,25,21,.09) 1px, transparent 0);
  background-size: 22px 22px;
}
.board-line { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 46px); pointer-events: none; }
.board-line path {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1;
  stroke-linecap: round; stroke-linejoin: round; opacity: .55;
  transition: stroke-dashoffset 1.4s var(--ease-io) .25s;
}
.board.is-camino .board-line path { stroke-dashoffset: 0; }
html:not(.js) .board-line { display: none; }
.board.is-sueltos .board-line path { transition-delay: 0s; transition-duration: .4s; }

.chips { position: absolute; inset: 0 0 46px 0; }
.chip {
  position: absolute; width: min(29%, 230px); padding: 14px 16px 13px 50px;
  border-radius: 16px; background: var(--paper); border: 1px solid var(--line-2);
  box-shadow: 0 14px 30px -22px rgba(28,25,21,.55);
  left: var(--cx); top: var(--cy); transform: translate(-50%, -50%);
  transition: left .9s var(--ease-emil), top .9s var(--ease-emil), transform .9s var(--ease-emil),
              background-color .5s, border-color .5s, box-shadow .5s;
  transition-delay: calc(var(--i) * 40ms);
}
.chip i {
  position: absolute; left: 13px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  font: normal 600 12.5px/1 var(--f-body);
  transition: transform .45s var(--ease-out) calc(var(--i) * 60ms + .3s), opacity .3s;
}
.chip b { display: block; font: 500 15px/1.2 var(--f-display); letter-spacing: -.01em; }
.chip small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-mute); }

.chip:nth-child(1) { --i: 0; --cx: 18%; --cy: 20%; --sx: 16%; --sy: 15%; --r: -7deg; }
.chip:nth-child(2) { --i: 1; --cx: 50%; --cy: 20%; --sx: 74%; --sy: 12%; --r: 5deg; }
.chip:nth-child(3) { --i: 2; --cx: 82%; --cy: 20%; --sx: 44%; --sy: 36%; --r: -3deg; }
.chip:nth-child(4) { --i: 3; --cx: 82%; --cy: 50%; --sx: 82%; --sy: 62%; --r: 8deg; }
.chip:nth-child(5) { --i: 4; --cx: 50%; --cy: 50%; --sx: 22%; --sy: 70%; --r: 4deg; }
.chip:nth-child(6) { --i: 5; --cx: 18%; --cy: 50%; --sx: 60%; --sy: 86%; --r: -6deg; }
.chip:nth-child(7) { --i: 6; --cx: 18%; --cy: 80%; --sx: 26%; --sy: 44%; --r: 10deg; }
.chip:nth-child(8) { --i: 7; --cx: 50%; --cy: 80%; --sx: 80%; --sy: 37%; --r: -9deg; }
.chip:nth-child(9) { --i: 8; --cx: 82%; --cy: 80%; --sx: 50%; --sy: 62%; --r: 3deg; }

.board.is-sueltos .chip {
  left: var(--sx); top: var(--sy); transform: translate(-50%, -50%) rotate(var(--r));
  background: var(--bg-3); border-color: var(--line); box-shadow: 0 6px 18px -14px rgba(28,25,21,.5);
  transition-delay: calc((8 - var(--i)) * 30ms);
}
.board.is-sueltos .chip i { transform: scale(0); opacity: 0; transition-delay: 0s; }
.board.is-sueltos .chip { padding-left: 16px; }
.board.is-sueltos .chip small { font-size: 0; }
.board.is-sueltos .chip small::after { content: attr(data-v); font-size: 12px; color: var(--accent-d); }

.board-caption {
  position: absolute; left: 0; right: 0; bottom: 16px; padding: 0 20px; text-align: center;
  font: italic 400 16px/1.3 var(--f-display); color: var(--ink-soft); font-variation-settings: "SOFT" 100;
}

@media (max-width: 700px) {
  .board-switch { display: grid; width: 100%; }
  .board-switch button { padding: 11px 8px; font-size: 13px; }
  .board { height: 470px; }
  .chip { width: 31%; padding: 30px 8px 10px; text-align: center; border-radius: 13px; }
  .chip i { left: 50%; top: 8px; margin: 0 0 0 -10px; width: 20px; height: 20px; font-size: 11px; }
  .chip b { font-size: 13px; }
  .chip small { font-size: 10.5px; }
  .board.is-sueltos .chip { padding: 10px 8px; }
  .board.is-sueltos .chip small::after { font-size: 10.5px; }
  .board-caption { font-size: 14.5px; }
}

/* Tarjetas comparativas */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.vs-card { border-radius: var(--radius); padding: 18px 18px 30px; border: 1px solid var(--line); }
.vs-bad { background: var(--bg-3); }
.vs-good { background: var(--paper); border-color: rgba(184,92,58,.35); }
.vs-fig { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.vs-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; }
.vs-bad .vs-fig img { filter: saturate(.7); }
.vs-card:hover .vs-fig img { transform: scale(1.05); }
.vs-card h3 { margin: 24px 8px 0; font: 500 clamp(1.4rem, 2.2vw, 1.75rem)/1.15 var(--f-display); letter-spacing: -.015em; }
.vs-card ul { margin: 16px 8px 0; }
.vs-card li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }
.vs-card li::before { position: absolute; left: 2px; top: 11px; font-weight: 700; }
.vs-bad li::before { content: "×"; color: var(--ink-mute); font-size: 18px; line-height: 1.2; top: 9px; }
.vs-good li::before { content: "✓"; color: var(--accent); }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

/* ---------- 12. El camino ---------- */
.path { background: var(--bg-2); }
.path-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 60px; }
.path-sticky { position: sticky; top: 120px; }
.path-sticky .kicker { margin-top: 18px; }
.tabs { display: inline-flex; gap: 6px; margin-top: 30px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.tabs button { padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-mute); transition: background-color .3s var(--ease-out), color .3s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

.path-track { position: relative; padding-left: 58px; }
.path-rail { position: absolute; left: 17px; top: 10px; bottom: 70px; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.path-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.stops { transition: opacity .3s var(--ease-out); }
.stops.is-swapping { opacity: 0; }
.stop { position: relative; padding: 0 0 54px; }
.stop-dot {
  position: absolute; left: -50px; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--line-2);
  transition: background-color .4s var(--ease-out), border-color .4s, transform .4s var(--ease-out), box-shadow .4s;
}
.stop.is-on .stop-dot { background: var(--accent); border-color: var(--accent); transform: scale(1.15); box-shadow: 0 0 0 6px rgba(184,92,58,.15); }
.stop-when { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); transition: color .4s; }
.stop.is-on .stop-when { color: var(--accent); }
.stop h3 { margin-top: 10px; font: 500 clamp(1.6rem, 2.8vw, 2.3rem)/1.08 var(--f-display); letter-spacing: -.02em; }
.stop p:last-child { margin-top: 10px; max-width: 46ch; color: var(--ink-mute); }
.path-next { padding: 22px 24px; border-radius: 16px; background: var(--paper); border: 1px dashed var(--line-2); font: italic 400 17px/1.45 var(--f-display); font-variation-settings: "SOFT" 100; }
@media (max-width: 900px) {
  .path-grid { grid-template-columns: 1fr; gap: 44px; }
  .path-sticky { position: static; }
  .path-track { padding-left: 46px; }
  .path-rail { left: 11px; }
  .stop-dot { left: -44px; width: 18px; height: 18px; }
  .stop { padding-bottom: 42px; }
}

/* ---------- 13. Una lección ---------- */
.lesson-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.lesson-fig { position: sticky; top: 104px; }
.lesson-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.lesson-fig figcaption { margin-top: 14px; font: italic 400 15px/1.45 var(--f-display); color: var(--ink-mute); font-variation-settings: "SOFT" 100; }
.lesson-body .kicker { margin-top: 18px; }
.parts { margin-top: 40px; border-top: 1px solid var(--line-2); }
.part { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.part-n { font: italic 400 22px/1.2 var(--f-display); color: var(--accent); font-variation-settings: "SOFT" 100; }
.part h3 { font: 500 21px/1.25 var(--f-display); letter-spacing: -.01em; }
.part p { margin-top: 6px; color: var(--ink-mute); font-size: 15.5px; }
@media (max-width: 900px) {
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-fig { position: static; order: 2; }
  .lesson-fig img { aspect-ratio: 4 / 3; }
}

/* ---------- 14. Bento ---------- */
.fast { background: var(--bg); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: clamp(44px, 6vw, 70px); perspective: 1200px; }
.tile {
  grid-column: span 2; position: relative; display: flex; flex-direction: column;
  min-height: 260px; padding: 26px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  transform-style: preserve-3d;
}
.tile:hover { box-shadow: 0 30px 60px -36px rgba(184,92,58,.55); }
.t-wide { grid-column: span 4; }
.t-full { grid-column: span 6; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 34px; align-items: end; }
.t-full .tile-big { grid-row: span 2; margin-bottom: 0; }
.t-accent { background: var(--accent); color: var(--paper); border-color: transparent; }
.t-accent p, .t-accent small { color: rgba(255,253,249,.82) !important; }
.t-dark { background: var(--ink); color: var(--bg); border-color: transparent; }
.t-dark p { color: rgba(244,239,230,.72) !important; }
.tile-big {
  margin-bottom: auto; padding-bottom: 26px;
  font: 400 clamp(3.2rem, 6vw, 5.2rem)/.9 var(--f-display); letter-spacing: -.04em;
  font-variation-settings: "SOFT" 60; color: var(--accent);
}
.t-accent .tile-big, .t-dark .tile-big { color: inherit; }
.tile-big small { margin-left: 8px; font: 500 13px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.tile h3 { font: 500 22px/1.2 var(--f-display); letter-spacing: -.01em; }
.tile p:not(.tile-big) { margin-top: 8px; font-size: 15px; color: var(--ink-mute); }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .t-wide { grid-column: span 1; }
  .t-wide, .t-full { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .t-wide, .t-full { grid-column: span 1; min-height: 0; }
  .t-full { display: flex; align-items: stretch; }
  .tile-big { padding-bottom: 18px; }
}

/* ---------- 15. Manuales ---------- */
.shop { background: var(--bg-2); }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: clamp(44px, 6vw, 70px); perspective: 1400px; }
.inst {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: calc(var(--radius) + 4px); background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.inst:hover { box-shadow: 0 40px 70px -44px rgba(28,25,21,.6); }
.inst-fig { aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-3); }
.inst-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; }
.inst:hover .inst-fig img { transform: scale(1.06); filter: saturate(1.12) brightness(1.04); }
.inst-body { display: flex; flex-direction: column; flex: 1; padding: 28px clamp(20px, 3vw, 34px) 32px; }
.inst-name { margin-top: 10px; font: 500 clamp(2.2rem, 4vw, 3.2rem)/1 var(--f-display); letter-spacing: -.03em; }
.inst-meta { margin-top: 8px; color: var(--ink-mute); font-size: 15px; }
.levels { margin: 24px 0 26px; border-top: 1px solid var(--line); flex: 1; }
.level { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.level > div { flex: 1; min-width: 0; }
.lv-n { display: block; font: 600 11.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.level.is-first .lv-n { color: var(--accent); }
.level.is-first .lv-n::after { content: " · Empieza aquí"; }
.level b { display: block; margin-top: 6px; font: 500 18px/1.25 var(--f-display); }
.level small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-mute); }
.lv-buy {
  flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2);
  font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.lv-buy:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-1px); }
.level.is-first .lv-buy { border-color: var(--accent); color: var(--accent); }
.level.is-first .lv-buy:hover { background: var(--accent); color: var(--paper); }
.level.is-pack { margin-top: 10px; padding: 16px; border: 1px solid rgba(184,92,58,.35); border-radius: 14px; background: rgba(184,92,58,.06); }
.level.is-pack .lv-n { color: var(--accent); }
.level.is-pack .lv-n::after { content: " · El más completo"; }
.level.is-pack s { color: var(--ink-mute); }
.level.is-pack .lv-buy { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.level.is-pack .lv-buy:hover { background: var(--accent-d); border-color: var(--accent-d); }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 34px; font-size: 14.5px; color: var(--ink-soft); }
.assure li::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 700; }
@media (max-width: 860px) { .shop-grid { grid-template-columns: 1fr; } }

/* ---------- 16. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 50px; }
.faq-grid .kicker { margin-top: 18px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 46px 22px 0;
  font: 500 clamp(1.08rem, 1.6vw, 1.3rem)/1.3 var(--f-display); letter-spacing: -.01em;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2);
  font: 400 18px/1 var(--f-body); transition: transform .35s var(--ease-out), background-color .25s, color .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--paper); border-color: var(--accent); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { padding: 0 46px 24px 0; color: var(--ink-mute); max-width: 64ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- 17. Cierre ---------- */
.close { position: relative; isolation: isolate; overflow: clip; padding: clamp(110px, 16vw, 200px) 0; color: var(--bg); background: #17120f; }
.close-media { position: absolute; inset: 0; z-index: -2; }
.close-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.close-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,18,15,.88) 0%, rgba(23,18,15,.55) 50%, rgba(23,18,15,.85) 100%); }
.close-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.close .kicker { color: #e3a07f; }
.close-title { margin-top: 18px; max-width: 16ch; font: 500 clamp(2.4rem, 6vw, 5rem)/1.02 var(--f-display); letter-spacing: -.03em; text-wrap: balance; font-variation-settings: "SOFT" 30; }
.close-title em { color: #e3a07f; }
.close-sub { margin-top: 20px; max-width: 44ch; color: rgba(244,239,230,.78); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.close .hero-actions { justify-content: center; }

/* ---------- 18. Footer ---------- */
.foot { background: var(--ink); color: rgba(244,239,230,.7); padding: 38px 0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.foot .logo { color: var(--bg); }
.foot-small { margin-left: auto; opacity: .7; }
@media (max-width: 640px) { .foot-small { margin-left: 0; } }

/* ---------- 18b. Mis manuales: enlaces y aviso de pago ---------- */
.nav-links .nav-acc { color: var(--accent); }
.nav-acc-m { display: none; font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
@media (max-width: 900px) { .nav-acc-m { display: inline; margin-left: auto; margin-right: 4px; } }
@media (max-width: 480px) { .nav .btn-price { display: none; } .nav-in { gap: 14px; } .nav .logo { font-size: 18px; } }
.faq-list details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.foot-link { color: var(--bg); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.toast {
  position: fixed; z-index: 200; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: min(460px, calc(100% - 32px)); transform: translateX(-50%);
  padding: 20px 22px; border-radius: 18px; background: var(--ink); color: var(--bg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: toastIn .5s var(--ease-out);
}
.toast b { font: 500 20px/1.2 var(--f-display); }
.toast p { margin: 6px 0 14px; font-size: 15px; color: rgba(244,239,230,.8); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- 19. Movimiento: solo se apaga lo intrusivo ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 120s; }
}
