/* DonaTrack · Identidad visual. HTML y CSS nativos, sin dependencias.
   styles.css conserva la estructura y los contratos de los componentes. */
:root {
  --ink: #183b36;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #f0f5f3;
  --route: #167363;
  --route-dark: #10594d;
  --route-tint: #e4f3ec;
  --cargo: #376a88;
  --cargo-dark: #28526c;
  --cargo-tint: #eaf2f8;
  --alert: #bd3e4b;
  --alert-dark: #98313c;
  --alert-tint: #fcecef;
  --caution: #8b5d14;
  --caution-tint: #fff3da;
  --mist: #586c65;
  --mist-2: #657a72;
  --line: #dce6e1;
  --sidebar-w: 260px;
  --topbar-h: 78px;
  --control-height: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 5px #183b3604;
  --shadow-md: 0 8px 28px #183b3610;
  --shadow-lg: 0 22px 64px #183b3629;
}

html { scroll-padding-top: 100px; }
body { background: var(--paper); }
body.navigation-open { overflow: hidden; }
h1, h2, h3, h4 { letter-spacing: -.035em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 1vw, 2.35rem); }
h2 { font-size: 1.2rem; }
p { line-height: 1.65; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
a.btn { text-decoration: none; }
.btn { min-height: var(--control-height); border-width: 1px; line-height: 1.4; padding-block: 11px; letter-spacing: -.015em; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; white-space: normal; text-align: center; }
.btn-primary { box-shadow: 0 3px 6px #16736317; }
.btn-primary:hover { color: white; box-shadow: 0 4px 12px #16736326; }
.btn-secondary:hover { color: var(--ink); border-color: #a9c4b7; }
.btn-danger:hover, .btn-cargo:hover { color: white; }
.btn-ghost:hover { color: var(--route-dark); }
.btn-sm { min-height: var(--control-height); padding-block: 8px; }
.btn-icon { padding: 0; flex-shrink: 0; }
.u-flex:not(.u-flex-col):has(> .btn), .row:has(> .btn), .row-wrap, .form-footer, .modal-footer, .hero-ctas, .table-actions { align-items: stretch; }
:is(.u-flex, .row, .row-wrap, .form-footer, .modal-footer, .table-actions) > form:has(> .btn) { display: flex; margin-block: 0; }
:is(.u-flex, .row, .row-wrap, .form-footer, .modal-footer, .table-actions) > form > .btn { align-self: stretch; }
.u-flex:not(.u-flex-col):has(> .btn) { flex-wrap: wrap; }
.u-flex:not(.u-flex-col):has(> .btn) > a:not(.btn) { display: flex; align-items: center; min-height: var(--control-height); }
.toggle-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toggle-option { min-height: var(--control-height); line-height: 1.4; }
.table-actions:has(> details[open]) { align-items: flex-start; }
.btn:disabled { box-shadow: none; }
.eyebrow, .auth-form-card .eyebrow { font-style: normal; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; line-height: 1.6; }
.brand-symbol { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--route); color: white; flex-shrink: 0; }
.brand-symbol .icon { width: 23px; height: 23px; }
.brand-mark .dot { width: 14px; height: 14px; background: var(--route); border-radius: 4px; transform: rotate(-12deg); }

/* Un mismo espacio de trabajo para administración, donantes y entidades. */
.sidebar { background: #fff; border-right: 1px solid var(--line); }
.sidebar-brand { padding: 27px 22px; gap: 11px; font-size: 1.2rem; letter-spacing: -.04em; }
.sidebar-brand small { display: block; margin-top: 2px; font-size: .63rem; font-weight: 500; color: var(--mist); letter-spacing: .015em; }
.sidebar-nav { padding: 0 14px 24px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sidebar-section { font-size: .61rem; font-weight: 700; letter-spacing: .12em; color: var(--mist); padding: 25px 13px 8px; }
.sidebar-link { color: #52675e; font-size: .8rem; gap: 11px; min-height: 46px; padding: 11px 12px; margin: 3px 0; line-height: 1.45; border: 1px solid transparent; }
.sidebar-link .icon { width: 18px; height: 18px; stroke-width: 1.65; }
.sidebar-link:hover { background: var(--surface-2); color: var(--route-dark); }
.sidebar-link[aria-current="page"] { background: var(--route-tint); color: var(--route-dark); font-weight: 700; border-color: #d4e9dd; }
.sidebar-foot { margin: 0 14px 16px; padding: 16px 12px 0; font-size: .78rem; }
.sidebar-foot strong { display: block; font-size: .85rem; overflow-wrap: anywhere; color: var(--ink); }
.sidebar-session-label { display: block; font-size: .66rem; margin-bottom: 4px; }
.sidebar-foot br { display: none; }
.sidebar-foot .link-button { min-height: 40px; text-decoration: none; color: var(--mist); font-size: .76rem; }
.sidebar-foot .link-button:hover { color: var(--alert-dark); }
.topbar { padding-left: calc(var(--sidebar-w) + 36px); background: #ffffffed; backdrop-filter: blur(12px); }
.topbar .row { min-width: 0; }
.topbar-title { margin: 0; font-size: .88rem; color: var(--ink); }
.topbar-eyebrow { margin: 0 0 2px; font-size: .66rem; font-style: normal; color: var(--mist); }
.topbar-user { flex-shrink: 0; }
.standalone-topbar { padding-left: 24px; }
.topbar-user .bell-wrap { background: transparent; border-color: transparent; }
.avatar-trigger { border: 2px solid #fff; background: var(--route-tint); color: var(--route-dark); box-shadow: 0 0 0 1px var(--line); }
.user-menu-panel { border-radius: 18px; padding: 20px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); max-height: calc(100dvh - 110px); overflow-y: auto; }
.user-menu-field { flex-wrap: wrap; }
.user-menu-field .value { overflow-wrap: anywhere; min-width: 0; }
.user-menu-section-title { color: var(--mist); }
.main { padding: 34px clamp(22px, 2.8vw, 44px) 56px; }
.app-shell .main { max-width: none; }
.form-page { width: 100%; max-width: 1120px; margin-inline: auto; min-width: 0; }
.main > form.form-page { margin-inline: 0; }
.main-header { margin-bottom: 30px; align-items: center; gap: 20px; }
.main-header > div { min-width: 0; }
.title-card { background: transparent; box-shadow: none; border: 0; padding: 0; }
.title-card h1 { margin-bottom: 9px; }
.title-card p:last-child { max-width: 74ch; font-size: .91rem; }
.card { padding: 25px; box-shadow: var(--shadow-sm); }
.card-header { margin-bottom: 22px; flex-wrap: wrap; }
.card-header h2, .card-header h3 { letter-spacing: -.025em; }
.card > h2 { margin-bottom: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-2 > *, .grid-3 > *, .stack > * { min-width: 0; }
.kpi-grid { gap: 18px; margin-bottom: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.kpi-card { padding: 24px; border-left: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi-card.cargo, .kpi-card.caution, .kpi-card.alert { border-left-color: var(--line); }
.kpi-card::after { content: ""; position: absolute; right: 22px; top: 24px; width: 9px; height: 9px; background: var(--route); border-radius: 3px; box-shadow: 0 0 0 6px var(--route-tint); }
.kpi-card.cargo::after { background: var(--cargo); box-shadow: 0 0 0 6px var(--cargo-tint); }
.kpi-card.caution::after { background: var(--caution); box-shadow: 0 0 0 6px var(--caution-tint); }
.kpi-card.alert::after { background: var(--alert); box-shadow: 0 0 0 6px var(--alert-tint); }
.kpi-label { text-transform: none; letter-spacing: 0; font-size: .78rem; padding-right: 24px; font-weight: 500; min-height: 24px; }
.kpi-value { font-size: 2.45rem; font-weight: 600; letter-spacing: -.055em; font-variant-numeric: tabular-nums; margin: 7px 0 8px; line-height: 1.2; }
.kpi-sub { font-size: .73rem; }
.kpi-sub a { color: var(--mist); text-decoration: none; }
.kpi-sub a:hover { color: var(--route-dark); text-decoration: underline; }

/* Listados, filtros y formularios: el contenido conserva su comportamiento. */
.table-wrap { box-shadow: none; scrollbar-color: #b7cbc0 var(--surface-2); }
thead, thead tr, th { background: #f3f7f5; }
th { color: #4f655a; font-size: .67rem; text-transform: uppercase; letter-spacing: .075em; padding: 16px; }
td { padding: 18px 16px; font-size: .82rem; }
tbody tr:nth-child(even) { background: #fcfdfc; }
tbody tr:hover { background: #f4f9f6; }
.table-wrap .btn-sm { font-size: .75rem; padding: 8px 12px; }
.table-primary { display: grid; grid-template-columns: 52px minmax(150px, 1fr); align-items: center; min-height: 52px; min-width: 230px; gap: 12px; }
.table-primary > :last-child { min-width: 0; }
.table-primary strong { max-width: none; }
.bien-thumbnail { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.table-wrap .bien-thumbnail .foto-mini { display: block; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; object-fit: contain; }
.bien-thumbnail-empty { color: var(--mist); }
.table-action-menu > summary { min-height: var(--control-height); line-height: 22px; padding: 13px 12px; }
.table-wrap td > .chip, .chip { white-space: normal; max-width: 100%; font-size: .69rem; font-weight: 600; padding: 5px 10px; }
.chip::before { width: 5px; height: 5px; flex-shrink: 0; }
.table-wrap:focus-visible { outline: 3px solid var(--route); outline-offset: 3px; }
.field label { font-size: .79rem; font-weight: 600; }
.field, form, fieldset { min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field > :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .input-with-icon) { width: 100%; max-width: 100%; }
.grid-2 > .field > label { min-height: 2.8em; }
@supports (grid-template-rows: subgrid) {
  .grid-2:has(> .field) { row-gap: 0; }
  .grid-2 > .field:not([hidden]) { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; margin-bottom: 20px; }
  .grid-2 > .field > label { min-height: 0; align-self: end; }
  .grid-2 > .field > :is(input, select, textarea, .input-with-icon) { align-self: start; }
}
.catalog-create-grid > .form-section, .catalog-list-grid > .form-section { display: flex; flex-direction: column; }
.catalog-create-grid > .form-section > form { flex: 1; }
.catalog-create-grid .form-footer { margin-top: auto; }
.catalog-list-grid > .form-section > form { margin-top: auto; padding-top: 20px; }
.line-item-title { display: flex; align-items: center; min-height: var(--control-height); margin: 0 60px 16px 0; }
.line-item .remove-line { top: 16px; right: 16px; }
.donante-search-input input[type="search"] { min-height: calc(var(--control-height) - 2px); border: 0; box-shadow: none; background: transparent; border-radius: 0; padding: 10px 12px 10px 0; }
input:not([type]), input[type="search"], input[type="url"], input[type="time"], input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="date"], select, textarea { background-color: #fff; border: 1px solid #c8d7cf; border-radius: 10px; font-size: .91rem; box-shadow: 0 1px 2px #183b3603; }
input:focus, select:focus, textarea:focus { border-color: var(--route); box-shadow: 0 0 0 3px #16736318; }
input::placeholder, textarea::placeholder { color: #6f7f78; opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--route); }
input[type="file"] { border-color: #b9cec2; }
.form-section { padding: 24px; border-radius: 15px; }
.form-section-heading { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.form-section-heading h2 { font-size: 1.05rem; }
.form-footer { padding-top: 20px; margin-top: 28px; }
.line-item { background: #f8faf9; }
.uploader { border-color: #bacfc1; background: #f8fbf9; border-radius: 15px; }
.tabs { gap: 6px; }
.tab, [role="tab"] { font-family: inherit; }
.modal { border: 1px solid var(--line); border-radius: 22px; }
.modal-header h2 { font-size: 1.25rem; }
.modal-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.empty-state { padding: 48px 24px; background: #f8fbf9; border-radius: 14px; }
.empty-state h3 { font-size: 1rem; }
.notif-item { padding: 22px; gap: 16px; }
.notif-icon { border-radius: 12px; }
.notif-time { color: var(--mist); white-space: normal; }
.mission-icon { border-radius: 13px; }
.mission-card, .necesidad-card, .mision-card { box-shadow: var(--shadow-sm); }
.category-step { white-space: normal; overflow-wrap: anywhere; }
.category-track { flex-wrap: wrap; }
.progress-track { height: 7px; background: #e7eee9; }
.progress-fill { background: var(--route); }
.u-bg-minimap { background: #edf4ef; }
#map { border-color: var(--line); border-radius: 18px; }
.leaflet-container { font-family: var(--font-body); }
.map-legend { flex-wrap: wrap; }
.page-shell { max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px; }
.u-max-w-2xl { max-width: 900px; }
.u-max-w-3xl { max-width: 1150px; }

/* Página pública: una identidad cálida con la trazabilidad como protagonista. */
.public-nav { padding: 19px clamp(20px, 5vw, 72px); background: #fff; gap: 20px; border-bottom: 1px solid var(--line); }
.public-nav .brand-mark { font-size: 1.25rem; letter-spacing: -.04em; gap: 10px; flex-shrink: 0; }
.public-nav-links { gap: 24px; }
.public-nav-links a:not(.btn) { font-size: .78rem; color: var(--mist); font-weight: 500; }
.public-nav > .u-flex { flex-shrink: 0; }
.hero { max-width: 1440px; margin: 0 auto; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; padding: 88px clamp(24px, 5vw, 72px) 76px; background: transparent; }
.hero h1 { font-size: clamp(2.8rem, 2.5rem + 1.5vw, 4.6rem); letter-spacing: -.065em; line-height: 1.07; margin: 22px 0; }
.hero h1 span { color: var(--route); }
.hero .lede { font-size: 1rem; max-width: 53ch; line-height: 1.85; }
.hero-label { display: inline-flex; padding: 7px 12px; border: 1px solid #d3e6db; background: var(--route-tint); border-radius: 999px; font-size: .6rem; letter-spacing: .07em; }
.hero-ctas { gap: 10px; }
.hero-ctas .btn { font-size: .8rem; }
.hero-journey { position: relative; background: #fff; border: 1px solid var(--line); box-shadow: 12px 16px 0 #e3eee7, var(--shadow-md); border-radius: 26px; padding: 30px; }
.journey-heading { display: flex; align-items: center; justify-content: space-between; color: var(--route); padding-bottom: 24px; margin-bottom: 30px; border-bottom: 1px solid var(--line); gap: 16px; }
.journey-label { font-size: .61rem; letter-spacing: .15em; font-weight: 700; }
.hero-journey .stop { grid-template-columns: 38px 1fr; gap: 20px; }
.hero-journey .stop-node { width: 38px; height: 38px; border-width: 1px; }
.hero-journey .stop-body { padding: 4px 0 30px; }
.hero-journey .stop:last-child .stop-body { padding-bottom: 0; }
.hero-journey .stop-body h4 { font-size: 1rem; margin-bottom: 6px; }
.hero-journey .stop-meta { line-height: 1.65; font-size: .77rem; }
.journey-footer { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; display: flex; align-items: center; gap: 10px; font-size: .7rem; color: var(--mist); }
.journey-check { color: var(--route); width: 24px; height: 24px; border-radius: 50%; background: var(--route-tint); display: inline-flex; align-items: center; justify-content: center; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-heading { margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(1.65rem, 1.3rem + .8vw, 2.3rem); line-height: 1.25; }
.section-heading p { font-size: .92rem; }
.impact-stats { padding: 30px 10px; border: 1px solid var(--line); background: #fff; border-radius: 20px; gap: 24px; }
.impact-stats > div { border-right: 1px solid var(--line); padding: 6px 16px; }
.impact-stats > div:last-child { border-right: 0; }
.impact-stats .num { font-size: 2.2rem; font-weight: 600; letter-spacing: -.05em; }
.impact-stats .lbl { font-size: .72rem; font-weight: 500; }
.highlight-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.highlight-body { padding: 24px; }
.highlight-body p { font-size: .85rem; }
.donation-carousel-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0; padding: 4px 0 16px; scrollbar-width: thin; scrollbar-color: #b7cbc0 transparent; }
.donation-slide { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); scroll-snap-align: start; min-width: 0; }
.donation-thumbnail { width: 144px; height: 160px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.donation-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.donation-thumbnail img[hidden], .donation-no-photo[hidden] { display: none; }
.donation-no-photo { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--mist); text-align: center; font-size: .7rem; padding: 12px; }
.donation-no-photo .icon { width: 30px; height: 30px; color: var(--route); }
.donation-summary { min-width: 0; }
.donation-summary h3 { font-size: 1.05rem; line-height: 1.4; margin: 12px 0 20px; overflow-wrap: anywhere; }
.donation-facts { margin: 0; display: grid; gap: 12px; }
.donation-facts > div { min-width: 0; }
.donation-facts dt { color: var(--mist); font-size: .68rem; margin-bottom: 2px; }
.donation-facts dd { margin: 0; color: var(--ink); font-size: .83rem; font-weight: 500; overflow-wrap: anywhere; }
.donation-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.donation-carousel-controls[hidden] { display: none; }
.donation-carousel-position { margin: 0; font-size: .78rem; color: var(--mist); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .donation-carousel-track { grid-auto-columns: 100%; } }
@media (max-width: 600px) {
  .donation-slide { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .donation-thumbnail { width: 88px; height: 104px; }
  .donation-summary h3 { font-size: .94rem; }
  .donation-facts dd { font-size: .78rem; }
  .donation-no-photo { font-size: .6rem; padding: 6px; }
}
.cta-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cta-tile { padding: 28px; border-radius: 18px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.cta-tile:hover { transform: translateY(-3px); color: var(--ink); }
.cta-tile p { font-size: .85rem; }
.public-footer { background: #153c33; color: #d3e3da; padding-top: 56px; }
.public-footer p { color: #d3e3da; font-size: .84rem; }
.public-footer a { color: #d3e3da; font-size: .82rem; }
.footer-links strong { font-size: .73rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.footer-bottom { color: #b3cabd; font-size: .7rem; }

/* Acceso, registro y recuperación de contraseña. */
.auth-shell { grid-template-columns: 1fr 1fr; }
.auth-brand { background: #153c33; color: #fff; padding: clamp(30px, 4vw, 64px); gap: 36px; }
.auth-brand-top .brand-mark { color: #fff; margin-bottom: 52px; font-size: 1.4rem; letter-spacing: -.04em; }
.auth-brand .brand-mark .dot { background: #b4ddc4; }
.auth-brand h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 1.5vw, 3rem); max-width: 17ch; line-height: 1.13; }
.auth-brand .lede { color: #c2d7ca; font-size: .94rem; line-height: 1.8; margin-top: 20px; }
.auth-brand .stop-body h4 { color: #fff; }
.auth-brand .stop-meta { color: #c2d7ca; font-size: .77rem; }
.auth-brand .stop-node { background: #254b3f; border-color: #6c9580; color: #fff; }
.auth-brand .stop.is-done .stop-node { background: #c2e4cc; border-color: #c2e4cc; color: #153c33; }
.auth-brand .stop.is-current .stop-node { background: #fff; border-color: #fff; color: #153c33; box-shadow: 0 0 0 5px #ffffff12; }
.auth-journey { margin-top: 0; }
.auth-foot, .auth-foot a { color: #c2d7ca; font-size: .72rem; }
.auth-panel { padding: 56px 32px; }
.auth-form-card { max-width: 420px; }
.auth-form-card > h1 { font-size: 2.1rem; margin-bottom: 28px; }
.auth-form-card .role-hint { font-size: .8rem; border: 0; border-left: 3px solid #bed6c7; background: #f4f8f5; line-height: 1.7; }
.auth-form-card .auth-links { justify-content: flex-end; font-size: .78rem; }
.auth-form-card > p.u-text-center { margin-top: 24px; line-height: 1.8; font-size: .8rem; }
body > .public-nav + .main { margin: 0 auto; padding-top: 48px; }

@media (min-width: 1600px) { .main { max-width: 1800px; } }
@media (max-width: 1150px) {
  .public-nav { flex-wrap: wrap; }
  .public-nav-links { order: 3; width: 100%; justify-content: center; }
  .hero { gap: 32px; padding-top: 60px; }
  .hero-journey { padding: 24px; }
}
@media (max-width: 980px) {
  .topbar { padding: 0 20px; }
  .main { padding: 26px 22px 48px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .main-header > .u-flex { width: 100%; }
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .public-nav-links { display: flex; }
  .auth-brand { padding: 32px; gap: 24px; }
  .auth-brand-top .brand-mark { margin-bottom: 26px; }
  .auth-brand h1 { max-width: 25ch; font-size: 2rem; }
  .auth-brand .lede { max-width: 65ch; }
  .auth-journey { display: none; }
  .auth-panel { padding: 40px 24px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 48px 24px; }
  .hero h1 { font-size: clamp(2.9rem, 7vw, 4rem); }
  .hero-journey { max-width: 540px; width: calc(100% - 12px); margin: 8px auto 16px; }
  .section { padding: 44px 24px; }
  .impact-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-stats > div:nth-child(2) { border-right: 0; }
}
@media (max-width: 600px) {
  .public-nav { padding: 16px; gap: 16px; }
  .public-nav .brand-mark { font-size: 1.1rem; }
  .public-nav > .u-flex { gap: 8px; }
  .public-nav .btn-sm { padding: 8px 10px; font-size: .69rem; }
  .public-nav-links { display: flex; justify-content: flex-start; overflow-x: auto; gap: 20px; padding: 3px 0; scrollbar-width: none; }
  .public-nav-links::-webkit-scrollbar { display: none; }
  .public-nav-links a { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
  .brand-symbol { width: 32px; height: 32px; border-radius: 10px; }
  .public-nav > .brand-mark { margin-right: auto; }
  .main { padding: 24px 16px 40px; }
  .main-header { gap: 18px; }
  .main-header .btn { flex: 1 1 auto; }
  .topbar { padding: 0 16px; gap: 8px; }
  .topbar-user { gap: 8px; }
  .topbar-title { font-size: .8rem; }
  .card, .form-section { padding: 20px; }
  .kpi-grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-card { padding: 18px 14px; }
  .kpi-card::after { top: 21px; right: 16px; width: 6px; height: 6px; box-shadow: none !important; }
  .kpi-label { min-height: 38px; font-size: .7rem; padding-right: 12px; }
  .kpi-value { font-size: 2rem; }
  .kpi-sub { font-size: .66rem; }
  .category-track { flex-direction: column; align-items: stretch; }
  .notif-item { flex-wrap: wrap; padding: 18px; }
  .notif-time { margin-left: 54px; }
  .modal { padding: 22px; max-height: calc(100dvh - 32px); }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-label { font-size: .55rem; }
  .impact-stats { gap: 20px 0; padding: 24px 6px; }
  .impact-stats .num { font-size: 1.9rem; }
  .impact-stats .lbl { font-size: .65rem; }
  .footer-grid { gap: 32px; }
  .form-footer .btn { width: 100%; }
  .donante-selected { flex-wrap: wrap; }
}
@media (max-width: 400px) { .toggle-stack { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cta-tile:hover { transform: none; } }
@media print {
  .sidebar, .topbar, .public-nav, .overlay-scrim, .row-actions { display: none; }
  .main { margin: 0; padding: 0; max-width: none; }
  body { background: #fff; }
  .card, .kpi-card, .table-wrap { box-shadow: none; break-inside: avoid; }
}

.necesidad-card progress { display: block; width: 100%; height: 12px; accent-color: var(--route); }
.necesidad-card .progress-row { flex-wrap: wrap; gap: var(--sp-2); }
.bar-chart.historial-chart { height: auto; }
.historial-chart .bar-col { height: auto; }
.historial-barra { display: flex; align-items: flex-end; justify-content: center; height: 120px; width: 100%; }
