:root {
  --bg: #0b0c0e;
  --bg-2: #121419;
  --bg-3: #1a1d23;
  --line: #262a32;
  --text: #ecebe6;
  --text-2: #d2d1cc;
  --muted: #a0a2a9;
  --accent: #f5b94a;
  --accent-ink: #1b1405;
  --ok: #86d69a;
  --no: #f08a7a;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-3); padding: 1px 6px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.9rem, 9vw, 5.6rem); margin-bottom: 24px; }
h2 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin-bottom: 20px; }
h3 { font-size: 1.7rem; margin-bottom: 8px; }
h1 em, h2 em { color: var(--accent); }
p { margin: 0 0 16px; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.08rem, 2.4vw, 1.3rem); color: var(--text-2); max-width: 660px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(245, 185, 74, .25); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }

/* Marcadores que hay que rellenar antes de publicar */
.ph { background: rgba(245, 185, 74, .16); outline: 1px dashed var(--accent); border-radius: 4px; padding: 0 4px; }

/* Portada */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 30% 40%, rgba(11, 12, 14, .25), rgba(11, 12, 14, .88) 72%); }
.hero .wrap { position: relative; z-index: 1; }
nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.logo svg { width: 28px; height: 28px; flex: none; }
.hero-inner { max-width: 860px; padding: clamp(56px, 12vw, 140px) 0 clamp(64px, 12vw, 150px); }
.hero .lead { margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.micro { font-size: .9rem; color: var(--muted); margin: 0; }

section { padding: clamp(64px, 10vw, 120px) 0; border-bottom: 1px solid var(--line); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.pain { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 760px; }
.pain li { padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }

/* Ventana de ejemplo */
.demo { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo-bar span { margin-left: 8px; }
.demo-body { padding: 16px; display: grid; gap: 12px; }
.demo-body p { margin: 0; overflow-wrap: anywhere; }
.demo b { font-weight: 600; margin-right: 6px; }
.demo .cmd, .demo .claude b { color: var(--accent); }
.demo .you { color: var(--text-2); }
.demo .you b, .demo .saved { color: var(--ok); }
.demo .saved code { background: none; padding: 0; }
.tree { margin: 0; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 12.5px; white-space: pre; overflow-x: auto; }
.demo figcaption { padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 12px; color: var(--muted); }

/* Pasos */
.steps { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; }
.step .n { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent); margin-bottom: 12px; }
.step p { color: var(--text-2); margin: 0; }

/* Comandos */
.cmds { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 36px; }
.cmd-card { padding: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.cmd-card code { background: none; padding: 0; color: var(--accent); font-size: .98rem; }
.cmd-card p { margin: 6px 0 0; color: var(--text-2); font-size: .97rem; }
.extra { margin: 24px 0 0; color: var(--muted); max-width: 760px; }

/* Para quién */
.fit { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit-card { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.fit-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.fit-card li { position: relative; padding-left: 30px; }
.fit-card li::before { position: absolute; left: 0; top: 0; font-weight: 600; }
.yes li::before { content: "✓"; color: var(--ok); }
.no li::before { content: "✕"; color: var(--no); }

.needs { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 760px; }
.needs li { padding: 16px 18px; border-left: 2px solid var(--accent); background: var(--bg-2); border-radius: 0 12px 12px 0; }
.needs strong { font-weight: 600; }

.honest { padding: clamp(24px, 5vw, 44px); border: 1px solid rgba(245, 185, 74, .35); border-radius: 22px; background: linear-gradient(180deg, rgba(245, 185, 74, .06), transparent); }
.honest ul { padding-left: 20px; margin: 0 0 20px; }
.honest li { margin-bottom: 10px; }
.honest strong { font-weight: 600; }
.honest p { margin: 0; color: var(--text-2); }

/* Precio */
.price-card { max-width: 540px; margin: 36px auto 0; padding: clamp(26px, 5vw, 40px); border-radius: 24px; background: var(--bg-2); border: 1px solid rgba(245, 185, 74, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 6px rgba(245, 185, 74, .05); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 4px; }
.price .amount { font-family: var(--serif); font-size: clamp(3.4rem, 10vw, 4.6rem); line-height: 1; }
.price .terms { color: var(--muted); font-size: .95rem; }
.price-note { color: var(--text-2); margin-bottom: 22px; }
.includes { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.includes li { position: relative; padding-left: 28px; }
.includes li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 600; }
.price-card .btn { width: 100%; }
.guarantee { margin: 18px 0 0; font-size: .95rem; color: var(--text-2); }
.fine { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }

/* Preguntas */
.faq { max-width: 780px; margin-top: 28px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); transition: transform .2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--text-2); padding-bottom: 20px; margin: 0; }

.final { border-bottom: 0; }
.final h2 { max-width: 760px; margin: 0 auto 28px; }

footer { padding: 36px 0 120px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
@media (min-width: 760px) { footer { padding-bottom: 40px; } }

/* Botón fijo en el móvil */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 10; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.sticky-cta.on { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* Páginas interiores: Temario Exprés y textos legales */
.page-head { border-bottom: 1px solid var(--line); }
.doc { max-width: 780px; padding-top: clamp(40px, 8vw, 80px); padding-bottom: clamp(48px, 8vw, 96px); }
.doc h1 { font-size: clamp(2.6rem, 8vw, 4rem); margin-bottom: 18px; }
.doc h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin: 40px 0 12px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); }
.doc .btn { color: var(--accent-ink); }
.doc .updated { color: var(--muted); font-size: .9rem; }
.doc .honest { margin-top: 48px; }
.doc .honest h2 { margin-top: 0; }
.prompt { margin: 28px 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prompt-head h2 { margin: 0; font-size: 1.45rem; }
.prompt pre { margin: 0; padding: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 .95rem var(--sans); cursor: pointer; }
.copy:hover { box-shadow: 0 6px 20px rgba(245, 185, 74, .25); }
footer.plain { padding-bottom: 40px; }
