/* ═══════════════════════════════════════════════
   configurador.css — InfraGo
   Estilos del wizard: layout, progreso, formulario,
   resumen, simulador, sidebar y modales.
   © 2026 InfraGo SpA / TIC Manager's
═══════════════════════════════════════════════ */

/* ─── VARIABLES ──────────────────────────────── */
:root {
  --orange:       #e8920a;
  --orange-light: #f0a500;
  --orange-dim:   rgba(232,146,10,0.10);
  --orange-glow:  rgba(232,146,10,0.22);

  --c-bg:         #f4f5f7;
  --c-surface:    #ffffff;
  --c-surface-2:  #f0f2f5;
  --c-border:     #dde1e8;
  --c-border-s:   #eaecf0;
  --c-text:       #0d1e36;
  --c-text-2:     #3d5068;
  --c-text-3:     #7a8fa6;
  --c-text-4:     #b0bcc9;
}

/* ─── BASE ───────────────────────────────────── */
body {
  background: var(--c-bg) !important;
  color: var(--c-text) !important;
}

/* ─── HEADER ─────────────────────────────────── */
.configurador-header {
  background: var(--c-surface);
  padding: 128px 40px 56px;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}
.configurador-header h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 8px;
  letter-spacing: 1px;
}
.configurador-subtitle {
  font-size: 16px;
  color: var(--c-text-2);
  margin: 0;
}

/* ─── PROGRESS BAR ───────────────────────────── */
.progress-container {
  background: var(--c-surface);
  padding: 16px 40px 14px;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.progress-track {
  width: 100%;
  height: 4px;
  background: var(--c-border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transition: width 0.4s ease;
  width: 25%;
  border-radius: 2px;
}
.progress-steps {
  display: flex;
  justify-content: center;
  width: 100%;
}
.progress-step {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.progress-step.active:not(:has(~ .progress-step.active)) {
  display: flex;
}
.progress-step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 15px;
  box-shadow: 0 0 16px var(--orange-glow);
}
.progress-step-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--orange); white-space: nowrap;
}

/* ─── WRAPPER ────────────────────────────────── */
.config-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 160px;
}

/* ─── WIZARD STEPS ───────────────────────────── */
.wizard-step { display: none; animation: fadeIn 0.3s ease; }
.wizard-step.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step-header { margin-bottom: 32px; }
.step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px; font-weight: 800;
  color: var(--c-text); margin: 0 0 6px;
}
.step-subtitle { font-size: 14px; color: var(--c-text-2); margin: 0; }

/* ─── PASO 1 LAYOUT ──────────────────────────── */
.paso1-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.paso1-content { min-width: 0; }

/* ─── WIDGETS SIDEBAR ────────────────────────── */
.widgets-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.widgets-sidebar::-webkit-scrollbar { width: 4px; }
.widgets-sidebar::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

.sidebar-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 16px;
}

/* ─── WIDGET DÓLAR TIC ───────────────────────── */
.widget-dolar {
  border-color: rgba(240,120,0,0.3) !important;
  background: linear-gradient(135deg, rgba(240,120,0,0.05), var(--c-surface)) !important;
}
.widget-dolar-header { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.widget-dolar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 8px var(--orange);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.widget-dolar-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--c-text-2); }
.widget-dolar-input-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.widget-dolar-input {
  background: var(--c-surface-2);
  border: 1px solid rgba(240,120,0,0.35);
  border-radius: 8px; padding: 8px 10px;
  color: var(--c-text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 800;
  width: 90px; outline: none;
  -moz-appearance: textfield;
}
.widget-dolar-input::-webkit-inner-spin-button,
.widget-dolar-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.widget-dolar-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-dim); }
.widget-dolar-spinner { display: flex; flex-direction: column; gap: 2px; }
.widget-dolar-spinner button {
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: 4px; padding: 2px 6px;
  color: var(--c-text-2); font-size: 10px; cursor: pointer;
  transition: all 0.15s; line-height: 1;
}
.widget-dolar-spinner button:hover { background: var(--orange-dim); color: var(--orange); border-color: var(--orange); }
.widget-dolar-label { font-size: 11px; font-weight: 700; color: var(--c-text-3); white-space: nowrap; }
.widget-dolar-note { font-size: 10px; color: var(--orange); margin: 0; line-height: 1.4; opacity: 0.8; }
.widget-dolar-source { font-size: 9px; color: var(--c-text-4); margin: 4px 0 0; line-height: 1.4; }

