:root { --brand: #153b63; --brand-dark: #0d2947; --accent: #2d7fb8; --canvas: #f4f7fb; --line: #dfe6ee; }
body { background: var(--canvas); color: #203040; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.app-navbar { height: 64px; background: linear-gradient(120deg, var(--brand-dark), var(--brand)); box-shadow: 0 4px 18px rgba(13,41,71,.18); }
.app-sidebar { --bs-offcanvas-width: 260px; background: #fff; }
.app-sidebar .nav-link { color: #435466; border-radius: .65rem; padding: .7rem .8rem; font-weight: 500; }
.app-sidebar .nav-link i { width: 1.55rem; display: inline-block; }
.app-sidebar .nav-link:hover, .app-sidebar .nav-link:focus { color: var(--brand); background: #edf4fa; }
.app-sidebar .action-link { color: #fff; background: var(--brand); margin: .35rem 0; }
.app-sidebar .action-link:hover { color: #fff; background: var(--brand-dark); }
.nav-section { color: #8896a5; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin: 1.2rem .8rem .3rem; font-weight: 700; }
.app-main { padding-top: 64px; min-height: 100vh; }
.page-title { color: #16324f; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; margin: 0; }
.page-subtitle { color: #718096; margin: .25rem 0 0; }
.card { border: 0; border-radius: 1rem; box-shadow: 0 4px 18px rgba(31, 55, 80, .07); }
.metric-card { height: 100%; }
.metric-label { color: #6b7b8c; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.metric-value { color: #183b5d; font-size: clamp(1.5rem, 4vw, 2.15rem); font-weight: 750; }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .85rem .75rem; border-color: #edf0f4; vertical-align: middle; }
.form-label { font-weight: 600; color: #35485c; }
.form-control, .form-select { min-height: 46px; border-radius: .65rem; border-color: #ced8e2; }
.btn { border-radius: .65rem; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); }
.badge { border-radius: 99px; padding: .48em .7em; }
.mobile-payment-bar { position: sticky; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); margin: 1rem -1rem -1rem; padding: .8rem 1rem; backdrop-filter: blur(8px); }
.property-card { transition: transform .15s ease, box-shadow .15s ease; }
.property-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31,55,80,.12); }
@media (min-width: 1400px) {
  .app-sidebar { position: fixed; top: 64px; bottom: 0; width: 260px; border-right: 1px solid var(--line); visibility: visible !important; transform: none !important; }
  .app-main { margin-left: 260px; }
}
@media (max-width: 575.98px) {
  .container-fluid { --bs-gutter-x: 1rem; }
  .card-body { padding: 1rem; }
  .btn-mobile-block { width: 100%; min-height: 48px; }
  .desktop-table { display: none; }
}
@media (min-width: 576px) { .mobile-cards { display: none; } }
@media print { .app-navbar, .app-sidebar, .no-print { display: none !important; } .app-main { margin: 0; padding: 0; } body { background: white; } .card { box-shadow: none; } }

/* Portal móvil del residente */
.resident-body { --resident-blue: #075aa6; --resident-dark: #06447d; --resident-bg: #f3f6fa; background: var(--resident-bg); color: #223449; padding-bottom: 92px; }
.resident-topbar { position: sticky; top: 0; z-index: 1040; height: 62px; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: 4px; padding: 0 12px; background: linear-gradient(135deg, #075aa6, #0871c9); box-shadow: 0 4px 18px rgba(5,61,112,.24); }
.resident-brand { color: #fff; text-decoration: none; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; }
.resident-brand i { font-size: 1.35rem; }
.resident-top-action { color: #fff; width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.2rem; border-radius: 50%; text-decoration: none; background: rgba(255,255,255,.12); }
.resident-sos { color: #fff; background: #d92135; text-decoration: none; font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 38px; border-radius: 10px; box-shadow: 0 3px 10px rgba(163,15,32,.3); }
.resident-shell { width: min(100%, 760px); margin: 0 auto; padding: 18px 14px 30px; }
.resident-alert { border: 0; border-radius: 14px; box-shadow: 0 6px 20px rgba(31,55,80,.1); }
.resident-welcome { display: flex; align-items: center; gap: 14px; padding: 8px 4px 18px; }
.community-mark { width: 62px; height: 62px; flex: 0 0 62px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #fff, #e4edf7); color: var(--resident-blue); font-size: 1.8rem; box-shadow: 0 6px 18px rgba(30,67,103,.12); }
.resident-welcome h1 { font-size: 1.18rem; font-weight: 780; line-height: 1.2; margin: 2px 0 4px; color: #15324f; }
.resident-welcome p { margin: 0; color: #6a7c90; font-size: .84rem; }
.resident-welcome .welcome-kicker { color: var(--resident-blue); text-transform: uppercase; font-size: .68rem; letter-spacing: .08em; font-weight: 800; }
.debt-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; margin-bottom: 14px; background: #fff5d7; color: #6d5100; border: 1px solid #f1dc91; border-radius: 14px; text-decoration: none; box-shadow: 0 4px 14px rgba(83,65,10,.08); }
.debt-banner span { font-size: .86rem; font-weight: 650; }.debt-banner strong { white-space: nowrap; font-size: .95rem; }.debt-banner.debt-ok { background: #e5f7ed; color: #0b6337; border-color: #b8e5cc; }
.resident-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.resident-stats div { background: #fff; border-radius: 14px; padding: 13px; box-shadow: 0 4px 15px rgba(27,55,83,.07); }
.resident-stats span { display: block; color: #74869a; font-size: .69rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 750; }.resident-stats strong { display: block; color: #153b63; font-size: 1.13rem; margin-top: 2px; }
.resident-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; margin: 4px 0 28px; }
.resident-menu > a { position: relative; color: #33465a; text-decoration: none; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .72rem; line-height: 1.18; font-weight: 650; min-width: 0; }
.resident-menu > a > b { position: absolute; top: -4px; left: calc(50% + 18px); min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: #d92135; color: #fff; font-size: .65rem; border: 2px solid var(--resident-bg); }
.menu-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 1.65rem; box-shadow: 0 7px 17px rgba(20,54,86,.18); transition: transform .15s ease; }.resident-menu a:active .menu-icon { transform: scale(.94); }
.menu-icon.blue { background: linear-gradient(145deg,#1477c9,#075aa6); }.menu-icon.cyan { background: linear-gradient(145deg,#18a9c7,#087eaa); }.menu-icon.navy { background: linear-gradient(145deg,#316890,#174568); }.menu-icon.green { background: linear-gradient(145deg,#2bbd76,#178c53); }.menu-icon.orange { background: linear-gradient(145deg,#ff9f43,#e56c16); }.menu-icon.purple { background: linear-gradient(145deg,#8d65d6,#6043a8); }.menu-icon.red { background: linear-gradient(145deg,#ee5a62,#c82c3d); }.menu-icon.teal { background: linear-gradient(145deg,#24b8aa,#128276); }.menu-icon.amber { background: linear-gradient(145deg,#efb33a,#c98210); }.menu-icon.slate { background: linear-gradient(145deg,#71869c,#475e74); }.menu-icon.indigo { background: linear-gradient(145deg,#4d71d9,#304ca5); }.menu-icon.gray { background: linear-gradient(145deg,#8998a7,#5c6d7e); }
.resident-section { margin-top: 22px; }.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 3px 10px; }.section-heading h2 { font-size: 1rem; font-weight: 760; margin: 0; color: #173653; }.section-heading a { font-size: .78rem; text-decoration: none; font-weight: 700; }
.compact-notice, .receipt-row { display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px; margin-bottom: 8px; border-radius: 13px; color: #263c52; text-decoration: none; box-shadow: 0 3px 12px rgba(30,55,80,.06); }.compact-notice > span, .receipt-row > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--resident-blue); background: #e8f2fb; border-radius: 11px; }.compact-notice div, .receipt-row div { flex: 1; min-width: 0; }.compact-notice strong, .compact-notice small, .receipt-row strong, .receipt-row small { display: block; }.compact-notice small, .receipt-row small { color: #7d8d9d; font-size: .73rem; margin-top: 2px; }
.logout-mobile { text-align: center; margin: 28px 0 4px; }.logout-mobile button { background: none; border: 0; color: #6d7f90; font-weight: 650; padding: 10px 20px; }
.resident-bottom-nav { position: fixed; z-index: 1050; left: 0; right: 0; bottom: 0; height: 72px; padding: 6px max(10px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid #dfe7ef; display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: 0 -5px 20px rgba(21,52,80,.1); backdrop-filter: blur(12px); }
.resident-bottom-nav a { color: #6b7e91; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .62rem; font-weight: 650; }.resident-bottom-nav i { font-size: 1.25rem; }.resident-bottom-nav .qr-main { color: var(--resident-blue); transform: translateY(-14px); }.resident-bottom-nav .qr-main i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--resident-blue); color: #fff; font-size: 1.6rem; border: 5px solid var(--resident-bg); box-shadow: 0 5px 14px rgba(7,90,166,.3); }.resident-bottom-nav .qr-main span { margin-top: -2px; }
.resident-page-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; }.resident-page-head > a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #28435d; background: #fff; text-decoration: none; box-shadow: 0 3px 12px rgba(30,55,80,.08); }.resident-page-head h1 { font-size: 1.3rem; font-weight: 780; margin: 0; color: #15324f; }.resident-page-head p { font-size: .78rem; color: #73869a; margin: 2px 0 0; }
.resident-card { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 6px 22px rgba(27,55,83,.08); }
.account-total { color: #fff; border-radius: 18px; padding: 20px; margin-bottom: 12px; background: linear-gradient(135deg,#075aa6,#1586d2); box-shadow: 0 8px 22px rgba(7,90,166,.23); }.account-total span,.account-total small { display: block; opacity: .86; }.account-total strong { display: block; font-size: 2rem; margin: 2px 0 6px; }.account-total small { font-size: .76rem; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 18px; }.account-actions a { text-decoration: none; text-align: center; padding: 11px 8px; background: #fff; color: var(--resident-blue); font-size: .75rem; font-weight: 750; border-radius: 12px; box-shadow: 0 3px 12px rgba(28,55,83,.07); }
.year-selector { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }.year-selector label { font-weight: 750; color: #354c62; }.year-selector .form-select { width: 118px; margin-left: auto; }
.statement-list { display: grid; gap: 9px; }.statement-item { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 10px; padding: 13px; background: #fff; border-radius: 14px; box-shadow: 0 3px 13px rgba(28,55,83,.06); }.statement-month strong,.statement-month span { display: block; }.statement-month strong { color: #173b5b; }.statement-month span { color: #8a98a7; font-size: .7rem; }.statement-money { display: grid; gap: 1px; font-size: .71rem; color: #758698; }.statement-money b { color: #33495e; }.status-pill { font-size: .64rem; font-weight: 800; padding: 6px 8px; border-radius: 99px; text-transform: uppercase; }.status-pagada { background: #dff5e8; color: #08723d; }.status-parcial { background: #fff1c9; color: #816000; }.status-pendiente { background: #fde3e5; color: #a3212f; }.status-anulada,.status-none { background: #e9edf1; color: #687787; }
.receipt-row > b { font-size: .82rem; color: #173b5b; }

@media (min-width: 768px) {
  .resident-shell { padding-top: 26px; }
  .resident-menu { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px 14px; }
  .menu-icon { width: 74px; height: 74px; }
  .resident-bottom-nav { left: 50%; transform: translateX(-50%); max-width: 760px; border-left: 1px solid #dfe7ef; border-right: 1px solid #dfe7ef; border-radius: 18px 18px 0 0; }
}
@media (max-width: 360px) { .menu-icon { width: 58px; height: 58px; font-size: 1.45rem; }.resident-menu { column-gap: 6px; }.statement-item { grid-template-columns: 64px 1fr; }.statement-item .status-pill { grid-column: 2; justify-self: start; } }
.portal-list { display: grid; gap: 9px; }.portal-list-card { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 14px; color: #263d53; background: #fff; text-decoration: none; box-shadow: 0 3px 13px rgba(28,55,83,.07); }.portal-list-card.static { align-items: flex-start; }.portal-list-card > .list-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--resident-blue); background: #e7f2fc; font-size: 1.2rem; }.portal-list-card > div { flex: 1; min-width: 0; }.portal-list-card strong,.portal-list-card small { display: block; }.portal-list-card small { color: #77899b; font-size: .72rem; margin-top: 2px; }.portal-list-card p { font-size: .78rem; color: #53677b; margin: 6px 0 0; }.portal-list-card > b { font-size: .78rem; color: #173b5b; }.portal-list-card form { align-self: center; }
.empty-state { width: 100%; text-align: center; padding: 44px 20px; color: #718397; border-radius: 17px; background: #fff; box-shadow: 0 3px 14px rgba(28,55,83,.06); }.empty-state > i { font-size: 2.5rem; color: #a3b2c0; }.empty-state h2 { font-size: 1rem; color: #354d64; margin: 10px 0 5px; }.empty-state p { font-size: .8rem; margin: 0; }.empty-state.compact { padding: 20px; }
.qr-box { width: 264px; height: 264px; max-width: 100%; display: grid; place-items: center; margin: 0 auto; padding: 12px; border: 1px solid #dce6ef; border-radius: 18px; background: #fff; }.qr-box img,.qr-box canvas { max-width: 100%; height: auto !important; }.qr-loading { background: #f6f9fc; }.qr-timer { margin-top: 14px; font-size: .82rem; color: #697d90; }.visit-meta > div { padding: 10px; background: #f5f8fb; border-radius: 12px; }.visit-meta span,.visit-meta strong { display: block; }.visit-meta span { color: #7b8c9d; font-size: .68rem; }.visit-meta strong { color: #263e55; }
.admin-reply { margin-top: 9px; padding: 9px 11px; border-left: 3px solid var(--resident-blue); border-radius: 0 9px 9px 0; background: #edf5fc; color: #36546f; font-size: .76rem; }.community-feed { display: grid; gap: 12px; }.feed-card { padding: 16px; border-radius: 17px; background: #fff; box-shadow: 0 4px 15px rgba(28,55,83,.07); }.feed-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }.feed-card header > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #e6f1fb; color: var(--resident-blue); }.feed-card header strong,.feed-card header small { display: block; }.feed-card header small,.feed-card > small { color: #8292a2; font-size: .7rem; }.feed-card h2 { font-size: 1.02rem; font-weight: 760; color: #1c3a56; margin: 5px 0 7px; }.feed-card p { color: #4d6276; font-size: .85rem; }.notice-image { width: calc(100% + 32px); max-height: 300px; object-fit: cover; margin: -16px -16px 14px; border-radius: 17px 17px 0 0; }
.sos-warning { display: flex; gap: 13px; padding: 15px; margin-bottom: 14px; color: #7b1724; background: #fde7ea; border: 1px solid #f4bbc2; border-radius: 15px; }.sos-warning > i { font-size: 1.6rem; }.sos-warning strong { display: block; }.sos-warning p { font-size: .78rem; margin: 2px 0 0; }
.classified-grid,.area-grid { display: grid; grid-template-columns: 1fr; gap: 13px; }.classified-card,.area-card { overflow: hidden; border-radius: 17px; background: #fff; box-shadow: 0 5px 17px rgba(28,55,83,.08); }.classified-card > img,.classified-placeholder,.area-card > img,.area-placeholder { width: 100%; height: 190px; object-fit: cover; }.classified-placeholder,.area-placeholder { display: grid; place-items: center; color: #8ba1b4; background: #e8eef4; font-size: 2.2rem; }.classified-card > div:last-child,.area-card > div:last-child { padding: 15px; }.classified-card h2,.area-card h2 { font-size: 1.03rem; font-weight: 760; color: #193a57; margin: 3px 0 5px; }.classified-card small { color: #8393a3; }.classified-card > div > strong { color: var(--resident-blue); }.classified-card p,.area-card p { color: #627488; font-size: .8rem; margin: 7px 0 11px; }.area-meta { display: flex; gap: 15px; margin: 8px 0 13px; color: #536c83; font-size: .78rem; }.portal-subtitle { color: #193955; font-size: 1rem; font-weight: 760; margin: 0 3px 10px; }.icon-button { border: 0; background: none; font-size: 1.1rem; padding: 5px; }
.quota-select-list { display: grid; gap: 8px; }.quota-select-list label { display: flex; gap: 10px; align-items: center; padding: 11px; border: 1px solid #dfe7ef; border-radius: 12px; cursor: pointer; }.quota-select-list label:has(input:checked) { border-color: #4e96cf; background: #edf6fd; }.quota-select-list span { flex: 1; }.quota-select-list strong,.quota-select-list small { display: block; }.quota-select-list small { color: #76899b; font-size: .72rem; }
.bank-card { padding: 19px; margin-bottom: 13px; color: #fff; border-radius: 19px; background: linear-gradient(145deg,#0a528d,#123b64); box-shadow: 0 8px 24px rgba(10,65,108,.23); }.bank-card-head { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; }.bank-card-head i { font-size: 1.4rem; }.bank-number { margin: 22px 0 17px; }.bank-number span,.bank-number b { display: block; }.bank-number span { font-size: .68rem; text-transform: uppercase; opacity: .72; letter-spacing: .06em; }.bank-number b { font-size: 1.55rem; letter-spacing: .06em; }.bank-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: .77rem; }.bank-card dt { opacity: .7; }.bank-card dd { margin: 0; text-align: right; font-weight: 650; }.bank-note { padding: 10px; margin: 13px 0; border-radius: 10px; background: rgba(255,255,255,.1); font-size: .75rem; }.copy-account { background: rgba(255,255,255,.94); color: #123b64; }
.guard-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }.guard-primary-action { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; padding: 17px; border-radius: 17px; background: linear-gradient(135deg,#075aa6,#0878ce); box-shadow: 0 8px 22px rgba(7,90,166,.25); }.guard-primary-action > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.16); font-size: 1.6rem; }.guard-primary-action > div { flex: 1; }.guard-primary-action strong,.guard-primary-action small { display: block; }.guard-primary-action small { opacity: .78; font-size: .75rem; }.guard-metric { height: 100%; text-align: center; padding: 12px 6px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(31,55,80,.07); }.guard-metric span { display: block; min-height: 32px; color: #75879a; font-size: .67rem; line-height: 1.15; }.guard-metric strong { display: block; color: #153b63; font-size: 1.65rem; }.guard-access-list { display: grid; gap: 9px; }.guard-access-list article { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 3px 13px rgba(31,55,80,.07); }.guard-access-list article > div { flex: 1; min-width: 0; }.guard-access-list strong,.guard-access-list small { display: block; }.guard-access-list small { color: #75879a; font-size: .7rem; }.vehicle-badge { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; color: #075aa6; background: #e6f2fc; border-radius: 12px; font-size: 1.2rem; }.plate-field .form-control { min-height: 64px; text-transform: uppercase; text-align: center; font-size: 1.6rem; font-weight: 800; letter-spacing: .08em; }
@media (min-width: 600px) { .classified-grid,.area-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 768px) { .guard-head { flex-direction: row; align-items: end; justify-content: space-between; }.guard-head form { min-width: 260px; } }
