/* Formulario showroom Xena · estilo "gradiente moderno" (opción 2) */
:root {
  --font-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #fbf6ff;
  --bg-soft: #f1e9ff;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-2: rgba(255, 255, 255, 0.86);
  --fg: #1d1530;
  --muted: #5d5378;
  --line: rgba(93, 83, 120, 0.25);
  --line-strong: #5a32d0;
  --accent: #c8147a;
  --accent-fg: #ffffff;
  --fill: linear-gradient(110deg, #d63a14, #c8147a 52%, #5a32d0);
  --badge-b: #ffd9c4;
  --badge-b-fg: #1d1530;
  --ok: #0f8a5f;
  --danger: #c0123c;
  --focus: #5a32d0;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 28px 60px -28px rgba(90, 50, 208, 0.5);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
}
button, input { font: inherit; color: inherit; }

.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 8% 0%, #ffd2bd, transparent 62%),
    radial-gradient(46vmax 46vmax at 96% 8%, #d8c6ff, transparent 62%),
    radial-gradient(52vmax 52vmax at 70% 104%, #bff0df, transparent 62%),
    var(--bg);
}

.shell {
  position: relative; z-index: 1; max-width: 820px; margin: 0 auto;
  padding-block: max(22px, env(safe-area-inset-top, 0px)) max(40px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.top { display: flex; align-items: center; margin-bottom: 20px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { display: block; height: 44px; max-width: 100%; width: auto; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.card {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); min-height: 540px;
  display: flex; flex-direction: column; gap: 26px; min-width: 0;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}

.progress { display: flex; align-items: center; gap: 14px; }
.bar { flex: 1; height: 8px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--fill); transition: width 0.35s ease; }
.count { font-weight: 700; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; text-transform: uppercase; }

.stage { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.step { flex: 1; display: flex; flex-direction: column; gap: 22px; animation: in 0.28s ease both; min-width: 0; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.kicker { font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.q, .title { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
.q { font-size: clamp(1.9rem, 4.6vw, 2.6rem); }
.title { font-size: clamp(2.5rem, 6.6vw, 4rem); }
.hint { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.lead { margin: 0; max-width: 56ch; font-size: 1.08rem; }

.opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.opt { position: relative; display: block; min-width: 0; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.face {
  display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 14px 16px;
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius);
  font-weight: 600; transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.opt:hover .face { border-color: var(--line-strong); }
.opt input:active + .face { transform: scale(0.99); }
.mark { position: relative; flex: none; width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 50%; }
.multi .mark { border-radius: 6px; }
.mark::after { content: ""; position: absolute; inset: 3px; border-radius: inherit; background: transparent; }
.opt input:checked + .face { background: var(--fill); color: var(--accent-fg); border-color: transparent; }
.opt input:checked + .face .mark { border-color: var(--accent-fg); }
.opt input:checked + .face .mark::after { background: var(--accent-fg); }
.opt input:focus-visible + .face { outline: 3px solid var(--focus); outline-offset: 2px; }

.other, .field { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-weight: 700; font-size: 0.86rem; }
input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%; min-height: 54px; padding: 12px 14px; background: var(--surface-2);
  border: 2px solid var(--line-strong); border-radius: var(--radius);
}
input[aria-invalid="true"] { border-color: var(--danger); }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.err { min-height: 1.2em; font-size: 0.84rem; font-weight: 600; color: var(--danger); }
.send-err { min-height: 0; }
.checks { display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.check a { color: inherit; font-weight: 700; }
.note { margin: 0; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 0.92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nav.start { align-items: center; }
.consent { display: flex; flex: 1 1 260px; gap: 12px; align-items: flex-start; font-size: 0.88rem; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: inherit; font-weight: 700; text-decoration: underline; }
.nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.btn { min-height: 54px; padding: 0 28px; font-weight: 800; cursor: pointer; background: transparent; border: 2px solid var(--line-strong); border-radius: 99px; }
.btn.primary { background: var(--fill); color: var(--accent-fg); border-color: transparent; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.rewards { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 20px; border-radius: var(--radius); font-weight: 800; }
.badge b { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.badge.a { background: var(--fill); color: var(--accent-fg); }
.badge.b { background: var(--badge-b); color: var(--badge-b-fg); }
.or { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.done-ok { color: var(--ok); }

.foot { display: flex; justify-content: center; margin-top: 14px; min-height: 36px; }
.link { background: none; border: 0; padding: 8px 12px; color: var(--muted); font-weight: 700; font-size: 0.85rem; text-decoration: underline; cursor: pointer; }
.noscript { padding: 16px; text-align: center; font-weight: 700; }

/* Texto de ayuda bajo "Cuéntanos cuál" y etiqueta (opcional) */
.hint.small { margin: 0; font-size: 0.8rem; }
.opt-tag { font-weight: 500; color: var(--muted); }
