:root {
  --bg: #17181b;
  --surface: #202226;
  --surface-2: #2a2d32;
  --ink: #f2f1ec;
  --muted: #a3a7ad;
  --line: #34373d;
  --accent: #94d2b4;
  --accent-ink: #10231a;
  --error: #ff9b8f;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; justify-content: space-between; align-items: center; height: 60px; gap: 12px; }
.brand { white-space: nowrap; font-weight: 800; letter-spacing: .16em; font-size: 18px; }
.brand small { font-weight: 500; letter-spacing: .2em; color: var(--muted); font-size: 11px; margin-left: 6px; }
.top-tag { color: var(--muted); font-size: 13px; text-align: right; }

.hero { padding: 56px 0 40px; max-width: 720px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 7vw, 64px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
.rule { display: block; width: 56px; height: 3px; background: var(--accent); margin: 22px 0; border-radius: 2px; }
.hero-cta { width: auto; margin-top: 24px; }
.lead { margin: 0; font-size: 18px; color: #d6d6d1; }

.grid { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 40px; align-items: start; padding-bottom: 64px; }
.invite h2 { font-size: 24px; margin: 0 0 12px; letter-spacing: -.01em; }
.invite p { color: #d0d1cc; margin: 0 0 12px; }
.points { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 8px; }
.points li { padding-left: 26px; position: relative; color: var(--ink); }
.points li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.cover { border-radius: 10px; border: 1px solid var(--line); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-title { margin: 0 0 18px; font-size: 20px; }
.field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; margin-left: 4px; }
input[type=text], input[type=email], input[type=tel], select {
  width: 100%; height: 46px; padding: 0 12px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; /* evita zoom en iOS */
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
select:disabled { opacity: .5; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
[aria-invalid=true] { border-color: var(--error) !important; }
.err { color: var(--error); font-size: 13px; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }

.choices { display: grid; gap: 8px; margin-top: 18px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; margin: 0; background: var(--bg); }
.choice:has(input:checked) { border-color: var(--accent); background: #1d2a24; }
.choice.recommended { border-color: rgba(148, 210, 180, .55); background: rgba(148, 210, 180, .09); }
.choice.recommended:has(input:checked) { border-color: var(--accent); background: rgba(148, 210, 180, .18); box-shadow: 0 0 0 1px var(--accent); }
.badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .03em; vertical-align: 1px; white-space: nowrap; }
.choice input { margin: 3px 0 0; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin: 6px 0 12px; min-height: 65px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; width: 100%; margin-top: 6px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 10px; font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.form-err { text-align: center; }

.privacy { margin-top: 14px; font-size: 13px; color: var(--muted); }
.privacy summary { cursor: pointer; text-align: center; }
.privacy p { margin: 10px 0 0; }

.viewer { padding: 8px 0 64px; scroll-margin-top: 16px; }
.viewer-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.viewer-head h2 { margin: 0; font-size: 28px; letter-spacing: -.01em; }
.actions { display: flex; gap: 10px; }
.actions .btn { width: auto; margin: 0; }
.pages { display: grid; gap: 16px; }
.page { position: relative; background: #0f1012; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.page canvas { display: block; width: 100%; height: auto; }
.page-num { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: var(--muted); background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 99px; }
.loading { color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 40px; color: var(--muted); font-size: 13px; }
.foot p { margin: 0; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 36px 0 28px; }
  .cover { display: none; }
  .card { padding: 20px 16px; }
  .top-tag { font-size: 12px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
}
