:root {
    --green:#1f7558;
    --green-dark:#164b3b;
    --green-soft:#eaf5ef;
    --ink:#17251f;
    --muted:#718078;
    --line:#e7ece8;
    --surface:#fff;
    --bg:#f7f9f7;
    --amber:#fff3df;
    --blue:#eaf2ff;
    --lavender:#f0edff;
    --shadow:0 12px 36px rgba(25,55,40,.07);
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:"DM Sans",sans-serif;
    font-size:14px;
}

h1,h2,h3 {
    font-family:Manrope,sans-serif;
    letter-spacing:-.035em;
    margin:0;
    color:var(--ink);
}

h1 {
    font-size:clamp(30px,4vw,43px);
    line-height:1.13;
}

h2 {
    font-size:29px;
}

h3 {
    font-size:17px;
}

p {
    color:var(--muted);
    line-height:1.65;
}

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

button,input,select,textarea {
    font:inherit;
}

button {
    cursor:pointer;
}

.public-header {
    height:78px;
    padding:0 max(calc((100vw - 1180px)/2),5vw);
    display:flex;
    align-items:center;
    gap:40px;
    background:#fff;
    border-bottom:1px solid var(--line);
}

.brand {
    display:flex;
    align-items:center;
    gap:10px;
    font:800 19px Manrope;
    color:var(--ink);
    white-space:nowrap;
}

.brand-mark {
    width:34px;
    height:34px;
    border-radius:11px;
    background:var(--green);
    color:#fff;
    display:grid;
    place-items:center;
    font:800 20px Manrope;
}

.public-header nav {
    display:flex;
    gap:28px;
    margin-left:auto;
}

.public-header nav a {
    color:#56645c;
    font-weight:600;
}

.header-actions {
    display:flex;
    gap:10px;
}

.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:11px 17px;
    border-radius:9px;
    border:1px solid transparent;
    font-weight:700;
    font-size:13px;
    transition:.2s;
}

.btn-primary {
    background:var(--green);
    color:white;
    box-shadow:0 5px 14px #1f755822;
}

.btn-primary:hover {
    background:var(--green-dark);
    transform:translateY(-1px);
}

.btn-ghost {
    background:#fff;
    border-color:var(--line);
    color:var(--ink);
}

.btn-white {
    background:#fff;
    color:var(--green-dark);
}

.btn-lg {
    padding:14px 20px;
}

.btn-block {
    width:100%;
    margin-top:8px;
}

.public-main {
    max-width:1180px;
    margin:auto;
    padding:0 24px;
}

.hero {
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:50px;
    padding:72px 0 58px;
    min-height:570px;
}

