/* ============================================================
   PIENSA EN DIGITAL — BUDGET WIZARD — STYLES
   Pantone 174C  →  #CF4520  (primary red-orange)
   Fondo: blanco / light mode
   ============================================================ */

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

:root {
  /* ─── Brand Colors (Pantone 174C) ─── */
  --brand:        #CF4520;
  --brand-dark:   #A8361A;
  --brand-light:  #E8612E;
  --brand-pale:   #FDF1ED;
  --brand-pale2:  #FAE3DB;

  /* ─── Backgrounds ─── */
  --bg:           #FFFFFF;
  --bg2:          #F8F8F8;
  --bg3:          #F2F2F2;
  --card-bg:      #FFFFFF;
  --card-hover:   #FEF8F6;

  /* ─── Borders ─── */
  --border:       #E5E7EB;
  --border-sel:   rgba(207,69,32,.5);

  /* ─── Text ─── */
  --text:         #1A1A1A;
  --text-muted:   #6B7280;
  --text-soft:    #9CA3AF;

  /* ─── Accent colors (adapted to light theme) ─── */
  --green:        #059669;
  --red-err:      #DC2626;

  /* ─── Gradient (brand tones) ─── */
  --gradient:     linear-gradient(135deg, #CF4520 0%, #E8612E 50%, #F97316 100%);
  --gradient-sub: linear-gradient(135deg, #A8361A 0%, #CF4520 100%);

  /* ─── Misc ─── */
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 12px 40px rgba(207,69,32,.10), 0 2px 8px rgba(0,0,0,.06);
  --shadow-card:  0 4px 16px rgba(0,0,0,.07);
  --transition:   all .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg2);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.header-sub {
  color: var(--text-muted);
  font-size: .82rem;
  margin-left: auto;
  font-weight: 500;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 60px 24px 40px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(207,69,32,.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 85% 80%, rgba(232,97,46,.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.8px;
  margin-bottom: 16px;
  color: var(--text);
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 28px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-pale);
  border: 1px solid var(--brand-pale2);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: .82rem;
  color: var(--brand-dark);
  font-weight: 600;
}
.badge i { color: var(--brand); }

/* ============================================================
   WIZARD WRAP
   ============================================================ */
.wizard-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.wizard-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.wizard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}

/* ============================================================
   PROGRESS
   ============================================================ */
.progress-area { margin-bottom: 36px; }
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: var(--transition);
  flex-shrink: 0;
}
.step-dot.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(207,69,32,.35);
}
.step-dot.completed {
  background: var(--green);
  border-color: transparent;
  color: #fff;
}
.step-dot.completed span { font-size: 0; }
.step-dot.completed::after { content: '✓'; font-size: .85rem; color: #fff; }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  border-radius: 1px;
  transition: var(--transition);
}
.step-line.done { background: var(--green); }
.progress-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.progress-bar-track {
  width: 100%;
  height: 5px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  transition: width .4s ease;
}

/* ============================================================
   STEPS (show/hide)
   ============================================================ */
.step { display: none; animation: fadeUp .35s ease; }
.step.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STEP HEADER
   ============================================================ */
.step-header { text-align: center; margin-bottom: 32px; }
.step-icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

/* All step icons use brand color */
.step-icon.purple,
.step-icon.blue,
.step-icon.green,
.step-icon.orange,
.step-icon.pink,
.step-icon.cyan {
  background: var(--brand-pale);
  color: var(--brand);
}

.step-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.3px;
  color: var(--text);
}
.step-header p { color: var(--text-muted); font-size: .92rem; }

/* ============================================================
   CHOICE CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.choice-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.choice-card:hover {
  background: var(--card-hover);
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(207,69,32,.12);
}
.choice-card.selected {
  background: var(--brand-pale);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(207,69,32,.15), 0 8px 24px rgba(207,69,32,.12);
}
.choice-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.choice-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.choice-card p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.price-tag {
  display: inline-block;
  margin-top: 10px;
  background: rgba(5,150,105,.1);
  color: #059669;
  border-radius: 100px;
  padding: 3px 12px;
  font-size: .78rem;
  font-weight: 600;
}
.urgent-tag  { background: rgba(220,38,38,.1);   color: #DC2626; }
.discount-tag{ background: rgba(5,150,105,.1);   color: #059669; }

.card-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 24px; height: 24px;
  background: var(--brand);
  border-radius: 50%;
  display: none;
  place-items: center;
  font-size: .65rem;
  color: #fff;
}
.choice-card.selected .card-check { display: grid; }

/* ============================================================
   TAGS / CHECKBOXES
   ============================================================ */
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.extras-grid { margin-bottom: 32px; }

