@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

/* Legajo Digital - Sistema de Diseño Claro Profesional */

:root {
  /* Colores claros y corporativos */
  --ld-bg-deep: #ffffff;
  --ld-bg: #f8f9fa;
  --ld-surface: #ffffff;
  --ld-surface-elevated: #f0f2f5;
  --ld-border: #e0e3e8;
  --ld-text: #1a1f36;
  --ld-text-muted: #6c757d;
  --ld-accent: #0066cc;
  --ld-accent-dim: rgba(0, 102, 204, 0.08);
  --ld-accent-hover: #0052a3;
  --ld-accent-light: #e7f0ff;
  --ld-success: #10b981;
  --ld-success-light: #ecfdf5;
  --ld-warning-bg: #fef3c7;
  --ld-warning-text: #92400e;
  --ld-warning-border: #fbbf24;
  --ld-error: #ef4444;
  --ld-info: #3b82f6;
  --ld-radius: 12px;
  --ld-radius-sm: 8px;
  --ld-radius-xs: 4px;
  --ld-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --ld-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --ld-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --ld-font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --ld-font-brand: "Playfair Display", Georgia, serif;
  
  /* Transiciones y animaciones */
  --ld-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ld-page-bg: linear-gradient(135deg, #f8f9fa 0%, #e8ecf5 100%);
  --ld-strip-bg: linear-gradient(90deg, var(--ld-accent-light), #f0f8ff);
  --ld-navbar-bg: rgba(255, 255, 255, 0.95);
  --ld-menu-bg: #ffffff;
  --ld-input-bg: #ffffff;
  --ld-table-bg: #ffffff;
  --ld-table-head-bg: linear-gradient(135deg, var(--ld-accent-light), #f0f8ff);
  --ld-footer-bg: #ffffff;
  --ld-footer-border: #dde3ea;
}

html {
  height: 100%;
}

body.ld-body {
  min-height: 100%;
  margin: 0;
  background: var(--ld-page-bg) !important;
  color: var(--ld-text) !important;
  font-family: var(--ld-font-ui) !important;
  font-size: 15px !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.ld-body label {
  font-weight: 600 !important;
  color: var(--ld-text);
  font-size: 0.95rem;
}

body.ld-body p {
  color: var(--ld-text-muted);
  font-weight: 500;
  line-height: 1.6;
}

body.ld-body .text-muted {
  color: var(--ld-text-muted) !important;
}

body.ld-body .text-danger {
  color: var(--ld-error) !important;
}

body.ld-body .text-success {
  color: var(--ld-success) !important;
}

body.ld-body .text-info {
  color: var(--ld-info) !important;
}

body.ld-body h1,
body.ld-body h2,
body.ld-body h3,
body.ld-body h4,
body.ld-body h5,
body.ld-body h6 {
  color: var(--ld-text);
  font-family: var(--ld-font-brand);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

body.ld-body h1 {
  font-size: 2rem;
}

body.ld-body h2 {
  font-size: 1.75rem;
}

body.ld-body h3 {
  font-size: 1.5rem;
}

body.ld-body h4 {
  font-size: 1.25rem;
}

/* Formulario principal */
.ld-form-wrap {
  background: transparent !important;
}

/* Barra de soporte */
.ld-support-strip {
  background: var(--ld-strip-bg) !important;
  border-bottom: 2px solid var(--ld-accent);
  padding: 0.75rem 1rem !important;
  text-align: center;
  box-shadow: var(--ld-shadow);
}

.ld-support-strip .btn,
.ld-support-strip input[type="submit"],
.ld-support-strip .aspNetDisabled {
  background: white !important;
  border: 1px solid var(--ld-accent) !important;
  color: var(--ld-accent) !important;
  font-size: 0.8125rem !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--ld-radius-sm) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: var(--ld-transition);
  cursor: pointer;
}

.ld-support-strip .btn:hover,
.ld-support-strip input[type="submit"]:hover {
  background: var(--ld-accent) !important;
  border-color: var(--ld-accent) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

/* Shell y navegación */
.ld-shell {
  background: transparent !important;
  padding-bottom: 2rem;
}

.ld-navbar.navbar {
  background: var(--ld-navbar-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ld-border);
  margin-bottom: 0 !important;
  padding: 0.75rem 1rem !important;
  box-shadow: var(--ld-shadow-md);
}

.ld-navbar .navbar-brand {
  font-family: var(--ld-font-brand);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ld-accent) !important;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.ld-navbar .navbar-brand small {
  display: block;
  font-family: var(--ld-font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ld-text-muted);
  opacity: 0.95;
  margin-top: 2px;
}

.ld-navbar .nav-link {
  color: var(--ld-text-muted) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--ld-radius-sm);
  transition: var(--ld-transition);
}

.ld-navbar .nav-link:hover {
  color: var(--ld-accent) !important;
  background: var(--ld-accent-dim);
}

.ld-navbar .nav-link.active {
  color: var(--ld-accent) !important;
}

.ld-navbar .navbar-toggler {
  border: 1px solid var(--ld-border);
  padding: 0.35rem 0.55rem;
}

.ld-navbar .navbar-toggler-icon {
  filter: brightness(0.5);
}

/* Dropdowns claros */
.ld-navbar .dropdown-menu {
  background: var(--ld-menu-bg) !important;
  border: 1px solid var(--ld-border) !important;
  border-radius: var(--ld-radius-sm) !important;
  box-shadow: var(--ld-shadow-lg);
  padding: 0.35rem 0;
  margin-top: 0.35rem;
}

.ld-navbar .dropdown-item {
  color: var(--ld-text) !important;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: var(--ld-transition);
}

.ld-navbar .dropdown-item:hover,
.ld-navbar .dropdown-item:focus {
  background: var(--ld-accent-dim) !important;
  color: var(--ld-accent) !important;
  border-left: 3px solid var(--ld-accent);
  padding-left: calc(1rem - 3px);
}

.ld-navbar .dropdown-divider {
  border-top-color: var(--ld-border);
}

/* Usuario en barra */
.ld-navbar .nav-item .nav-link span,
.ld-navbar label,
.ld-navbar .aspNetDisabled {
  color: inherit;
}

.ld-user-label {
  color: var(--ld-error) !important;
  font-weight: 700 !important;
}

/* Contenido */
.ld-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 2rem;
}

/* Tarjeta login y formularios genéricos */
.ld-auth-card {
  max-width: 420px;
  margin: 4vh auto 2rem;
  padding: 2rem 2rem 2.25rem;
  background: var(--ld-menu-bg);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow-lg);
}

.ld-auth-card .ld-auth-title {
  font-family: var(--ld-font-brand);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ld-text);
  text-align: center;
  margin-bottom: 0.35rem;
}

.ld-auth-card .ld-auth-sub {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ld-text-muted);
  margin-bottom: 1.75rem;
}