.eyebrow {
    font-size:10px;
    letter-spacing:.14em;
    font-weight:800;
    color:var(--green);
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.eyebrow-dot,.live-dot {
    width:7px;
    height:7px;
    border-radius:50%;
    background:#39a979;
}

.hero h1 {
    font-size:clamp(46px,5vw,65px);
    margin:20px 0;
}

.hero h1 em {
    font-style:normal;
    color:var(--green);
}

.lead {
    font-size:16px;
    max-width:490px;
}

.hero-actions {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:28px;
}

.trust-row {
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:34px;
}

.trust-row small {
    color:var(--muted);
    font-size:11px;
}

.trust-avatars {
    display:flex;
}

.trust-avatars span {
    width:28px;
    height:28px;
    border:2px solid white;
    border-radius:50%;
    background:#dcece3;
    display:grid;
    place-items:center;
    font-size:8px;
    font-weight:800;
    margin-right:-7px;
}

.hero-art {
    height:390px;
    position:relative;
    display:grid;
    place-items:center;
}

.hero-blob {
    position:absolute;
    width:330px;
    height:330px;
    border-radius:48% 52% 60% 40%;
    background:#e5f2e9;
    transform:rotate(-18deg);
    z-index:0;
}

.hero-orbit {
    position:absolute;
    border:1px solid #c6ddce;
    border-radius:50%;
    z-index:1;
}

.orbit-one {
    width:390px;
    height:290px;
    transform:rotate(25deg);
}

.orbit-two {
    width:440px;
    height:340px;
    transform:rotate(-25deg);
}

.card-main {
    position:relative;
    z-index:2;
    width:300px;
    background:#fff;
    border:1px solid #edf1ed;
    border-radius:17px;
    padding:22px;
    box-shadow:0 22px 55px #244c3420;
}

.card-top {
    font-size:9px;
    letter-spacing:.1em;
    font-weight:800;
    color:var(--green);
    display:flex;
    align-items:center;
    gap:8px;
}

.more {
    margin-left:auto;
    color:#a3afa7;
    font-size:20px;
}

.package-icon {
    width:55px;
    height:55px;
    background:var(--green-soft);
    color:var(--green);
    border-radius:15px;
    display:grid;
    place-items:center;
    font-size:28px;
    margin:23px 0 15px;
}

.card-main h3 {
    font-size:16px;
}

.card-main p {
    font-size:11px;
    margin:7px 0 18px;
}

.progress-track {
    height:6px;
    background:#edf1ee;
    border-radius:9px;
    overflow:hidden;
}

.progress-track span {
    display:block;
    height:100%;
    background:#3ca578;
}

.card-foot {
    display:flex;
    justify-content:space-between;
    margin-top:12px;
    font-size:10px;
}

.card-foot b {
    color:var(--green);
}

.card-foot small {
    color:var(--muted);
}

.floating-chip {
    position:absolute;
    z-index:3;
    background:white;
    padding:12px 15px;
    border-radius:11px;
    box-shadow:var(--shadow);
    font-size:11px;
    font-weight:700;
}

.chip-a {
    top:55px;
    right:2px;
    color:var(--green);
}

.chip-b {
    bottom:52px;
    left:0;
}

.mini-pin {
    color:var(--green);
    font-size:18px;
    margin-right:5px;
}

.stats-strip {
    display:flex;
    justify-content:space-around;
    border-block:1px solid var(--line);
    padding:24px 0;
}

.stats-strip div {
    display:flex;
    flex-direction:column;
    gap:4px;
}

.stats-strip strong {
    font:800 18px Manrope;
}

.stats-strip span {
    font-size:11px;
    color:var(--muted);
}

.section-block {
    padding:82px 0;
}

.section-heading {
    text-align:center;
    margin-bottom:35px;
}

.section-heading h2 {
    margin:14px 0;
}

.section-heading p {
    margin:0;
}

.feature-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.feature-card {
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    padding:25px;
}

.feature-icon {
    width:42px;
    height:42px;
    border-radius:12px;
    background:var(--green-soft);
    color:var(--green);
    display:grid;
    place-items:center;
    font-size:22px;
}

.feature-card h3 {
    margin-top:18px;
}

.feature-card p {
    font-size:13px;
    margin-bottom:0;
}

.cta-band {
    background:var(--green-dark);
    border-radius:18px;
    padding:42px 48px;
    color:white;
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:65px;
}

.cta-band h2 {
    color:#fff;
    margin-top:12px;
}

.light {
    color:#b4ddc4;
}

.public-footer {
    max-width:1180px;
    margin:auto;
    padding:25px 24px;
    display:flex;
    justify-content:space-between;
    color:#8b9890;
    font-size:11px;
    border-top:1px solid var(--line);
}

.sidebar {
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:244px;
    background:#fff;
    border-right:1px solid var(--line);
    padding:25px 16px;
    display:flex;
    flex-direction:column;
    z-index:10;
}

.sidebar .brand {
    padding:0 10px 32px;
}

.side-caption {
    font-size:9px;
    font-weight:800;
    letter-spacing:.15em;
    color:#9aa69e;
    padding:0 12px 12px;
}

.side-nav {
    display:flex;
    flex-direction:column;
    gap:5px;
}

.side-link {
    display:flex;
    align-items:center;
    gap:12px;
    padding:11px 12px;
    border-radius:8px;
    color:#66746c;
    font-size:13px;
    font-weight:600;
}

.side-link span {
    font-size:17px;
    width:18px;
    text-align:center;
}

.side-link:hover,.side-link.active {
    background:var(--green-soft);
    color:var(--green);
}

.sidebar-bottom {
    margin-top:auto;
}

.user-mini {
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 7px;
    border-top:1px solid var(--line);
    margin-bottom:8px;
}

.user-mini strong,.user-mini small {
    display:block;
}

.user-mini strong {
    font-size:11px;
}

.user-mini small {
    font-size:10px;
    color:var(--muted);
    margin-top:3px;
}

.avatar {
    width:34px;
    height:34px;
    border-radius:50%;
    background:#dcece3;
    color:var(--green-dark);
    display:grid;
    place-items:center;
    font-weight:800;
    font-size:11px;
    flex:none;
}

.avatar.small {
    width:30px;
    height:30px;
}

.app-topbar {
    height:68px;
    position:fixed;
    top:0;
    left:244px;
    right:0;
    background:#fff;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 34px;
    z-index:9;
}

.breadcrumb {
    font-size:12px;
    font-weight:700;
}

.breadcrumb span {
    color:#aeb8b1;
    margin:0 8px;
}

.top-actions {
    display:flex;
    align-items:center;
    gap:18px;
}

.icon-button {
    border:0;
    background:none;
    font-size:20px;
    position:relative;
    color:#6c7b72;
}

.icon-button i {
    position:absolute;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#e69b4b;
    top:1px;
    right:0;
}

.app-main {
    margin-left:244px;
    padding:104px 34px 55px;
    min-height:calc(100vh - 60px);
    max-width:1600px;
}

.mobile-menu {
    display:none;
}

.page-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:25px;
}