/* ─── WIDGET DESCUENTOS ──────────────────────── */
.widget-descuentos { padding: 14px 16px !important; }
.widget-section-title {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--c-text-3); margin-bottom: 10px;
}
.dcto-table { display: flex; flex-direction: column; }
.dcto-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px;
  margin: 0 -4px;
  border-radius: 6px;
  font-size: 12px; color: var(--c-text-2);
  transition: all 0.2s;
}
.dcto-row:not(:last-child) {
  border-bottom: 1px solid var(--c-border-s);
  border-radius: 0;
}
.dcto-pct { font-weight: 700; color: var(--c-text); }
.dcto-row.dcto-active {
  background: var(--orange-dim) !important;
  border-color: transparent !important;
  border-radius: 6px !important;
  margin: 2px -4px !important;
}
.dcto-row.dcto-active .dcto-rango { color: var(--c-text); font-weight: 700; }
.dcto-row.dcto-active .dcto-pct {
  color: var(--orange);
  background: rgba(232,146,10,0.15);
  border-radius: 20px;
  padding: 2px 8px;
}
.dcto-aplicado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--orange-dim);
  border: 1px solid rgba(232,146,10,0.3);
  border-radius: 8px;
  font-size: 12px;
}
.dcto-aplicado-label { color: var(--c-text-2); font-weight: 600; }
.dcto-aplicado-val { color: var(--orange); font-weight: 800; font-size: 14px; }

/* ─── WIDGET +50 UNIDADES ────────────────────── */
.widget-mas50 {
  background: linear-gradient(135deg, #0d1e36 0%, #0a1828 100%) !important;
  border-color: rgba(255,255,255,0.08) !important;
  padding: 16px !important;
}
.widget-mas50-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px;
}
.widget-mas50-text { font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.5; margin: 0 0 12px; }
.widget-mas50-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; background: var(--orange); color: white;
  font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px;
  text-decoration: none; padding: 9px 12px; border-radius: 8px;
  transition: all 0.2s; box-sizing: border-box;
}
.widget-mas50-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.widget-mas50-btn:hover { background: var(--orange-light); box-shadow: 0 4px 14px var(--orange-glow); transform: translateY(-1px); }

