/* =========================================================
   CONCREMOVIL · Estilos profesionales
   Diseño industrial · mobile-first · paleta corporativa
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Concremovil brand (extracted from logo) */
  --brand-black: #1a1a18;
  --brand-gray:  #a3acb1;
  --brand-red:   #903d39;
  --brand-red-hi: #a8504a;
  --brand-red-glow: rgba(144, 61, 57, 0.22);

  /* Light theme surfaces */
  --bg: #ffffff;
  --surface: #f8f9fa;
  --surface-2: #f1f3f5;
  --surface-3: #e9ecef;

  /* Borders */
  --border: #e5e7eb;
  --border-light: #d1d5db;
  --border-strong: #9ca3af;

  /* Text */
  --text: #111827;
  --text-muted: #4b5563;
  --text-dim: #6b7280;
  --text-dimmer: #9ca3af;

  /* Accent (maps to brand) */
  --accent: #903d39;
  --accent-hover: #a8504a;
  --accent-text: #ffffff;

  /* Functional */
  --link: #1d4ed8;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;

  /* Status colors - traffic light style */
  --st-pendiente: #6b7378;
  --st-asignado: #64748b;
  --st-en_camino: #2563eb;
  --st-en_obra: #7c3aed;
  --st-bombeando: #ea580c;
  --st-fin_bombeo: #059669;
  --st-lavando: #0891b2;
  --st-completado: #16a34a;

  /* Shadows · visibles en fondo claro */
  --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.15);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);

  /* Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --tr-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --tr: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--brand-red); color: white; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-red-hi);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--brand-red-glow);
}

.font-display { font-family: 'Archivo Black', sans-serif; letter-spacing: 0.01em; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- Layout ---------- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 1000px; margin: 0 auto;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand__img {
  height: 36px;
  width: auto;
  display: block;
}
.brand__logo {
  width: 42px; height: 42px;
  background: var(--brand-black);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.04);
}
.brand__name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.03em;
}
.brand__name-gray { color: var(--brand-gray); }
.brand__name-red  { color: var(--brand-red-hi); }
.brand__tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Login page brand */
.login-card__brand-img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto 8px;
}

.site-header__nav {
  display: flex; gap: 2px;
  max-width: 1000px; margin: 0 auto;
  padding: 0 12px;
  border-top: 1px solid var(--border);
}
.tab {
  flex: 1; text-align: center;
  padding: 12px 8px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--tr-fast), border-color var(--tr-fast), background var(--tr-fast);
  position: relative;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.tab.is-active {
  color: var(--text);
  border-bottom-color: var(--brand-red-hi);
  background: linear-gradient(180deg, transparent 0%, rgba(160, 28, 15, 0.08) 100%);
}

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0 0 6px; }
.page-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.page-subtitle { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.section-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all var(--tr-fast);
}
.btn:focus-visible {
  outline: 2px solid var(--brand-red-hi);
  outline-offset: 2px;
}
.btn:disabled { cursor: not-allowed; pointer-events: none; }

/* Primary - brand red with elevation */
.btn--primary {
  background: linear-gradient(180deg, #a8504a 0%, #903d39 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 1px 2px rgba(0,0,0,0.5),
    0 0 0 0 var(--brand-red-glow);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #b35d57 0%, #9c453f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 2px 6px rgba(0,0,0,0.6),
    0 0 0 4px var(--brand-red-glow);
  text-decoration: none; color: #fff;
}
.btn--primary:active {
  background: linear-gradient(180deg, #6d1209 0%, #722f2c 100%);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.4),
    0 0 0 0 var(--brand-red-glow);
  transform: translateY(1px);
}
.btn--primary:disabled {
  background: var(--surface-2);
  color: var(--text-dimmer);
  border-color: var(--border);
  box-shadow: none;
}

/* Secondary - surface with border */
.btn--secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-light);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), var(--shadow-sm);
}
.btn--secondary:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  text-decoration: none; color: var(--text);
}
.btn--secondary:active {
  background: var(--surface);
  transform: translateY(1px);
}

/* Ghost - text only, hover bg */
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

/* Danger */
.btn--danger {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: white;
  border-color: rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 2px rgba(0,0,0,0.4);
}
.btn--danger:hover {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: white; text-decoration: none;
}

/* Nav - blue (separate from brand) */
.btn--nav {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 2px 8px rgba(37, 99, 235, 0.3),
    0 1px 2px rgba(0,0,0,0.4);
  padding: 14px 18px;
  font-size: 15px;
}
.btn--nav:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 4px 16px rgba(37, 99, 235, 0.5),
    0 1px 2px rgba(0,0,0,0.4);
  color: white; text-decoration: none;
}
.btn--nav:active { transform: translateY(1px); }

/* Sizes */
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--full { width: 100%; }
.btn--icon { padding: 9px; width: 38px; height: 38px; }

/* ---------- Push button (operador) - big tactile status notifier ---------- */
.push-btn {
  position: relative;
  width: 100%;
  padding: 20px;
  border-radius: var(--radius-lg);
  font-family: 'Archivo Black', sans-serif;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: white;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.4);
  transition: all var(--tr-fast);
  overflow: hidden;
}
.push-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.push-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.4);
}
.push-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--tr-fast), background var(--tr-fast);
}
.card:hover {
  border-color: var(--border-light);
}
.card__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 14px;
}
.card__id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.card__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-top: 2px;
}
.card__subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ---------- Stats grid ---------- */
.stats-grid {
  display: grid; gap: 12px;
  margin-bottom: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.stats-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid--4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid--2 { grid-template-columns: repeat(2, 1fr); }

.stat__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 600;
}
.stat__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.stat__value--accent {
  color: var(--brand-red-hi);
  font-weight: 700;
}

/* ---------- Status badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  border: 1px solid;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 7px;
  display: block;
  font-weight: 600;
}
.field__hint { font-size: 12px; color: var(--text-dim); margin-top: 5px; }
.field__error {
  font-size: 12px;
  color: var(--warning);
  margin-top: 5px;
  padding: 8px 12px;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Autocomplete ---------- */