.page-heading h1 {
    font-size:32px;
    margin:8px 0;
}

.page-heading p {
    margin:0;
}

.date-chip {
    background:#fff;
    border:1px solid var(--line);
    padding:10px 13px;
    border-radius:8px;
    color:var(--muted);
    font-size:11px;
}

.metric-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-bottom:20px;
}

.metric-card {
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:5px;
    min-height:135px;
}

.metric-card strong {
    font:800 27px Manrope;
    margin-top:8px;
}

.metric-card>span:not(.metric-icon) {
    font-size:11px;
    color:var(--muted);
}

.metric-card small {
    font-size:9px;
    color:#a3ada6;
}

.metric-icon {
    width:30px;
    height:30px;
    border-radius:9px;
    display:grid;
    place-items:center;
}

.green {
    background:var(--green-soft);
    color:var(--green);
}

.blue {
    background:var(--blue);
    color:#4773b7;
}

.amber {
    background:var(--amber);
    color:#b17c30;
}

.lavender {
    background:var(--lavender);
    color:#7969b2;
}

.dashboard-grid {
    display:grid;
    grid-template-columns:1.7fr 1fr;
    gap:16px;
}

.panel {
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    padding:20px;
    box-shadow:0 2px 8px #173d2405;
}

.panel-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:17px;
}

.panel-head small,.muted {
    font-size:11px;
    color:var(--muted);
}

.panel-head h3 {
    margin-bottom:4px;
}

.table-wrap {
    overflow-x:auto;
}

table {
    width:100%;
    border-collapse:collapse;
    text-align:left;
    white-space:nowrap;
}

th {
    font-size:9px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#96a199;
    font-weight:800;
    padding:12px 10px;
    border-bottom:1px solid var(--line);
}

td {
    font-size:11px;
    padding:15px 10px;
    border-bottom:1px solid #f0f3f0;
    color:#536159;
}

tbody tr:last-child td {
    border-bottom:0;
}

td:first-child {
    font-weight:700;
    color:#27372e;
}

.status-pill {
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px 8px;
    border-radius:30px;
    font-size:9px;
    font-weight:800;
    white-space:nowrap;
}

.success {
    background:#e9f6ee;
    color:#278253;
}

.info {
    background:#eaf2ff;
    color:#4773b7;
}

.warning {
    background:#fff4e2;
    color:#a97525;
}

.danger {
    background:#ffeded;
    color:#b94f4f;
}

.quick-panel {
    align-self:start;
}

.quick-link {
    display:flex;
    justify-content:space-between;
    padding:14px 2px;
    border-bottom:1px solid var(--line);
    font-size:12px;
    font-weight:600;
    color:#526158;
}

.quick-link:last-child {
    border:0;
}

.quick-link b {
    color:var(--green);
}

.filter-bar {
    display:flex;
    gap:14px;
    align-items:end;
    flex-wrap:wrap;
    margin-bottom:17px;
}

.filter-bar label {
    min-width:160px;
    flex:1;
}

.filter-bar.panel {
    padding:14px;
    margin-bottom:16px;
}

