/* moneydiagnostic/styles.css */
:root {
  --accent: #3FFDB3;
  --accent2: #2AB86E;
  --bg: #010f0d;
  --bg-card: #01201a;
  --bg-mid: #013431;
  --teal: #185561;
  --steel: #91ADC2;
  --muted: #4a7a6d;
  --white: #FFFFFF;
  --fd: 'Lora', serif;
  --fb: 'Poppins', sans-serif;
  --r: 12px;
  --r-lg: 22px;

  --red: #FF4D6A;
  --amber: #FFD166;
  --lime: #C4F542;
}

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

body {
  background:
    radial-gradient(560px 420px at 15% -8%, rgba(63, 253, 179, .08), transparent 60%),
    var(--bg);
  color: var(--white);
  font-family: var(--fb);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  .f-step.is-active { animation: f-step-in .35s ease both; }
}
@keyframes f-step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

#moneydiagnostic-app {
  width: 100%;
  max-width: 540px;
  background: var(--bg-card);
  border: 1px solid rgba(63, 253, 179, .14);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
}

#moneydiagnostic-app::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(63, 253, 179, .06) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Marca ─────────────────────────────────────── */

.f-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(63, 253, 179, .08);
  border: 1px solid rgba(63, 253, 179, .25);
  color: var(--accent);
  flex-shrink: 0;
}
.f-mark svg { width: 22px; height: 22px; }

.f-mark.is-scanning svg { animation: f-scan-pulse 1.1s ease-in-out infinite; }
@keyframes f-scan-pulse {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

.f-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--steel);
}

.f-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* ── Progreso ──────────────────────────────────── */

.f-progress-track {
  height: 4px;
  background: var(--bg-mid);
  border-radius: 4px;
  margin-bottom: 26px;
  overflow: hidden;
}

.f-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  width: 10%;
  transition: width .35s ease;
}

/* ── Pasos ─────────────────────────────────────── */

.f-step { display: none; position: relative; }
.f-step.is-active { display: block; }

.f-step h1 {
  font-family: var(--fd);
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.f-step h2 {
  font-family: var(--fd);
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.f-step > p { color: var(--steel); font-size: 15px; line-height: 1.55; margin-bottom: 20px; }

.f-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.f-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  border: 1px solid var(--teal);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ── Campos ────────────────────────────────────── */

.f-field { margin-bottom: 18px; }

.f-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.f-field input, .f-field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--r);
  border: 1px solid var(--teal);
  background: var(--bg-mid);
  color: var(--white);
  font-family: var(--fb);
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.f-field input:focus, .f-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 253, 179, .15);
}

.f-field input::placeholder { color: var(--muted); }

.f-field-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.f-field-consent input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0;
}
.f-field-consent label {
  text-transform: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--steel);
  line-height: 1.5;
}
.f-field-consent a { color: var(--accent); }

/* ── Navegación / botones ──────────────────────── */

.f-nav { display: flex; gap: 12px; margin-top: 26px; }

.f-btn {
  flex: 1;
  padding: 15px;
  border-radius: var(--r);
  border: none;
  font-family: var(--fb);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .12s ease, opacity .15s ease;
}
.f-btn:active { transform: scale(.98); }
.f-btn:disabled { opacity: .6; cursor: default; }

.f-btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--bg); }
.f-btn-secondary { background: transparent; color: var(--steel); border: 1px solid var(--teal); }

/* ── Resumen (paso 7) ──────────────────────────── */

.f-summary-card {
  background: var(--bg-mid);
  border: 1px solid rgba(63, 253, 179, .12);
  border-radius: var(--r);
  padding: 4px 18px;
}

.f-pillar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 14px;
}
.f-pillar-row:last-child { border-bottom: none; }
.f-pillar-row span:first-child { color: var(--steel); }
.f-pillar-row strong { font-family: var(--fb); font-weight: 600; }

/* ── Resultado (paso 8) — el panel principal ──── */

.f-result-hero {
  border-radius: var(--r);
  padding: 26px 22px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hero-border, rgba(63, 253, 179, .25));
  background: var(--hero-bg, rgba(63, 253, 179, .06));
}
.f-result-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(220px 140px at 90% -10%, var(--hero-glow, rgba(63, 253, 179, .18)), transparent 70%);
  pointer-events: none;
}
.f-result-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--steel); position: relative;
}

.f-zona-name {
  display: block;
  font-family: var(--fd);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 6px 0 10px;
  position: relative;
}

.f-result-name {
  font-size: 14px; color: var(--steel); line-height: 1.5; position: relative; display: block;
}

.f-zona-msg {
  display: block;
  background: var(--bg-mid);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.f-zona-msg-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.f-zona-msg-texto {
  display: block;
  font-size: 13px;
  color: var(--steel);
  line-height: 1.6;
}

.f-pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.f-pillar-card {
  background: var(--bg-mid);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--r);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-pillar-mono {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-weight: 700; font-size: 13px;
  background: rgba(255, 255, 255, .06);
  color: var(--steel);
}

.f-pillar-name {
  font-size: 13px; font-weight: 600; color: var(--white);
}

#f-result-transition {
  color: var(--steel);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ── Badges de estado ──────────────────────────── */

.f-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.f-badge::before { content: '●'; font-size: 8px; }

.f-badge-critico      { background: rgba(255, 77, 106, .1);  color: var(--red); }
.f-badge-fragil       { background: rgba(255, 209, 102, .1); color: var(--amber); }
.f-badge-construccion { background: rgba(196, 245, 66, .1);  color: var(--lime); }
.f-badge-saludable    { background: rgba(63, 253, 179, .1);  color: var(--accent); }

/* ── Turnstile / errores ───────────────────────── */

#f-turnstile { margin: 6px 0 16px; }

.f-error { color: var(--red); font-size: 13px; margin-top: 6px; display: none; }
.f-error.is-visible { display: block; }

/* ── Responsive ────────────────────────────────── */

@media (max-width: 400px) {
  #moneydiagnostic-app { padding: 26px 18px; }
  .f-step h1 { font-size: 25px; }
  .f-result-status { font-size: 28px; }
}
