/* EquipDoc v1 — design system SaaS (Stripe / Linear / Attio). Sin CDN. */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-fg: #ffffff;
  --sidebar-w: 240px;
  --topbar-h: 3.5rem;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #16a34a;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.18);
  --sidebar-active-bg: #eff6ff;
  --sidebar-hover-bg: #f1f5f9;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* Alpine FOUC guard */
[x-cloak] { display: none !important; }

/* ─── App shell: sidebar + main ─── */
.app-shell {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: var(--topbar-h);
  padding: 0 1.1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1rem;
  min-width: 0;
}
.sidebar-brand:hover { text-decoration: none; color: var(--text); }
.sidebar-brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.brand-logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 7px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
}
.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.7rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.sidebar-group + .sidebar-group { margin-top: 1.1rem; }
.sidebar-group-label {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  padding: 0 0.55rem 0.4rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  margin-bottom: 0.1rem;
}
.sidebar-link:hover {
  background: var(--sidebar-hover-bg);
  color: var(--text);
  text-decoration: none;
}
.sidebar-link.active {
  background: var(--sidebar-active-bg);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.sidebar-link svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: 0.85;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-link.active svg { opacity: 1; }
.sidebar-footer {
  flex-shrink: 0;
  padding: 0.65rem 0.7rem 0.9rem;
  border-top: 1px solid var(--border);
}
.sidebar-footer .sidebar-link { margin-bottom: 0; }

/* Backdrop (mobile drawer) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(15, 23, 42, 0.4);
}

/* Main column */
.app-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  flex-shrink: 0;
  overflow: visible;
}
.topbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
  padding: 0;
  flex-shrink: 0;
}
.topbar-toggle:hover { background: var(--bg); }
.topbar-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
}
.topbar-title {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Icon button (bell, etc.) */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  padding: 0;
}
.icon-btn:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.icon-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.icon-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Badge count on bell */
.badge-count {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  border: 1.5px solid var(--surface);
}
.badge-count.hidden { display: none; }

/* User dropdown */
.user-menu { position: relative; }
.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.4rem 0.25rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s, border-color 0.12s;
}
.user-menu-btn:hover {
  background: var(--bg);
  border-color: var(--border);
}
.user-menu-btn[aria-expanded="true"] {
  background: var(--bg);
  border-color: var(--border);
}
.avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid #dbeafe;
  flex-shrink: 0;
}
.user-menu-name {
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text);
  max-width: 10rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-chevron {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--muted);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}
.user-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 14rem;
  max-width: min(18rem, calc(100vw - 1.5rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  z-index: 100;
}
.user-menu.is-open .user-menu-dropdown,
.user-menu-dropdown.is-open {
  display: block;
}
.topbar-actions { overflow: visible; position: relative; z-index: 50; display: flex; align-items: center; gap: 0.5rem; }
.user-menu { position: relative; z-index: 50; }
.topbar-logout {
  flex-shrink: 0;
  text-decoration: none;
}
.topbar-logout:hover { text-decoration: none; }
/* En mobile ocultar nombre largo del botón */
@media (max-width: 720px) {
  .user-menu-name { display: none; }
  .user-menu-chevron { display: none; }
}
.user-menu-header {
  padding: 0.55rem 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
}
.user-menu-header-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-header-email {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.1rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.user-menu-item:hover {
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
}
.user-menu-item--danger { color: var(--danger); }
.user-menu-item--danger:hover { background: var(--danger-soft); color: #991b1b; }

/* Content */
.content {
  flex: 1;
  padding: 1.5rem 0 3rem;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Mobile: drawer */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
  }
  .sidebar-backdrop { display: block; }
  .app-main { margin-left: 0; }
  .topbar-toggle { display: inline-flex; }
  .user-menu-name { display: none; }
  .user-menu-chevron { display: none; }
}

/* ─── Legacy nav (portal / public pages without sidebar) ─── */
.nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
  color: var(--muted);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg);
  text-decoration: none;
}
.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.main { flex: 1; padding: 1.75rem 0 3.5rem; }