.filter-bar label,.form-panel>label,.modal-card>label {
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:11px;
    font-weight:700;
    color:#536158;
}

.filter-bar input,.filter-bar select,label input,label select,label textarea {
    width:100%;
    border:1px solid #e2e9e3;
    background:#fff;
    border-radius:8px;
    padding:11px 12px;
    outline:none;
    color:var(--ink);
    font-size:12px;
}

.filter-bar input:focus,.filter-bar select:focus,label input:focus,label select:focus,textarea:focus {
    border-color:#7bb69a;
    box-shadow:0 0 0 3px #e7f4ec;
}

.status-pill.success {
    background:#e9f6ee;
}

.table-action {
    border:0;
    background:none;
    color:var(--green);
    font-weight:700;
    font-size:11px;
}

.entity-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.entity-card {
    position:relative;
}

.entity-symbol {
    width:44px;
    height:44px;
    border-radius:12px;
    background:var(--green-soft);
    color:var(--green);
    display:grid;
    place-items:center;
    font-size:23px;
    margin-bottom:15px;
}

.entity-card .status-pill {
    position:absolute;
    top:20px;
    right:17px;
}

.entity-card h3 {
    margin-bottom:5px;
}

.entity-card p {
    font-size:11px;
    margin:0 0 10px;
}

.entity-card small {
    display:block;
    color:var(--muted);
    font-size:11px;
    min-height:34px;
    margin-bottom:15px;
}

.entity-card a {
    font-size:11px;
    font-weight:800;
}

.public-map-layout,.tracking-layout {
    display:grid;
    grid-template-columns:1.7fr 1fr;
    gap:16px;
}

.map-panel {
    padding:17px;
}

.map-canvas {
    height:410px;
    border-radius:9px;
    overflow:hidden;
    background:#e8eee9;
}

.tracking-map {
    height:470px;
}

.donation-list {
    align-self:start;
}

.donation-item {
    display:flex;
    gap:12px;
    padding:14px 0;
    border-bottom:1px solid var(--line);
}

.donation-item:last-child {
    border:0;
}

.item-icon {
    width:38px;
    height:38px;
    border-radius:10px;
    background:var(--green-soft);
    color:var(--green);
    display:grid;
    place-items:center;
    font-size:19px;
    flex:none;
}

.donation-item b,.donation-item small {
    display:block;
}

.donation-item b {
    font-size:11px;
}

.donation-item small {
    font-size:10px;
    color:var(--muted);
    margin:4px 0 8px;
}

.notice {
    font-size:10px;
    color:#8b9890;
    margin:14px 2px;
}

.tracking-details h3 {
    font-size:20px;
    margin:12px 0 4px;
}

.tracking-step {
    padding:13px 10px 13px 24px;
    border-left:2px solid #e6ece7;
    position:relative;
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-left:5px;
}

.tracking-step:before {
    content:"";
    position:absolute;
    left:-6px;
    top:15px;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#dce5de;
}

.tracking-step.done:before {
    background:#45a576;
}

.tracking-step.current:before {
    background:#e3a343;
    box-shadow:0 0 0 4px #fff4e2;
}

.tracking-step b {
    font-size:11px;
}

.tracking-step small {
    font-size:10px;
    color:var(--muted);
}

.detail-pair {
    display:flex;
    justify-content:space-between;
    gap:10px;
    padding:13px 0;
    border-bottom:1px solid var(--line);
    font-size:10px;
    color:var(--muted);
}

.detail-pair b {
    color:var(--ink);
    text-align:right;
}

.priority {
    font-size:10px;
    font-weight:800;
}

.priority.high {
    color:#c46b45;
}

.priority.medium {
    color:#b18438;
}