/* Formularios - Inputs y controles */
body.ld-body .form-control,
body.ld-body input[type="text"],
body.ld-body input[type="email"],
body.ld-body input[type="password"],
body.ld-body input[type="number"],
body.ld-body input[type="date"],
body.ld-body select,
body.ld-body textarea {
  background: var(--ld-input-bg) !important;
  border: 1.5px solid var(--ld-border) !important;
  color: var(--ld-text) !important;
  border-radius: var(--ld-radius-sm) !important;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: var(--ld-font-ui);
  transition: var(--ld-transition);
}

body.ld-body .form-control:focus,
body.ld-body input[type="text"]:focus,
body.ld-body input[type="email"]:focus,
body.ld-body input[type="password"]:focus,
body.ld-body input[type="number"]:focus,
body.ld-body input[type="date"]:focus,
body.ld-body select:focus,
body.ld-body textarea:focus {
  border-color: var(--ld-accent) !important;
  box-shadow: 0 0 0 3px var(--ld-accent-dim) !important;
  background: var(--ld-input-bg) !important;
  color: var(--ld-text) !important;
}

body.ld-body .form-control::placeholder {
  color: var(--ld-text-muted);
  opacity: 0.85;
}

body.ld-body .form-control:disabled,
body.ld-body .form-control[readonly] {
  background: var(--ld-surface-elevated) !important;
  color: var(--ld-text-muted) !important;
  cursor: not-allowed;
}

/* Checkboxes y Radios mejorados */
body.ld-body .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid var(--ld-border);
  border-radius: var(--ld-radius-xs);
  background: var(--ld-input-bg);
  cursor: pointer;
  transition: var(--ld-transition);
}

body.ld-body .form-check-input:checked {
  background-color: var(--ld-accent);
  border-color: var(--ld-accent);
}

body.ld-body .form-check-input:focus {
  box-shadow: 0 0 0 3px var(--ld-accent-dim);
}

body.ld-body .form-check-label {
  padding-top: 0.2rem;
  cursor: pointer;
}

/* Botones Bootstrap alineados al tema */
body.ld-body .btn {
  font-weight: 600;
  border-radius: var(--ld-radius-sm);
  padding: 0.65rem 1.25rem;
  transition: var(--ld-transition);
  border: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.ld-body .btn:focus {
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}

body.ld-body .btn-primary {
  background: linear-gradient(135deg, #0066cc, #0052a3) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 2px 12px rgba(0, 102, 204, 0.25);
}

body.ld-body .btn-primary:hover {
  background: linear-gradient(135deg, #0052a3, #003d7a) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.35);
  transform: translateY(-2px);
}

body.ld-body .btn-primary:active {
  transform: translateY(0);
}

body.ld-body .btn-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25);
}

body.ld-body .btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

body.ld-body .btn-secondary {
  background: var(--ld-input-bg) !important;
  border: 1.5px solid var(--ld-border) !important;
  color: var(--ld-text) !important;
  box-shadow: var(--ld-shadow);
}

body.ld-body .btn-secondary:hover {
  background: var(--ld-surface-elevated) !important;
  border-color: var(--ld-text-muted) !important;
  color: var(--ld-text) !important;
}

body.ld-body .btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.25);
}

