/* Marca Sandos (rojo) + superficies estilo QOVEX */
:root {
  --sandos-accent: #dc2626;
  --sandos-accent-hover: #b91c1c;
  --sandos-accent-dark: #991b1b;
  --sandos-accent-darker: #7f1d1d;
  --sandos-accent-soft: #fef2f2;
  --sandos-accent-muted: #fee2e2;
  --sandos-accent-border: #fecaca;
  --sandos-accent-border-strong: #f87171;
  --sandos-ink: #0f172a;
  --sandos-ink-logo: #f8fafc;
  --sandos-shadow-accent: rgba(185, 28, 28, 0.32);
  --sandos-shadow-accent-soft: rgba(185, 28, 28, 0.14);

  /* Topbar azul QOVEX (icon sidebar) */
  --theme-topbar-bg: #2b4093;
  --theme-topbar-bg-start: #3450a8;
  --theme-topbar-bg-end: #283c93;
  --theme-topbar-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --theme-topbar-border: transparent;
  --theme-topbar-text: #ffffff;
  --theme-topbar-muted: #c5cdf0;
  --theme-topbar-hover: rgba(255, 255, 255, 0.12);
  --theme-profile-ring: rgba(85, 110, 230, 0.45);
  --theme-nav-icon-bg: rgba(85, 110, 230, 0.12);
  --theme-nav-icon-color: #556ee6;
  --theme-nav-icon-active-bg: rgba(85, 110, 230, 0.12);
  --theme-nav-icon-active-color: #556ee6;

  /* Superficies claras */
  --theme-body-bg: #f8f8fb;
  --theme-body-text: #495057;
  --theme-sidebar-bg: #ffffff;
  --theme-sidebar-border: #eff2f7;
  --theme-sidebar-shadow: 0 2px 4px rgba(18, 38, 63, 0.04), 0 8px 24px rgba(18, 38, 63, 0.1);
  --theme-sidebar-heading: #74788d;
  --theme-nav: #7f8495;
  --theme-nav-hover-bg: rgba(85, 110, 230, 0.08);
  --theme-nav-hover-text: #556ee6;
  --theme-topnav-active-color: var(--sandos-accent);
  --theme-nav-active-bg: #fef2f2;
  --theme-nav-active-text: var(--sandos-accent-dark);
  --theme-flyout-bg: #ffffff;
  --theme-flyout-border: #eff2f7;
  --theme-flyout-shadow: 0 4px 24px rgba(42, 48, 66, 0.1);
  --theme-flyout-title: #556ee6;
  --theme-flyout-link: #545a6d;
  --theme-flyout-link-hover-bg: rgba(85, 110, 230, 0.06);
  --theme-flyout-link-hover-text: #2a3042;
  --theme-flyout-link-active: var(--sandos-accent-dark);
  --theme-card-bg: #ffffff;
  --theme-card-bg-alt: #ffffff;
  --theme-card-border: #eff2f7;
  --theme-card-shadow: rgba(42, 48, 66, 0.06);
  --theme-heading: #2a3042;
  --theme-muted: #74788d;
  --theme-subtle: #545a6d;
  --theme-input-bg: #ffffff;
  --theme-input-border: #ced4da;
  --theme-input-text: #495057;
  --theme-table-head-bg: #f8f9fa;
  --theme-table-head-text: #495057;
  --theme-table-cell-text: #495057;
  --theme-table-row-border: #eff2f7;
  --theme-table-head-border: #eff2f7;
  --theme-table-wrap-border: #eff2f7;
  --theme-table-row-hover-bg: #f8f9fa;
  --theme-table-stripe-bg: #f8f9fa;
  --theme-user-email: #a6b0cf;
  --theme-logout-border: rgba(255, 255, 255, 0.18);
  --theme-logout-text: #e9ecef;
  --theme-logout-hover-bg: rgba(255, 255, 255, 0.1);
  --theme-modal-title: #2a3042;
  --theme-modal-subtitle: #74788d;
  --theme-summary-bg: #f8f9fa;
  --theme-summary-border: #eff2f7;
  --theme-summary-label: #74788d;
  --theme-summary-value: #2a3042;
  --theme-modal-backdrop: rgba(42, 48, 66, 0.55);
  --theme-ghost-bg: #ffffff;
  --theme-ghost-hover-bg: #f5f6f8;
  --theme-pill-inactive-bg: #ffffff;
  --theme-pill-inactive-border: #ced4da;
  --theme-pill-inactive-text: #545a6d;
  --theme-toggle-bg: rgba(255, 255, 255, 0.08);
  --theme-toggle-border: rgba(255, 255, 255, 0.14);
  --theme-toggle-text: #e9ecef;
  --theme-modal-products-border: #eff2f7;
  --theme-modal-product-row-border: #eff2f7;
  --theme-modal-product-head-bg: #f8f9fa;
  --theme-modal-product-head-text: #74788d;
  --theme-modal-no-products-bg: #ffffff;
  --theme-loading-overlay: rgba(255, 255, 255, 0.92);
  --theme-spinner-track: #e9ecef;
  --theme-btn-primary: var(--sandos-accent);
  --theme-btn-primary-border: var(--sandos-accent-hover);
  --theme-btn-primary-hover: var(--sandos-accent-hover);
  --theme-radius: 4px;
  --theme-radius-lg: 6px;
  --theme-font: "Plus Jakarta Sans", system-ui, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --sandos-ink-logo: #f8fafc;
  --sandos-accent-soft: rgba(254, 242, 242, 0.1);
  --sandos-shadow-accent-soft: rgba(248, 113, 113, 0.22);

  --theme-topbar-bg: #1e2a5a;
  --theme-topbar-bg-start: #24356e;
  --theme-topbar-bg-end: #1a2550;
  --theme-topbar-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --theme-topbar-border: transparent;
  --theme-topbar-text: #e2e8f0;
  --theme-topbar-muted: #94a3b8;
  --theme-topbar-hover: rgba(255, 255, 255, 0.08);
  --theme-profile-ring: rgba(248, 113, 113, 0.4);
  --theme-nav-icon-bg: rgba(85, 110, 230, 0.16);
  --theme-nav-icon-color: #8b9cf7;
  --theme-nav-icon-active-bg: rgba(85, 110, 230, 0.22);
  --theme-nav-icon-active-color: #a5b4fc;

  --theme-body-bg: #0f1219;
  --theme-body-text: #e2e8f0;
  --theme-sidebar-bg: #161b26;
  --theme-sidebar-border: #273044;
  --theme-sidebar-shadow: 0 0 2px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.45);
  --theme-sidebar-heading: #64748b;
  --theme-nav: #cbd5e1;
  --theme-nav-hover-bg: #1e2533;
  --theme-nav-hover-text: #f8fafc;
  --theme-topnav-active-color: #fca5a5;
  --theme-nav-active-bg: rgba(220, 38, 38, 0.14);
  --theme-nav-active-text: #fecaca;
  --theme-flyout-bg: #1e2533;
  --theme-flyout-border: #273044;
  --theme-flyout-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --theme-flyout-title: #93c5fd;
  --theme-flyout-link: #cbd5e1;
  --theme-flyout-link-hover-bg: rgba(255, 255, 255, 0.06);
  --theme-flyout-link-hover-text: #f8fafc;
  --theme-flyout-link-active: #fecaca;
  --theme-card-bg: #1a2030;
  --theme-card-bg-alt: #1a2030;
  --theme-card-border: #273044;
  --theme-card-shadow: rgba(0, 0, 0, 0.35);
  --theme-heading: #f8fafc;
  --theme-muted: #94a3b8;
  --theme-subtle: #cbd5e1;
  --theme-input-bg: #0f1219;
  --theme-input-border: #334155;
  --theme-input-text: #f1f5f9;
  --theme-table-head-bg: #161b26;
  --theme-table-head-text: #cbd5e1;
  --theme-table-cell-text: #e2e8f0;
  --theme-table-row-border: #273044;
  --theme-table-head-border: #273044;
  --theme-table-wrap-border: #273044;
  --theme-table-row-hover-bg: #1e2533;
  --theme-table-stripe-bg: rgba(255, 255, 255, 0.03);
  --theme-user-email: #94a3b8;
  --theme-logout-border: rgba(255, 255, 255, 0.14);
  --theme-logout-text: #e2e8f0;
  --theme-logout-hover-bg: rgba(255, 255, 255, 0.08);
  --theme-modal-title: #f1f5f9;
  --theme-modal-subtitle: #94a3b8;
  --theme-summary-bg: #0f1219;
  --theme-summary-border: #273044;
  --theme-summary-label: #94a3b8;
  --theme-summary-value: #f1f5f9;
  --theme-modal-backdrop: rgba(0, 0, 0, 0.65);
  --theme-ghost-bg: #1a2030;
  --theme-ghost-hover-bg: #1e2533;
  --theme-pill-inactive-bg: #1a2030;
  --theme-pill-inactive-border: #334155;
  --theme-pill-inactive-text: #cbd5e1;
  --theme-toggle-bg: rgba(255, 255, 255, 0.06);
  --theme-toggle-border: rgba(255, 255, 255, 0.12);
  --theme-toggle-text: #e2e8f0;
  --theme-modal-products-border: #273044;
  --theme-modal-product-row-border: #273044;
  --theme-modal-product-head-bg: #0f1219;
  --theme-modal-product-head-text: #94a3b8;
  --theme-modal-no-products-bg: #1a2030;
  --theme-loading-overlay: rgba(15, 18, 25, 0.88);
  --theme-spinner-track: #334155;
  --theme-btn-primary: var(--sandos-accent);
  --theme-btn-primary-border: var(--sandos-accent-hover);
  --theme-btn-primary-hover: var(--sandos-accent-hover);
}