.receipt-layout,.assignment-layout,.csv-layout {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.form-panel {
    display:flex;
    flex-direction:column;
    gap:15px;
}

.form-panel h2 {
    font-size:23px;
}

.upload-box {
    border:1px dashed #b8cbbd;
    border-radius:10px;
    padding:25px;
    text-align:center;
    align-items:center;
    cursor:pointer;
    background:#f9fcfa;
}

.upload-box input {
    max-width:230px;
    border:0;
    padding:5px;
}

.upload-box small {
    font-weight:400;
    color:var(--muted);
}

.upload-symbol {
    font-size:25px;
    color:var(--green);
}

.select-donation {
    padding:14px;
    border:1px solid var(--line);
    border-radius:9px;
    margin-bottom:10px;
    display:flex;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

.select-donation.active {
    border-color:#78b697;
    background:#f5fbf7;
}

.select-donation b {
    font-size:12px;
}

.select-donation small,.select-donation .muted {
    font-size:10px;
}

.recommendation {
    background:#f0f8f2;
    border:1px solid #dceee1;
    padding:15px;
    border-radius:9px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.recommendation span {
    font-size:9px;
    color:var(--green);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.recommendation b {
    font-size:14px;
}

.recommendation small {
    font-size:10px;
    color:var(--muted);
}

.compact {
    margin-top:4px;
}

.csv-requirements {
    background:#f6f9f6;
    padding:14px;
    border-radius:8px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.csv-requirements b {
    font-size:11px;
}

.csv-requirements code {
    font-size:10px;
    background:#fff;
    padding:9px;
    border:1px solid var(--line);
    border-radius:6px;
}

.csv-requirements small {
    font-size:10px;
    color:var(--muted);
}

.process-step {
    display:flex;
    gap:12px;
    padding:13px 0;
    border-bottom:1px solid var(--line);
}

.process-step>span {
    width:25px;
    height:25px;
    border-radius:50%;
    background:var(--green-soft);
    color:var(--green);
    display:grid;
    place-items:center;
    font-weight:800;
    font-size:11px;
    flex:none;
}

.process-step b,.process-step small {
    display:block;
}

.process-step b {
    font-size:11px;
}

.process-step small {
    font-size:10px;
    color:var(--muted);
    margin-top:4px;
}

.csv-feedback {
    font-size:11px;
    color:var(--green);
}

.auth-wrap {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
    max-width:1000px;
    margin:65px auto;
}

.auth-intro h1 {
    font-size:48px;
    margin:18px 0;
}

.auth-intro h1 em {
    font-style:normal;
    color:var(--green);
}

.auth-intro p {
    max-width:400px;
}

.auth-benefit {
    font-size:12px;
    color:#536158;
    margin-top:17px;
}

.auth-benefit:first-letter {
    color:var(--green);
}

.form-panel {
    padding:28px;
}

.form-title {
    margin-bottom:8px;
}

.form-title h2 {
    font-size:25px;
}

.form-title p {
    font-size:12px;
    margin:6px 0;
}

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

.check-label {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:10px!important;
    font-weight:500!important;
    flex-wrap:wrap;
}

.check-label input {
    width:auto;
}

.form-bottom {
    text-align:center;
    font-size:11px;
}

.form-bottom a,.form-between a {
    font-weight:800;
}

.form-between {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.form-between>a {
    font-size:10px;
}

.demo-hint {
    font-size:9px;
    text-align:center;
    color:#9aa59d;
}

.login-illustration {
    height:125px;
    display:flex;
    align-items:center;
    gap:15px;
    margin-top:28px;
}

.login-illustration span {
    width:65px;
    height:65px;
    border-radius:18px;
    background:#e8f3eb;
    color:var(--green);
    display:grid;
    place-items:center;
    font-size:27px;
}

.login-illustration span:nth-child(2) {
    transform:translateY(-15px);
    background:#f0edff;
    color:#7969b2;
}

.login-illustration span:nth-child(3) {
    background:#fff3df;
    color:#b17c30;
}

.narrow-content {
    max-width:800px;
    margin:65px auto;
}

.narrow-content h1 {
    margin:12px 0;
}

.legal-panel {
    margin-top:25px;
    padding:30px;
}

.legal-panel h3 {
    margin:22px 0 8px;
}

.legal-panel h3:first-child {
    margin-top:0;
}

.legal-panel p {
    font-size:12px;
}

.modal {
    display:none;
    position:fixed;
    inset:0;
    background:#10271db0;
    z-index:30;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.modal.open {
    display:flex;
}

.modal-card {
    background:#fff;
    border-radius:14px;
    padding:28px;
    width:min(500px,100%);
    display:flex;
    flex-direction:column;
    gap:15px;
    position:relative;
    max-height:90vh;
    overflow:auto;
}

.modal-card h2 {
    font-size:23px;
}

.modal-close {
    position:absolute;
    right:18px;
    top:14px;
    border:0;
    background:none;
    font-size:24px;
    color:#829087;
}

.toast {
    position:fixed;
    bottom:25px;
    right:25px;
    background:#173f31;
    color:#fff;
    padding:13px 18px;
    border-radius:9px;
    box-shadow:var(--shadow);
    z-index:50;
    font-size:12px;
}

.alerta {
    position:fixed;
    bottom:25px;
    right:25px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    max-width:320px;
    padding:12px 14px;
    border-radius:9px;
    box-shadow:var(--shadow);
    z-index:60;
    font-size:13px;
    line-height:1.3;
    color:#fff;
}

.alerta + .alerta {
    bottom:95px;
}

.alerta.error {
    background:#b43b3b;
}

.alerta.advertencia {
    background:#c88520;
}

.alerta-icono {
    flex:0 0 auto;
    width:22px;
    height:22px;
    border-radius:50%;
    background:rgba(255,255,255,0.18);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:14px;
}

.alerta-texto {
    flex:1 1 auto;
    padding-top:2px;
}

.alerta-cerrar {
    background:transparent;
    border:0;
    color:#fff;
    cursor:pointer;
    font-size:18px;
    line-height:1;
    padding:0 0 0 6px;
    opacity:0.8;
}

.alerta-cerrar:hover {
    opacity:1;
}

.alerta.oculta {
    opacity:0;
    transform:translateY(12px);
    transition:opacity 180ms ease, transform 180ms ease;
    pointer-events:none;
}

.app-main+.public-footer {
    margin-left:244px;
}

.public-footer a {
    color:var(--green);
}

@media(max-width:1000px) {

    .sidebar {
        width:210px;
    }

    .app-topbar {
        left:210px;
    }

    .app-main {
        margin-left:210px;
        padding-inline:22px;
    }

    .metric-grid {
        grid-template-columns:repeat(2,1fr);
    }

    .dashboard-grid,.public-map-layout,.tracking-layout {
        grid-template-columns:1fr;
    }

    .entity-grid {
        grid-template-columns:repeat(2,1fr);
    }

    .hero {
        gap:20px;
    }

    .hero-art {
        transform:scale(.9);
    }
}

@media(max-width:720px) {

    .public-header {
        padding:0 17px;
        height:66px;
        gap:12px;
    }

    .public-header nav {
        display:none;
    }

    .header-actions {
        margin-left:auto;
    }

    .header-actions .btn {
        padding:9px 10px;
        font-size:11px;
    }

    .public-main {
        padding:0 17px;
    }

    .hero {
        grid-template-columns:1fr;
        padding:48px 0 30px;
        gap:0;
    }

    .hero h1 {
        font-size:47px;
    }

    .hero-art {
        height:330px;
        transform:scale(.82);
        margin-top:-5px;
    }

    .stats-strip {
        gap:15px;
        flex-wrap:wrap;
    }

    .stats-strip div {
        min-width:28%;
    }

    .stats-strip strong {
        font-size:14px;
    }

    .stats-strip span {
        font-size:9px;
    }

    .feature-grid {
        grid-template-columns:1fr;
    }

    .section-block {
        padding:50px 0;
    }

    .cta-band {
        padding:28px;
        display:block;
    }

    .cta-band .btn {
        margin-top:20px;
    }

    .public-footer {
        padding-inline:17px;
        gap:10px;
        flex-wrap:wrap;
    }

    .sidebar {
        transform:translateX(-100%);
        transition:.25s;
        width:245px;
        box-shadow:var(--shadow);
    }

    body.menu-open .sidebar {
        transform:translateX(0);
    }

    .app-topbar {
        left:0;
        padding:0 16px;
    }

    .mobile-menu {
        display:block;
        border:0;
        background:none;
        font-size:20px;
    }

    .breadcrumb {
        margin-right:auto;
        margin-left:12px;
    }

    .app-main {
        margin-left:0;
        padding:90px 16px 40px;
    }

    .page-heading {
        align-items:flex-start;
        flex-direction:column;
    }

    .page-heading h1 {
        font-size:28px;
    }

    .metric-grid {
        gap:9px;
    }

    .metric-card {
        padding:13px;
        min-height:120px;
    }

    .metric-card strong {
        font-size:23px;
    }

    .entity-grid,.receipt-layout,.assignment-layout,.csv-layout {
        grid-template-columns:1fr;
    }

    .auth-wrap {
        grid-template-columns:1fr;
        gap:25px;
        margin:35px auto;
    }

    .auth-intro h1 {
        font-size:38px;
    }

    .auth-intro p {
        font-size:13px;
    }

    .login-wrap .auth-intro {
        display:none;
    }

    .form-panel {
        padding:21px;
    }

    .form-row {
        grid-template-columns:1fr;
    }

    .map-canvas {
        height:340px;
    }

    .tracking-map {
        height:350px;
    }

    .app-main+.public-footer {
        margin-left:0;
    }

    .date-chip {
        display:none;
    }
}

.delivery-carousel {
    width: 340px;
    max-width: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.delivery-slide {
    display: none !important;
    width: 100%;
}

.delivery-slide.active {
    display: block !important;
    animation: deliveryFade .3s ease;
}

.delivery-slide img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.carousel-counter {
    margin-left: auto;
}

@keyframes deliveryFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* POPUP DE DONACIONES */ .donation-popup {
    width: 240px;
    overflow: hidden;
}

.donation-popup-image {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-radius: 8px;
}

.donation-popup-content {
    padding: 10px 2px 2px;
}

.donation-popup-content h3 {
    margin: 10px 0 5px;
    font-size: 15px;
}

.donation-popup-content p {
    margin: 0 0 5px;
    font-size: 13px;
}

.donation-popup-content small {
    color: #66736c;
    font-size: 12px;
}


/* ACCESO DENEGADO */

.access-denied {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 0;
}

.access-denied-card {
    width: 100%;
    max-width: 570px;
    padding: 48px 45px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    text-align: center;
}

.access-denied-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 25px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: #fff3df;
    color: #b17c30;
}

.access-denied-icon span {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font: 800 22px Manrope;
}

.access-denied-card .eyebrow {
    justify-content: center;
    margin-bottom: 17px;
}

.access-denied-card h1 {
    font-size: clamp(27px, 4vw, 36px);
    margin-bottom: 15px;
}

.access-denied-card > p {
    max-width: 420px;
    margin: 0 auto;
    font-size: 13px;
}

.access-denied-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.access-denied-reference {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.access-denied-reference span:first-child {
    font-weight: 800;
    color: var(--green);
    letter-spacing: .08em;
}

@media(max-width: 720px) {
    .access-denied {
        min-height: calc(100vh - 150px);
        padding: 35px 0;
    }

    .access-denied-card {
        padding: 35px 22px;
    }

    .access-denied-actions {
        flex-direction: column;
    }

    .access-denied-actions .btn {
        width: 100%;
    }
}


/* CARGA DE FOTOGRAFÍA DE DONACIÓN */

.photo-upload {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.photo-upload > label {
    font-size: 11px;
    font-weight: 700;
    color: #536158;
}

.photo-upload-area {
    position: relative;
    border: 1px dashed #b8cbbd;
    background: #f9fcfa;
    border-radius: 11px;
    padding: 24px;
    text-align: center;
    transition: .2s;
}

.photo-upload-area:hover {
    border-color: var(--green);
    background: #f3faf5;
}

.photo-upload-area > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.photo-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.photo-upload-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    font-size: 23px;
}

.photo-upload-content strong {
    font-size: 12px;
    color: var(--green);
}

.photo-upload-content small {
    font-size: 10px;
    color: var(--muted);
}

.photo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.photo-preview img {
    max-width: 100%;
    width: 260px;
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: white;
}

.photo-preview[hidden] {
    display: none;
}


/* CARRUSEL DE ENTREGAS PUBLICAS */

.public-deliveries {
    margin-bottom: 16px;
    padding: 18px;
}

.public-deliveries .delivery-carousel {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.public-deliveries .delivery-slide img {
    height: 300px;
    border-radius: 10px;
}

.delivery-slide-content {
    padding: 14px 4px;
}

.delivery-slide-content h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.delivery-slide-content p {
    margin: 0 0 6px;
    color: var(--muted);
}

.delivery-slide-content small {
    color: var(--muted);
}

.delivery-carousel-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    padding: 10px 0;
}

.delivery-carousel-controls button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 22px;
}

.map-empty-message {
    margin-top: 10px;
    font-size: 12px;
}