/* Portal shell uses topbar-only layout */
.portal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.portal-shell .main { flex: 1; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}
.card + .card { margin-top: 1rem; }
.card-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.card-muted { color: var(--muted); font-size: 0.925rem; margin: 0; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

/* Page header */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.page-title {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.page-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.925rem;
}

/* Forms */
.form { display: grid; gap: 1.05rem; }
.form-group { display: grid; gap: 0.4rem; }
label { font-size: 0.875rem; font-weight: 550; color: var(--text); }
.input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--text);
  min-height: 44px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input::placeholder { color: #94a3b8; }
.input:hover { border-color: #94a3b8; }
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}
.input.is-error, .input-error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
textarea.input { resize: vertical; min-height: 5rem; }
select.input { appearance: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg); color: var(--text); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  min-height: 36px;
  padding: 0.4rem 0.75rem;
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fecaca;
}
.btn-danger:hover { background: #fee2e2; color: #991b1b; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0.4rem 0.75rem; font-size: 0.85rem; }
.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border-radius: 8px;
}

/* Alerts */
.alert {
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  font-size: 0.925rem;
  margin-bottom: 1rem;
}
.alert-error { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }
.alert-ok { background: var(--success-soft); color: #166534; border: 1px solid #bbf7d0; }
.alert-info { background: var(--primary-soft); color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warn { background: var(--warning-soft); color: #92400e; border: 1px solid #fde68a; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 650;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.data thead th:first-child { border-radius: 8px 0 0 0; }
table.data thead th:last-child { border-radius: 0 8px 0 0; }
table.data tbody tr { transition: background 0.1s; }
table.data tbody tr:hover { background: #f8fafc; }
table.data tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
  .table-wrap {
    margin: 0 -0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
  table.data th, table.data td {
    padding: 0.7rem 0.65rem;
    white-space: nowrap;
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  background: var(--success-soft);
  color: #047857;
  letter-spacing: 0.01em;
}
.badge-muted { background: #f1f5f9; color: #475569; }
.badge-info { background: var(--primary-soft); color: #1d4ed8; }
.badge.sem-rojo { background: #fef2f2; color: #991b1b; }
.badge.sem-amarillo { background: #fffbeb; color: #92400e; }
.badge.sem-verde { background: #ecfdf5; color: #047857; }
.badge.sem-none { background: #f1f5f9; color: #475569; }

/* Login / auth */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(900px 500px at 100% 100%, rgba(37, 99, 235, 0.06), transparent 50%),
    var(--bg);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card {
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-md);
}
.auth-brand { text-align: center; margin-bottom: 1.35rem; }
.auth-brand .brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  margin: 0 auto 0.85rem;
}
.auth-brand h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.auth-brand p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-google, .btn-passkey {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 600;
}
.btn-google:hover, .btn-passkey:hover {
  background: #f8fafc;
  color: var(--text);
  border-color: #94a3b8;
}
.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Empty states */
.empty {
  text-align: center;
  padding: 2.75rem 1.25rem;
  color: var(--muted);
}
.empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--muted);
}
.empty-title {
  color: var(--text);
  font-weight: 650;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.empty p { margin: 0; font-size: 0.925rem; }

/* Stats */
.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  transition: border-color 0.12s, box-shadow 0.12s;
}
a.stat:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}
.stat-value {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}
.stat-hint { color: var(--muted); font-size: 0.85rem; margin: 0.3rem 0 0; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}
.list-plain li:last-child { border-bottom: none; }
.list-plain a { font-weight: 550; }
.notif-unread {
  background: var(--primary-soft);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 6px;
}

/* Toast */
.toast {
  position: fixed;
  top: calc(var(--topbar-h) + 0.75rem);
  right: 1rem;
  z-index: 60;
  background: var(--text);
  color: #fff;
  padding: 0.8rem 1.05rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  max-width: 20rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.stack { display: grid; gap: 1rem; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mb-0 { margin-bottom: 0; }
code {
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  word-break: break-all;
}

.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.cred-item:last-child { border-bottom: none; }
.cred-name { font-weight: 600; margin: 0; }
.cred-meta { color: var(--muted); font-size: 0.8rem; margin: 0.15rem 0 0; }

@media (max-width: 720px) {
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header .btn { width: 100%; }
  .content { padding: 1.15rem 0 2.5rem; }
  .main { padding: 1.25rem 0 2.5rem; }
}



/* ─── Impersonation banner ─── */
.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 1.25rem;
  background: #7c2d12;
  color: #fff7ed;
  font-size: 0.875rem;
  border-bottom: 1px solid #9a3412;
}
.impersonation-banner strong { font-weight: 700; }
.impersonation-banner .btn {
  background: rgba(255,255,255,0.12);
  color: #fff7ed;
  border-color: rgba(255,255,255,0.35);
}
.impersonation-banner .btn:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ─── Platform panel ─── */
.platform-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.platform-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
}
.platform-nav-label {
  margin: 0 0 0.4rem;
  padding: 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.platform-nav-link {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.platform-nav-link:hover {
  background: var(--bg);
  text-decoration: none;
}
.platform-nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 650;
}
.platform-main { min-width: 0; }
.form-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.form-inline .input { max-width: 18rem; }
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text);
}
@media (max-width: 720px) {
  .platform-layout { grid-template-columns: 1fr; }
  .platform-nav { position: static; display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .platform-nav-label { width: 100%; }
}

/* ─── Landing pública ─── */
.landing-body { background: var(--bg); }
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.landing-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 550;
}
.landing-nav-links a { color: var(--text); text-decoration: none; }
.landing-nav-links a:hover { color: var(--primary); }
.landing-hero {
  padding: 3.5rem 1.25rem 2.5rem;
  background:
    radial-gradient(1000px 500px at 15% -20%, rgba(37,99,235,0.12), transparent 55%),
    radial-gradient(800px 400px at 100% 0%, rgba(37,99,235,0.06), transparent 50%);
}
.landing-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.landing-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.landing-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-weight: 750;
}
.landing-lead {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.landing-cta {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.landing-section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.landing-features { padding: 2rem 0 1rem; }
.landing-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.landing-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.landing-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.landing-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.landing-plans { padding: 2rem 0 3rem; }
.landing-plans h2 {
  margin: 0;
  text-align: center;
  letter-spacing: -0.03em;
}
.landing-section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0.4rem 0 1.5rem;
}
.landing-plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.landing-plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.landing-plan-card.is-featured {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px #bfdbfe, var(--shadow-md);
}
.landing-plan-card h3 { margin: 0; letter-spacing: -0.02em; }
.landing-plan-price {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.landing-plan-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.landing-plan-desc {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.landing-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.landing-footer .landing-section-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 600;
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  text-decoration: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sidebar { transition: none; }
}

/* ─── Dashboard profesional ─── */
.dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 140%);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}
.dash-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.dash-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.dash-sub {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  max-width: 36rem;
}
.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.dash-hero-actions .btn {
  min-height: 40px;
  box-shadow: none;
}
.dash-hero-actions .btn-primary {
  background: #fff;
  color: #0f172a;
}
.dash-hero-actions .btn-primary:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.dash-hero-actions .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.dash-hero-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.btn-danger-solid {
  background: #e11d48;
  color: #fff;
  border: none;
  font-weight: 650;
}
.btn-danger-solid:hover { background: #be123c; color: #fff; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}
.kpi-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
  min-height: 6.5rem;
}
a.kpi-card:hover {
  text-decoration: none;
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.kpi-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kpi-card--rose .kpi-icon { background: #fff1f2; color: #e11d48; }
.kpi-card--amber .kpi-icon { background: #fffbeb; color: #d97706; }
.kpi-card--blue .kpi-icon { background: #eff6ff; color: #2563eb; }
.kpi-card--slate .kpi-icon { background: #f1f5f9; color: #475569; }
.kpi-body { min-width: 0; flex: 1; }
.kpi-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kpi-value {
  margin: 0.25rem 0 0;
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.kpi-hint {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dash-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 0.85rem;
  min-height: 16rem;
  display: flex;
  flex-direction: column;
}
.dash-panel--full {
  min-height: auto;
  margin-bottom: 0.5rem;
}
.dash-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.dash-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.dash-panel-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.dash-panel-link {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--primary);
}
.dash-panel-link:hover { text-decoration: underline; }

.dash-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.dash-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.dash-feed-item:last-child { border-bottom: none; }
.dash-feed-main { min-width: 0; flex: 1; }
.dash-feed-title {
  display: block;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-feed-title:hover { color: var(--primary); text-decoration: none; }
.dash-feed-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.font-medium { font-weight: 600; }

.dash-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--muted);
}
.dash-empty-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  color: var(--success);
}
.dash-empty-title {
  margin: 0;
  font-weight: 650;
  color: var(--text);
  font-size: 0.95rem;
}
.dash-empty-text {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .dash-panels { grid-template-columns: 1fr; }
  .dash-hero { padding: 1.15rem 1.15rem; }
  .dash-title { font-size: 1.4rem; }
  .dash-hero-actions { width: 100%; }
  .dash-hero-actions .btn { flex: 1; }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ─── Page chrome unificado ─── */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.page-title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--text);
  line-height: 1.2;
}
.page-sub {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.925rem;
  max-width: 40rem;
}
.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.page-header-actions .btn { min-height: 40px; }

/* Cards de sección (listas / forms) — misma familia que dash-panel */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
}
.card + .card { margin-top: 1rem; }
.card-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.card-muted { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Tabla denser professional */
table.data th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 650;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.data td { font-size: 0.9rem; }
table.data tbody tr:hover { background: #f8fafc; }
table.data a { font-weight: 600; color: var(--text); }
table.data a:hover { color: var(--primary); text-decoration: none; }

/* Form cards */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.detail-item label {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.detail-item p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--text);
}
.stack-sm { display: grid; gap: 0.75rem; }

.landing-plan-features { list-style: none; margin: 0.75rem 0 0; padding: 0; text-align: left; }
.landing-plan-features li {
  position: relative; padding: 0.35rem 0 0.35rem 1.25rem;
  font-size: 0.875rem; color: var(--muted);
}
.landing-plan-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700;
}


/* Paginador de listados */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.pager-info { color: var(--muted, #64748b); font-size: 0.9rem; }
.btn.is-disabled { opacity: 0.5; pointer-events: none; cursor: default; }

/* Nombre de la empresa (branding) en la página pública de reporte QR */
.auth-company {
  font-weight: 600;
  color: var(--muted, #64748b);
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
}

/* Logo del tenant (branding) en portal y reporte QR */
.brand-logo { height: 28px; width: auto; border-radius: 6px; vertical-align: middle; }
.auth-logo { max-height: 56px; width: auto; display: block; margin: 0 auto 0.5rem; }

/* ---- Command palette (Ctrl/Cmd+K) + operaciones numeradas ---- */
.op-num {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted, #94a3b8);
  background: rgba(148, 163, 184, 0.14);
  border-radius: 6px;
  padding: 1px 6px;
  letter-spacing: 0.02em;
}
.sidebar-link.active .op-num { color: inherit; background: rgba(255,255,255,0.18); }

.cmdk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 0.7rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--muted, #64748b);
  cursor: pointer;
  font-size: 0.85rem;
}
.cmdk-trigger:hover { border-color: #94a3b8; color: #334155; }
.cmdk-trigger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.cmdk-trigger kbd {
  font-size: 0.7rem; border: 1px solid var(--border, #e2e8f0);
  border-radius: 4px; padding: 0 4px; background: #f8fafc; color: #64748b;
}
@media (max-width: 640px) { .cmdk-trigger-text { display: none; } }

.cmdk-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.cmdk {
  width: min(92vw, 560px);
  background: #fff; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
  overflow: hidden;
}
.cmdk-input {
  width: 100%; border: 0; border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 16px 18px; font-size: 1rem; outline: none;
}
.cmdk-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.cmdk-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.cmdk-item.is-sel { background: #eff6ff; }
.cmdk-num {
  min-width: 40px; text-align: center; font-weight: 700; font-size: 0.8rem;
  color: #0c4a6e; background: #e0f2fe; border-radius: 6px; padding: 2px 4px;
}
.cmdk-label { flex: 1; color: #0f172a; }
.cmdk-group { font-size: 0.75rem; color: #94a3b8; }
.cmdk-empty { padding: 14px 16px; color: #94a3b8; }
.cmdk-hint {
  padding: 8px 14px; font-size: 0.72rem; color: #94a3b8;
  border-top: 1px solid var(--border, #e2e8f0); background: #f8fafc;
}

.addr-suggest-wrap { position: relative; }
.addr-suggest-hint { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--muted); }
.addr-suggest-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%;
  margin: 2px 0 0; padding: 0.25rem 0; list-style: none;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); max-height: 16rem; overflow: auto;
}
.addr-suggest-list li {
  padding: 0.5rem 0.75rem; cursor: pointer; font-size: 0.9rem;
}
.addr-suggest-list li:hover,
.addr-suggest-list li:focus { background: var(--primary-soft); }

.branch-map {
  height: 70vh;
  min-height: 24rem;
  width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #e2e8f0;
}
/* img { max-width:100% } del design system rompe las teselas 256px de Leaflet. */
.leaflet-container { width: 100%; height: 100%; background: #dbe4ee; }
.leaflet-container img,
.leaflet-pane img,
.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}
.map-legend { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; align-items: center; font-size: 0.9rem; }
.map-dot {
  display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  margin-right: 0.35rem; vertical-align: middle; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.12);
}
.map-dot--rojo { background: #dc2626; }
.map-dot--amarillo { background: #d97706; }
.map-dot--verde { background: #16a34a; }
.map-dot--gris { background: #94a3b8; }
.map-missing { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.map-missing li { margin: 0.3rem 0; }
