:root {
  --crimson:  #c01136;   /* barra opt-in/llamada + botón "Llama ahora" */
  --maroon:   #8b1a1a;   /* franja superior del quiz */
  --navy:     #0c2f5e;   /* franja quiz + botones del quiz */
  --navy-hi:  #14417f;   /* hover botón quiz */
  --blue:     #0441a2;   /* título "¡Felicidades, es elegible!" */
  --btn-blue: #3498db;   /* botón "Entregar" del opt-in */
  --red-text: #a50303;   /* línea del beneficio en la llamada */
  --red-note: #c00f0f;   /* parte roja de la nota */
  --red-hi:   #c00d20;   /* highlight "$25,000" en el quiz */
  --ink:      #111111;
  --muted:    #444;
  --dotted:   #cccccc;
  --input-bd: #d7d7d7;
  --arial: Arial, 'Helvetica Neue', Helvetica, 'Roboto', sans-serif;
  --font:  'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Barras superiores ---------- */
.topbar { height: 12px; background: var(--crimson); width: 100%; }   /* opt-in / llamada */
.topbar2 { width: 100%; }                                            /* quiz (bicolor) */
.topbar2 .bar-maroon { height: 10px; background: var(--maroon); }
.topbar2 .bar-navy   { height: 13px; background: var(--navy); }

/* ---------- Contenedores ---------- */
.wrap { max-width: 600px; margin: 0 auto; padding: 24px 16px 10px; }
.wrap--quiz { max-width: 780px; }

.panel { background: #fff; border: 2px dotted var(--dotted); padding: 26px 24px 30px; text-align: center; }

p, h1, h2 { margin: 0 0 16px; }

/* ---------- QUIZ ---------- */
.quiz-intro { text-align: center; padding: 6px 4px 18px; }
.quiz-title {
  font-family: var(--arial);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}
.quiz-title .hi { color: var(--red-hi); }
.quiz-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
  max-width: 620px;
  margin-inline: auto;
}
.quiz-count { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.quiz-q {
  font-family: var(--arial);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 22px;
}
.quiz-opts { max-width: 340px; margin: 0 auto; }
.quiz-btn {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 15px 18px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .12s ease, transform .07s ease;
}
.quiz-btn:hover { background: var(--navy-hi); }
.quiz-btn:active { transform: translateY(1px); }
.quiz-step.hidden { display: none; }

/* ---------- OPT-IN (sin borde punteado) ---------- */
.optin { max-width: 460px; margin: 0 auto; text-align: center; }
.genial {
  font-family: var(--arial);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 14px;
}
.optin-title {
  font-family: var(--arial);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 24px;
}
.form { text-align: left; }
.field { margin-bottom: 14px; }
.field input {
  width: 100%; height: 50px; padding: 0 14px;
  font-size: 17px; font-family: var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--input-bd); border-radius: 3px;
}
.field input::placeholder { color: #9aa0a6; }
.field input:focus { outline: none; border-color: var(--btn-blue); box-shadow: 0 0 0 3px rgba(52,152,219,.18); }
.field input.invalid { border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225,29,72,.15); }
.field .error { display: none; color: #e11d48; font-size: 13px; margin-top: 6px; }
.field.show-error .error { display: block; }
.btn-submit {
  width: 300px; max-width: 100%; display: block; margin: 6px auto 0;
  height: 50px; background: var(--btn-blue); color: #fff;
  border: 1px solid #000; border-radius: 3px;
  font-family: var(--font); font-weight: 700; font-size: 20px; cursor: pointer;
  transition: filter .12s ease, transform .08s ease;
}
.btn-submit:hover { filter: brightness(1.05); }
.btn-submit:active { transform: translateY(1px); }

/* ---------- LLAMADA ---------- */
.title-blue {
  color: var(--blue); font-family: var(--arial); font-weight: 700;
  font-size: 28px; line-height: 1.2; margin-bottom: 20px;
}
.precalifica {
  font-family: var(--arial); font-weight: 700; font-size: 24px; line-height: 1.25;
  margin: 22px 0 20px; color: var(--ink);
}
.precalifica .hi { color: var(--red-text); }
.pulse {
  color: var(--ink); font-family: var(--arial); font-weight: 700;
  font-size: 25px; margin: 20px 0 18px;
}
.nota { font-family: var(--arial); font-weight: 700; font-size: 20px; line-height: 1.3; margin-top: 22px; }
.nota .black { color: var(--ink); }
.nota .red { color: var(--red-note); }
.nota .phone { color: var(--crimson); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nota .phone:hover { text-decoration: underline; }
.countdown {
  display: block; margin-top: 10px; font-family: var(--arial);
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 30px;
  color: var(--red-note); letter-spacing: .03em;
}
.btn-call {
  display: block; width: 360px; max-width: 100%; margin: 0 auto;
  padding: 18px 20px; background: var(--crimson); color: #fff;
  font-family: var(--font); font-weight: 700; font-size: 28px;
  text-align: center; text-decoration: none;
  border: 1px solid #000; border-radius: 3px; cursor: pointer;
  transition: filter .12s ease, transform .08s ease;
}
.btn-call:hover { filter: brightness(1.06); }
.btn-call:active { transform: translateY(1px); }

/* ---------- Video con "Click for sound" ---------- */
.video {
  position: relative; width: 100%; max-width: 384px; margin: 0 auto 6px;
  aspect-ratio: 16 / 9; background: #eef0f2; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.video video, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .placeholder { color: #7a7a7a; font-size: 12px; text-align: center; padding: 10px 14px; position: absolute; bottom: 6px; z-index: 1; }
.video-play {
  position: relative; z-index: 2;
  width: 66px; height: 66px; border: none; border-radius: 50%;
  background: var(--btn-blue); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.video-play::after {
  content: ""; display: block; width: 0; height: 0; margin-left: 5px;
  border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff;
}
.sound-toggle {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(40,40,40,.82); color: #fff; border: none; border-radius: 8px;
  padding: 7px 11px; font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer;
}
.sound-toggle svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Loader "Verificando" (antes de la llamada) ---------- */
.gf-loader {
  position: fixed; inset: 0; z-index: 9999; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 24px; opacity: 0; transition: opacity .18s ease;
}
.gf-loader.show { opacity: 1; }
.gf-loader .gf-load-ring {
  position: relative; width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
}
.gf-loader .gf-load-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid #e3efe7; border-top-color: #16a34a;
  animation: gf-spin .9s linear infinite;
}
.gf-loader .gf-load-icon { width: 50px; height: 50px; position: relative; animation: gf-pop .9s ease-out; }
@keyframes gf-spin { to { transform: rotate(360deg); } }
@keyframes gf-pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .gf-loader .gf-load-ring::before { animation: none; }
  .gf-loader .gf-load-icon { animation: none; }
}
.gf-loader .gf-load-title {
  font-family: var(--arial); font-weight: 700; font-size: 22px; color: var(--ink); text-align: center;
}
.gf-loader .gf-bar {
  width: min(360px, 82vw); height: 14px; background: #e8e8e8; border-radius: 999px; overflow: hidden;
}
.gf-loader .gf-bar span { display: block; height: 100%; width: 0; background: #16a34a; border-radius: 999px; }
.gf-loader .gf-pct { font-family: var(--arial); font-weight: 700; font-size: 18px; color: #16a34a; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 26px 18px 34px; text-align: left; }
.legal h1 { font-family: var(--arial); font-size: 28px; text-align: left; line-height: 1.2; margin: 0 0 6px; color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.legal h2 { font-family: var(--arial); font-size: 19px; text-align: left; margin: 24px 0 8px; color: var(--ink); }
.legal p, .legal li { font-size: 15px; line-height: 1.6; color: #222; margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 8px 0 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); }
.legal .disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid #e5e5e5; margin-top: 24px; padding-top: 14px; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 22px 16px 30px; font-size: 14px; color: var(--ink); }
.footer a { color: var(--ink); text-decoration: underline; }
.footer a:hover { color: var(--red-note); }

/* ---------- Móvil ---------- */
@media (max-width: 520px) {
  .quiz-title { font-size: 26px; }
  .quiz-sub { font-size: 16px; }
  .quiz-q { font-size: 22px; }
  .title-blue { font-size: 26px; }
  .precalifica { font-size: 22px; }
  .pulse { font-size: 23px; }
  .btn-call { font-size: 26px; padding: 16px; }
  .optin-title { font-size: 23px; }
  .nota { font-size: 18px; }
}
