/*
 * Paleta de marca Auto Insights (Grupo Gran Auto) — ver manual de identidad.
 * Variables compartidas por login.html, index.html y perfiles.html.
 * Estilo: empresarial/formal, esquinas casi rectas (radios chicos), sin
 * curvas ni acabados "futuristas".
 */
:root {
  /* Colores de marca, tal cual el manual */
  --marian-blue: #493F91;
  --tekhelet: #51368D;
  --eerie-black: #1C1C19;
  --dim-gray: #6F6F6A;
  --citron: #BFC761;
  --white: #FFFFFF;

  /* Roles semánticos usados en la UI */
  --color-primary: var(--marian-blue);
  --color-primary-hover: var(--tekhelet);
  --color-primary-soft: #EFEDF7;
  --color-focus-ring: rgba(73, 63, 145, .18);

  --color-text: var(--eerie-black);
  --color-text-muted: var(--dim-gray);
  --color-text-soft: #97958f;

  --color-border: #DAD8E2;
  --color-border-strong: #C3C0D1;
  --color-surface: var(--white);
  --color-surface-muted: #F5F4F8;
  --color-surface-hover: #EDEBF3;

  --color-accent: var(--citron);
  --color-accent-text: #55581f;

  --color-ok-bg: #dcfce7;
  --color-ok-text: #166534;
  --color-error-bg: #fee2e2;
  --color-error-text: #b91c1c;
  --color-error-border: #fecaca;
  --color-warning-bg: #fef9c3;
  --color-warning-text: #854d0e;

  --radius-sm: 3px;
  --radius-md: 4px;

  --shadow-flotante: 0 8px 24px rgba(28, 28, 25, .14);
  --shadow-panel: 0 1px 3px rgba(28, 28, 25, .06);
}

/* Encabezado de sección con chip de ícono — usado en index.html y perfiles.html */
.paso-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.paso-header .paso-icono {
  width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--color-primary-soft);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0;
}
.paso-header .paso-icono svg { width: 17px; height: 17px; }
.paso-header h2 { margin: 0; }
p.paso-ayuda { color: var(--color-text-muted); font-size: 12.5px; margin: 0 0 18px; }

/* Modal genérico (confirmaciones, alertas) — usado en index.html y perfiles.html */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(28,28,25,.45);
  display: flex; align-items: center; justify-content: center;
}
.modal-caja {
  background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-flotante);
  padding: 22px 24px; width: 320px;
}
.modal-caja h3 { margin: 0 0 6px; font-size: 16px; color: var(--color-text); }
.modal-caja .modal-texto { margin: 0 0 14px; font-size: 12.5px; color: var(--color-text-muted); }
.modal-caja input { width: 100%; padding: 8px 10px; font-size: 13px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); }
.modal-caja input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-focus-ring); }
.modal-acciones { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
