/* Landing · Sistema Mínimo de Producción para Indies
   Identidad del Playbook (set D): Chakra Petch, IBM Plex Sans, JetBrains Mono, acento naranja. */

@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url('fonts/chakra-petch-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url('fonts/chakra-petch-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  --ink: #1F2328;
  --ink-2: #4A505B;
  --rule: #D5D9E0;
  --chip: #C9CED6;
  --wash: #EEF0F3;
  --dark: #17191E;
  --dark-2: #1D2025;
  --dark-3: #111317;
  --dark-rule: #30343C;
  --on-dark: #F4F5F7;
  --on-dark-2: #C9CED6;
  --on-dark-3: #AEB4BE;
  --accent: #FF7A1A;
  --accent-hover: #FF9A4D;
  --link: #C2410C;
  --display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --wrap: 1200px;
  --read: 760px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font: 400 18px/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--dark); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #9A3412; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-bottom: 24px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.read { max-width: var(--read); margin: 0 auto; }
.section { padding: 0 var(--gutter); margin-bottom: 112px; }
.lead { font-size: 19px; line-height: 1.65; }
.muted { color: var(--ink-2); }
.placeholder { font-family: var(--mono); font-size: 15px; color: var(--ink-2); }

/* ---------- Botón de compra ---------- */
.buy {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px;
  border-radius: 6px; background: var(--accent); color: var(--dark); text-decoration: none;
  font: 700 18px/1 var(--display); letter-spacing: 0.02em;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.buy:hover { background: var(--accent-hover); color: var(--dark); transform: translateY(-1px); }
.buy:active { transform: translateY(0); }
.buy:focus-visible { outline-color: var(--on-dark); }

/* ---------- Portada (hero) ---------- */
.hero { display: flow-root; background: var(--dark); color: var(--on-dark); padding: 72px var(--gutter) 0; }
.hero ::selection { background: var(--accent); color: var(--dark); }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.byline { margin: 0; font: 700 18px/24px var(--display); color: var(--on-dark-2); }
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.01em; }
.hero h1 span { color: var(--accent); }
.subtitle { margin: 0; font-size: 22px; line-height: 30px; color: var(--on-dark-2); max-width: 620px; }
.hero-lead { margin: 0; font-size: 17px; line-height: 27px; color: var(--on-dark-3); max-width: 620px; }

.offer {
  flex: 1 1 340px; max-width: 420px; background: var(--dark-2); border: 1px solid var(--dark-rule);
  border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.offer h2 { font-size: 20px; line-height: 26px; margin: 0; }
.offer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 22px; color: #E3E6EB; }
.offer-list li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--dark-rule); }
.offer-list strong { font-weight: 600; display: block; }
.offer-list span.detail { color: var(--on-dark-3); }
.tag { flex: none; font: 400 12px/22px var(--mono); color: var(--accent); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price { font: 700 44px/48px var(--display); }
.price-note { font-size: 14px; color: var(--on-dark-3); }
.fine { margin: 0; font-size: 13px; line-height: 19px; color: var(--on-dark-3); }

/* Páginas reales del PDF, montadas sobre el borde de la portada */
.pages {
  list-style: none; padding: 0; margin: 64px auto -200px; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.pages figure { margin: 0; }
.pages img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35); background: #FFFFFF; }
.pages figcaption { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--ink-2); }

main { padding-top: 280px; }

/* ---------- Qué recibes + spreadsheet ---------- */
.alt { color: var(--ink-2); }
.receive { max-width: var(--read); margin-bottom: 40px; }

/* Capturas del spreadsheet: cuatro imágenes en el mismo marco.
   Sin JS se deslizan a mano; shots.js agrega avance automático, flechas y puntos. */
.shots { position: relative; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--wash); box-shadow: 0 16px 40px rgba(31, 35, 40, 0.12); }
.shots-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.shots-track::-webkit-scrollbar { display: none; }
.shots-track picture { flex: none; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.shots-track img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #FFFFFF; }
.shots-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(23, 25, 30, 0.72); color: var(--on-dark); cursor: pointer; transition: background-color 160ms ease-out; }
.shots-nav:hover { background: rgba(23, 25, 30, 0.9); }
.shots-nav svg { width: 20px; height: 20px; }
.shots-prev { left: 12px; }
.shots-next { right: 12px; }
.shots-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; }
.shots-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.shots-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(31, 35, 40, 0.3); transition: background-color 160ms ease-out, transform 160ms ease-out; }
.shots-dots button[aria-current="true"]::before { background: var(--accent); transform: scale(1.25); }
.shots:not(.is-ready) .shots-nav, .shots:not(.is-ready) .shots-dots { display: none; }

/* ---------- Recorrido ---------- */
.band { background: var(--wash); padding: 96px var(--gutter); margin-bottom: 112px; }
.band h2 { margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { background: #FFFFFF; border-top: 3px solid var(--accent); border-radius: 0 0 4px 4px; padding: 22px; }
.step-num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 2px solid var(--ink); font: 700 18px/1 var(--display); }
.steps h3 { margin: 16px 0 8px; font-size: 19px; line-height: 24px; }
.steps p { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-2); }

/* ---------- Para quién ---------- */
.two { display: flex; flex-wrap: wrap; gap: 56px; }
.two > * { flex: 1 1 440px; min-width: 0; }
.two h2 { font-size: 32px; line-height: 38px; margin-bottom: 20px; }
.two ul { margin: 0 0 16px; padding-left: 22px; }
.two li { margin-bottom: 8px; }
.two li::marker { color: var(--accent); }

.ruled { padding-top: 56px; border-top: 1px solid var(--rule); }
.bio { background: var(--wash); padding: 96px var(--gutter); }
.social { margin: 20px 0 0 -10px; display: flex; gap: 4px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); transition: color 160ms ease-out, background-color 160ms ease-out; }
.social a:hover { color: var(--ink); background: rgba(31, 35, 40, 0.06); }
.social svg { width: 22px; height: 22px; }
.social-foot { margin: -12px -10px -12px 0; }
.social-foot a { color: var(--on-dark-3); }
.social-foot a:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.06); }
.social-foot svg { width: 18px; height: 18px; }

/* ---------- Cierre ---------- */
.close { background: var(--dark); color: var(--on-dark); padding: 96px var(--gutter); }
.close-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.close-copy { flex: 1 1 480px; min-width: 0; }
.close h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-bottom: 12px; }
.close-copy p { color: var(--on-dark-2); }
.close-buy { flex: 0 1 380px; display: flex; flex-direction: column; gap: 14px; }
.close-buy .price { font-size: 48px; line-height: 52px; }
.close a:not(.buy) { color: var(--accent-hover); }

footer { background: var(--dark-3); color: var(--on-dark-3); padding: 28px var(--gutter); font-size: 13px; line-height: 20px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--on-dark-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { padding-top: 48px; }
  .hero-grid { gap: 40px; }
  .offer { max-width: none; }
  .pages { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; gap: 16px; margin: 48px calc(-1 * var(--gutter)) -200px; padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .pages figure { scroll-snap-align: start; }
  main { padding-top: 264px; }
  .section, .band { margin-bottom: 80px; }
  .band, .bio, .close { padding-top: 72px; padding-bottom: 72px; }
  .lead { font-size: 18px; }
  .shots-track img { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .buy { transition: none; }
  .shots-track { scroll-behavior: auto; }
}