/* ─── WIDGET FINANCIAMIENTO ──────────────────── */
.widget-financiamiento { padding: 14px 16px !important; }
.widget-fin-header { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.widget-fin-logos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px;
}
.fin-logo-item {
  border-radius: 6px; padding: 7px 8px;
  font-size: 10px; font-weight: 700; text-align: center;
  border: 1.5px solid var(--c-border); color: var(--c-text-2); background: var(--c-surface-2);
}
.fin-logo--santander { border-color: #e30613; color: #e30613; background: rgba(227,6,19,0.05); }
.fin-logo--bci       { border-color: #003087; color: #003087; background: rgba(0,48,135,0.05); }
.fin-logo--bancochile{ border-color: #e30613; color: #c00; background: rgba(200,0,0,0.05); font-size: 9px; }
.fin-logo--hp        { border-color: #0096d6; color: #0096d6; background: rgba(0,150,214,0.05); }
.widget-fin-condiciones { font-size: 10px; color: var(--c-text-2); line-height: 1.5; margin: 0 0 4px; }
.widget-fin-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; background: var(--orange); color: white;
  font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px;
  text-decoration: none; padding: 9px 12px; border-radius: 8px;
  transition: all 0.2s; box-sizing: border-box; margin-top: 10px;
}
.widget-fin-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.widget-fin-btn:hover { background: var(--orange-light); box-shadow: 0 4px 14px var(--orange-glow); transform: translateY(-1px); }

/* ─── STEP ACTIONS ───────────────────────────── */
.step-actions {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 32px; padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.btn-prev, .btn-next, .btn-cotizar {
  padding: 12px 28px; border-radius: 8px;
  font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.btn-prev { background: var(--c-surface-2); border: 1px solid var(--c-border); color: var(--c-text-2); }
.btn-prev:hover { background: var(--c-border); color: var(--c-text); }
.btn-next { background: var(--orange); color: #fff; border: none; margin-left: auto; }
.btn-next:hover { background: var(--orange-light); box-shadow: 0 4px 16px var(--orange-glow); }
.btn-cotizar { background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: #fff; width: 100%; border: none; }
.btn-cotizar:hover { box-shadow: 0 4px 20px var(--orange-glow); transform: translateY(-1px); }
.btn-prev:disabled, .btn-next:disabled, .btn-cotizar:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── STICKY RESUMEN ─────────────────────────── */
.sticky-resumen {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(13, 30, 54, 0.97);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--orange);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.2);
  padding: 14px 40px;
}
.sticky-resumen-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; }
.sticky-col { display: flex; flex-direction: column; gap: 2px; padding: 0 24px; flex: 1; }
.sticky-col:first-child { padding-left: 0; }
.sticky-col--cuota { flex: 1.4; }
.sticky-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.sticky-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.45); }
.sticky-val { font-size: 14px; font-weight: 700; color: #fff; }
.sticky-val--price { color: #fff; }
.sticky-cuota { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; color: var(--orange); line-height: 1; }
.sticky-plazo { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ─── FORMULARIO (PASO 2) ────────────────────── */
.form-section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px; padding: 28px; margin-bottom: 24px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-label {
  font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--c-text-2);
}
.form-input, .form-textarea, .form-select {
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: 6px; padding: 10px 12px;
  color: var(--c-text); font-family: inherit; font-size: 14px;
  transition: all 0.2s; width: 100%; box-sizing: border-box;
}
.form-select { cursor: pointer; appearance: none; }
.form-select option { background: #fff; color: var(--c-text); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--c-text-4); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; background: #fff;
  border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-dim);
}
.form-input.error, .form-select.error {
  border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-error-msg { font-size: 11px; color: #ef4444; margin-top: 2px; display: none; }
.form-error-msg.visible { display: block; }
.form-group-select { position: relative; }
.form-group-select::after {
  content: '▾'; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); color: var(--c-text-3); pointer-events: none; font-size: 12px;
}
.rut-helper { font-size: 11px; color: var(--c-text-3); margin-top: 2px; }
.form-textarea { min-height: 80px; resize: vertical; }

/* ─── RESUMEN (PASO 3) ───────────────────────── */
.resumen-layout { display: flex; flex-direction: column; gap: 16px; }
.resumen-ahorro-banner {
  background: linear-gradient(135deg, rgba(34,197,94,0.07), rgba(240,120,0,0.05));
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 12px; padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; margin-bottom: 4px;
}
.ahorro-icon {
  width: 46px; height: 46px; background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.28); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ahorro-icon svg { width: 22px; height: 22px; color: #22c55e; }
.ahorro-text h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 800; color: #22c55e; margin: 0 0 3px; }
.ahorro-text p { font-size: 12px; color: var(--c-text-2); margin: 0; }
.ahorro-amount { margin-left: auto; text-align: right; flex-shrink: 0; }
.ahorro-amount .amount-val { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 800; color: #22c55e; }
.ahorro-amount .amount-label { font-size: 10px; color: var(--c-text-3); }

.resumen-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; }
.resumen-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(90deg, var(--orange-dim), transparent);
  border-bottom: 1px solid var(--c-border-s);
}
.resumen-card-header svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }
.resumen-card-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--c-text); margin: 0;
}
.resumen-card-body { padding: 4px 0; }
.resumen-line-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 11px 20px; border-bottom: 1px solid var(--c-border-s); transition: background 0.15s;
}
.resumen-line-item:last-child { border-bottom: none; }
.resumen-line-item:hover { background: var(--c-surface-2); }
.resumen-line-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.resumen-line-name { font-size: 14px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resumen-line-qty { font-size: 11px; font-weight: 600; color: var(--c-text-3); background: var(--c-surface-2); padding: 2px 7px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.resumen-line-price { font-size: 14px; font-weight: 700; color: var(--orange); white-space: nowrap; flex-shrink: 0; }
.resumen-empty { padding: 16px 20px; font-size: 13px; color: var(--c-text-3); margin: 0; font-style: italic; }
.resumen-contact-grid { display: grid; grid-template-columns: 1fr 1fr; }
.resumen-contact-field {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 20px;
  border-bottom: 1px solid var(--c-border-s);
}
.resumen-contact-field:nth-last-child(1),
.resumen-contact-field:nth-last-child(2):not(.resumen-contact-full) { border-bottom: none; }
.resumen-contact-full { grid-column: 1 / -1; }
.resumen-contact-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--c-text-3); font-weight: 600; }
.resumen-contact-value { font-size: 13px; font-weight: 600; color: var(--c-text); }