body.ld-body .btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

body.ld-body .btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25);
}

body.ld-body .btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

body.ld-body .btn-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
}

body.ld-body .btn-info:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

body.ld-body .btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

body.ld-body .btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

/* Tablas y GridView comunes en ASP.NET */
body.ld-body .table {
  color: var(--ld-text);
  background: var(--ld-table-bg);
  border-radius: var(--ld-radius-sm);
  overflow: hidden;
  box-shadow: var(--ld-shadow);
  border: 1px solid var(--ld-border);
  margin-bottom: 1.5rem;
}

body.ld-body .table thead th {
  border-color: var(--ld-border);
  background: var(--ld-table-head-bg);
  color: var(--ld-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.875rem;
}

body.ld-body .table td,
body.ld-body .table th {
  border-color: var(--ld-border);
  padding: 0.875rem;
}

body.ld-body .table tbody tr {
  transition: background-color 0.2s;
}

body.ld-body .table tbody tr:hover {
  background: var(--ld-accent-light) !important;
}

body.ld-body .table-striped tbody tr:nth-of-type(odd) {
  background: var(--ld-surface-elevated);
}

body.ld-body .table-striped tbody tr:nth-of-type(odd):hover {
  background: var(--ld-accent-light) !important;
}

/* Paginación */
body.ld-body .pagination {
  margin-top: 1rem;
}

body.ld-body .pagination .page-link {
  background: var(--ld-input-bg);
  border-color: var(--ld-border);
  color: var(--ld-text-muted);
  border-radius: var(--ld-radius-xs);
  margin: 0 0.25rem;
  transition: var(--ld-transition);
}

body.ld-body .pagination .page-link:hover {
  background: var(--ld-accent-light);
  border-color: var(--ld-accent);
  color: var(--ld-accent);
}

body.ld-body .pagination .page-item.active .page-link {
  background: var(--ld-accent);
  border-color: var(--ld-accent);
  color: white;
}

/* Alertas y notificaciones profesionales */
body.ld-body .alert {
  border-radius: var(--ld-radius-sm);
  border: 1.5px solid;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.ld-body .alert-success {
  background: var(--ld-success-light);
  border-color: var(--ld-success);
  color: #065f46;
}

body.ld-body .alert-danger {
  background: #fee2e2;
  border-color: var(--ld-error);
  color: #7f1d1d;
}

body.ld-body .alert-warning {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}

body.ld-body .alert-info {
  background: #dbeafe;
  border-color: var(--ld-info);
  color: #0c4a6e;
}

body.ld-body .alert strong {
  font-weight: 700;
}

/* Badges modernos */
body.ld-body .badge {
  padding: 0.4rem 0.7rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-block;
}

body.ld-body .badge-primary {
  background: var(--ld-accent-light);
  color: var(--ld-accent);
}

body.ld-body .badge-success {
  background: var(--ld-success-light);
  color: var(--ld-success);
}

body.ld-body .badge-danger {
  background: #fee2e2;
  color: var(--ld-error);
}

body.ld-body .badge-warning {
  background: #fef3c7;
  color: #92400e;
}

body.ld-body .badge-info {
  background: #dbeafe;
  color: var(--ld-info);
}

body.ld-body .badge-secondary {
  background: var(--ld-surface-elevated);
  color: var(--ld-text-muted);
}

/* Cards mejoradas */
body.ld-body .card {
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  background: var(--ld-menu-bg);
  transition: var(--ld-transition);
  margin-bottom: 1.5rem;
}

body.ld-body .card:hover {
  box-shadow: var(--ld-shadow-lg);
  border-color: var(--ld-accent-light);
}

body.ld-body .card-header {
  background: linear-gradient(135deg, var(--ld-accent-light), #f0f8ff);
  border-bottom: 1px solid var(--ld-border);
  padding: 1rem;
  font-weight: 700;
  color: var(--ld-accent);
}

body.ld-body .card-body {
  padding: 1.25rem;
}

body.ld-body .card-footer {
  background: var(--ld-surface-elevated);
  border-top: 1px solid var(--ld-border);
  padding: 1rem;
}

/* Panel/sección genérica profesional */
.ld-panel {
  background: var(--ld-menu-bg);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--ld-shadow);
}

.ld-panel-title {
  font-family: var(--ld-font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ld-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ld-accent-light);
}

/* Form groups mejorados */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
}

.form-group small {
  display: block;
  margin-top: 0.3rem;
  color: var(--ld-text-muted);
  font-size: 0.85rem;
}

/* Validaciones de formulario */
body.ld-body .form-control.is-invalid,
body.ld-body .form-control.is-invalid:focus {
  border-color: var(--ld-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

body.ld-body .form-control.is-valid,
body.ld-body .form-control.is-valid:focus {
  border-color: var(--ld-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

body.ld-body .invalid-feedback,
body.ld-body .valid-feedback {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

body.ld-body .invalid-feedback {
  color: var(--ld-error);
}

body.ld-body .valid-feedback {
  color: var(--ld-success);
}

/* Animaciones sutiles */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

body.ld-body {
  animation: fadeIn 0.4s ease-out;
}

.ld-fade-in {
  animation: fadeIn 0.4s ease-out;
}

.ld-slide-up {
  animation: slideInUp 0.5s ease-out;
}

.ld-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Estilos de carga/progreso */
body.ld-body .progress {
  height: 8px;
  border-radius: 10px;
  background: var(--ld-surface-elevated);
  overflow: hidden;
  border: 1px solid var(--ld-border);
}

body.ld-body .progress-bar {
  background: linear-gradient(90deg, var(--ld-accent), #2563eb);
  height: 100%;
  border-radius: 10px;
  animation: slideProgress 1s ease-out;
}

@keyframes slideProgress {
  from {
    width: 0 !important;
  }
}

/* Textos y utilidades */
.ld-text-lg {
  font-size: 1.15rem;
  line-height: 1.7;
}

.ld-text-sm {
  font-size: 0.85rem;
  line-height: 1.5;
}

.ld-font-brand {
  font-family: var(--ld-font-brand);
}

.ld-font-mono {
  font-family: "Courier New", monospace;
}

/* Espaciado y layout utilities */
.ld-gap-xs {
  gap: 0.5rem;
}

.ld-gap-sm {
  gap: 1rem;
}

.ld-gap-md {
  gap: 1.5rem;
}

.ld-gap-lg {
  gap: 2rem;
}

/* Flexbox utilities */
.ld-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ld-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hover effects */
.ld-hover-lift {
  transition: var(--ld-transition);
  cursor: pointer;
}

.ld-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--ld-shadow-lg);
}

/* Status indicators */
.ld-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.ld-status-active {
  background: var(--ld-success-light);
  color: var(--ld-success);
}

.ld-status-inactive {
  background: #f3f4f6;
  color: var(--ld-text-muted);
}

.ld-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.ld-status-error {
  background: #fee2e2;
  color: var(--ld-error);
}

.ld-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

html[data-tema="oscuro"] {
  color-scheme: dark;
  --ld-bg-deep: #12161c;
  --ld-bg: #12161c;
  --ld-surface: #1c232d;
  --ld-surface-elevated: #262f3b;
  --ld-border: #3a4554;
  --ld-text: #e8eef6;
  --ld-text-muted: #a8b3c2;
  --ld-accent: #6eb3ff;
  --ld-accent-dim: rgba(110, 179, 255, 0.16);
  --ld-accent-hover: #9cc9ff;
  --ld-accent-light: #1a2c42;
  --ld-warning-bg: #3a2e14;
  --ld-warning-text: #f6e2b3;
  --ld-warning-border: #8a6a2f;
  --ld-page-bg: linear-gradient(160deg, #10151c 0%, #1a2330 100%);
  --ld-strip-bg: linear-gradient(90deg, #1a2c42, #152033);
  --ld-navbar-bg: rgba(18, 24, 32, 0.96);
  --ld-menu-bg: #1c232d;
  --ld-input-bg: #151b24;
  --ld-table-bg: #1c232d;
  --ld-table-head-bg: linear-gradient(135deg, #1a2c42, #152033);
  --ld-footer-bg: #161c24;
  --ld-footer-border: #3a4554;
}

html[data-tema="oscuro"] .ld-navbar .navbar-toggler-icon {
  filter: invert(1);
}

html[data-tema="oscuro"] body.ld-body .alert-warning {
  background: var(--ld-warning-bg);
  color: var(--ld-warning-text);
  border-color: var(--ld-warning-border);
}

html[data-tema="oscuro"] body.ld-body select option {
  background: var(--ld-input-bg);
  color: var(--ld-text);
}

.ld-tema-btn {
  border: 1px solid var(--ld-border);
  background: var(--ld-menu-bg);
  color: var(--ld-text);
  border-radius: var(--ld-radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}

.ld-tema-btn:hover {
  background: var(--ld-accent-dim);
  color: var(--ld-accent);
}

.ld-footer {
  background: var(--ld-footer-bg);
  border-top: 1px solid var(--ld-footer-border);
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--ld-text-muted);
}
