/* LunexPOS design system — variables y utilidades compartidas */
:root {
  --lx-sidebar-width: 268px;
  --lx-sidebar-collapsed-width: 216px;
  --lx-bg: #f6f8fa;
  --lx-text: #1f2937;
  --lx-primary: #2563eb;
  --lx-sidebar-bg: linear-gradient(180deg, #131823 0%, #191f2d 100%);
  --lx-radius: 0.5rem;
  --lx-shadow: 0 12px 28px rgba(10, 14, 24, 0.08);
}

html {
  overflow-y: scroll;
}

body.lx-app {
  margin: 0;
  background: var(--lx-bg);
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  color: var(--lx-text);
  overflow-x: hidden;
}

.lx-card {
  border: 0;
  border-radius: var(--lx-radius);
  box-shadow: var(--lx-shadow);
}

.lx-page-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lx-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.lx-badge-trial {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

@media (max-width: 1199px) {
  .lx-tablet-stack {
    flex-direction: column !important;
  }
}

/* ── Banner cookies + términos (primera visita) ─────────────────────────── */
.legal-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10400;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.legal-consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.legal-consent-banner__inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dbe3f0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.legal-consent-banner__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 1.15rem;
}

.legal-consent-banner__text {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #334155;
}

.legal-consent-banner__text a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.legal-consent-banner__text a:hover {
  text-decoration: underline;
}

.legal-consent-banner__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-consent-banner__btn {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.legal-consent-banner__btn--ghost {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.legal-consent-banner__btn--ghost:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.legal-consent-banner__btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.legal-consent-banner__btn--primary:hover {
  opacity: 0.95;
}

@media (max-width: 767.98px) {
  .legal-consent-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .legal-consent-banner__icon {
    display: none;
  }

  .legal-consent-banner__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .legal-consent-banner__btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
