:root {
  --bg: #17181b;
  --surface: #202226;
  --s2: #2a2d32;
  --ink: #f2f1ec;
  --soft: #d6d6d1;
  --muted: #a3a7ad;
  --line: #34373d;
  --accent: #94d2b4;
  --accent-ink: #10231a;
  --error: #ff9b8f;
  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); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* encabezado */
.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(23, 24, 27, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.top-row { display: flex; justify-content: space-between; align-items: center; height: 54px; gap: 12px; }
.brand { color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 800; letter-spacing: .16em; font-size: 16px; }
.brand small { font-weight: 500; letter-spacing: .2em; color: var(--muted); font-size: 10px; margin-left: 6px; }
.tag { color: var(--muted); font-size: 11px; text-align: right; line-height: 1.2; }

/* portada */
.hero { padding-top: 32px; padding-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 6.5vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
.rule { display: block; width: 48px; height: 3px; background: var(--accent); margin: 18px 0; border-radius: 2px; }
.lead { margin: 0; color: var(--soft); font-size: 16px; max-width: 640px; }

/* láminas */
.hint { font-size: 12px; color: var(--muted); margin: 14px 0 10px; }
.hint-d { display: none; }
.slides { display: grid; gap: 14px; }
.slide { margin: 0; cursor: zoom-in; }
.slide:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.ph { position: relative; aspect-ratio: 960 / 540; border-radius: 8px; overflow: hidden; background: #0f1012; border: 1px solid var(--line); }
.ph canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.slide figcaption { font-size: 11px; color: var(--muted); text-align: right; margin-top: 4px; }

/* Su voz cuenta */
.voz { margin-top: 26px; background: linear-gradient(180deg, #1d2a24 0, var(--surface) 140px); border-top: 1px solid #2f4a3e; padding: 30px 16px 26px; scroll-margin-top: 54px; }
.voz-inner { max-width: 640px; margin: 0 auto; }
.voz h2 { margin: 0; font-size: 27px; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.voz p { margin: 14px 0 0; color: var(--soft); font-size: 15px; }
.list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.35; }
.list li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
.voz .cta { margin: 24px 0 12px; font-size: 17px; font-weight: 800; color: var(--ink); }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.field { margin: 0 0 12px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
label .opt { color: var(--muted); font-weight: 500; }
input[type=text], input[type=email], input[type=tel] {
  width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--s2); color: var(--ink); padding: 0 12px; font: inherit; font-size: 16px;
}
input: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 !important; }
.err:empty { display: none; }
.form-err { text-align: center; }
.voz .consent { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 2px 0 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin: 0 0 12px; min-height: 65px; }

.btn { display: inline-flex; justify-content: center; align-items: center; height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.primary:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.card .btn { width: 100%; margin-top: 4px; }
.voz .alt { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.thanks { border-color: var(--accent); }
.thanks:focus { outline: none; }
.voz .thanks-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }

.voz .voice { margin: 24px 0 0; padding: 16px; border-left: 3px solid var(--accent); background: rgba(148, 210, 180, .07); border-radius: 0 10px 10px 0; font-weight: 800; font-size: 20px; line-height: 1.3; color: var(--ink); }
.privacy { font-size: 12px; color: var(--muted); margin-top: 16px; }
.privacy summary { cursor: pointer; }
.voz .privacy p { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }

.download { padding: 26px 16px 30px; text-align: center; }
.download p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.download .btn { width: 100%; max-width: 360px; }

.foot { border-top: 1px solid var(--line); padding: 18px 0 28px; font-size: 12px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* visor a pantalla completa */
.visor { position: fixed; inset: 0; z-index: 20; background: rgba(8, 9, 10, .96); display: flex; align-items: center; justify-content: center; }
.visor-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 8px; }
.visor-stage canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; }
.visor-close, .visor-nav { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: var(--ink); font: inherit; cursor: pointer; border-radius: 99px; }
.visor-close { top: 10px; right: 10px; width: 42px; height: 42px; font-size: 18px; }
.visor-nav { top: 50%; transform: translateY(-50%); width: 42px; height: 42px; font-size: 26px; line-height: 1; }
.visor-nav.prev { left: 8px; }
.visor-nav.next { right: 8px; }
.visor-nav:disabled { opacity: .25; cursor: default; }
.visor-count { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; text-align: center; color: var(--muted); font-size: 12px; }

@media (min-width: 821px) {
  .top-row { height: 60px; }
  .tag { font-size: 13px; }
  .hero { padding-top: 56px; padding-bottom: 30px; }
  .lead { font-size: 18px; }
  .eyebrow { font-size: 13px; }
  .hint { font-size: 13px; }
  .hint-m { display: none; }
  .hint-d { display: inline; }
  .slides { gap: 22px; }
  .voz { margin-top: 40px; padding: 56px 16px 48px; scroll-margin-top: 60px; }
  .voz h2 { font-size: 34px; }
  .voz p, .list li { font-size: 16px; }
  .card { padding: 22px; }
  .download { padding: 40px 16px 48px; }
}