.resumen-card--totales { border-color: rgba(240,120,0,0.25); }
.resumen-totales-grid { padding: 20px 20px 14px; display: flex; flex-direction: column; gap: 10px; }
.resumen-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.resumen-total-row--highlight { font-size: 15px; font-weight: 700; }
.resumen-total-row--highlight .resumen-total-label { color: var(--c-text); }
.resumen-total-row--highlight .resumen-total-val { color: var(--orange); }
.resumen-total-label { color: var(--c-text-2); }
.resumen-total-val { font-weight: 600; color: var(--c-text); }
.resumen-total-divider { height: 1px; background: var(--c-border-s); margin: 4px 0; }
.resumen-dcto-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #22c55e; }
.resumen-cuota-box {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: var(--orange-dim);
  border-top: 1px dashed rgba(240,120,0,0.3);
}
.resumen-cuota-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--orange); }
.resumen-cuota-label span { color: var(--c-text-3); font-weight: 400; text-transform: none; letter-spacing: 0; }
.resumen-cuota-price { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800; color: var(--orange); }

/* ─── SIMULADOR (PASO 4) ─────────────────────── */
.simulador-section {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 14px; overflow: hidden; margin-bottom: 20px;
}
.simulador-header {
  display: flex; align-items: center; gap: 14px; padding: 18px 24px;
  background: linear-gradient(90deg, var(--orange-dim), transparent);
  border-bottom: 1px solid var(--c-border-s);
}
.simulador-header svg { width: 20px; height: 20px; color: var(--orange); }
.simulador-header h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; color: var(--c-text); margin: 0; }
.simulador-body { padding: 24px; }
.sim-plazo-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 24px; }
.sim-plazo-btn {
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: 8px; padding: 12px 8px;
  color: var(--c-text-2); font-size: 13px; font-weight: 700;
  cursor: pointer; text-align: center; transition: all 0.2s;
}
.sim-plazo-btn:hover { background: var(--orange-dim); border-color: rgba(240,120,0,0.35); color: var(--c-text); }
.sim-plazo-btn.active { background: var(--orange-dim); border-color: var(--orange); color: var(--orange); }
.sim-plazo-btn span { display: block; font-size: 10px; font-weight: 400; color: var(--c-text-3); margin-top: 2px; }
.sim-plazo-btn.active span { color: rgba(240,120,0,0.7); }
.sim-tasa-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.sim-tasa-row label { font-size: 12px; font-weight: 600; color: var(--c-text-2); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.4px; }
.sim-tasa-slider {
  flex: 1; -webkit-appearance: none;
  height: 4px; background: var(--c-border); border-radius: 2px; outline: none;
}
.sim-tasa-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--orange);
  cursor: pointer; box-shadow: 0 0 8px var(--orange-glow);
}
.sim-tasa-val { font-size: 14px; font-weight: 700; color: var(--orange); min-width: 44px; text-align: right; }
.sim-results { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 24px; }
.sim-result-card {
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: 10px; padding: 16px; text-align: center;
}
.sim-result-card.highlight { background: var(--orange-dim); border-color: rgba(240,120,0,0.35); }
.sim-result-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--c-text-3); margin-bottom: 6px; }
.sim-result-val { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: var(--c-text); }
.sim-result-card.highlight .sim-result-val { color: var(--orange); }
.sim-result-sub { font-size: 11px; color: var(--c-text-3); margin-top: 2px; }
.sim-table-wrap { overflow-x: auto; }
.sim-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sim-table thead th {
  background: var(--c-surface-2); padding: 10px 12px; text-align: right;
  color: var(--c-text-2); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.4px; font-size: 10px; border-bottom: 1px solid var(--c-border);
}
.sim-table thead th:first-child { text-align: left; }
.sim-table tbody tr:hover { background: var(--c-surface-2); }
.sim-table tbody td { padding: 8px 12px; text-align: right; color: var(--c-text-2); border-bottom: 1px solid var(--c-border-s); }
.sim-table tbody td:first-child { text-align: left; color: var(--c-text-3); }
.sim-table tfoot td { padding: 10px 12px; text-align: right; font-weight: 700; color: var(--orange); border-top: 1px solid var(--c-border); }
.sim-table tfoot td:first-child { text-align: left; color: var(--c-text-2); }
.sim-toggle-table {
  background: none; border: 1px solid var(--c-border);
  border-radius: 6px; padding: 8px 16px; color: var(--c-text-2);
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-top: 4px;
}
.sim-toggle-table:hover { border-color: rgba(240,120,0,0.35); color: var(--orange); }

