/* =========================================================
   Sistema de diseño — Inspirado en Linear
   Dark-mode-native, Inter Variable, acento indigo
   ========================================================= */

:root {
  /* ----------- Superficies (luminance stacking) ----------- */
  --color-bg: #08090a;            /* Canvas — el "negro marketing" */
  --color-panel: #0f1011;         /* Header sticky, sidebars */
  --color-surface: #191a1b;       /* Cards, modales, dropdowns */
  --color-surface-alt: #1f2022;   /* Hover sutil sobre cards */
  --color-surface-2: #28282c;     /* Hover más marcado, segments */

  /* ----------- Texto ----------- */
  --color-text: #f7f8f8;          /* Primario — casi blanco, no puro */
  --color-text-soft: #d0d6e0;     /* Secundario — silver-gray */
  --color-text-muted: #8a8f98;    /* Terciario — placeholders, meta */
  --color-text-quaternary: #62666d; /* Cuaternario — disabled, timestamps */

  /* ----------- Acento (única familia cromática) ----------- */
  --color-primary: #5e6ad2;       /* Brand indigo — CTAs, marcas */
  --color-primary-hover: #7170ff; /* Hover/active — accent violet */
  --color-primary-bright: #828fff;/* Hover sobre accent */
  --color-primary-soft: rgba(94, 106, 210, 0.18);
  --color-primary-ring: rgba(113, 112, 255, 0.35);

  /* ----------- Estados ----------- */
  --color-success: #10b981;
  --color-success-soft: rgba(16, 185, 129, 0.16);
  --color-warning: #f59e0b;
  --color-warning-soft: rgba(245, 158, 11, 0.16);
  --color-danger: #ef4444;
  --color-danger-soft: rgba(239, 68, 68, 0.16);

  /* ----------- Bordes (semi-transparentes) ----------- */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-subtle: rgba(255, 255, 255, 0.05);
  --color-border-strong: rgba(255, 255, 255, 0.12);
  --color-border-solid: #23252a;

  /* ----------- Sombras (multi-layer) ----------- */
  --shadow-sm: 0 1.2px 0 rgba(0, 0, 0, 0.35),
               0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4),
               0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5),
               0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-focus: 0 0 0 3px var(--color-primary-ring);
  --shadow-inset: inset 0 0 12px rgba(0, 0, 0, 0.2);

  /* ----------- Radios ----------- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 6px;       /* Botones, inputs */
  --radius-md: 8px;    /* Cards estándar */
  --radius-lg: 12px;   /* Cards destacadas, modales */
  --radius-xl: 22px;   /* Paneles grandes */

  /* ----------- Otros ----------- */
  --transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Inter Variable", "Inter", "SF Pro Display", -apple-system,
    system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Berkeley Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-features: "cv01", "ss03";
}

/* =========================================================
   Reset + base
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  /* Le dice al navegador y al OS que toda la página es oscura,
     así los controles nativos (dropdowns, scrollbars, date pickers,
     spinners de números, botón X de los search inputs, etc.) usan
     sus variantes oscuras automáticamente. */
  color-scheme: dark;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-feature-settings: var(--font-features);
  font-weight: 400;
  color: var(--color-text-soft);
  background: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-primary-hover);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-bright);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  font-feature-settings: var(--font-features);
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-feature-settings: var(--font-features);
  font-size: 0.94rem;
  color: var(--color-text);
}

