/* /manual/ + /manual/gracias — mobile first (375px), colours from the manual's cover. */
:root {
  --navy: #1b2a4a; --navy-2: #24365c; --ink: #141b2d; --muted: #5b6478; --line: #e3e7ef;
  --orange: #e8762d; --orange-2: #f2a878; --bg: #f6f7fb; --card: #ffffff; --ok: #16a34a; --err: #c2410c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#form { scroll-margin-top: 16px; } /* "Quiero el manual" lands just above the form card */
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; } /* height:auto — the width/height attrs are only for the aspect ratio */
a { color: inherit; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { height: 26px; width: auto; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang a { min-width: 44px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang a.on { background: var(--navy); color: #fff; }

.hero { background: radial-gradient(120% 90% at 85% 0%, #3a3350 0%, var(--navy) 55%, #16223d 100%); color: #eef2fb; padding: 28px 0 36px; }
.hero .wrap { display: grid; gap: 24px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--orange-2); margin: 0; }
h1 { font-size: 30px; line-height: 1.15; margin: 10px 0 12px; letter-spacing: -.01em; }
.hero .sub { margin: 0; color: #cdd5e6; }
.hero .sub em { color: #fff; font-style: italic; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.price b { font-size: 40px; line-height: 1; color: #fff; }
.price span { font-size: 14px; color: #cdd5e6; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--orange); color: #fff; font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer; width: 100%; }
.btn:disabled { opacity: .7; cursor: wait; }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.hero-copy { min-width: 0; }
.hero .sub-long, .keys { display: none; }
.hero .sub-short { font-size: 15px; }
.hero .price { margin: 14px 0 0; }
.hero .formcard { color: var(--ink); }
.keys { list-style: none; padding: 0; margin: 22px 0 0; }
.keys li { position: relative; padding: 0 0 10px 30px; color: #eef2fb; font-weight: 600; }
.keys li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange-2); font-weight: 800; }
.cta-again { margin-top: 18px; }
@media (min-width: 900px) {  /* form in the right column, fully above the fold at 1366×768 */
  .hero { padding: 14px 0 36px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 470px; gap: 44px; align-items: start; }
  .hero-copy { padding-top: 6px; }
  .hero .sub-long, .keys { display: block; }
  .hero .sub-short { display: none; }
  .hero h1 { font-size: 40px; }
  .hero .price { margin: 20px 0 0; }
  .hero .formcard { padding: 18px 22px 14px; margin-top: 0; }
  .hero .formcard h2 { font-size: 21px; margin-bottom: 4px; }
  .hero .formcard .sub { display: none; }  /* the hero copy already says it */
  .hero .formcard .field { margin-bottom: 8px; }
  .hero .formcard .help { margin-top: 4px; font-size: 12px; }
  .hero .formcard .check { font-size: 13px; }
  .hero .formcard label.l { margin-bottom: 4px; font-size: 13px; }
  .hero .formcard input[type=text], .hero .formcard input[type=email], .hero .formcard input[type=number] { min-height: 42px; }
  .hero .formcard .wa-row select, .hero .formcard .wa-row input { min-height: 42px; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero .formcard .wa-btn .lbl-long { display: none; }
  .hero .formcard .wa-btn .lbl-short { display: inline; }
  .hero .formcard .gate { margin-top: 5px; }
  .hero .formcard .under, .hero .formcard .payhelp { display: inline; margin: 0; font-size: 12px; }
  .hero .formcard .foot { text-align: center; margin-top: 4px; line-height: 1.5; }
  .hero .formcard .foot .payhelp a { min-height: 0; }
}
.cover { width: 100%; height: auto; max-width: 240px; margin: 0 auto; border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }

section { padding: 36px 0; }
h2 { font-size: 24px; line-height: 1.2; margin: 0 0 16px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 44px; position: relative; }
.list li::before { content: "✓"; position: absolute; left: 16px; top: 13px; color: var(--orange); font-weight: 800; }
.list li b { display: block; }
.plain li { padding-left: 44px; }

.pages { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.page { flex: 0 0 78%; scroll-snap-align: start; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: zoom-in; overflow: hidden; box-shadow: 0 8px 24px -16px rgba(27,42,74,.45); }
.page img { width: 100%; height: auto; aspect-ratio: 1400 / 1981; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10,16,30,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; background: #fff; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.caption { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

.formcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px; box-shadow: 0 10px 30px -18px rgba(27,42,74,.35); }
.formcard .sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.field { margin-bottom: 14px; }
label.l { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cfd5e2; border-radius: 10px; font-family: inherit; font-size: 16px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--orange-2); border-color: var(--orange); }
.phone { display: flex; gap: 8px; }
.phone select { flex: 0 0 118px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--orange); }
.err { color: var(--err); font-size: 13px; margin-top: 4px; min-height: 0; }
.invalid input, .invalid select { border-color: var(--err); }
.help { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.wa-row { display: flex; align-items: stretch; border: 1px solid #cfd5e2; border-radius: 10px; background: #fff; overflow: hidden; }
.wa-row:focus-within { outline: 2px solid var(--orange-2); border-color: var(--orange); }
.wa-row select, .wa-row input { border: 0 !important; border-radius: 0; outline: none !important; min-height: 48px; }
.wa-row select { flex: 0 0 96px; width: 96px; padding: 0 6px 0 10px; border-right: 1px solid #e3e7ef !important; background: #f8f9fc; }
.wa-num { position: relative; flex: 1 1 auto; min-width: 0; }
.wa-num input { width: 100%; height: 100%; padding: 0 34px 0 12px; }
.wa-tick { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ok); font-weight: 800; font-size: 18px; display: none; }
.wa-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; background: #25d366; color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.wa-btn:disabled { background: #9adfb3; cursor: default; }
.wa-btn .lbl-short { display: none; }
.wa-row.verified { border-color: var(--ok); outline: 1px solid var(--ok); }
.wa-row.verified + .help { display: none; }  /* the helper no longer applies once verified */
.wa-row.verified .wa-btn:disabled { background: #e8f8ee; color: var(--ok); }
.wa-row.verified .wa-btn svg { display: none; }
@media (max-width: 480px) {  /* keep one row; give the number the room */
  .wa-btn .lbl-long, .wa-btn svg { display: none; }
  .wa-btn .lbl-short { display: inline; }
  .wa-btn { padding: 0 12px; font-size: 14px; }
  .wa-row select { flex-basis: 80px; width: 80px; padding: 0 2px 0 8px; font-size: 15px; }
  .wa-num input { padding: 0 24px 0 10px; }
  .wa-tick { right: 6px; }
  .wa-row.verified .wa-btn { padding: 0 8px; font-size: 13px; }
}
@media (max-width: 370px) {  /* 360px Androids */
  .wa-row select { flex-basis: 76px; width: 76px; padding: 0 0 0 5px; font-size: 14px; }
  .wa-btn { padding: 0 9px; font-size: 13px; }
  .wa-row.verified .wa-btn { padding: 0 6px; font-size: 12px; }
  .wa-num input { padding: 0 18px 0 7px; }
}
.otp-box { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s ease, margin .3s ease; }
.otp-box.open { max-height: 200px; opacity: 1; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .otp-box { transition: none; } }
.digits { display: flex; gap: 8px; }
.digits input { width: 100%; max-width: 52px; min-height: 54px; padding: 0; text-align: center; font-size: 22px; font-weight: 700;
  border: 1px solid #cfd5e2; border-radius: 10px; background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; }
.digits input:focus { outline: 2px solid var(--orange-2); border-color: var(--orange); }
.digits input.bad { border-color: var(--err); }
.otp-line { font-size: 13px; color: var(--muted); margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.linkbtn { background: none; border: 0; padding: 0; min-height: 36px; color: var(--navy); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.otp-msg { font-size: 14px; color: var(--err); margin: 8px 0 0; }
.btn.is-disabled { background: #f0b88f; cursor: not-allowed; }
.payhelp { text-align: center; font-size: 14px; margin: 10px 0 0; }
.payhelp a { color: #128c4b; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.gate { text-align: center; font-size: 13px; color: var(--muted); margin: 8px 0 0; min-height: 1em; }
.gate:empty { display: none; }
.box.wa-card { border: 2px solid #25d366; background: #f1fdf5; }
.box.wa-card p { color: var(--ink); }
.btn.wa { background: #25d366; color: #0b3d1e; margin-top: 4px; }
.btn.wa svg { flex: 0 0 auto; }
.under { text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.formerr { color: var(--err); font-size: 14px; margin: 10px 0 0; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 10px; }
summary { min-height: 52px; display: flex; align-items: center; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--orange); font-size: 20px; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; color: var(--muted); }
footer { padding: 24px 0 40px; color: var(--muted); font-size: 13px; text-align: center; }

/* gracias */
.thanks { padding: 32px 0; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; margin-bottom: 16px; }
.box.dark { background: var(--navy); color: #eef2fb; border-color: var(--navy); }
.box.dark p { color: #cdd5e6; }
.stack { display: grid; gap: 10px; margin-top: 16px; }
.linklike { text-align: center; font-size: 15px; color: var(--navy); font-weight: 600; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

@media (min-width: 820px) {
  h1 { font-size: 44px; }
  .hero { padding: 48px 0 56px; }
  .btn { width: auto; }
  .formcard .btn { width: 100%; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .pages { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; overflow: visible; max-width: 760px; }
  .formcard { padding: 28px; }
}
