:root {
  --azul: #212B86;
  --azul-700: #1a226b;
  --azul-50: #eef0fb;
  --azul-100: #dfe2f6;
  --naranja: #F58C08;
  --naranja-600: #dc7c05;
  --naranja-50: #fff4e6;
  --verde: #12a150;
  --verde-50: #e8f7ee;
  --rojo-50: #fdeeee;
  --texto: #1c1f33;
  --texto-2: #5b6079;
  --borde: #e3e5ef;
  --fondo: #f6f7fb;
  --blanco: #ffffff;
  --radio: 20px;
  --sombra: 0 1px 2px rgba(20, 26, 80, .04), 0 12px 40px -12px rgba(20, 26, 80, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--texto);
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(245, 140, 8, .10), transparent 60%),
    radial-gradient(900px 600px at -10% 0%, rgba(33, 43, 134, .10), transparent 60%),
    var(--fondo);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
button, input { font: inherit; color: inherit; }
a { color: var(--azul); }

/* ---------- barra superior ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1080px; width: 100%; margin: 0 auto;
}
.brand-logo { height: 38px; width: auto; display: block; }
.topbar-help {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--blanco); border: 1px solid var(--borde);
  color: var(--azul); font-weight: 600; font-size: 14px; text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.topbar-help:hover { border-color: var(--azul-100); box-shadow: var(--sombra); }
.topbar-help svg { width: 18px; height: 18px; fill: #25D366; }

/* ---------- contenedor ---------- */
.wrap { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px 32px; }
.card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 32px 28px;
  min-height: 420px;
}
.trust { text-align: center; color: var(--texto-2); font-size: 13px; margin: 18px 8px 0; }

/* ---------- progreso ---------- */
.progress { height: 6px; background: var(--azul-100); border-radius: 999px; overflow: hidden; margin: 4px 4px 16px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--azul), var(--naranja)); border-radius: 999px; transition: width .4s ease; }

/* ---------- pantallas ---------- */
.screen { animation: entrar .35s ease both; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } .progress-bar { transition: none; } }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--naranja-600); margin-bottom: 8px; }
h1, h2 { color: var(--azul); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 6vw, 38px); font-weight: 800; }
h2 { font-size: clamp(22px, 4.6vw, 27px); font-weight: 750; }
.lead { color: var(--texto-2); font-size: 16px; margin: 0 0 24px; }
.help { color: var(--texto-2); font-size: 14px; margin: -14px 0 20px; }

/* ---------- portada ---------- */
.hero-foto {
  position: relative; margin: -32px -28px 24px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radio) var(--radio) 0 0; background: var(--azul-50);
}
.hero-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-tag {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--azul); font-size: 12.5px; font-weight: 700;
  backdrop-filter: blur(6px);
}