.autocomplete { position: relative; }
.autocomplete__input { padding-left: 38px; padding-right: 38px; }
.autocomplete__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  width: 16px; height: 16px;
}
.autocomplete__spin {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid var(--border-light);
  border-top-color: var(--brand-red-hi);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.autocomplete__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim);
  padding: 6px;
  border-radius: 4px;
  transition: all var(--tr-fast);
}
.autocomplete__clear:hover {
  color: var(--text);
  background: var(--surface-2);
}

.autocomplete__list {
  position: absolute; z-index: 20;
  top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}
.autocomplete__item {
  display: flex; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  width: 100%;
  align-items: flex-start;
  transition: background var(--tr-fast);
}
.autocomplete__item:last-child { border-bottom: none; }
.autocomplete__item:hover { background: var(--surface-3); }
.autocomplete__item-icon {
  color: var(--brand-red-hi);
  flex-shrink: 0;
  margin-top: 2px;
}
.autocomplete__item-text { font-size: 13px; color: var(--text); line-height: 1.4; }
.autocomplete__item-coords {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.autocomplete__empty {
  position: absolute; z-index: 20;
  top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 12px;
  color: var(--text-muted);
  box-shadow: var(--shadow-md);
}

.preview {
  margin-top: 14px;
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.preview__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: rgba(22, 163, 74, 0.12);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--success);
  border-bottom: 1px solid rgba(22, 163, 74, 0.2);
}
.preview__link { color: #1d4ed8; font-size: 11px; font-weight: 500; }
.preview__map {
  width: 100%; height: 200px; border: none; display: block;
}
.preview__coords {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--text-muted);
  border-top: 1px solid rgba(22, 163, 74, 0.2);
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 200ms ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 24px; }
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 640px) {
  .modal { border-radius: var(--radius-xl); }
}
.modal__header {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.modal__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 19px;
  letter-spacing: -0.005em;
}
.modal__body { padding: 18px; flex: 1; }
.modal__footer {
  position: sticky; bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  display: flex; gap: 10px;
}

/* ---------- Status flow grid (operator) ---------- */
.status-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin-top: 12px;
}
.status-grid__item {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
  transition: all var(--tr-fast);
  font-weight: 600;
}
.status-grid__item:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  color: var(--text);
}
.status-grid__item.is-past {
  opacity: 0.35;
}
.status-grid__item.is-current {
  font-weight: 800;
  box-shadow: 0 0 0 2px currentColor, inset 0 0 12px rgba(0,0,0,0.06);
}

/* ---------- Timeline ---------- */
.timeline {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px; margin-top: 14px;
  position: relative;
  gap: 2px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 20px; left: 6%; right: 6%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline__step {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative;
}
.timeline__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border-light);
  border: 2px solid var(--surface);
  z-index: 1;
}
.timeline__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dimmer);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  word-break: break-word;
  hyphens: auto;
  padding: 0 1px;
}
.timeline__step.is-hit .timeline__label { color: var(--text-muted); }
.timeline__step.is-current .timeline__label { color: var(--text); }
.timeline__time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 1px;
}

/* ---------- GPS bar ---------- */
.gps-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.gps-bar__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-dimmer);
  flex-shrink: 0;
}
.gps-bar__dot--ok {
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
.gps-bar__dot--denied { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.gps-bar__dot--requesting {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }

.gps-bar__info { flex: 1; min-width: 0; }
.gps-bar__status { font-size: 13px; font-weight: 600; }
.gps-bar__coords {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

/* ---------- Location block (operator) ---------- */
.location-block {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}
.location-block__address {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}
.location-block__verified {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--success);
  display: inline-flex; align-items: center; gap: 5px;
  margin-bottom: 12px;
  padding: 5px 9px;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 4px;
}

/* ---------- Filters ---------- */
.filters {
  display: inline-flex; gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.filters__btn {
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-radius: 5px;
  transition: all var(--tr-fast);
}
.filters__btn:hover { color: var(--text); }
.filters__btn.is-active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}
.empty__icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  opacity: 0.35;
}
.empty__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 19px;
  color: var(--text-muted);
}
.empty__subtitle { font-size: 14px; margin-top: 6px; }

/* ---------- Role picker (index) ---------- */
.role-grid {
  display: grid; gap: 14px;
  margin-top: 28px;
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; align-items: center; gap: 18px;
  text-decoration: none; color: var(--text);
  transition: all var(--tr);
  box-shadow: var(--shadow-card);
}
.role-card:hover {
  border-color: var(--brand-red);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--brand-red);
}
.role-card__icon {
  width: 60px; height: 60px;
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-red-hi);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.role-card__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  letter-spacing: -0.005em;
}
.role-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.5;
}

