/* ===== Cumbre Millonarios Conscientes 2026 — Diagnóstico Embajadores ===== */
:root {
  --bg: #0a0a0c;
  --bg-2: #111016;
  --card: #15141b;
  --card-border: #272430;
  --ink: #f4f1ea;
  --ink-soft: #b9b3a7;
  --ink-faint: #7e7869;
  --gold: #d8b25a;
  --gold-soft: #e8cf93;
  --gold-deep: #b3893a;
  --danger: #e07a6b;
  --ok: #6bd2a0;
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 580px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(216,178,90,0.14), transparent 60%),
    radial-gradient(700px 600px at 110% 110%, rgba(216,178,90,0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  pointer-events: none;
}

/* ===== Topbar ===== */
.topbar {
  position: relative;
  z-index: 2;
  padding: 18px 20px 0;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.brand-mark { color: var(--gold); font-size: 11px; }
.brand-text strong { color: var(--gold-soft); font-weight: 600; }

.progress {
  margin-top: 14px;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

/* ===== Stage / Card ===== */
.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.card {
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)) , var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.8);
  animation: rise 0.45s cubic-bezier(.2,.7,.2,1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-step { animation: stepIn 0.32s cubic-bezier(.2,.7,.2,1); }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== Typography ===== */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.q-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.q-help {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ===== Inputs ===== */
.field { margin-top: 22px; }

.text-input, .select-input, .textarea-input {
  width: 100%;
  background: #0f0e14;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  padding: 15px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea-input { min-height: 120px; resize: vertical; line-height: 1.5; }
.text-input::placeholder, .textarea-input::placeholder { color: #5d5849; }
.text-input:focus, .select-input:focus, .textarea-input:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(216,178,90,0.13);
}
.select-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d8b25a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.select-input option { background: #15141b; color: var(--ink); }

/* ===== Option buttons ===== */
.options { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  background: #0f0e14;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.35;
  padding: 15px 16px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.06s;
}
.option:hover { border-color: var(--gold-deep); background: #131119; }
.option:active { transform: scale(0.99); }
.option .tick {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 1.5px solid #3a3647;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.18s;
}
.option.multi .tick { border-radius: 6px; }
.option .tick svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.5); transition: all 0.18s; }
.option.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(216,178,90,0.10), rgba(216,178,90,0.03));
}
.option.selected .tick { border-color: var(--gold); background: var(--gold); }
.option.selected .tick svg { opacity: 1; transform: scale(1); }

/* ===== Footer nav ===== */
.nav {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 99px;
  padding: 13px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.06s, filter 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  color: #1a1407;
  flex: 1;
  box-shadow: 0 10px 30px -12px rgba(216,178,90,0.5);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--card-border);
  padding: 13px 18px;
}
.btn-ghost:hover { color: var(--ink); border-color: #3a3647; }

.error-msg {
  margin-top: 14px;
  color: var(--danger);
  font-size: 13.5px;
  min-height: 18px;
}

/* ===== Intro & terminal screens ===== */
.center { text-align: center; }
.hero-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.hero-title .accent { color: var(--gold-soft); }
.hero-sub {
  margin: 18px auto 0;
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.meta-row {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 13px;
}
.meta-row b { color: var(--gold-soft); font-weight: 600; }
.intro-cta { margin-top: 28px; }
.intro-cta .btn-primary { flex: initial; padding-left: 40px; padding-right: 40px; }

.terminal-icon {
  width: 64px; height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(107,210,160,0.18), transparent 70%);
}
.terminal-icon.gold { background: radial-gradient(circle, rgba(216,178,90,0.2), transparent 70%); }
.terminal-icon svg { width: 34px; height: 34px; }

.spinner {
  width: 38px; height: 38px;
  margin: 6px auto 0;
  border: 3px solid rgba(216,178,90,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Footer ===== */
.footboot {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px 22px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

@media (max-width: 420px) {
  .card { padding: 26px 18px 22px; }
  .btn-primary { padding-left: 18px; padding-right: 18px; }
}