/* ---------- fotos ---------- */
.galeria-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.galeria-hint { color: var(--texto-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.galeria-nav { display: none; gap: 8px; }
.gal-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--borde); background: var(--blanco);
  color: var(--azul); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: border-color .15s, background .15s;
}
.gal-btn:hover { border-color: var(--azul); background: var(--azul-50); }
/* Con mouse: flechas en vez de "Desliza" */
@media (hover: hover) and (pointer: fine) {
  .galeria-nav { display: flex; }
  .galeria-hint { display: none !important; }
}
.galeria {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
  margin: 0 -28px; padding-left: 28px; padding-right: 28px; scroll-padding: 0 28px;
  scrollbar-width: thin;
}
.galeria > div { scroll-snap-align: start; }
.foto {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; background: var(--azul-50); aspect-ratio: 4 / 3;
}
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.foto:hover img { transform: scale(1.04); }
.foto:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }
.foto-cap {
  position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; text-align: left;
  color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.3;
  background: linear-gradient(transparent, rgba(10, 14, 50, .75));
}
.fotos-titulo { font-weight: 600; font-size: 14.5px; margin: 0 0 10px; color: var(--texto); }
.fotos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fotos-grid .foto { aspect-ratio: 1; border-radius: 12px; }
.fotos-grid .foto-cap { display: none; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 92vh; cursor: zoom-out;
}
.lightbox::backdrop { background: rgba(8, 10, 30, .85); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 14px; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; font-weight: 600; margin-top: 10px; }
.lightbox-close {
  position: fixed; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .15); color: #fff; font-size: 18px;
}
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--texto); font-size: 15px; }
.checks li::before {
  content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--verde-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a150' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- opciones ---------- */
.options { display: grid; gap: 10px; }
.options.grid-2 { grid-template-columns: 1fr 1fr; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 14px;
  background: var(--blanco); border: 1.5px solid var(--borde);
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
}
.option:hover { border-color: var(--azul); box-shadow: 0 6px 20px -10px rgba(33, 43, 134, .45); }
.option:active { transform: scale(.99); }
.option:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }
.option.selected { border-color: var(--azul); background: var(--azul-50); }
.option-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 21px; background: var(--azul-50);
}
.option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.option-title { font-weight: 650; font-size: 15.5px; }
.option-desc { color: var(--texto-2); font-size: 13.5px; line-height: 1.4; }
.option-arrow { margin-left: auto; color: var(--azul-100); flex: none; transition: color .15s, transform .15s; }
.option:hover .option-arrow { color: var(--azul); transform: translateX(2px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--borde); background: var(--blanco); font-size: 14.5px; font-weight: 550;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--azul); }
.chip.selected { background: var(--azul); border-color: var(--azul); color: #fff; }

/* ---------- formularios ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .opt { color: var(--texto-2); font-weight: 500; }
.input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--borde); background: var(--blanco); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px var(--azul-50); }
.phone { display: flex; align-items: stretch; }
.phone .prefix {
  display: flex; align-items: center; padding: 0 12px; font-weight: 600; color: var(--texto-2);
  background: var(--fondo); border: 1.5px solid var(--borde); border-right: 0; border-radius: 12px 0 0 12px;
}
.phone .input { border-radius: 0 12px 12px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--texto-2); margin: 4px 0 20px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--azul); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { background: var(--rojo-50); color: #a12121; font-size: 14px; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 22px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px; text-decoration: none; text-align: center;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.99); }
.btn:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.btn-primary { background: var(--naranja); color: #fff; box-shadow: 0 10px 24px -12px rgba(245, 140, 8, .8); }
.btn-primary:hover { background: var(--naranja-600); }
.btn-primary[disabled] { opacity: .6; cursor: not-allowed; }
.btn-blue { background: var(--azul); color: #fff; }
.btn-blue:hover { background: var(--azul-700); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fb457; }
.btn-wa svg { width: 20px; height: 20px; fill: #fff; }
.btn-ghost { background: transparent; color: var(--azul); }
.btn-ghost:hover { background: var(--azul-50); }
.stack { display: grid; gap: 10px; margin-top: 20px; }

.back {
  display: flex; width: fit-content; min-height: 44px; align-items: center; gap: 6px; margin: -14px 0 8px -10px;
  padding: 6px 12px 6px 8px; border: 0; background: none; cursor: pointer;
  color: var(--texto-2); font-size: 14px; font-weight: 600; border-radius: 8px;
}
.back:hover { color: var(--azul); background: var(--azul-50); }
.meta { font-size: 12.5px; color: var(--texto-2); margin: 14px 0 0; text-align: center; }

/* ---------- resultados ---------- */
.badge {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; margin: 0 0 16px;
}
.badge.ok { background: var(--verde-50); }
.badge.no { background: var(--naranja-50); }
.bono-card {
  border: 1.5px solid var(--borde); border-radius: 16px; padding: 16px; display: flex; gap: 12px;
  align-items: flex-start; cursor: pointer; background: var(--blanco); text-align: left; width: 100%;
  transition: border-color .15s, background .15s;
}
.bono-card:hover { border-color: var(--azul); }
.bono-card.selected { border-color: var(--azul); background: var(--azul-50); }
.bono-card .radio {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--azul-100); margin-top: 2px;
  display: grid; place-items: center;
}
.bono-card.selected .radio { border-color: var(--azul); }
.bono-card.selected .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--azul); }
.bono-card strong { display: block; color: var(--azul); font-size: 16px; }
.bono-card span { color: var(--texto-2); font-size: 14px; }
.bono-card.single { cursor: default; border-color: var(--azul); background: var(--azul-50); }
.bonos { display: grid; gap: 10px; margin-bottom: 18px; }
.note { background: var(--naranja-50); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 18px; color: #6b4304; }
.divider { height: 1px; background: var(--borde); margin: 22px 0; }
.list { margin: 0 0 18px; padding-left: 20px; color: var(--texto-2); font-size: 14.5px; }
.list li { margin: 3px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.steps li::before {
  content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--azul); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center;
}

/* ---------- pie ---------- */
.footer {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  padding: 20px 16px 28px; font-size: 13px; color: var(--texto-2);
}
.footer a { color: var(--texto-2); }

@media (max-width: 480px) {
  .card { padding: 24px 18px; border-radius: 18px; min-height: 0; }
  .topbar { padding: 12px 16px; }
  .topbar-help span { display: none; }
  .topbar-help { padding: 9px; }
  .options.grid-2 { grid-template-columns: 1fr; }
  .hero-foto { margin: -24px -18px 20px; border-radius: 18px 18px 0 0; }
  .galeria { grid-auto-columns: 78%; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scroll-padding: 0 18px; }
}
@media (min-width: 481px) { .galeria { grid-auto-columns: 44%; } }