.tag-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  color: var(--text-muted);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.tag-check:hover {
  border-color: var(--brand-light);
  color: var(--brand-dark);
  background: var(--brand-pale);
}
.tag-check input[type="checkbox"] { display: none; }
.tag-check:has(input:checked) {
  background: var(--brand-pale);
  border-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(207,69,32,.15);
}
.tag-check i { font-size: .8rem; color: var(--brand); }

/* ============================================================
   SUB OPTIONS
   ============================================================ */
.sub-options { margin-bottom: 24px; }
.sub-options.hidden { display: none; }
.sub-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sub-title i { color: var(--brand); }

/* ============================================================
   BUDGET PREVIEW
   ============================================================ */
.budget-preview {
  background: var(--brand-pale);
  border: 1px solid var(--brand-pale2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.budget-preview h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(207,69,32,.1);
}
.preview-row:last-child { border-bottom: none; }
.preview-label { color: var(--text-muted); }
.preview-value { font-weight: 600; color: var(--text); }
.preview-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px solid rgba(207,69,32,.25);
}
.preview-total .label { font-weight: 600; color: var(--text); font-size: .9rem; }
.preview-total .amount {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { margin-bottom: 28px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon-wrap > i {
  position: absolute;
  left: 14px;
  color: var(--text-soft);
  font-size: .85rem;
  pointer-events: none;
  z-index: 1;
}
.input-icon-wrap input,
.input-icon-wrap textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 40px;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.input-icon-wrap input::placeholder,
.input-icon-wrap textarea::placeholder { color: var(--text-soft); }
.input-icon-wrap input:focus,
.input-icon-wrap textarea:focus {
  border-color: var(--brand);
  background: var(--brand-pale);
  box-shadow: 0 0 0 3px rgba(207,69,32,.12);
}
.input-icon-wrap input.error,
.input-icon-wrap textarea.error {
  border-color: var(--red-err) !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important;
}
.textarea-wrap { align-items: flex-start; }
.textarea-wrap > i { top: 14px; }

.privacy-label {
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  width: 100%;
  font-size: .83rem !important;
}
.privacy-label a { color: var(--brand); font-weight: 600; }
.contact-req-note {
  font-size: .78rem;
  color: var(--text-soft);
  margin-top: -12px;
  margin-bottom: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 12px;
}
.btn-next, .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(207,69,32,.30);
  font-family: inherit;
}
.btn-next:hover:not(:disabled), .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(207,69,32,.40);
}
.btn-next:disabled {
  background: linear-gradient(135deg, #D1D5DB, #9CA3AF);
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 22px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-back:hover {
  background: var(--bg3);
  border-color: var(--brand-light);
  color: var(--brand-dark);
}
.btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-pale);
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-pale2);
  border-radius: 12px;
  padding: 13px 28px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  margin-top: 24px;
}
.btn-restart:hover {
  background: var(--brand-pale2);
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* ============================================================
   SUCCESS
   ============================================================ */
.success-screen {
  text-align: center;
  padding: 20px 0 10px;
  animation: fadeUp .4s ease;
}
.success-icon {
  font-size: 4.5rem;
  color: var(--green);
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 12px rgba(5,150,105,.25));
}
.success-screen h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}
.success-msg {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
  font-size: .95rem;
}
.success-summary {
  background: rgba(5,150,105,.06);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}
.success-summary .s-row {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  font-size: .88rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.success-summary .s-row:last-child { border-bottom: none; }
.success-summary .s-label {
  color: var(--text-muted);
  min-width: 130px;
}
.success-summary .s-val {
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s ease;
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error   i { color: var(--red-err); }
.toast.success i { color: var(--green); }

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust-section {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 0;
}
.trust-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.trust-item i {
  color: var(--brand);
  font-size: 1.2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-soft);
  font-size: .82rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

/* ============================================================
   LOADING SPINNER (for submit)
   ============================================================ */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .wizard-card { padding: 24px 18px; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .trust-inner { gap: 20px; }
  .step-dot { width: 28px; height: 28px; font-size: .7rem; }
  .header-sub { display: none; }
  .btn-next, .btn-submit { padding: 12px 18px; font-size: .88rem; }
  .logo-img { height: 40px; }
}

@media (max-width: 480px) {
  .step-nav { flex-direction: column-reverse; }
  .btn-back, .btn-next, .btn-submit { width: 100%; justify-content: center; }
  .hero { padding: 36px 16px 28px; }
}
