/* ============================================================
   Programa de adopción de IA en 90 días — Saúl Wade
   Dirección: cuaderno de trabajo. Papel crema, tinta negra,
   serif editorial (Craft) + tacto de botón físico (Clicky).
   Naranja quemado SOLO para lo que se puede clickear.
   ============================================================ */

:root {
  --cream:   #F3EEE3;
  --cream-2: #EBE4D4;
  --paper:   #FAF7F0;
  --ink:     #111111;
  --ink-2:   #3a3833;
  --muted:   #67635a;
  --line:    rgba(17,17,17,.16);
  --orange:  #D9541E;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--ink); color: var(--cream); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 10vw, 120px); }
.rule { border-top: 1px solid var(--line); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; z-index: 300; }
.skip:focus { left: 8px; }

/* ---------- Tipografía ---------- */
.label {
  font-family: var(--mono); font-size: 15px; letter-spacing: .02em;
  color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 26px;
}
.label b { color: var(--ink); font-weight: 500; }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -.015em; max-width: 17ch;
}
.intro { margin-top: 24px; font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); max-width: 54ch; }
.src { font-family: var(--mono); font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Botón (lo único naranja) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1;
  padding: 17px 28px; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--orange); color: var(--ink); border: 0;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); filter: brightness(.96); }
.btn--sm { padding: 12px 20px; font-size: 16px; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }
.textlink {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  display: inline-flex; gap: 8px; align-items: center;
}
.textlink:hover { text-decoration-thickness: 3px; }

/* ---------- Navegación flotante ---------- */
.nav-shell { position: sticky; top: 12px; z-index: 100; padding-inline: var(--gutter); }
.nav {
  max-width: var(--maxw); margin: 12px auto 0; background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--line); border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px; min-height: 58px;
  box-shadow: 0 1px 0 rgba(17,17,17,.04), 0 10px 30px -18px rgba(17,17,17,.35);
}
.wordmark { font-family: var(--serif); font-size: 26px; line-height: 1; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.nav-links { display: none; gap: 28px; font-size: 16px; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--ink); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(44px, 7vw, 92px); padding-bottom: clamp(56px, 8vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(17,17,17,.2) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 56px; } }
.h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(46px, 9vw, 104px); line-height: .96; max-width: 11ch;
}
.hero .lead { margin-top: 28px; font-size: clamp(19px, 2.3vw, 23px); color: var(--ink-2); max-width: 40ch; line-height: 1.5; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 22px 28px; align-items: center; }
.hero-meta { margin-top: 28px; font-family: var(--mono); font-size: 15px; color: var(--muted); }

/* Tarjeta "hoja de ruta" — hecha con datos reales del programa */
.sheet {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 24px; box-shadow: 0 24px 50px -28px rgba(17,17,17,.35);
}
.sheet-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.sheet h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; margin-bottom: 20px; }
.weeks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-bottom: 22px; }
.weeks i { height: 30px; border: 1.5px solid var(--ink); border-radius: 5px; background: transparent; }
.weeks i:nth-child(n+5):nth-child(-n+8) { background: var(--cream-2); }
.weeks i:nth-child(n+9) { background: var(--ink); }
.sheet li { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 17px; }
.sheet li span:first-child { font-family: var(--mono); font-size: 15px; color: var(--muted); min-width: 66px; padding-top: 2px; }

/* Carga escalonada */
.js .rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.js .rise:nth-child(2) { animation-delay: .08s; } .js .rise:nth-child(3) { animation-delay: .16s; }
.js .rise:nth-child(4) { animation-delay: .24s; } .js .rise:nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Franja de experiencia ---------- */
.proof { padding-block: 34px; background: var(--ink); color: var(--cream); }
.proof .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
.proof .k { font-family: var(--mono); font-size: 15px; color: rgba(243,238,227,.7); flex: 1 1 100%; }
.proof ul { display: flex; flex-wrap: wrap; gap: 8px 38px; }
.proof li { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; }

/* ---------- Problema ---------- */
.stats { margin-top: 56px; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) {
  .stat { padding: 32px 32px 8px 0; border-bottom: 0; }
  .stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
}
.stat .n { font-family: var(--serif); font-size: clamp(64px, 9vw, 104px); line-height: .9; letter-spacing: -.03em; }
.stat p { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 28ch; }
.stat .src { margin-top: 16px; }
.pull { margin-top: 56px; font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); line-height: 1.1; max-width: 24ch; }

/* ---------- Qué es / qué no ---------- */
.two { margin-top: 52px; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } .two > div:last-child { border-left: 1px solid var(--line); padding-left: 40px; } .two > div:first-child { padding-right: 40px; } }
.two > div { padding-block: 32px; }
.two h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin-bottom: 22px; }
.two li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative; color: var(--ink-2); }
.two li:first-child { border-top: 0; }
.two li::before { content: "+"; position: absolute; left: 2px; top: 11px; font-family: var(--mono); font-size: 22px; color: var(--ink); }
.two .no li::before { content: "–"; color: var(--muted); }
.two b { color: var(--ink); font-weight: 600; }

