/**
 * ECONS Materiales - Estilos Principales
 */
:root {
  --econs-primary: #1e3a8a;
  --econs-primary-dark: #172554;
  --econs-accent: #2563eb;
  --econs-accent-hover: #1d4ed8;
  --econs-gold: #d97706;
  --econs-dark: #0f172a;
  --econs-surface: #ffffff;
  --econs-bg-light: #f8fafc;
  --econs-border: #e2e8f0;
  --econs-text: #334155;
  --econs-text-muted: #64748b;
  --econs-radius: 12px;
  --econs-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Botones Globales ECONS */
.econs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
}
.econs-btn-primary {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.econs-btn-primary:hover {
  background: linear-gradient(135deg, #172554, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.econs-btn-secondary {
  background: #f1f5f9;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
}
.econs-btn-secondary:hover {
  background: #e2e8f0;
}
.econs-btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.econs-btn-whatsapp:hover {
  background: #1eb857;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.econs-btn-outline {
  background: transparent;
  color: #2563eb !important;
  border: 2px solid #2563eb;
}
.econs-btn-outline:hover {
  background: #2563eb;
  color: #ffffff !important;
}
.econs-btn-dark {
  background: #0f172a;
  color: #ffffff !important;
}
.econs-btn-dark:hover {
  background: #1e293b;
}
.econs-btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}
.econs-btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}
.econs-btn-block {
  display: flex;
  width: 100%;
}

/* Badges y Pills */
.econs-badge-sm {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}
.econs-badge-gold {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}
.econs-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 12px;
  border-radius: 9999px;
}

/* Portal de Clientes & Login */
.econs-login-wrapper {
  max-width: 480px;
  margin: 60px auto;
  padding: 0 16px;
}
.econs-login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: var(--econs-shadow);
  text-align: center;
}
.econs-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1e3a8a;
  background: #dbeafe;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}
.econs-login-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.econs-login-sub {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.5;
}
.econs-form-group {
  text-align: left;
  margin-bottom: 20px;
}
.econs-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.econs-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.econs-input-with-icon input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.econs-input-with-icon input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.econs-toggle-pass {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}
.econs-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
}
.econs-msg-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.econs-msg-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.econs-login-footer {
  margin-top: 24px;
  font-size: 13px;
  color: #64748b;
}

/* Dashboard de Clientes */
.econs-dashboard {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.econs-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  gap: 20px;
  flex-wrap: wrap;
}
.econs-dash-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 6px 0;
}
.econs-dash-header p {
  color: #64748b;
  margin: 0;
  font-size: 15px;
}
.econs-dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.econs-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.econs-kpi-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}
.econs-kpi-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.econs-kpi-trend {
  font-size: 12px;
  color: #64748b;
}
.text-green {
  color: #059669 !important;
}

/* Tracking en Vivo */
.econs-tracking-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--econs-shadow);
}
.econs-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.econs-section-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.econs-tag {
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 6px;
}
.econs-tracking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.econs-unit-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}
.econs-unit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.econs-badge-truck {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.econs-badge-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.status-moving {
  background: #ecfdf5;
  color: #047857;
}
.status-delivering {
  background: #fef3c7;
  color: #b45309;
}
.econs-unit-dest, .econs-unit-cargo {
  font-size: 13px;
  color: #334155;
  margin: 4px 0;
}
.econs-progress-bar {
  background: #e2e8f0;
  height: 8px;
  border-radius: 9999px;
  margin: 16px 0 8px 0;
  overflow: hidden;
}
.econs-progress-fill {
  background: #2563eb;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}
.econs-progress-fill.status-complete {
  background: #059669;
}
.econs-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

/* Tabla Documentación */
.econs-docs-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--econs-shadow);
}
.econs-docs-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px 0;
}
.econs-docs-table-wrapper {
  overflow-x: auto;
}
.econs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.econs-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e2e8f0;
}
.econs-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
}
.econs-table tr:hover td {
  background: #f8fafc;
}