::selection {
  background: var(--color-primary-soft);
  color: var(--color-text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* =========================================================
   Header / Navegación
   ========================================================= */

.app-header {
  background: rgba(15, 16, 17, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0.85rem 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 510;
  font-size: 0.95rem;
  letter-spacing: -0.18px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand__mark {
  background: linear-gradient(135deg, #5e6ad2, #7170ff);
  color: #fff;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 590;
  letter-spacing: -0.2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  flex-wrap: wrap;
}

.app-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-weight: 510;
  font-size: 0.82rem;
  letter-spacing: -0.1px;
  transition: var(--transition);
}

.app-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  text-decoration: none;
}

.app-nav a.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.app-nav__user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.user-chip {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 0.74rem;
  line-height: 1.25;
}

.user-chip strong {
  color: var(--color-text);
  font-weight: 510;
  font-size: 0.82rem;
  letter-spacing: -0.12px;
}

.user-chip span {
  color: var(--color-text-quaternary);
}

.cart-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  padding: 0.45rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  font-weight: 510;
  font-size: 0.78rem;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.cart-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.cart-pill svg {
  display: block;
  color: var(--color-text);
}

.cart-pill__count {
  background: var(--color-primary);
  color: #fff;
  border-radius: 9999px;
  padding: 0.05rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 590;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}

/* =========================================================
   Layout main
   ========================================================= */

.app-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 5rem;
}

.page-title {
  font-size: 1.75rem;
  margin: 0 0 0.4rem;
  font-weight: 510;
  letter-spacing: -0.66px;
  color: var(--color-text);
  line-height: 1.15;
}

.page-subtitle {
  margin: 0 0 2rem;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  letter-spacing: -0.16px;
  line-height: 1.55;
  max-width: 680px;
}

/* =========================================================
   Botones
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  background: var(--color-primary);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 510;
  font-size: 0.84rem;
  letter-spacing: -0.12px;
  transition: var(--transition);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(94, 106, 210, 0.5);
}

.btn:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px var(--color-primary-bright);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset,
    var(--shadow-focus);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border-strong);
}

.btn--danger {
  background: var(--color-danger);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(239, 68, 68, 0.5);
}

.btn--danger:hover {
  background: #dc2626;
}

.btn--sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
}

.btn--block {
  width: 100%;
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.card + .card {
  margin-top: 1.25rem;
}

.card__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 590;
  letter-spacing: -0.24px;
  color: var(--color-text);
}

/* =========================================================
   Forms
   ========================================================= */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 510;
  letter-spacing: -0.1px;
}

.field input,
.field select,
.field textarea {
  padding: 0.6rem 0.78rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
  transition: var(--transition);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-quaternary);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-focus);
}

.field textarea {
  resize: vertical;
  min-height: 88px;
  font-family: inherit;
}

/* =========================================================
   Selects — flecha custom + items de la lista oscuros
   =========================================================
   El <select> nativo no permite estilizar la lista
   desplegable con CSS más allá del background/color de
   <option>. color-scheme: dark + estos overrides cubren
   todos los navegadores actuales. */

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.02);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 12px;
  padding-right: 2rem !important;
  cursor: pointer;
}

select:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Items de la lista desplegable */
select option,
select optgroup {
  background-color: var(--color-surface);
  color: var(--color-text);
  font-weight: 400;
}

/* Estado checked / hover de los items (Firefox) */
select option:checked,
select option:hover {
  background-color: var(--color-primary-soft);
  color: var(--color-text);
}

/* Calendars / date pickers nativos */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

/* El botón X de los search inputs */
input[type="search"]::-webkit-search-cancel-button {
  filter: invert(0.7);
  cursor: pointer;
}

/* =========================================================
   Alertas
   ========================================================= */

.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  letter-spacing: -0.1px;
}

.alert--error {
  background: var(--color-danger-soft);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.alert--success {
  background: var(--color-success-soft);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.alert--info {
  background: var(--color-primary-soft);
  color: #a5b4fc;
  border-color: rgba(94, 106, 210, 0.35);
}

/* =========================================================
   Badges / Pills
   ========================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.66rem;
  font-weight: 510;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge--info {
  background: var(--color-primary-soft);
  color: #a5b4fc;
  border-color: rgba(94, 106, 210, 0.35);
}

.badge--success {
  background: var(--color-success-soft);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.badge--warning {
  background: var(--color-warning-soft);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge--danger {
  background: var(--color-danger-soft);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

/* =========================================================
   Tablas
   ========================================================= */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-soft);
}