/* ---------- Operator: pump picker ---------- */
.pump-list { display: grid; gap: 10px; margin-top: 20px; }
.pump-list__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left;
  cursor: pointer;
  transition: all var(--tr-fast);
  box-shadow: var(--shadow-card);
}
.pump-list__item:hover {
  background: var(--surface-2);
  border-color: var(--brand-red);
  transform: translateX(2px);
}
.pump-list__economico {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.pump-list__modelo {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ---------- My pump banner (operator) ---------- */
.my-pump {
  background: linear-gradient(135deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-red-hi);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.my-pump__badge {
  width: 54px; height: 54px;
  background: linear-gradient(180deg, #a8504a 0%, #722f2c 100%);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    var(--shadow-sm);
}
.my-pump__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  font-weight: 600;
}
.my-pump__modelo {
  font-weight: 600;
  margin-top: 2px;
  color: var(--text);
}
.my-pump__change {
  margin-left: auto;
  font-size: 11px;
  text-decoration: underline;
  background: none;
  color: var(--text-muted);
  padding: 8px;
  border-radius: 4px;
  transition: color var(--tr-fast);
}
.my-pump__change:hover { color: var(--text); }

/* ---------- Toast notifications ---------- */
.toast-container {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
@media (min-width: 640px) {
  .toast-container { left: auto; right: 24px; bottom: 24px; max-width: 360px; }
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--success);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.toast--error { border-left-color: var(--danger); }
.toast--info { border-left-color: var(--brand-red-hi); }
.toast--warning { border-left-color: var(--warning); }
.toast.is-leaving { animation: toastOut 200ms ease-in forwards; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(10px); opacity: 0; } }

/* ---------- Utilities ---------- */
.muted { color: var(--text-dim); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.hidden { display: none !important; }

/* ---------- SVG icons ---------- */
.icon {
  width: 16px; height: 16px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 22px; height: 22px; }
.icon--sm { width: 13px; height: 13px; }
.icon--xl { width: 28px; height: 28px; }

/* ---------- Login screen ---------- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(119, 21, 12, 0.12), transparent 60%),
    radial-gradient(circle at bottom left, rgba(149, 160, 166, 0.06), transparent 60%),
    var(--bg);
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: slideUp 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.login-card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.login-card__brand-logo {
  width: 64px; height: 64px;
  background: var(--brand-black);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.05);
}
.login-card__brand-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.login-card__brand-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
  font-weight: 500;
}
.login-card__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 19px;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.login-card__subtitle {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 24px;
}
.login-card__error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #991b1b;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.login-card__hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.login-card__hint-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.login-card__hint-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--tr-fast);
  border-radius: 4px;
  padding-left: 8px; padding-right: 8px;
}
.login-card__hint-row:hover {
  color: var(--text);
  background: var(--surface-2);
}
.login-card__hint-row strong {
  font-weight: 700;
  color: var(--brand-red-hi);
}

/* ---------- User info bar (en header) ---------- */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.user-info__detail {
  text-align: right;
  line-height: 1.25;
}
.user-info__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.user-info__role {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-red-hi);
  font-weight: 700;
  margin-top: 2px;
}

/* =========================================================
   Sub-tabs (dentro de páginas)
   ========================================================= */
.subtabs {
  display: flex; gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.subtabs__btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-radius: 5px;
  text-align: center;
  transition: all var(--tr-fast);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.subtabs__btn:hover { color: var(--text); }
.subtabs__btn.is-active {
  background: linear-gradient(180deg, #a8504a 0%, #903d39 100%);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), var(--shadow-sm);
}

/* =========================================================
   Wizard (asistente de pedido)
   ========================================================= */
.wizard-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center;
  padding: 0;
  animation: fadeIn 200ms ease-out;
}
@media (min-width: 768px) {
  .wizard-overlay { padding: 24px; align-items: center; }
}
.wizard {
  background: var(--surface);
  border: 1px solid var(--border-light);
  width: 100%; max-width: 600px;
  display: flex; flex-direction: column;
  max-height: 100vh;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .wizard { border-radius: var(--radius-xl); max-height: 92vh; }
}
.wizard__header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.wizard__close {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--tr-fast);
}
.wizard__close:hover {
  background: var(--surface-3); color: var(--text);
}
.wizard__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  letter-spacing: -0.005em;
}
.wizard__stepper {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
  font-weight: 600;
}
.wizard__body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}
.wizard__hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.wizard__footer {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.wizard__progress {
  display: flex; gap: 5px;
  flex: 1; justify-content: center;
}
.progress-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: all var(--tr-fast);
}
.progress-dot.is-done { background: var(--brand-red-hi); }
.progress-dot.is-active {
  background: var(--brand-red-hi);
  box-shadow: 0 0 0 3px var(--brand-red-glow);
  width: 24px;
  border-radius: 4px;
}
.wizard__legend {
  display: flex; gap: 14px;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 14px;
  align-items: center;
  justify-content: center;
}
.wizard__legend .legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.legend-dot.is-light  { background: #16a34a; }
.legend-dot.is-medium { background: #ea580c; }
.legend-dot.is-heavy  { background: var(--brand-red-hi); }
.wizard__detail-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-red-hi);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* ---------- Calendar ---------- */
.calendar { user-select: none; }
.calendar__head {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 6px;
  font-weight: 700;
}
.calendar__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.calendar__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
  padding: 4px;
}
.calendar__cell:hover {
  background: var(--surface-3); border-color: var(--border-strong);
}
.calendar__cell--empty {
  background: transparent; border-color: transparent; pointer-events: none;
}
.calendar__cell-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  line-height: 1;
}
.calendar__cell-mo {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 2px;
}
.calendar__cell-count {
  position: absolute;
  top: 3px; right: 3px;
  background: var(--brand-red-hi);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  min-width: 14px;
  text-align: center;
}
.calendar__cell.is-today {
  border-color: var(--brand-red-hi);
}
.calendar__cell.is-today .calendar__cell-num {
  color: var(--brand-red-hi);
}
.calendar__cell.is-light  { background: rgba(22, 163, 74, 0.12); border-color: rgba(22, 163, 74, 0.3); }
.calendar__cell.is-medium { background: rgba(234, 88, 12, 0.12); border-color: rgba(234, 88, 12, 0.3); }
.calendar__cell.is-heavy  { background: rgba(160, 28, 15, 0.18); border-color: rgba(160, 28, 15, 0.4); }
.calendar__cell.is-selected {
  background: linear-gradient(180deg, #a8504a 0%, #903d39 100%) !important;
  border-color: var(--brand-red-hi) !important;
  box-shadow: 0 0 0 3px var(--brand-red-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.calendar__cell.is-selected .calendar__cell-num,
.calendar__cell.is-selected .calendar__cell-mo {
  color: white !important;
}
.calendar__cell.is-selected .calendar__cell-count {
  background: rgba(0,0,0,0.4);
}

/* ---------- Window cards ---------- */
.window-list { display: grid; gap: 10px; }
.window-card {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: all var(--tr-fast);
  display: flex; flex-direction: column; gap: 5px;
}
.window-card:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  transform: translateX(2px);
}
.window-card__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
}
.window-card__time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}
.window-card__count {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.window-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--brand-red-hi);
}
.window-card.is-selected {
  background: linear-gradient(180deg, #a8504a 0%, #903d39 100%);
  border-color: var(--brand-red-hi);
  box-shadow: 0 0 0 3px var(--brand-red-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.window-card.is-selected * { color: white !important; }

/* ---------- Toggle cards (adicionales) ---------- */
.toggle-list { display: grid; gap: 10px; }
.toggle-card {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: all var(--tr-fast);
  text-align: left;
}
.toggle-card:hover { background: var(--surface-3); }
.toggle-card.is-active {
  background: rgba(160, 28, 15, 0.1);
  border-color: var(--brand-red-hi);
}
.toggle-card__icon {
  width: 44px; height: 44px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-red-hi);
  flex-shrink: 0;
}
.toggle-card.is-active .toggle-card__icon {
  background: var(--brand-red-hi); color: white;
  border-color: var(--brand-red-hi);
}
.toggle-card__body { flex: 1; }
.toggle-card__title { font-weight: 600; }
.toggle-card__desc { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.toggle-card__switch {
  width: 44px; height: 24px;
  background: var(--border-strong);
  border-radius: 12px;
  position: relative;
  transition: background var(--tr-fast);
  flex-shrink: 0;
}
.toggle-card__switch::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--tr-fast);
  box-shadow: var(--shadow-sm);
}
.toggle-card__switch.is-on { background: var(--brand-red-hi); }
.toggle-card__switch.is-on::after { transform: translateX(20px); }

/* ---------- Segmented control ---------- */
.seg {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}
.seg__btn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 5px;
  transition: all var(--tr-fast);
}
.seg__btn:hover { color: var(--text); }
.seg__btn.is-active {
  background: var(--brand-red-hi);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ---------- Chips (multi-select) ---------- */
.chip-list {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  padding: 7px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--tr-fast);
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active {
  background: var(--brand-red-hi);
  border-color: var(--brand-red-hi);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.chip--small {
  padding: 4px 9px;
  font-size: 11px;
  border-radius: 14px;
}
.chip--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f3f4f6;
  color: #9ca3af;
  border-style: dashed;
}
.chip--disabled:hover { opacity: 0.55; color: #6b7280; }

/* ---------- Pedido cancelado (tabla + card) ---------- */
tr.is-cancelado { background: #fef2f2 !important; opacity: 0.75; }
tr.is-cancelado td { text-decoration: line-through; color: #991b1b; }
tr.is-cancelado td .badge,
tr.is-cancelado td button { text-decoration: none; }

.card.is-cancelado,
.service-card.is-cancelado {
  border-left: 4px solid #dc2626 !important;
  background: #fef2f2;
  opacity: 0.92;
}
.card.is-cancelado .card-header *,
.card.is-cancelado .card-body *:not(.badge):not(button):not(.svc-cancel-banner):not(.svc-cancel-banner *) {
  text-decoration: line-through;
  color: #991b1b !important;
}
.svc-cancel-banner {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin: 8px 0;
}

/* ---------- Chips de condiciones (modal planta) ---------- */
.cond-chip {
  padding: 5px 10px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s;
}
.cond-chip:hover { background: #e5e7eb; color: #111827; }
.cond-chip.is-active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

/* ---------- Pump card (for despacho/bombas) ---------- */
.pump-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.pump-card.is-out { border-left-color: var(--danger); opacity: 0.85; }
.pump-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}
.pump-card__economico {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
}
.pump-card__modelo { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.pump-card__motivo {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius);
  font-size: 12px;
  color: #991b1b;
}

/* ---------- Time slot picker (wizard step 2) ---------- */
.time-slot {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--brand-red-hi);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 0 0 3px var(--brand-red-glow);
  animation: slideUp 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.time-slot__label { flex: 1; }
.time-slot__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.time-slot__hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.time-slot input[type="time"] {
  width: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  font-weight: 700;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  text-align: center;
  color-scheme: dark;
}
.time-slot input[type="time"]:focus {
  border-color: var(--brand-red-hi);
}

/* =========================================================
   Emergencia
   ========================================================= */
.btn--emergency {
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 12px;
  transition: all var(--tr-fast);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 14px rgba(220, 38, 38, 0.32),
    0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn--emergency:hover {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 22px rgba(220, 38, 38, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn--emergency:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(220, 38, 38, 0.3);
}

.emergency-banner {
  background: linear-gradient(180deg, rgba(220,38,38,0.22) 0%, rgba(220,38,38,0.10) 100%);
  border: 1px solid rgba(220, 38, 38, 0.55);
  border-left: 4px solid #dc2626;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  margin: 12px 0;
  position: relative;
}
.emergency-banner::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  animation: emergencyPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes emergencyPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  50%     { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
.emergency-banner__icon {
  width: 36px; height: 36px;
  background: #dc2626;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}
.emergency-banner__body { flex: 1; min-width: 0; }
.emergency-banner__title {
  font-weight: 700;
  font-size: 12px;
  color: #7f1d1d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.emergency-banner__desc {
  font-size: 12px;
  color: var(--text);
  margin-top: 4px;
  word-break: break-word;
}
.emergency-banner__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
}

.emergency-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.emergency-option {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--tr-fast);
  text-align: center;
}
.emergency-option:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}
.emergency-option.is-active {
  background: rgba(220, 38, 38, 0.15);
  border-color: #dc2626;
  color: #7f1d1d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 3px rgba(220, 38, 38, 0.18);
}

/* =========================================================
   Map picker (Leaflet modal para colocar pin manual)
   ========================================================= */
.address-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.address-actions .btn { width: 100%; }

.map-picker-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center;
  padding: 0;
  animation: fadeIn 180ms ease-out;
}
@media (min-width: 768px) {
  .map-picker-overlay { padding: 24px; align-items: center; }
}
.map-picker {
  background: var(--surface);
  border: 1px solid var(--border-light);
  width: 100%; max-width: 720px;
  display: flex; flex-direction: column;
  max-height: 100vh;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .map-picker { border-radius: var(--radius-xl); max-height: 92vh; }
}
.map-picker__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.map-picker__body {
  padding: 14px 18px;
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.map-picker__hint {
  font-size: 13px;
  color: var(--text-muted);
}
.map-picker__map {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  /* Required by Leaflet */
  position: relative;
}
@media (max-height: 700px) {
  .map-picker__map { height: 320px; }
}
.map-picker__info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 60px;
}
.map-picker__footer {
  display: flex; gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

/* Override Leaflet defaults to fit our dark theme */
.leaflet-container {
  background: var(--bg);
  font-family: 'IBM Plex Sans', sans-serif;
}
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85) !important;
  color: var(--text-dim) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a {
  color: var(--text-muted) !important;
}
.leaflet-control-zoom a {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border-light) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--surface-3) !important;
}

/* =========================================================
   Date strip (despacho · ±14 días)
   ========================================================= */
.date-strip-wrap {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 8px;
}
.date-strip__arrow {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 8px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--tr-fast);
}
.date-strip__arrow:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-strong); }
.date-strip {
  display: flex; gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex: 1;
  padding: 2px 0;
}
.date-strip::-webkit-scrollbar { height: 4px; }
.date-strip::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
.date-pill {
  flex-shrink: 0;
  min-width: 58px;
  padding: 8px 4px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  text-align: center;
  cursor: pointer;
  scroll-snap-align: center;
  transition: all var(--tr-fast);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.date-pill:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}