/* ─── MODALES ────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.modal-visible { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 20px; padding: 48px 40px 40px;
  width: 100%; max-width: 460px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
  transform: translateY(16px); transition: transform 0.3s ease;
}
.modal-overlay.modal-visible .modal-box { transform: translateY(0); }
.modal-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.modal-icon svg { width: 32px; height: 32px; }
.modal-icon--success { background: rgba(34,197,94,0.12); border: 2px solid rgba(34,197,94,0.4); }
.modal-icon--success svg { color: #22c55e; }
.modal-icon--error { background: rgba(239,68,68,0.12); border: 2px solid rgba(239,68,68,0.4); }
.modal-icon--error svg { color: #ef4444; }
.modal-title { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 800; color: var(--c-text); margin: 0 0 12px; }
.modal-text { font-size: 14px; color: var(--c-text-2); line-height: 1.6; margin: 0 0 28px; }
.modal-detail {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 12px;
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: 10px; padding: 16px 20px; text-align: left; margin-bottom: 28px;
}
.modal-detail-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--c-text-3); }
.modal-detail-value { font-size: 13px; font-weight: 600; color: var(--c-text); }
.modal-actions { display: flex; gap: 12px; }
.modal-btn {
  flex: 1; padding: 13px 20px; border-radius: 10px;
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.2s; border: none;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.modal-btn--primary { background: var(--orange); color: white; box-shadow: 0 4px 20px var(--orange-glow); }
.modal-btn--primary:hover { background: var(--orange-light); transform: translateY(-1px); }
.modal-btn--secondary { background: var(--c-surface-2); color: var(--c-text-2); border: 1px solid var(--c-border); }
.modal-btn--secondary:hover { background: var(--c-border); color: var(--c-text); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .configurador-header { padding: 100px 20px 40px; }
  .configurador-header h1 { font-size: 32px; }
  .progress-container { padding: 12px 20px; }
  .config-wrapper { padding: 24px 16px 140px; }
  .form-grid { grid-template-columns: 1fr; }
  .sim-plazo-grid { grid-template-columns: repeat(2,1fr); }
  .sim-results { grid-template-columns: 1fr; }

  .paso1-layout { grid-template-columns: 1fr; }
  .widgets-sidebar {
    position: static; max-height: none;
    flex-direction: row; flex-wrap: wrap; overflow: visible; gap: 10px;
  }
  .widgets-sidebar .sidebar-widget { flex: 1 1 calc(50% - 5px); min-width: 160px; }
  .widgets-sidebar .widget-mas50,
  .widgets-sidebar .widget-financiamiento { flex: 1 1 100%; }

  .sticky-resumen { padding: 10px 16px; }
  .sticky-resumen-inner { flex-wrap: wrap; gap: 8px; }
  .sticky-col { padding: 0 10px; flex: 0 0 calc(50% - 20px); }
  .sticky-divider { display: none; }
  .sticky-col--cuota { flex: 0 0 100%; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 8px; flex-direction: row; align-items: center; gap: 10px; }
}