/* =========================================================
   DonaTrack - hoja de estilos compartida
   Tokens, layout base y componentes reutilizables.
   Cada sección puede sumar su propio CSS en css/<seccion>.css
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  /* Marca */
  --navy-900: #002b55;
  --navy-800: #003366;
  --navy-700: #0b4a86;
  --blue-600: #2563eb;
  --blue-100: #dbe7fb;
  --blue-50: #eef4fd;
  --green-700: #006b45;
  --green-600: #0a7a52;
  --green-100: #d6f5e8;
  --mint-400: #6ff5c4;
  --mint-200: #b9fbe2;
  --amber-500: #f5b50a;
  --amber-100: #fdf1cc;
  --red-600: #c62828;
  --red-100: #fde2e2;

  /* Neutros */
  --ink: #111827;
  --text: #1f2937;
  --muted: #5b6472;
  --subtle: #8a93a0;
  --line: #e3e7ec;
  --line-strong: #cfd6de;
  --surface: #ffffff;
  --surface-alt: #f3f5f8;
  --bg: #f7f9fb;

  /* Forma */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 2px 8px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);

  --container: 1220px;
  --gutter: 32px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset mínimo ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
main {
  flex: 1;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page {
  padding: 40px 0 64px;
}
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.page-title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-title--navy {
  color: var(--navy-800);
}
.page-subtitle {
  margin-top: 8px;
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row--between {
  justify-content: space-between;
}
.row--wrap {
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.tiny {
  font-size: 12px;
}
.text-green {
  color: var(--green-700);
}
.text-blue {
  color: var(--blue-600);
}
.text-navy {
  color: var(--navy-800);
}
.text-red {
  color: var(--red-600);
}
.bold {
  font-weight: 700;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  color: #1f4fbf;
  letter-spacing: -0.01em;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.navbar__links a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.navbar__links a:hover {
  color: var(--blue-600);
}
.navbar__links a.is-active {
  color: #1f4fbf;
}
.navbar__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  background: #1f4fbf;
}
.navbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}
.icon-btn:hover {
  background: var(--surface-alt);
}
.icon-btn .dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-600);
  border: 2px solid var(--surface);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__inner {
  min-height: 88px;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px 40px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer__brand .brand {
  font-size: 17px;
}
.footer__links {
  margin-left: auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer__links a:hover {
  color: var(--navy-800);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn--primary {
  background: var(--navy-800);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-900);
}
.btn--success {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 107, 69, 0.22);
}
.btn--success:hover {
  background: #005a3a;
}
.btn--outline {
  background: var(--surface);
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn--outline:hover {
  background: var(--blue-50);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--surface-alt);
}
.btn--link {
  height: auto;
  padding: 0;
  background: none;
  color: var(--navy-800);
}
.btn--danger {
  background: var(--red-600);
  color: #fff;
}
.btn--sm {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}
.btn--lg {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
}
.btn--block {
  width: 100%;
}

/* ---------- Tarjetas ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card__body {
  padding: 24px;
}
.card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
}
.card--dark {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.card--dashed {
  background: transparent;
  border: 2px dashed var(--line-strong);
  box-shadow: none;
}

/* Tarjeta con imagen arriba (donaciones, necesidades, entidades) */
.media-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.media-card__img {
  position: relative;
  height: 180px;
  background: var(--surface-alt);
  overflow: hidden;
}
.media-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card__img > .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.media-card__body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Placeholder de imagen (sin fotos reales en el repo) */
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #2f7d8a, #1c4f63);
}
.ph svg {
  width: 56px;
  height: 56px;
  opacity: 0.9;
}
.ph--food { background: linear-gradient(135deg, #f0a35c, #6b3a4a); }
.ph--clothes { background: linear-gradient(135deg, #5b7fb3, #2c3e66); }
.ph--furniture { background: linear-gradient(135deg, #d9784a, #3c4b56); }
.ph--health { background: linear-gradient(135deg, #7cc6d6, #2b7c92); }
.ph--tech { background: linear-gradient(135deg, #3f8f93, #22575e); }
.ph--education { background: linear-gradient(135deg, #6fb3c9, #e3a14b); }
.ph--forest { background: linear-gradient(135deg, #4d7a45, #1f3b24); }
.ph--warehouse { background: linear-gradient(135deg, #b8a27a, #3d5a80); }
.ph--navy { background: linear-gradient(135deg, #0b4a86, #001f3f); }

/* Tarjeta de estadística */
.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}
.stat__value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.stat__label {
  font-size: 14px;
  color: var(--muted);
}
.icon-circle {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--navy-800);
}
.icon-circle svg {
  width: 22px;
  height: 22px;
}
.icon-circle--green {
  background: var(--mint-400);
  color: var(--green-700);
}
.icon-circle--gray {
  background: var(--surface-alt);
  color: var(--text);
}
.icon-circle--amber {
  background: var(--amber-100);
  color: #9a6a00;
}
.icon-circle--red {
  background: var(--red-100);
  color: var(--red-600);
}
.icon-square {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--navy-800);
}
.icon-square svg {
  width: 20px;
  height: 20px;
}

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--surface-alt);
  color: var(--text);
  white-space: nowrap;
}
.badge svg {
  width: 13px;
  height: 13px;
}
.badge--caps {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.badge--green { background: var(--mint-400); color: #004d31; }
.badge--green-soft { background: var(--green-100); color: var(--green-700); }
.badge--blue { background: var(--blue-100); color: var(--navy-800); }
.badge--navy { background: var(--navy-800); color: #fff; }
.badge--amber { background: var(--amber-100); color: #8a5b00; }
.badge--red { background: var(--red-100); color: var(--red-600); }
.badge--gray { background: var(--surface-alt); color: var(--muted); }
.badge--outline {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Estado en texto (ENTREGADO / EN TRÁNSITO / PENDIENTE) */
.status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status--delivered { color: var(--green-700); }
.status--transit { color: var(--blue-600); }
.status--pending { color: var(--muted); }
.status--failed { color: var(--red-600); }

/* ---------- Progreso ---------- */
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: var(--green-700);
}
.progress--blue .progress__bar { background: var(--blue-600); }
.progress--navy .progress__bar { background: var(--navy-800); }
.progress--mint .progress__bar { background: var(--mint-400); }
.progress--sm { height: 5px; }

/* ---------- Tabs / chips / segmented ---------- */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--navy-800);
}
.chip.is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}
.segmented a,
.segmented button,
.segmented label {
  flex: 1;
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}
.segmented .is-active {
  background: var(--surface);
  color: var(--navy-800);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a.is-active {
  color: var(--navy-800);
  border-color: var(--navy-800);
  font-weight: 600;
}

/* ---------- Formularios ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.input,
.select,
.textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--subtle);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(11, 74, 134, 0.12);
}
.input--filled {
  background: var(--surface-alt);
}
/* Campo que el servicio rechazo: borde rojo y el motivo debajo */
.input[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--red-600);
}
.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}
.field__error {
  margin-top: 6px;
  color: var(--red-600);
  font-size: 0.875rem;
}
.textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}
.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235b6472' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input-icon {
  position: relative;
}
.input-icon > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.input-icon > .input {
  padding-left: 42px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--navy-800);
}
.check-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.check-tile:has(input:checked) {
  border-color: var(--navy-800);
  background: var(--blue-50);
}
.check-tile input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--navy-800);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--subtle);
}
.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.search {
  position: relative;
  min-width: 260px;
}
.search > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--subtle);
}
.search > .input {
  height: 40px;
  padding-left: 40px;
  font-size: 14px;
}

/* ---------- Tablas ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr:hover {
  background: #fafbfc;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--muted);
}
.pagination__btns {
  display: flex;
  gap: 8px;
}
.page-btn {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
}
.page-btn.is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.page-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline__item {
  position: relative;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-strong);
  border: 2px solid var(--surface);
}
.timeline__item.is-done::before {
  background: var(--green-700);
}
.timeline__item.is-current::before {
  background: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.timeline__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.timeline__meta {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Mapa (fondo ilustrado, sin librerías) ---------- */
.map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background-color: #dcdfe3;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 120px, rgba(255, 255, 255, 0.5) 121px 124px, transparent 125px),
    radial-gradient(circle at 50% 50%, transparent 0 240px, rgba(255, 255, 255, 0.5) 241px 244px, transparent 245px),
    radial-gradient(circle at 50% 50%, transparent 0 360px, rgba(255, 255, 255, 0.45) 361px 364px, transparent 365px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.55) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.55) 46px 48px),
    repeating-linear-gradient(35deg, transparent 0 140px, rgba(255, 255, 255, 0.7) 140px 144px);
}
.map__river {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 47%, rgba(255, 255, 255, 0.85) 47.3% 48.6%, transparent 49%);
  pointer-events: none;
}
.pin {
  position: absolute;
  width: 28px;
  height: 36px;
  transform: translate(-50%, -100%);
  color: var(--green-700);
}
.pin svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.pin--blue { color: var(--navy-700); }
.pin--amber { color: var(--amber-500); }
.pin--red { color: var(--red-600); }
.pin--lg {
  width: 38px;
  height: 48px;
}
.pin--pulse::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 107, 69, 0.18);
  transform: translateX(-50%);
  z-index: -1;
}
.map-legend {
  position: absolute;
  left: 32px;
  bottom: 32px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}
.map-legend h4 {
  font-size: 14px;
  margin-bottom: 10px;
}
.map-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 3px 0;
}
.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green-700);
}
.legend-dot--blue { background: var(--navy-700); }
.legend-dot--amber { background: var(--amber-500); }
.legend-dot--red { background: var(--red-600); }

/* ---------- Alertas ---------- */
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  font-size: 14px;
}
.alert--success {
  background: var(--green-100);
  border-color: #b3ead4;
}
.alert--warning {
  background: var(--amber-100);
  border-color: #f6dd92;
}
.alert--danger {
  background: var(--red-100);
  border-color: #f7c1c1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }
  .navbar__inner {
    height: auto;
    min-height: 56px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .navbar__links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    height: 36px;
  }
  .navbar__links a.is-active::after {
    bottom: 2px;
  }
  .page-title {
    font-size: 30px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer__links {
    margin-left: 0;
  }
  .search {
    min-width: 0;
    width: 100%;
  }
}