.date-pill.is-past { opacity: 0.6; }
.date-pill.is-today {
  border-color: var(--brand-red-hi);
}
.date-pill.is-today .date-pill__num { color: var(--brand-red-hi); }
.date-pill.is-selected {
  background: linear-gradient(180deg, #a8504a 0%, #903d39 100%);
  border-color: var(--brand-red-hi);
  box-shadow: 0 0 0 3px var(--brand-red-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  opacity: 1;
}
.date-pill.is-selected * { color: white !important; }
.date-pill__day {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}
.date-pill__num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  color: var(--text);
  line-height: 1;
}
.date-pill__month {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- View toggle (cards/tabla) + date label ---------- */
.view-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.view-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}
.view-toggle__btn {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 5px;
  transition: all var(--tr-fast);
  display: inline-flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.view-toggle__btn:hover { color: var(--text); }
.view-toggle__btn.is-active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ---------- Data table ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin-bottom: 12px;
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 980px;
}
.data-table thead th {
  background: var(--surface-2);
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.data-table thead th.num { text-align: right; }
.data-table thead th.actions { text-align: center; width: 80px; }
.data-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody td.num { text-align: right; }
.data-table tbody td.actions { text-align: center; }
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table tbody tr.has-emergency td {
  background: rgba(220, 38, 38, 0.06);
}
.data-table tbody tr.has-emergency td:first-child {
  box-shadow: inset 3px 0 0 #dc2626;
}

.row-assign { display: flex; gap: 6px; align-items: center; min-width: 220px; }
.row-assign__select {
  font-size: 12px; padding: 6px 8px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  max-width: 130px;
  flex: 1;
}
.row-assign .btn--primary {
  white-space: nowrap;
  letter-spacing: 0.08em;
  font-size: 11px;
  padding: 7px 10px;
  flex-shrink: 0;
}

/* =========================================================
   Mapa en vivo (despacho)
   ========================================================= */
.map-live-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px) {
  .map-live-wrap {
    grid-template-columns: 1fr 320px;
  }
}
.map-live {
  width: 100%;
  height: 60vh;
  min-height: 360px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.pump-status-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
}

/* ===== Camiones GPS tab ===== */
.cam-kpis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
@media (min-width: 900px) {
  .cam-kpis-grid { grid-template-columns: repeat(6, 1fr); }
}
.cam-kpi {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}
.cam-kpi__label {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cam-kpi__value {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Roboto Mono', monospace;
}
.cam-kpi.cam-kpi--en-planta    { border-color: #16a34a; }
.cam-kpi.cam-kpi--en-planta .cam-kpi__value    { color: #15803d; }
.cam-kpi.cam-kpi--cargando     { border-color: #f59e0b; }
.cam-kpi.cam-kpi--cargando .cam-kpi__value     { color: #d97706; }
.cam-kpi.cam-kpi--salio-planta { border-color: #2563eb; }
.cam-kpi.cam-kpi--salio-planta .cam-kpi__value { color: #1e40af; }
.cam-kpi.cam-kpi--llego-obra   { border-color: #7c3aed; }
.cam-kpi.cam-kpi--llego-obra .cam-kpi__value   { color: #6d28d9; }
.cam-kpi.cam-kpi--descargando  { border-color: #dc2626; }
.cam-kpi.cam-kpi--descargando .cam-kpi__value  { color: #991b1b; }
.cam-kpi.cam-kpi--salio-obra   { border-color: #0891b2; }
.cam-kpi.cam-kpi--salio-obra .cam-kpi__value   { color: #0e7490; }

/* Mapa de camiones a ancho completo */
.cam-map-large {
  width: 100%;
  height: 55vh;
  min-height: 380px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

/* Tabla horizontal de avance por camión */
.cam-table-wrap {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cam-table-scroll {
  overflow-x: auto;
  max-height: 50vh;
  overflow-y: auto;
}
.cam-progress-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 1000px;
}
.cam-progress-table th {
  padding: 9px 10px;
  background: #f9fafb;
  font-weight: 700;
  text-align: left;
  font-size: 10.5px;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 5;
}
.cam-progress-table th.sticky-col {
  position: sticky;
  left: 0;
  z-index: 6;
  background: #f9fafb;
}
.cam-progress-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  white-space: nowrap;
}
.cam-progress-table td.sticky-col {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 3;
  font-family: 'Roboto Mono', monospace;
  font-weight: 800;
  font-size: 13px;
  border-right: 1px solid var(--border);
}
.cam-progress-table tbody tr:hover { background: #fafafa; }
.cam-progress-table tbody tr:hover td.sticky-col { background: #fafafa; }

.cam-ts-cell {
  font-family: 'Roboto Mono', monospace;
  font-size: 11.5px;
  color: #15803d;
  font-weight: 600;
}
.cam-ts-cell.is-empty { color: #d1d5db; font-weight: 400; }
.cam-ts-cell.is-current {
  background: #fef3c7;
  color: #92400e;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid #fcd34d;
}

.cam-state-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Eliminar el viejo cam-list (ya no se usa) */
.cam-list { display: none; }
.pump-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--tr-fast);
}
.pump-row:hover { background: var(--surface-3); }
.pump-row.has-emergency {
  border-color: rgba(220, 38, 38, 0.5);
  background: rgba(220, 38, 38, 0.06);
}
.pump-row__dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.pump-row__main { flex: 1; min-width: 0; }
.pump-row__economico {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  line-height: 1;
}
.pump-row__sub {
  font-size: 11px; color: var(--text-dim);
  margin-top: 3px;
}
.pump-row__status {
  text-align: right;
  min-width: 90px;
}
.pump-row__locate {
  flex-shrink: 0; padding: 6px;
  width: 32px; height: 32px;
}

/* ---------- Custom pump marker on map ---------- */
.pump-marker-wrap { background: none !important; border: none !important; }
.pump-marker {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
}
.pump-marker__pin {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--brand-red);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  position: relative;
}
.pump-marker__pin::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
}
.pump-marker__label {
  margin-top: 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* Leaflet popup styling for dark theme */
.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius) !important;
}
.leaflet-popup-tip {
  background: var(--surface) !important;
  border: 1px solid var(--border-light);
}
.leaflet-popup-content {
  color: var(--text) !important;
  font-family: 'IBM Plex Sans', sans-serif;
}
.leaflet-popup-content strong { color: var(--text); }
.leaflet-popup-close-button {
  color: var(--text-muted) !important;
}

/* =========================================================
   Admin panel · access tiles
   ========================================================= */
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .access-grid { grid-template-columns: repeat(4, 1fr); }
}

.access-tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--tr-fast);
  position: relative;
  overflow: hidden;
}
.access-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red-hi), var(--brand-red));
  opacity: 0.7;
}
.access-tile:hover {
  background: var(--surface-2);
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.access-tile__icon {
  width: 44px; height: 44px;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: var(--brand-red);
}
.access-tile__icon svg { width: 22px; height: 22px; }
.access-tile__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 17px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.access-tile__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ============================================================
   Client Picker (buscador inteligente para clientes en wizard)
   ============================================================ */
.client-picker {
  position: relative;
  flex: 1;
  min-width: 0;
}

.client-picker__input {
  width: 100%;
  padding: 12px 38px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.client-picker__input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(144, 61, 57, 0.12);
}

.client-picker__input::placeholder {
  color: var(--text-dim);
}

.client-picker__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--surface-3, #e9ecef);
  color: var(--text-muted, #6c757d);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: 500;
}

.client-picker__clear:hover {
  background: var(--brand-red);
  color: #fff;
}

.client-picker__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  -webkit-overflow-scrolling: touch;
}

.client-picker__dropdown.hidden {
  display: none;
}

.client-picker__item {
  display: block;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light, #f1f3f5);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  line-height: 1.35;
}

.client-picker__item:last-child {
  border-bottom: none;
}

.client-picker__item:hover,
.client-picker__item:focus,
.client-picker__item:active {
  background: var(--surface-2, #f8f9fa);
  outline: none;
}

.client-picker__empty,
.client-picker__more {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted, #6c757d);
}

.client-picker__more {
  background: var(--surface-2, #f8f9fa);
  border-top: 1px solid var(--border-light, #f1f3f5);
  font-style: italic;
}

/* ============================================================
   Tipo de Servicio (paso 0 del wizard: BOMBEADO vs TIRO DIRECTO)
   ============================================================ */
.tipo-servicio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .tipo-servicio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.tipo-servicio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--surface, #fff);
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  color: var(--text);
}

.tipo-servicio-card:hover {
  border-color: var(--brand-red);
  background: var(--surface-2, #f8f9fa);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tipo-servicio-card.is-active {
  border-color: var(--brand-red);
  background: rgba(144, 61, 57, 0.05);
  box-shadow: 0 4px 12px rgba(144, 61, 57, 0.15);
}

.tipo-servicio-card__icon {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-red);
}

.tipo-servicio-card__icon svg {
  width: 100%;
  height: 100%;
}

.tipo-servicio-card__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--text);
}

.tipo-servicio-card__desc {
  font-size: 13px;
  color: var(--text-muted, #6c757d);
  line-height: 1.4;
}

/* ============================================================
   Badge de tipo de servicio (en summaries, cards, tablas)
   ============================================================ */
.tipo-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.tipo-badge--bomb {
  background: rgba(144, 61, 57, 0.12);
  color: var(--brand-red);
  border: 1px solid rgba(144, 61, 57, 0.3);
}

.tipo-badge--td {
  background: rgba(13, 102, 122, 0.12);
  color: #0d667a;
  border: 1px solid rgba(13, 102, 122, 0.3);
}

/* ============================================================
   Time-only picker (paso 2 alternativo para TIRO DIRECTO)
   ============================================================ */
.time-only-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: var(--surface, #fff);
  border: 2px solid var(--brand-red);
  border-radius: 14px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(144, 61, 57, 0.08);
}

@media (max-width: 480px) {
  .time-only-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
}

.time-only-card__label {
  flex: 1;
}

.time-only-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.time-only-card__hint {
  font-size: 13px;
  color: var(--text-muted, #6c757d);
}

.time-only-card__input {
  font-size: 28px;
  font-weight: 700;
  font-family: inherit;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2, #f8f9fa);
  color: var(--brand-red);
  letter-spacing: 0.02em;
  text-align: center;
  min-width: 140px;
}

.time-only-card__input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(144, 61, 57, 0.12);
}

.time-only-card__info {
  margin-top: 14px;
  padding: 8px 12px;
  background: var(--surface-2, #f8f9fa);
  border-radius: 8px;
}

/* ============================================================
   Dispatch Table — vista compacta de despacho (>=25 filas en pantalla)
   ============================================================ */
.dispatch-table-scroll {
  max-height: calc(100vh - 280px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface, #fff);
}

.dispatch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.3;
}

.dispatch-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface-2, #f1f3f5);
  color: var(--text-muted, #6c757d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.dispatch-table tbody td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--border-light, #f1f3f5);
  vertical-align: middle;
  white-space: nowrap;
  color: var(--text);
}

.dispatch-table tbody tr:hover {
  background: var(--surface-2, #f8f9fa);
}

.dispatch-table tbody tr.has-emergency {
  background: rgba(220, 38, 38, 0.05);
}

.dispatch-table tbody tr.has-emergency:hover {
  background: rgba(220, 38, 38, 0.09);
}

/* Anchos especificos para que la tabla quepa en pantalla */
.dispatch-table .dt-fecha       { width: 64px;  font-weight: 600; }
.dispatch-table .dt-folio       { width: 130px; }
.dispatch-table .dt-cliente     { max-width: 200px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dispatch-table .dt-hora        { width: 50px;  font-weight: 600; color: var(--brand-red); }
.dispatch-table .dt-direccion   { max-width: 200px; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted, #6c757d); }
.dispatch-table .dt-producto    { width: 80px;  font-weight: 600; }
.dispatch-table .dt-aditivos    { max-width: 130px; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted, #6c757d); }
.dispatch-table .dt-avance      { width: 110px; }
.dispatch-table .dt-estatus     { width: 100px; }
.dispatch-table .dt-planta      { width: 130px; }
.dispatch-table .dt-seguimiento { width: 90px; }

/* Mini-tag para BOMB vs TD (junto al folio) */
.tipo-mini {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-right: 5px;
  vertical-align: middle;
}
.tipo-mini--bomb { background: rgba(144, 61, 57, 0.14); color: var(--brand-red); }
.tipo-mini--td   { background: rgba(13, 102, 122, 0.14); color: #0d667a; }

.folio-cell { display: inline-flex; align-items: center; }
.folio-cell .font-mono { font-size: 11px; }

/* Celda avance con barra */
.avance-cell { font-size: 11px; }
.avance-cell__text { font-weight: 700; font-family: var(--font-mono, monospace); white-space: nowrap; }
.avance-cell__unit { color: var(--text-muted, #6c757d); font-weight: 400; font-size: 10px; }
.avance-cell__bar {
  width: 100%; height: 4px; background: var(--surface-3, #e9ecef); border-radius: 2px;
  overflow: hidden; margin-top: 3px;
}
.avance-cell__fill {
  height: 100%; background: var(--brand-red); transition: width 0.25s;
}

/* Badges de estatus de despacho */
.dispatch-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dispatch-badge--programado { background: rgba(100, 116, 139, 0.15); color: #475569; border: 1px solid rgba(100, 116, 139, 0.35); }
.dispatch-badge--liberado   { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; border: 1px solid rgba(59, 130, 246, 0.35); }
.dispatch-badge--parcial    { background: rgba(245, 158, 11, 0.15); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.4); }
.dispatch-badge--entregado  { background: rgba(34, 197, 94, 0.15); color: #15803d; border: 1px solid rgba(34, 197, 94, 0.4); }

/* Select de planta inline */
.planta-select {
  width: 100%;
  padding: 4px 6px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface, #fff);
  color: var(--text);
  font-family: inherit;
}
.planta-select:focus {
  outline: none;
  border-color: var(--brand-red);
}

/* Boton seguimiento compacto */
.dispatch-table .dt-seguimiento .btn--sm {
  font-size: 10px;
  padding: 5px 8px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Tab navigation (planta y otros modulos con varias secciones)
   ============================================================ */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 22px;
  overflow-x: auto;
}
.tab-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--text-muted, #6c757d);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.tab-nav__btn:hover {
  color: var(--text);
}
.tab-nav__btn.is-active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}
.tab-panel.hidden { display: none; }

/* Filtros con select inline */
.filters__group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
}
.filters__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #6c757d);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filters__select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* Info-box para el modal de asignar */
.info-box {
  background: var(--surface-2, #f8f9fa);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.info-box__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.info-box__subtitle {
  font-size: 13px;
  color: var(--text-muted, #6c757d);
  margin-bottom: 10px;
}
.info-box__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px solid var(--border-light, #f1f3f5);
  border-bottom: 1px solid var(--border-light, #f1f3f5);
  font-size: 13px;
  color: var(--text);
}
.info-box__pendiente { color: var(--brand-red); }
.info-box__planta {
  font-size: 13px;
  color: var(--text);
  padding-top: 8px;
}

/* Badge contador de camiones dentro del boton "Detalle Camiones" */
.cargas-count {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  margin-left: 4px;
  background: var(--brand-red);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* ============================================================
   Modales con estructura .modal > .modal__overlay + .modal__content
   (usados en Asignar camión, Editar camión, Detalle camiones)
   Centrados con flexbox sobre toda la pantalla.
   ============================================================ */
.modal:has(> .modal__overlay) {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
  box-shadow: none;
  width: auto;
  animation: fadeIn 150ms ease-out;
}

.modal:has(> .modal__overlay).hidden {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
  cursor: pointer;
}

.modal__content {
  position: relative;
  z-index: 2;
  background: var(--surface, #fff);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  animation: slideUpCentered 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface, #fff);
  z-index: 3;
}
.modal__header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.modal__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2, #f1f3f5);
  color: var(--text-muted, #6c757d);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
}
.modal__close:hover {
  background: var(--brand-red);
  color: #fff;
}

.modal__body {
  padding: 18px 20px;
  flex: 1;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--surface, #fff);
}

/* ============================================================
   Row Hover Card (popup con detalles al pasar el mouse sobre un pedido)
   ============================================================ */
.row-hover-card {
  position: fixed;
  z-index: 9999;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  padding: 14px 16px;
  width: 340px;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  color: var(--text);
}

.row-hover-card.hidden {
  display: none;
}

.row-hover-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light, #f1f3f5);
}

.row-hover-card__folio {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 14px;
  color: var(--brand-red);
}

.row-hover-card__cliente {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

.row-hover-card__obra {
  font-size: 11px;
  color: var(--text-muted, #6c757d);
  margin-bottom: 8px;
}

.row-hover-card__grid {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 4px 10px;
  font-size: 11px;
  margin-bottom: 8px;
}

.row-hover-card__label {
  color: var(--text-muted, #6c757d);
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding-top: 2px;
}

.row-hover-card__value {
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.row-hover-card__section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light, #f1f3f5);
}

.row-hover-card__section-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #6c757d);
  margin-bottom: 6px;
}

.row-hover-card__comments {
  background: var(--surface-2, #f8f9fa);
  border-left: 3px solid var(--brand-red);
  padding: 6px 8px;
  font-size: 11px;
  font-style: italic;
  color: var(--text);
  border-radius: 4px;
  margin-top: 4px;
}

.row-hover-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.row-hover-card__chip {
  background: var(--surface-2, #f8f9fa);
  border: 1px solid var(--border-light, #f1f3f5);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
}

.row-hover-card__avance-bar {
  width: 100%; height: 5px;
  background: var(--surface-3, #e9ecef);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.row-hover-card__avance-fill {
  height: 100%;
  background: var(--brand-red);
}

/* La tabla resalta la fila al hacer hover (para que sea claro cual se esta viendo) */
.data-table tbody tr:hover {
  background: rgba(144, 61, 57, 0.04);
  cursor: default;
}

/* ============================================================
   Tabla compacta de cargas (modal Detalle de Camiones)
   ============================================================ */
.cargas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.cargas-table thead th {
  background: var(--surface-2, #f1f3f5);
  color: var(--text-muted, #6c757d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.cargas-table thead th.num { text-align: right; }

.cargas-table tbody td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--border-light, #f1f3f5);
  vertical-align: middle;
  color: var(--text);
  white-space: nowrap;
  font-size: 12.5px;
}

.cargas-table tbody td.num { text-align: right; }

.cargas-table tbody tr:hover {
  background: var(--surface-2, #f8f9fa);
}

/* Badges del estatus de carga */
.cargas-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cargas-badge--asignado    { background: rgba(100, 116, 139, 0.15); color: #475569; border: 1px solid rgba(100, 116, 139, 0.35); }
.cargas-badge--cargando    { background: rgba(245, 158, 11, 0.15); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.4); }
.cargas-badge--en_camino   { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; border: 1px solid rgba(59, 130, 246, 0.35); }
.cargas-badge--en_obra     { background: rgba(147, 51, 234, 0.15); color: #6b21a8; border: 1px solid rgba(147, 51, 234, 0.35); }
.cargas-badge--descargando { background: rgba(234, 88, 12, 0.15); color: #9a3412; border: 1px solid rgba(234, 88, 12, 0.4); }
.cargas-badge--entregado   { background: rgba(34, 197, 94, 0.15); color: #15803d; border: 1px solid rgba(34, 197, 94, 0.4); }

/* ============================================================
   Pump Tooltip - estilo del hover card aplicado a tooltips de Leaflet
   (al pasar el mouse por una bomba en el mapa muestra detalles completos)
   ============================================================ */
.leaflet-tooltip.pump-tooltip {
  background: var(--surface, #fff) !important;
  color: var(--text, #1a1a1a) !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  width: 340px !important;
  max-width: 340px !important;
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18) !important;
  white-space: normal !important;
  pointer-events: none;
}
/* Quitar la flecha por default del tooltip (la del hover card es mas limpia sin) */
.leaflet-tooltip.pump-tooltip::before {
  display: none !important;
}
.leaflet-tooltip-top.pump-tooltip {
  margin-top: -8px;
}

/* ============================================================
   Hub de Ventas - grid de tiles grandes para selección de módulo
   ============================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.hub-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 28px;
  min-height: 220px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text, #1a1a1a);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden;
}

.hub-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(144, 61, 57, 0.04));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.hub-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: var(--brand-red);
}

.hub-tile:hover::before {
  opacity: 1;
}

.hub-tile:active {
  transform: translateY(-1px);
}

.hub-tile__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  flex-shrink: 0;
}

.hub-tile__icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 2;
}

.hub-tile__icon--blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.hub-tile__icon--green  { background: linear-gradient(135deg, #10b981, #047857); }
.hub-tile__icon--purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.hub-tile__icon--red    { background: linear-gradient(135deg, var(--brand-red, #903d39), var(--brand-red-hi, #6f2e2b)); }

.hub-tile__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--text);
}

.hub-tile__subtitle {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--text-muted, #6c757d);
  margin-bottom: 8px;
  margin-top: -2px;
}

.hub-tile__desc {
  font-size: 13px;
  color: var(--text-muted, #6c757d);
  line-height: 1.4;
  margin-bottom: 14px;
  max-width: 240px;
}

.hub-tile__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.hub-tile__badge--soon {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.35);
}

.hub-tile__badge--active {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.35);
}

/* Placeholder page (precios.html, seguimiento.html) */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  max-width: 520px;
  margin: 24px auto;
}

.coming-soon__icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-hi));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  opacity: 0.85;
}

.coming-soon__icon svg {
  width: 50px;
  height: 50px;
  stroke-width: 1.5;
}

.coming-soon__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 26px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.coming-soon__subtitle {
  font-size: 15px;
  color: var(--text-muted, #6c757d);
  margin-bottom: 32px;
  line-height: 1.5;
}