/* ---------- Fases ---------- */
.phases { margin-top: 56px; border-top: 1px solid var(--ink); }
.phase { display: grid; gap: 14px 40px; grid-template-columns: 1fr; padding: 34px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .phase { grid-template-columns: 90px 260px 1fr; align-items: start; } }
.phase .no { font-family: var(--serif); font-size: 80px; line-height: .8; }
.phase .wk { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.phase h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; margin-top: 8px; }
.phase p { color: var(--ink-2); max-width: 52ch; }
.phase b { color: var(--ink); font-weight: 600; }

/* ---------- Áreas ---------- */
.rows { margin-top: 52px; border-top: 1px solid var(--ink); }
.row { display: grid; gap: 8px 40px; grid-template-columns: 1fr; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .row { grid-template-columns: 300px 1fr; align-items: baseline; } }
.row h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; }
.row p { color: var(--ink-2); max-width: 54ch; }

/* ---------- Qué obtienes / qué pido ---------- */
.lists { padding-block: clamp(64px, 10vw, 120px); background: var(--cream-2); }
.lists .two { border-top-color: var(--ink); }
.lists .label { margin-bottom: 0; }

/* ---------- Para quién ---------- */
.sectors { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.sectors li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 18px; font-size: 17px; background: var(--paper); }
.signs { margin-top: 48px; padding: 28px 30px; border: 1px dashed var(--ink); border-radius: 16px; max-width: 62ch; background: var(--paper); }
.signs b { font-weight: 600; }

/* ---------- Inversión ---------- */
.price { margin-top: 52px; background: var(--ink); color: var(--cream); border-radius: 24px; padding: clamp(30px, 5vw, 60px); display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .price { grid-template-columns: 1.3fr .7fr; align-items: end; } }
.price .from { font-family: var(--mono); font-size: 15px; color: rgba(243,238,227,.7); }
.price .amt { font-family: var(--serif); font-size: clamp(60px, 10vw, 112px); line-height: .95; letter-spacing: -.03em; margin-top: 10px; }
.price .amt small { font-family: var(--sans); font-size: 18px; letter-spacing: 0; color: rgba(243,238,227,.75); display: block; margin-top: 14px; }
.price .btn { margin-top: 30px; }
.price p { margin-top: 20px; color: rgba(243,238,227,.82); max-width: 44ch; }
.slots { border: 1px solid rgba(243,238,227,.3); border-radius: 18px; padding: 24px; }
.slots .dots { display: flex; gap: 12px; margin-bottom: 18px; }
.slots .dots i { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--cream); }
.slots strong { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; display: block; }
.slots span { display: block; margin-top: 8px; color: rgba(243,238,227,.78); font-size: 17px; }
.fine { margin-top: 20px; }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.about .big { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.01em; }
.about .copy { margin-top: 28px; color: var(--ink-2); max-width: 52ch; }
.about .copy + .copy { margin-top: 16px; }
.exp { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; padding: 28px; align-self: start; }
.exp h3 { font-family: var(--mono); font-weight: 400; font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.exp li { padding: 15px 0; border-top: 1px solid var(--line); font-size: 18px; }
.exp li:first-of-type { border-top: 0; }
.exp .src { margin-top: 14px; }

/* ---------- Logros ---------- */
.ledger { margin-top: 52px; border-top: 1px solid var(--ink); }
.job { display: grid; gap: 22px 40px; grid-template-columns: 1fr; padding: 34px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .job { grid-template-columns: 300px 1fr; } }
.job h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.job header .src { margin-top: 10px; }
.res { display: grid; gap: 26px 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .res { grid-template-columns: 1fr 1fr; } }
.m b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 68px); line-height: .95; letter-spacing: -.02em; }
.m span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 17px; line-height: 1.45; max-width: 34ch; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative; font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .a { padding: 0 56px 30px 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- Cierre ---------- */
.close { padding-block: clamp(72px, 12vw, 150px); border-top: 1px solid var(--ink); }
.close h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.5vw, 104px); line-height: .96; letter-spacing: -.02em; max-width: 12ch; }
.close p { margin-top: 28px; max-width: 46ch; font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); }
.close .hero-actions { margin-top: 38px; }
.mail-fallback { margin-top: 26px; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.mail-fallback a { color: var(--ink); }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--ink); padding-block: 44px 130px; }
@media (min-width: 760px) { .foot { padding-bottom: 52px; } }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 17px; }
.foot-links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.foot-links a:hover { text-decoration-color: var(--ink); }
.foot-bottom { margin-top: 34px; font-family: var(--mono); font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-bottom a { color: var(--muted); }

/* ---------- CTA fijo (móvil) ---------- */
.sticky { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--cream) 62%, transparent); }
.sticky .btn { width: 100%; }
.js .sticky { transform: translateY(110%); transition: transform .25s ease; }
.js .sticky.show { transform: none; }
@media (min-width: 760px) { .sticky { display: none; } }
@media (max-width: 559px) { .hide-s { display: none; } }

/* ---------- Aviso de privacidad ---------- */
.legal { padding-block: 64px 100px; max-width: 70ch; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 68px); line-height: 1; margin-bottom: 12px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 22px; }
.draft { border: 1px dashed var(--ink); border-radius: 12px; padding: 14px 18px; margin: 22px 0 6px; background: var(--paper); }

.legal .lede { font-size: 20px; color: var(--ink); margin-top: 18px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