.table th {
  background: transparent;
  font-weight: 510;
  color: var(--color-text-quaternary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table tbody tr {
  transition: background var(--transition);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.table strong {
  color: var(--color-text);
  font-weight: 510;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--color-text-quaternary);
  font-size: 0.88rem;
}

.loader {
  text-align: center;
  padding: 2.5rem;
  color: var(--color-text-quaternary);
  font-size: 0.85rem;
}

/* =========================================================
   Toasts
   ========================================================= */

.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 999;
}

.toast {
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  font-size: 0.84rem;
  font-weight: 510;
  letter-spacing: -0.1px;
  animation: toastIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast--success {
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

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

/* =========================================================
   Helpers
   ========================================================= */

.hidden {
  display: none !important;
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.row > * {
  flex: 1;
  min-width: 220px;
}

.text-muted {
  color: var(--color-text-quaternary) !important;
}

.text-right {
  text-align: right;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 720px) {
  .app-header__inner {
    gap: 0.75rem;
    padding: 0.7rem 1rem;
  }

  .app-nav__user {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .page-title {
    font-size: 1.45rem;
    letter-spacing: -0.5px;
  }
}

/* =========================================================
   Botón de cambio de tema (sun/moon)
   ========================================================= */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-soft);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: grid;
  place-items: center;
  line-height: 0;
}

[data-theme="dark"] .theme-toggle__sun {
  display: grid;
}
[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

[data-theme="light"] .theme-toggle__sun {
  display: none;
}
[data-theme="light"] .theme-toggle__moon {
  display: grid;
}

.theme-toggle--floating {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  width: 38px;
  height: 38px;
  background: rgba(15, 16, 17, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme="light"] .theme-toggle--floating {
  background: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   LIGHT THEME — overrides
   Solo redefine lo necesario; las variables siguen
   resolviéndose dinámicamente vía data-theme.
   ========================================================= */

[data-theme="light"] {
  color-scheme: light;

  --color-bg: #f5f7fa;
  --color-panel: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-surface-2: #e2e8f0;

  --color-text: #0f172a;
  --color-text-soft: #334155;
  --color-text-muted: #64748b;
  --color-text-quaternary: #94a3b8;

  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-primary-bright: #6366f1;
  --color-primary-soft: rgba(79, 70, 229, 0.1);
  --color-primary-ring: rgba(79, 70, 229, 0.25);

  --color-success: #059669;
  --color-success-soft: rgba(5, 150, 105, 0.12);
  --color-warning: #d97706;
  --color-warning-soft: rgba(217, 119, 6, 0.14);
  --color-danger: #dc2626;
  --color-danger-soft: rgba(220, 38, 38, 0.12);

  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-subtle: rgba(15, 23, 42, 0.05);
  --color-border-strong: rgba(15, 23, 42, 0.14);
  --color-border-solid: #e2e8f0;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] body {
  color: var(--color-text-soft);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--color-bg);
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-color: var(--color-bg);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.28);
}

/* ----- Header ----- */
[data-theme="light"] .app-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .app-nav a {
  color: var(--color-text-muted);
}
[data-theme="light"] .app-nav a:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-text);
}
[data-theme="light"] .app-nav a.is-active {
  background: rgba(79, 70, 229, 0.1);
  color: var(--color-primary);
}

[data-theme="light"] .cart-pill {
  background: #ffffff;
  border-color: var(--color-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .cart-pill:hover {
  background: #f8fafc;
  border-color: var(--color-border-strong);
}

[data-theme="light"] .user-chip strong {
  color: var(--color-text);
}

/* ----- Botones ----- */
[data-theme="light"] .btn {
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.18),
    0 0 0 1px rgba(79, 70, 229, 0.45);
}
[data-theme="light"] .btn:hover {
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25),
    0 0 0 1px var(--color-primary-bright);
}
[data-theme="light"] .btn--ghost {
  background: #ffffff;
  border-color: var(--color-border);
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
[data-theme="light"] .btn--ghost:hover {
  background: #f8fafc;
  border-color: var(--color-border-strong);
}

/* ----- Cards ----- */
[data-theme="light"] .card {
  background: #ffffff;
  border-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.02);
}

/* ----- Forms ----- */
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
  background: #ffffff;
  border-color: var(--color-border);
}
[data-theme="light"] .field input:focus,
[data-theme="light"] .field select:focus,
[data-theme="light"] .field textarea:focus {
  background: #ffffff;
  border-color: var(--color-primary);
}
[data-theme="light"] select {
  background-color: #ffffff;
}
[data-theme="light"] select:hover {
  background-color: #f8fafc;
}

/* ----- Alertas ----- */
[data-theme="light"] .alert--error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.25);
}
[data-theme="light"] .alert--success {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.3);
}
[data-theme="light"] .alert--info {
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
  border-color: rgba(79, 70, 229, 0.25);
}

/* ----- Badges ----- */
[data-theme="light"] .badge--info {
  background: rgba(79, 70, 229, 0.1);
  color: #4338ca;
  border-color: rgba(79, 70, 229, 0.3);
}
[data-theme="light"] .badge--success {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.3);
}
[data-theme="light"] .badge--warning {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.3);
}
[data-theme="light"] .badge--danger {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.3);
}

/* ----- Tablas ----- */
[data-theme="light"] .table th {
  color: var(--color-text-muted);
  background: #f8fafc;
}
[data-theme="light"] .table tbody tr:hover {
  background: rgba(15, 23, 42, 0.025);
}
[data-theme="light"] .table strong {
  color: var(--color-text);
}

/* ----- Toasts ----- */
[data-theme="light"] .toast {
  background: #ffffff;
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
[data-theme="light"] .toast--success {
  border-color: rgba(5, 150, 105, 0.4);
  color: #047857;
}
[data-theme="light"] .toast--error {
  border-color: rgba(220, 38, 38, 0.4);
  color: #b91c1c;
}

/* ----- Theme toggle ----- */
[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border-color: var(--color-border);
  color: var(--color-text-muted);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .theme-toggle:hover {
  background: #f8fafc;
  color: var(--color-text);
}
