:root {
    --bg: #eef3fb;
    --bg2: #f8fbff;
    --glass: rgba(255,255,255,.68);
    --glass-strong: rgba(255,255,255,.86);
    --line: rgba(255,255,255,.65);
    --stroke: rgba(15,23,42,.08);
    --text: #101828;
    --muted: #667085;
    --primary: #2563eb;
    --primary-2: #1d4ed8;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --purple: #7c3aed;
    --sidebar: rgba(8, 13, 28, .88);
    --shadow: 0 24px 70px rgba(15,23,42,.12);
    --shadow-soft: 0 12px 34px rgba(15,23,42,.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(37,99,235,.18), transparent 28%),
        radial-gradient(circle at 90% 12%, rgba(124,58,237,.14), transparent 26%),
        radial-gradient(circle at 70% 90%, rgba(22,163,74,.10), transparent 24%),
        linear-gradient(135deg, var(--bg), var(--bg2));
    background-attachment: fixed;
}

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

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 5%, rgba(59,130,246,.35), transparent 30%),
        radial-gradient(circle at 90% 15%, rgba(124,58,237,.25), transparent 30%),
        linear-gradient(135deg, #020617, #0f172a 52%, #172554);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 420px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    padding: 38px;
    border-radius: 30px;
    box-shadow: 0 34px 100px rgba(0,0,0,.42);
    color: #fff;
}

.login-card h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -1.2px;
}

.login-card p {
    margin: 8px 0 24px;
    color: rgba(255,255,255,.72);
}

.login-card label {
    color: rgba(255,255,255,.85);
}

.login-card input {
    background: rgba(255,255,255,.13);
    color: #fff;
    border-color: rgba(255,255,255,.22);
}

.login-card input:focus {
    border-color: rgba(255,255,255,.7);
    box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}

label {
    display: block;
    margin-top: 14px;
    margin-bottom: 7px;
    font-weight: 750;
    font-size: 13px;
    color: #344054;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 15px;
    padding: 13px 14px;
    font-size: 14px;
    background: rgba(255,255,255,.8);
    outline: none;
    transition: all .16s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37,99,235,.75);
    box-shadow: 0 0 0 5px rgba(37,99,235,.10);
    background: #fff;
}

textarea {
    resize: vertical;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border: 0;
    border-radius: 15px;
    padding: 13px 18px;
    cursor: pointer;
    font-weight: 850;
    box-shadow: 0 12px 30px rgba(37,99,235,.26);
    transition: all .16s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(37,99,235,.32);
}

.soft-link {
    color: var(--primary);
    background: rgba(37,99,235,.08);
    border: 1px solid rgba(37,99,235,.14);
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.alert {
    padding: 14px 16px;
    border-radius: 17px;
    margin: 16px 0;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.5);
}

.alert.success {
    background: rgba(220,252,231,.85);
    color: #166534;
}

.alert.error {
    background: rgba(254,226,226,.9);
    color: #991b1b;
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 286px;
    color: #fff;
    padding: 24px;
    position: fixed;
    top: 20px;
    bottom: 20px;
    left: 20px;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(15,23,42,.94), rgba(2,6,23,.92));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(15,23,42,.28);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.brand {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
}

.brand strong {
    display: block;
    font-size: 23px;
    letter-spacing: -.7px;
}

.brand span {
    color: rgba(255,255,255,.58);
    font-size: 13px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,.72);
    padding: 13px 14px;
    border-radius: 16px;
    margin-bottom: 7px;
    font-weight: 780;
    transition: all .16s ease;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(37,99,235,.95);
    color: #fff;
    transform: translateX(3px);
    box-shadow: 0 12px 28px rgba(37,99,235,.28);
}

.content {
    flex: 1;
    padding: 30px 30px 30px 0;
    margin-left: 336px;
}

.topbar {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 18px 22px;
    margin-bottom: 26px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

h1 {
    margin: 0;
    font-size: 36px;
    letter-spacing: -1.4px;
}

h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.5px;
}

h3 {
    margin: 0;
    font-size: 16px;
}

.muted {
    color: var(--muted);
}

small.muted {
    display: block;
    margin-top: 7px;
}

.hero-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 28px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.48));
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.hero-glass:after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    top: -80px;
    background: radial-gradient(circle, rgba(37,99,235,.18), transparent 65%);
}

.hero-glass h2 {
    font-size: 30px;
    margin: 6px 0 8px;
}

.hero-glass p {
    margin: 0;
    color: var(--muted);
    max-width: 680px;
    line-height: 1.55;
}

.eyebrow {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(37,99,235,.10);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-balance {
    min-width: 260px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(15,23,42,.88);
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 20px 60px rgba(15,23,42,.24);
    position: relative;
    z-index: 1;
}

.hero-balance span {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    font-weight: 800;
}

.hero-balance strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
    letter-spacing: -1px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.card:before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 115px;
    height: 115px;
    background: rgba(37,99,235,.10);
    border-radius: 50%;
}

.card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    position: relative;
}

.card strong {
    display: block;
    margin-top: 10px;
    font-size: 29px;
    letter-spacing: -1px;
    position: relative;
}

.card.success {
    border-left: 6px solid var(--success);
}

.card.danger {
    border-left: 6px solid var(--danger);
}

.card.warning {
    border-left: 6px solid var(--warning);
}

.card.highlight {
    border-left: 6px solid var(--primary);
}

.glass-panel,
.panel {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-section {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(37,99,235,.07);
    border: 1px solid rgba(37,99,235,.11);
}

.form-section h3 {
    color: #1e3a8a;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-row input {
    width: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.35fr .95fr;
    gap: 24px;
    align-items: start;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255,255,255,.72);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.08);
}

.table th,
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15,23,42,.07);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.table th {
    background: rgba(248,250,252,.86);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #475467;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(255,255,255,.7);
}

.table.compact th,
.table.compact td {
    padding: 12px 13px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    background: rgba(229,231,235,.88);
    color: #374151;
}

.badge.al_dia,
.badge.pagado,
.badge.aprobado,
.badge.activo,
.badge.publicado {
    background: rgba(220,252,231,.95);
    color: #166534;
}

.badge.pendiente,
.badge.parcial,
.badge.warning,
.badge.borrador {
    background: rgba(254,243,199,.95);
    color: #92400e;
}

.badge.moroso,
.badge.vencido,
.badge.rechazado,
.badge.inactivo {
    background: rgba(254,226,226,.95);
    color: #991b1b;
}

.badge.convenio {
    background: rgba(237,233,254,.95);
    color: #5b21b6;
}

.badge.seguridad {
    background: rgba(219,234,254,.95);
    color: #1e40af;
}

.badge.emergencia {
    background: rgba(254,226,226,.95);
    color: #991b1b;
}

.badge.cobro {
    background: rgba(254,243,199,.95);
    color: #92400e;
}

.badge.mantenimiento {
    background: rgba(220,252,231,.95);
    color: #166534;
}

.badge.asamblea {
    background: rgba(237,233,254,.95);
    color: #5b21b6;
}

.mini-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12px;
    margin: 2px;
    color: #fff;
    font-weight: 850;
}

.mini-btn.success {
    background: var(--success);
}

.mini-btn.danger {
    background: var(--danger);
}

.announcement-list,
.announcements {
    display: grid;
    gap: 14px;
}

.announcement-card,
.announcement {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255,255,255,.68);
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.announcement-card h3,
.announcement h3 {
    margin: 12px 0 7px;
    font-size: 17px;
}

.announcement-card p,
.announcement p {
    color: #475467;
    line-height: 1.55;
    margin: 0;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    color: var(--muted);
    text-align: center;
    border: 1px dashed rgba(15,23,42,.12);
}

.date {
    color: var(--muted);
    font-size: 13px;
    margin-left: 8px;
}

@media (max-width: 1200px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 820px) {
    .sidebar {
        position: relative;
        width: auto;
        top: auto;
        bottom: auto;
        left: auto;
        margin: 16px;
    }

    .app {
        display: block;
    }

    .content {
        margin-left: 0;
        padding: 16px;
    }

    .hero-glass {
        display: block;
    }

    .hero-balance {
        margin-top: 18px;
        min-width: 0;
    }

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

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

    .page-header {
        display: block;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mini-btn {
    background: rgba(37,99,235,.95);
    color: #fff !important;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 850;
}

.mini-btn.danger {
    background: rgba(220,38,38,.95);
}

.mini-btn:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.excel-table th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.excel-table td,
.excel-table th {
    white-space: nowrap;
}

.badge.abierto {
    background: rgba(220,252,231,.95);
    color: #166534;
}

.badge.cerrado {
    background: rgba(229,231,235,.95);
    color: #374151;
}

.badge.sin_cargo {
    background: rgba(229,231,235,.95);
    color: #374151;
}

.actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mini-btn {
    background: rgba(37,99,235,.95);
    color: #fff !important;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 850;
}

.mini-btn.danger {
    background: rgba(220,38,38,.95);
}

.mini-btn:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.annual-table th,
.annual-table td {
    text-align: center;
}

.annual-table td:first-child,
.annual-table td:nth-child(2),
.annual-table th:first-child,
.annual-table th:nth-child(2) {
    text-align: left;
}

.month-cell {
    font-size: 18px !important;
    min-width: 54px;
}

.month-cell.pagado {
    background: rgba(220,252,231,.72);
}

.month-cell.vencido {
    background: rgba(254,226,226,.78);
}

.month-cell.pendiente,
.month-cell.parcial {
    background: rgba(254,243,199,.78);
}

.month-cell.futuro {
    background: rgba(241,245,249,.9);
}

.timeline-months {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.timeline-card {
    border-radius: 24px;
    padding: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.timeline-card.pagado {
    border-left: 6px solid #16a34a;
}

.timeline-card.vencido {
    border-left: 6px solid #dc2626;
}

.timeline-card.pendiente,
.timeline-card.parcial {
    border-left: 6px solid #f59e0b;
}

.timeline-card.futuro {
    border-left: 6px solid #94a3b8;
}

.timeline-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.timeline-icon {
    font-size: 24px;
}

.timeline-money {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid rgba(15,23,42,.08);
    border-bottom: 1px solid rgba(15,23,42,.08);
    margin-bottom: 8px;
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    color: #475467;
}

.timeline-apps {
    margin-top: 12px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(37,99,235,.07);
    font-size: 13px;
    color: #334155;
}

@media (max-width: 1200px) {
    .timeline-months {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .timeline-months {
        grid-template-columns: 1fr;
    }
}

.payment-catalog {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(15,23,42,.08);
    overflow-x: auto;
}

.payment-catalog-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 12px;
}

.payment-month {
    border-radius: 16px;
    padding: 12px;
    background: rgba(248,250,252,.9);
    border: 1px solid rgba(15,23,42,.08);
    font-size: 12px;
}

.payment-month-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.payment-month.pagado {
    background: rgba(220,252,231,.8);
}

.payment-month.vencido {
    background: rgba(254,226,226,.85);
}

.payment-month.pendiente {
    background: rgba(254,243,199,.85);
}

.payment-month.parcial {
    background: rgba(255,237,213,.9);
}

.payment-month.futuro {
    background: rgba(241,245,249,.95);
}

@media (max-width: 1200px) {
    .payment-catalog-grid {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
}

@media (max-width: 760px) {
    .payment-catalog-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
}
/* ================================
   Pagos / Cobranza visual
================================ */

.payment-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.payment-summary-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 20px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 45px rgba(15,23,42,.08);
}

.payment-summary-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.payment-summary-card strong {
    font-size: 28px;
    color: #0f172a;
}

.payment-summary-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: rgba(37,99,235,.08);
}

.payment-action-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 850;
    background: rgba(15,23,42,.06);
    color: #334155;
}

.payment-pill.success {
    background: rgba(220,252,231,.95);
    color: #166534;
}

.payment-pill.warning {
    background: rgba(254,243,199,.95);
    color: #92400e;
}

.payment-pill.danger {
    background: rgba(254,226,226,.95);
    color: #991b1b;
}

.payment-pill.info {
    background: rgba(219,234,254,.95);
    color: #1d4ed8;
}

.modern-payment-table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.modern-payment-table thead th {
    background: transparent;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: none;
}

.modern-payment-table tbody tr {
    background: rgba(255,255,255,.72);
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
}

.modern-payment-table tbody td {
    border-top: 1px solid rgba(15,23,42,.05);
    border-bottom: 1px solid rgba(15,23,42,.05);
}

.modern-payment-table tbody td:first-child {
    border-left: 1px solid rgba(15,23,42,.05);
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.modern-payment-table tbody td:last-child {
    border-right: 1px solid rgba(15,23,42,.05);
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.progress-wrap {
    min-width: 160px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 6px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148,163,184,.2);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    animation: fillBar .9s ease forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

.pay-now-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pay-now-card {
    border-radius: 24px;
    padding: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
}

.pay-now-card .month {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.pay-now-card .month strong {
    font-size: 18px;
}

.pay-now-card .amount {
    font-size: 28px;
    font-weight: 950;
    color: #0f172a;
    margin-bottom: 6px;
}

.pay-now-card .meta {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.pay-now-card.vencido {
    border-left: 6px solid #dc2626;
}

.pay-now-card.pendiente {
    border-left: 6px solid #f59e0b;
}

.pay-now-card.parcial {
    border-left: 6px solid #f97316;
}

.pay-now-card.futuro {
    border-left: 6px solid #94a3b8;
}

.pay-now-card.pagado {
    border-left: 6px solid #16a34a;
}

.pay-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.quick-pay-banner {
    border-radius: 28px;
    padding: 22px;
    margin-bottom: 18px;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.56));
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 42px rgba(15,23,42,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.quick-pay-banner h2 {
    margin: 0 0 6px;
}

.quick-pay-banner p {
    margin: 0;
    color: #64748b;
}

@media (max-width: 1100px) {
    .payment-summary-grid,
    .pay-now-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-pay-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .payment-summary-grid,
    .pay-now-grid {
        grid-template-columns: 1fr;
    }
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 20px;
    margin-top: 20px;
}

.announcement-list {
    display: grid;
    gap: 14px;
}

.announcement-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 12px 32px rgba(15,23,42,.05);
}

.announcement-card h3 {
    margin: 8px 0 6px;
}

.announcement-card p {
    margin: 0;
    color: #475467;
    line-height: 1.45;
}

.badge.publicado {
    background: rgba(220,252,231,.95);
    color: #166534;
}

.mini-chart {
    min-height: 260px;
    display: flex;
    align-items: end;
    gap: 14px;
    padding: 18px 8px 0;
}

.mini-chart-item {
    flex: 1;
    display: grid;
    gap: 8px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

.mini-chart-bar-wrap {
    height: 190px;
    border-radius: 999px;
    background: rgba(148,163,184,.18);
    display: flex;
    align-items: end;
    overflow: hidden;
}

.mini-chart-bar {
    width: 100%;
    height: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #22c55e);
    animation: growBar .9s ease forwards;
}

@keyframes growBar {
    from {
        height: 0;
    }
    to {
        height: var(--bar-height);
    }
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.status-card {
    border-radius: 20px;
    padding: 18px;
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(15,23,42,.08);
}

.status-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.status-card strong {
    font-size: 28px;
}

.status-card.success {
    background: rgba(220,252,231,.72);
}

.status-card.warning {
    background: rgba(254,243,199,.78);
}

.status-card.danger {
    background: rgba(254,226,226,.78);
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .status-grid {
        grid-template-columns: 1fr;
    }

    .announcement-card {
        flex-direction: column;
    }
}
/* ==========================================================
   MI CUENTA - UI MODERNA
========================================================== */

.account-shell {
    display: grid;
    gap: 22px;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 22px;
    margin-bottom: 4px;
}

.account-header h1 {
    margin: 6px 0 8px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: .95;
    letter-spacing: -0.06em;
    color: #0f172a;
}

.account-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.account-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #2563eb;
    font-weight: 950;
}

.account-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}

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

.account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: .2s ease;
}

.account-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 18px 34px rgba(37,99,235,.24);
}

.account-btn.secondary {
    color: #1e293b;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15,23,42,.08);
}

.account-btn:hover {
    transform: translateY(-2px);
}

.account-filter-panel,
.account-panel,
.account-pay-panel,
.account-hero-card {
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.62));
    border: 1px solid rgba(255,255,255,.78);
    box-shadow:
        0 24px 70px rgba(15,23,42,.08),
        inset 0 1px 0 rgba(255,255,255,.7);
    backdrop-filter: blur(20px);
}

.account-filter-panel {
    padding: 22px;
}

.account-filter-form {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.account-filter-form label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    margin-bottom: 8px;
}

.account-filter-form select,
.account-filter-form input {
    width: 100%;
    min-height: 50px;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.1);
    background: rgba(255,255,255,.82);
    padding: 0 16px;
    outline: none;
    font-weight: 750;
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.account-filter-form select:focus,
.account-filter-form input:focus {
    border-color: rgba(37,99,235,.55);
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.account-filter-form button {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 18px;
    border: 0;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 18px 34px rgba(37,99,235,.2);
    cursor: pointer;
}

.account-hero-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.account-hero-card::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -150px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37,99,235,.24), transparent 68%);
}

.account-hero-card::after {
    content: "";
    position: absolute;
    left: 45%;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34,197,94,.14), transparent 68%);
}

.account-hero-main,
.account-hero-balance {
    position: relative;
    z-index: 1;
}

.property-chip {
    width: fit-content;
    border-radius: 999px;
    padding: 8px 13px;
    color: #1d4ed8;
    background: rgba(219,234,254,.88);
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 14px;
}

.account-hero-card h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3vw, 46px);
    letter-spacing: -0.05em;
    color: #0f172a;
}

.property-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 14px;
}

.property-meta span {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(15,23,42,.05);
}

.account-hero-balance {
    border-radius: 28px;
    padding: 24px;
    background: rgba(15,23,42,.92);
    color: #fff;
    display: grid;
    align-content: center;
    min-height: 180px;
    box-shadow: 0 22px 50px rgba(15,23,42,.22);
}

.account-hero-balance span {
    color: rgba(255,255,255,.68);
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 8px;
}

.account-hero-balance strong {
    font-size: 38px;
    letter-spacing: -0.05em;
}

.account-hero-balance small {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 850;
}

.success-text {
    color: #86efac !important;
}

.danger-text {
    color: #fecaca !important;
}

.account-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.account-kpi {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 22px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 20px 48px rgba(15,23,42,.07);
}

.account-kpi::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 105px;
    height: 105px;
    border-radius: 999px;
    background: rgba(37,99,235,.08);
}

.account-kpi.success::after {
    background: rgba(34,197,94,.14);
}

.account-kpi.warning::after {
    background: rgba(245,158,11,.16);
}

.account-kpi.danger::after {
    background: rgba(220,38,38,.13);
}

.account-kpi span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.account-kpi strong {
    display: block;
    font-size: 28px;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.account-kpi small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-weight: 750;
}

.account-progress-block {
    margin-top: 22px;
}

.account-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
    font-size: 13px;
    color: #475569;
    font-weight: 900;
}

.account-progress-track {
    position: relative;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(148,163,184,.18);
    overflow: hidden;
}

.account-progress-track.mini {
    height: 9px;
    margin-top: 14px;
}

.account-progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    animation: accountFill .85s ease forwards;
}

@keyframes accountFill {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

.account-pay-panel {
    padding: 26px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
    align-items: center;
}

.account-pay-panel h2,
.account-section-title h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.account-pay-panel p,
.account-section-title p {
    margin: 0;
    color: #64748b;
}

.account-pay-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.account-pay-btn {
    display: grid;
    gap: 8px;
    min-height: 104px;
    border-radius: 24px;
    padding: 18px;
    color: #0f172a;
    text-decoration: none;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 18px 38px rgba(15,23,42,.07);
    transition: .2s ease;
}

.account-pay-btn span {
    font-size: 13px;
    font-weight: 850;
    color: #64748b;
}

.account-pay-btn strong {
    font-size: 20px;
    letter-spacing: -0.04em;
}

.account-pay-btn.success {
    background: linear-gradient(135deg, rgba(220,252,231,.95), rgba(240,253,244,.78));
}

.account-pay-btn.blue {
    background: linear-gradient(135deg, rgba(219,234,254,.98), rgba(239,246,255,.78));
}

.account-pay-btn.dark {
    background: linear-gradient(135deg, #111827, #1e293b);
    color: #fff;
}

.account-pay-btn.dark span {
    color: rgba(255,255,255,.7);
}

.account-pay-btn:hover {
    transform: translateY(-3px);
}

.account-panel {
    padding: 26px;
}

.account-section-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.account-month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.account-month-card {
    border-radius: 26px;
    padding: 18px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 16px 38px rgba(15,23,42,.06);
    transition: .2s ease;
}

.account-month-card:hover {
    transform: translateY(-3px);
}

.account-month-card.pagado {
    background: linear-gradient(135deg, rgba(220,252,231,.9), rgba(255,255,255,.72));
}

.account-month-card.vencido {
    background: linear-gradient(135deg, rgba(254,226,226,.95), rgba(255,255,255,.72));
}

.account-month-card.pendiente {
    background: linear-gradient(135deg, rgba(254,243,199,.96), rgba(255,255,255,.72));
}

.account-month-card.parcial {
    background: linear-gradient(135deg, rgba(255,237,213,.96), rgba(255,255,255,.72));
}

.account-month-card.futuro {
    background: linear-gradient(135deg, rgba(241,245,249,.95), rgba(255,255,255,.72));
}

.month-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.month-card-top > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.month-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #2563eb;
    font-weight: 950;
}

.account-month-card.pagado .month-icon {
    background: #16a34a;
}

.account-month-card.vencido .month-icon {
    background: #dc2626;
}

.account-month-card.pendiente .month-icon,
.account-month-card.parcial .month-icon {
    background: #f59e0b;
}

.account-month-card.futuro .month-icon {
    background: #64748b;
}

.state-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 950;
    text-transform: capitalize;
    background: rgba(226,232,240,.9);
    color: #334155;
}

.state-pill.pagado,
.state-pill.aprobado {
    background: rgba(220,252,231,.95);
    color: #166534;
}

.state-pill.vencido,
.state-pill.rechazado {
    background: rgba(254,226,226,.95);
    color: #991b1b;
}

.state-pill.pendiente {
    background: rgba(254,243,199,.95);
    color: #92400e;
}

.state-pill.parcial {
    background: rgba(255,237,213,.95);
    color: #9a3412;
}

.state-pill.futuro {
    background: rgba(241,245,249,.95);
    color: #475569;
}

.month-amount {
    font-size: 32px;
    font-weight: 950;
    color: #0f172a;
    letter-spacing: -0.05em;
    margin-bottom: 14px;
}

.month-details {
    display: grid;
    gap: 8px;
}

.month-details div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}

.month-details strong {
    color: #0f172a;
}

.month-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.month-actions a,
.month-actions span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.month-actions a:first-child {
    color: #fff;
    background: #2563eb;
}

.month-actions a:nth-child(2) {
    color: #1d4ed8;
    background: rgba(219,234,254,.95);
}

.month-actions span {
    color: #166534;
    background: rgba(220,252,231,.95);
}

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

.account-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.account-table th {
    text-align: left;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0 14px 8px;
}

.account-table td {
    padding: 16px 14px;
    background: rgba(255,255,255,.76);
    border-top: 1px solid rgba(15,23,42,.05);
    border-bottom: 1px solid rgba(15,23,42,.05);
    font-size: 13px;
    color: #334155;
}

.account-table td:first-child {
    border-left: 1px solid rgba(15,23,42,.05);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.account-table td:last-child {
    border-right: 1px solid rgba(15,23,42,.05);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.account-table td strong {
    color: #0f172a;
}

.account-table td span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.account-table a {
    font-weight: 900;
    color: #2563eb;
    text-decoration: none;
}

.account-empty {
    padding: 22px;
    border-radius: 24px;
    background: rgba(248,250,252,.8);
    border: 1px dashed rgba(100,116,139,.28);
    display: grid;
    gap: 6px;
    color: #64748b;
}

.account-empty strong {
    color: #0f172a;
}

@media (max-width: 1300px) {
    .account-kpi-grid,
    .account-month-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-pay-panel,
    .account-hero-card {
        grid-template-columns: 1fr;
    }

    .account-hero-balance {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .account-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-filter-form,
    .account-pay-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .account-kpi-grid,
    .account-month-grid {
        grid-template-columns: 1fr;
    }

    .account-hero-card,
    .account-panel,
    .account-pay-panel,
    .account-filter-panel {
        border-radius: 24px;
        padding: 18px;
    }

    .account-hero-balance strong {
        font-size: 30px;
    }
}
/* ==========================================================
   DASHBOARD V2 - MODERNO
========================================================== */

.dash-v2 {
    display: grid;
    gap: 24px;
}

.dash-hero-v2 {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding: 34px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 85% 8%, rgba(37,99,235,.24), transparent 34%),
        radial-gradient(circle at 55% 105%, rgba(34,197,94,.14), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.58));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 30px 90px rgba(15,23,42,.11);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.dash-hero-copy h1 {
    max-width: 820px;
    margin: 8px 0 12px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .92;
    letter-spacing: -.075em;
    color: #0f172a;
}

.dash-hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.55;
}

.dash-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dash-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}

.dash-kicker.danger {
    color: #dc2626;
}

.dash-kicker.warning {
    color: #f59e0b;
}

.dash-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.dash-action {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    color: #1e293b;
    border: 1px solid rgba(15,23,42,.07);
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(15,23,42,.06);
}

.dash-action.primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 16px 34px rgba(37,99,235,.22);
}

.dash-action.dark {
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.dash-hero-metric {
    display: grid;
    align-content: center;
    min-height: 230px;
    padding: 28px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.36), transparent 45%),
        linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 24px 60px rgba(15,23,42,.25);
}

.dash-hero-metric span {
    color: rgba(255,255,255,.66);
    font-size: 13px;
    font-weight: 900;
}

.dash-hero-metric strong {
    margin-top: 10px;
    font-size: clamp(34px, 3vw, 48px);
    letter-spacing: -.06em;
}

.dash-hero-metric small {
    margin-top: 10px;
    color: rgba(255,255,255,.7);
    font-weight: 850;
}

.dash-kpis-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.dash-kpi-v2 {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    padding: 24px;
    border-radius: 30px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: 0 22px 58px rgba(15,23,42,.08);
}

.dash-kpi-v2::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(37,99,235,.10);
}

.dash-kpi-v2.success::after {
    background: rgba(34,197,94,.16);
}

.dash-kpi-v2.warning::after {
    background: rgba(245,158,11,.16);
}

.dash-kpi-v2.danger::after {
    background: rgba(220,38,38,.14);
}

.dash-kpi-v2 span,
.dash-kpi-v2 strong,
.dash-kpi-v2 small {
    position: relative;
    z-index: 1;
}

.dash-kpi-v2 span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 12px;
}

.dash-kpi-v2 strong {
    display: block;
    font-size: 34px;
    letter-spacing: -.06em;
    color: #0f172a;
}

.dash-kpi-v2 small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-weight: 800;
}

.dash-main-grid-v2 {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
}

.dash-panel-v2 {
    border-radius: 32px;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.60));
    border: 1px solid rgba(255,255,255,.84);
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.dash-panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.dash-panel-title h2 {
    margin: 8px 0 7px;
    font-size: 27px;
    letter-spacing: -.045em;
    color: #0f172a;
}

.dash-panel-title p {
    margin: 0;
    color: #64748b;
}

.dash-panel-title a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #2563eb;
    background: rgba(219,234,254,.85);
    font-size: 13px;
    font-weight: 950;
}

.dash-progress-circle-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: center;
}

.dash-progress-circle {
    --deg: calc(var(--progress) * 3.6deg);
    width: 220px;
    height: 220px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background:
        conic-gradient(#2563eb 0deg, #22c55e var(--deg), rgba(148,163,184,.18) var(--deg), rgba(148,163,184,.18) 360deg);
    box-shadow: 0 18px 48px rgba(15,23,42,.12);
}

.dash-progress-circle > div {
    width: 156px;
    height: 156px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    align-content: center;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.88);
}

.dash-progress-circle strong {
    font-size: 34px;
    letter-spacing: -.06em;
    color: #0f172a;
}

.dash-progress-circle span {
    color: #64748b;
    font-weight: 900;
    font-size: 13px;
}

.dash-progress-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.dash-progress-stats div {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(15,23,42,.05);
}

.dash-progress-stats span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.dash-progress-stats strong {
    color: #0f172a;
    font-size: 20px;
    letter-spacing: -.04em;
}

.dash-status-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.dash-status-v2 div {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(15,23,42,.05);
}

.dash-status-v2 div.success {
    background: rgba(220,252,231,.78);
}

.dash-status-v2 div.warning {
    background: rgba(254,243,199,.80);
}

.dash-status-v2 div.danger {
    background: rgba(254,226,226,.82);
}

.dash-status-v2 span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.dash-status-v2 strong {
    color: #0f172a;
    font-size: 30px;
    letter-spacing: -.05em;
}

.dash-list-v2 {
    display: grid;
    gap: 12px;
}

.dash-list-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(15,23,42,.05);
}

.dash-list-row.danger {
    background: linear-gradient(135deg, rgba(254,226,226,.78), rgba(255,255,255,.72));
}

.dash-list-row strong {
    display: block;
    color: #0f172a;
}

.dash-list-row span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
}

.dash-list-meta {
    text-align: right;
    min-width: 150px;
}

.dash-list-meta strong {
    font-size: 20px;
    letter-spacing: -.04em;
}

.dash-list-meta small {
    color: #64748b;
    font-weight: 800;
}

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

.dash-table-v2 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.dash-table-v2 th {
    text-align: left;
    padding: 0 14px 4px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

.dash-table-v2 td {
    padding: 16px 14px;
    background: rgba(255,255,255,.76);
    border-top: 1px solid rgba(15,23,42,.05);
    border-bottom: 1px solid rgba(15,23,42,.05);
    font-size: 13px;
}

.dash-table-v2 td:first-child {
    border-left: 1px solid rgba(15,23,42,.05);
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.dash-table-v2 td:last-child {
    border-right: 1px solid rgba(15,23,42,.05);
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.dash-table-v2 td span {
    display: block;
    margin-top: 3px;
    color: #64748b;
}

.dash-state {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    background: rgba(226,232,240,.95);
    color: #334155;
}

.dash-state.aprobado {
    background: rgba(220,252,231,.95);
    color: #166534;
}

.dash-state.pendiente {
    background: rgba(254,243,199,.95);
    color: #92400e;
}

.dash-state.rechazado {
    background: rgba(254,226,226,.95);
    color: #991b1b;
}

.dash-announcements-v2 {
    display: grid;
    gap: 14px;
}

.dash-announcements-v2 article {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(15,23,42,.05);
}

.dash-announcements-v2 article span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(220,252,231,.95);
    color: #166534;
    font-size: 11px;
    font-weight: 950;
}

.dash-announcements-v2 h3 {
    margin: 12px 0 7px;
}

.dash-announcements-v2 p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.dash-announcements-v2 small {
    display: block;
    margin-top: 10px;
    color: #94a3b8;
    font-weight: 800;
}

.dash-empty-v2 {
    padding: 18px;
    border-radius: 22px;
    background: rgba(248,250,252,.75);
    border: 1px dashed rgba(100,116,139,.22);
    color: #64748b;
    text-align: center;
    font-weight: 800;
}

/* ==========================================================
   TIMELINE HORIZONTAL V2
========================================================== */

.timeline-v2 {
    display: grid;
    gap: 24px;
}

.timeline-hero-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 32px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 86% 8%, rgba(37,99,235,.22), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.60));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 30px 80px rgba(15,23,42,.10);
}

.timeline-hero-v2 h1 {
    margin: 8px 0 10px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: .92;
    letter-spacing: -.075em;
}

.timeline-hero-v2 p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.timeline-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.timeline-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}

.timeline-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 16px;
    font-weight: 950;
}

.timeline-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 16px 34px rgba(37,99,235,.22);
}

.timeline-btn.secondary {
    color: #1e293b;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(15,23,42,.07);
}

.timeline-summary-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.timeline-summary-v2 article {
    position: relative;
    overflow: hidden;
    padding: 24px;
    min-height: 140px;
    border-radius: 30px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 22px 58px rgba(15,23,42,.08);
}

.timeline-summary-v2 article::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(37,99,235,.10);
}

.timeline-summary-v2 article.success::after {
    background: rgba(34,197,94,.16);
}

.timeline-summary-v2 article.warning::after {
    background: rgba(245,158,11,.16);
}

.timeline-summary-v2 article.danger::after {
    background: rgba(220,38,38,.14);
}

.timeline-summary-v2 span,
.timeline-summary-v2 strong,
.timeline-summary-v2 small {
    position: relative;
    z-index: 1;
}

.timeline-summary-v2 span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 10px;
}

.timeline-summary-v2 strong {
    display: block;
    font-size: 30px;
    letter-spacing: -.06em;
    color: #0f172a;
}

.timeline-summary-v2 small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-weight: 800;
}

.timeline-progress-panel-v2,
.timeline-horizontal-panel-v2 {
    padding: 28px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,.60));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

.timeline-progress-panel-v2 {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: center;
}

.timeline-progress-panel-v2 h2 {
    margin: 8px 0 8px;
    font-size: 32px;
    letter-spacing: -.06em;
}

.timeline-progress-panel-v2 p {
    margin: 0;
    color: #64748b;
}

.timeline-progress-track-v2 {
    height: 18px;
    border-radius: 999px;
    background: rgba(148,163,184,.18);
    overflow: hidden;
}

.timeline-progress-fill-v2 {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    animation: timelineFillV2 .9s ease forwards;
}

@keyframes timelineFillV2 {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

.timeline-panel-title-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.timeline-panel-title-v2 h2 {
    margin: 8px 0 0;
    font-size: 30px;
    letter-spacing: -.06em;
}

.timeline-legend-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-legend-v2 span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    background: rgba(226,232,240,.92);
}

.timeline-legend-v2 .pagado {
    color: #166534;
    background: rgba(220,252,231,.95);
}

.timeline-legend-v2 .pendiente {
    color: #92400e;
    background: rgba(254,243,199,.95);
}

.timeline-legend-v2 .vencido {
    color: #991b1b;
    background: rgba(254,226,226,.95);
}

.timeline-legend-v2 .futuro {
    color: #475569;
    background: rgba(241,245,249,.95);
}

.timeline-scroll-v2 {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(210px, 1fr));
    gap: 18px;
    overflow-x: auto;
    padding: 38px 6px 12px;
    scroll-snap-type: x proximity;
}

.timeline-line-v2 {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 62px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37,99,235,.25), rgba(34,197,94,.25));
}

.timeline-node-v2 {
    position: relative;
    min-width: 210px;
    scroll-snap-align: start;
}

.timeline-dot-v2 {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #64748b;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(15,23,42,.16);
}

.timeline-node-v2.pagado .timeline-dot-v2 {
    background: #16a34a;
}

.timeline-node-v2.vencido .timeline-dot-v2 {
    background: #dc2626;
}

.timeline-node-v2.pendiente .timeline-dot-v2,
.timeline-node-v2.parcial .timeline-dot-v2 {
    background: #f59e0b;
}

.timeline-node-v2.futuro .timeline-dot-v2 {
    background: #64748b;
}

.timeline-card-v2 {
    min-height: 306px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 18px 45px rgba(15,23,42,.07);
}

.timeline-node-v2.pagado .timeline-card-v2 {
    background: linear-gradient(135deg, rgba(220,252,231,.94), rgba(255,255,255,.78));
}

.timeline-node-v2.vencido .timeline-card-v2 {
    background: linear-gradient(135deg, rgba(254,226,226,.95), rgba(255,255,255,.78));
}

.timeline-node-v2.pendiente .timeline-card-v2,
.timeline-node-v2.parcial .timeline-card-v2 {
    background: linear-gradient(135deg, rgba(254,243,199,.95), rgba(255,255,255,.78));
}

.timeline-card-head-v2 {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.timeline-card-head-v2 strong {
    font-size: 20px;
    letter-spacing: -.04em;
    color: #0f172a;
}

.timeline-card-head-v2 span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(226,232,240,.92);
    font-size: 11px;
    font-weight: 950;
    color: #334155;
}

.timeline-card-v2 h3 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #475569;
}

.timeline-money-v2 {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(15,23,42,.05);
    margin-bottom: 12px;
}

.timeline-money-v2 span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.timeline-money-v2 strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 26px;
    letter-spacing: -.05em;
}

.timeline-mini-data-v2 {
    display: grid;
    gap: 7px;
}

.timeline-mini-data-v2 div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

.timeline-mini-data-v2 strong {
    color: #0f172a;
}

.timeline-mini-progress-v2 {
    margin-top: 14px;
    height: 9px;
    border-radius: 999px;
    background: rgba(148,163,184,.18);
    overflow: hidden;
}

.timeline-mini-progress-v2 div {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    animation: timelineFillV2 .9s ease forwards;
}

.timeline-apps-v2 {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}

.timeline-apps-v2 div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 13px;
    background: rgba(37,99,235,.08);
    color: #475569;
    font-size: 12px;
}

.timeline-apps-v2 strong {
    color: #1d4ed8;
}

.timeline-card-v2 p {
    color: #64748b;
}

@media (max-width: 1300px) {
    .dash-kpis-v2,
    .timeline-summary-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-main-grid-v2,
    .dash-hero-v2,
    .dash-progress-circle-wrap,
    .timeline-progress-panel-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .timeline-hero-v2,
    .dash-panel-title,
    .timeline-panel-title-v2 {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-kpis-v2,
    .timeline-summary-v2,
    .dash-status-v2,
    .dash-progress-stats {
        grid-template-columns: 1fr;
    }

    .dash-hero-v2,
    .dash-panel-v2,
    .timeline-hero-v2,
    .timeline-progress-panel-v2,
    .timeline-horizontal-panel-v2 {
        border-radius: 26px;
        padding: 22px;
    }
}
/* ==========================================================
   FIX DEFINITIVO TIMELINE HORIZONTAL
   Pegar al final de assets/style.css
========================================================== */

/* Evita que cualquier timeline rompa el ancho general de la app */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar {
    z-index: 100;
}

.content {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* Contenedor general del timeline */
.timeline-v2 {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: grid;
    gap: 24px;
}

/* Hero superior más compacto */
.timeline-hero-v2 {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    padding: 28px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 90% 10%, rgba(37,99,235,.18), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(34,197,94,.10), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.62));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 24px 70px rgba(15,23,42,.09);
    overflow: hidden;
}

.timeline-hero-v2 h1 {
    margin: 8px 0 8px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: .95;
    letter-spacing: -.07em;
}

.timeline-hero-v2 p {
    margin: 0;
    max-width: 760px;
    color: #64748b;
    font-size: 14px;
}

.timeline-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.timeline-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 950;
}

/* KPIs: que nunca se salgan */
.timeline-summary-v2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.timeline-summary-v2 article {
    min-width: 0;
    min-height: 126px;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 18px 45px rgba(15,23,42,.07);
}

.timeline-summary-v2 article span {
    font-size: 12px;
}

.timeline-summary-v2 article strong {
    font-size: clamp(24px, 2vw, 32px);
}

/* Panel de avance */
.timeline-progress-panel-v2 {
    width: 100%;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 22px;
    align-items: center;
    padding: 24px 28px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,.62));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 22px 60px rgba(15,23,42,.07);
    overflow: hidden;
}

.timeline-progress-panel-v2 h2 {
    margin: 8px 0 6px;
    font-size: 28px;
}

.timeline-progress-panel-v2 p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.timeline-progress-track-v2 {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(148,163,184,.18);
    overflow: hidden;
}

.timeline-progress-fill-v2 {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    animation: timelineFillV2 .9s ease forwards;
}

/* Panel principal horizontal */
.timeline-horizontal-panel-v2 {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 28px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 30% 0%, rgba(37,99,235,.08), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.64));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

.timeline-panel-title-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.timeline-panel-title-v2 h2 {
    margin: 8px 0 0;
    font-size: 30px;
    letter-spacing: -.06em;
}

/* Scroll solo adentro del timeline */
.timeline-scroll-v2 {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 54px 6px 22px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(37,99,235,.45) rgba(148,163,184,.14);
}

.timeline-scroll-v2::-webkit-scrollbar {
    height: 10px;
}

.timeline-scroll-v2::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(148,163,184,.16);
}

.timeline-scroll-v2::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
}

/* Línea central */
.timeline-line-v2 {
    position: absolute;
    left: 34px;
    right: 34px;
    top: 72px;
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(37,99,235,.32), rgba(34,197,94,.32));
    z-index: 0;
}

/* Cada nodo del timeline */
.timeline-node-v2 {
    position: relative;
    flex: 0 0 225px;
    min-width: 225px;
    max-width: 225px;
    scroll-snap-align: start;
    z-index: 1;
}

/* Punto superior */
.timeline-dot-v2 {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 17px;
    font-weight: 950;
    background: #64748b;
    box-shadow: 0 14px 28px rgba(15,23,42,.18);
}

.timeline-node-v2.pagado .timeline-dot-v2 {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.timeline-node-v2.vencido .timeline-dot-v2 {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.timeline-node-v2.pendiente .timeline-dot-v2,
.timeline-node-v2.parcial .timeline-dot-v2 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.timeline-node-v2.futuro .timeline-dot-v2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.timeline-node-v2.sin_cargo .timeline-dot-v2 {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

/* Card mensual */
.timeline-card-v2 {
    min-height: 292px;
    max-height: 380px;
    overflow: hidden;
    padding: 17px;
    border-radius: 26px;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow:
        0 16px 42px rgba(15,23,42,.07),
        inset 0 1px 0 rgba(255,255,255,.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.timeline-node-v2.pagado .timeline-card-v2 {
    background:
        radial-gradient(circle at 100% 0%, rgba(34,197,94,.18), transparent 35%),
        linear-gradient(135deg, rgba(220,252,231,.96), rgba(255,255,255,.78));
}

.timeline-node-v2.vencido .timeline-card-v2 {
    background:
        radial-gradient(circle at 100% 0%, rgba(220,38,38,.16), transparent 35%),
        linear-gradient(135deg, rgba(254,226,226,.96), rgba(255,255,255,.78));
}

.timeline-node-v2.pendiente .timeline-card-v2,
.timeline-node-v2.parcial .timeline-card-v2 {
    background:
        radial-gradient(circle at 100% 0%, rgba(245,158,11,.18), transparent 35%),
        linear-gradient(135deg, rgba(254,243,199,.96), rgba(255,255,255,.78));
}

.timeline-node-v2.futuro .timeline-card-v2 {
    background:
        radial-gradient(circle at 100% 0%, rgba(100,116,139,.12), transparent 35%),
        linear-gradient(135deg, rgba(241,245,249,.96), rgba(255,255,255,.78));
}

/* Header de la card */
.timeline-card-head-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.timeline-card-head-v2 strong {
    font-size: 21px;
    letter-spacing: -.05em;
    color: #0f172a;
}

.timeline-card-head-v2 span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(226,232,240,.92);
    font-size: 10px;
    font-weight: 950;
    color: #334155;
}

.timeline-node-v2.pagado .timeline-card-head-v2 span {
    background: rgba(220,252,231,.95);
    color: #166534;
}

.timeline-node-v2.vencido .timeline-card-head-v2 span {
    background: rgba(254,226,226,.95);
    color: #991b1b;
}

.timeline-node-v2.pendiente .timeline-card-head-v2 span,
.timeline-node-v2.parcial .timeline-card-head-v2 span {
    background: rgba(254,243,199,.95);
    color: #92400e;
}

.timeline-card-v2 h3 {
    margin: 0 0 12px;
    color: #475569;
    font-size: 15px;
    font-weight: 850;
}

/* Saldo */
.timeline-money-v2 {
    padding: 13px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15,23,42,.05);
    margin-bottom: 12px;
}

.timeline-money-v2 span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 4px;
}

.timeline-money-v2 strong {
    display: block;
    color: #0f172a;
    font-size: 27px;
    line-height: 1;
    letter-spacing: -.06em;
}

/* Datos pequeños */
.timeline-mini-data-v2 {
    display: grid;
    gap: 6px;
}

.timeline-mini-data-v2 div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

.timeline-mini-data-v2 strong {
    color: #0f172a;
    font-weight: 900;
}

/* Barra mini */
.timeline-mini-progress-v2 {
    margin-top: 13px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148,163,184,.18);
    overflow: hidden;
}

.timeline-mini-progress-v2 div {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    animation: timelineFillV2 .9s ease forwards;
}

/* Pagos aplicados dentro de cada mes */
.timeline-apps-v2 {
    margin-top: 11px;
    display: grid;
    gap: 6px;
    max-height: 68px;
    overflow-y: auto;
}

.timeline-apps-v2 div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 12px;
    background: rgba(37,99,235,.08);
    color: #475569;
    font-size: 11px;
}

.timeline-apps-v2 strong {
    color: #1d4ed8;
}

/* Mobile / tamaños medianos */
@media (max-width: 1300px) {
    .timeline-summary-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-progress-panel-v2 {
        grid-template-columns: 1fr;
    }

    .timeline-hero-v2 {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .timeline-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .timeline-summary-v2 {
        grid-template-columns: 1fr;
    }

    .timeline-hero-v2,
    .timeline-progress-panel-v2,
    .timeline-horizontal-panel-v2 {
        border-radius: 26px;
        padding: 20px;
    }

    .timeline-node-v2 {
        flex-basis: 215px;
        min-width: 215px;
        max-width: 215px;
    }

    .timeline-card-v2 {
        min-height: 285px;
    }
}
/* ==========================================================
   SUBIR PAGO - WIZARD VISUAL + TIMELINE
========================================================== */

.pay-wizard {
    display: grid;
    gap: 24px;
}

.pay-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 32px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 90% 10%, rgba(37,99,235,.22), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.60));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 30px 80px rgba(15,23,42,.10);
}

.pay-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: .92;
    letter-spacing: -.075em;
}

.pay-hero p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.pay-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pay-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}

.pay-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 16px;
    font-weight: 950;
}

.pay-btn.secondary {
    color: #1e293b;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(15,23,42,.07);
}

.pay-panel {
    padding: 28px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,.60));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

.pay-section-title {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.pay-section-title > span {
    min-width: 54px;
    min-height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 16px 34px rgba(37,99,235,.20);
}

.pay-section-title h2 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -.06em;
}

.pay-section-title p {
    margin: 0;
    color: #64748b;
}

.pay-property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pay-property-card {
    margin: 0;
    cursor: pointer;
}

.pay-property-card input {
    display: none;
}

.pay-property-card > div {
    min-height: 122px;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 18px 44px rgba(15,23,42,.06);
    transition: .18s ease;
}

.pay-property-card strong {
    display: block;
    font-size: 24px;
    letter-spacing: -.06em;
    color: #0f172a;
}

.pay-property-card span,
.pay-property-card small {
    display: block;
    margin-top: 6px;
    color: #64748b;
}

.pay-property-card input:checked + div {
    border-color: rgba(37,99,235,.55);
    box-shadow:
        0 0 0 5px rgba(37,99,235,.12),
        0 24px 60px rgba(37,99,235,.12);
    background:
        radial-gradient(circle at 100% 0%, rgba(37,99,235,.16), transparent 36%),
        rgba(255,255,255,.86);
}

.pay-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

.pay-form-grid .full {
    grid-column: 1 / -1;
}

.pay-form-grid label {
    margin-top: 0;
    font-size: 12px;
    font-weight: 950;
}

.pay-form-grid input,
.pay-form-grid select,
.pay-form-grid textarea {
    min-height: 52px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    font-weight: 780;
}

.pay-selected-detail {
    margin-top: 22px;
}

.pay-detail-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(15,23,42,.06);
}

.pay-detail-card.pagado {
    background: rgba(220,252,231,.82);
}

.pay-detail-card.vencido {
    background: rgba(254,226,226,.86);
}

.pay-detail-card.pendiente,
.pay-detail-card.parcial {
    background: rgba(254,243,199,.86);
}

.pay-detail-label {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(219,234,254,.95);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 10px;
}

.pay-detail-card h3 {
    margin: 0 0 6px;
    font-size: 24px;
    letter-spacing: -.04em;
}

.pay-detail-card p {
    margin: 0;
    color: #64748b;
}

.pay-detail-amount {
    min-width: 210px;
    text-align: right;
}

.pay-detail-amount span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
}

.pay-detail-amount strong {
    display: block;
    margin-top: 6px;
    font-size: 32px;
    letter-spacing: -.06em;
    color: #0f172a;
}

.pay-timeline-panel {
    margin-top: 24px;
    padding: 20px;
    border-radius: 28px;
    background: rgba(248,250,252,.62);
    border: 1px solid rgba(15,23,42,.06);
}

.pay-timeline-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pay-timeline-head strong {
    display: block;
    font-size: 18px;
}

.pay-timeline-head span {
    display: block;
    color: #64748b;
    margin-top: 3px;
    font-size: 13px;
}

.pay-mini-timeline {
    overflow-x: auto;
    padding-bottom: 8px;
}

.pay-timeline-scroll {
    position: relative;
    display: flex;
    gap: 16px;
    min-width: max-content;
    padding: 30px 4px 6px;
}

.pay-timeline-scroll::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 51px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37,99,235,.28), rgba(34,197,94,.28));
}

.pay-timeline-item {
    position: relative;
    z-index: 1;
    flex: 0 0 220px;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

.pay-timeline-dot {
    width: 42px;
    height: 42px;
    margin: 0 auto 16px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #64748b;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(15,23,42,.16);
}

.pay-timeline-item.pagado .pay-timeline-dot {
    background: #16a34a;
}

.pay-timeline-item.vencido .pay-timeline-dot {
    background: #dc2626;
}

.pay-timeline-item.pendiente .pay-timeline-dot,
.pay-timeline-item.parcial .pay-timeline-dot {
    background: #f59e0b;
}

.pay-timeline-card {
    min-height: 280px;
    padding: 17px;
    border-radius: 26px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 16px 42px rgba(15,23,42,.07);
    transition: .18s ease;
}

.pay-timeline-item:hover .pay-timeline-card {
    transform: translateY(-4px);
}

.pay-timeline-item.pagado .pay-timeline-card {
    background: linear-gradient(135deg, rgba(220,252,231,.94), rgba(255,255,255,.78));
}

.pay-timeline-item.vencido .pay-timeline-card {
    background: linear-gradient(135deg, rgba(254,226,226,.95), rgba(255,255,255,.78));
}

.pay-timeline-item.pendiente .pay-timeline-card,
.pay-timeline-item.parcial .pay-timeline-card {
    background: linear-gradient(135deg, rgba(254,243,199,.95), rgba(255,255,255,.78));
}

.pay-timeline-card-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.pay-timeline-card-top strong {
    font-size: 20px;
    letter-spacing: -.04em;
}

.pay-timeline-card-top span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(226,232,240,.92);
    font-size: 10px;
    font-weight: 950;
}

.pay-timeline-card h3 {
    min-height: 38px;
    margin: 0 0 12px;
    font-size: 14px;
    color: #475569;
}

.pay-timeline-money {
    padding: 13px;
    border-radius: 18px;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(15,23,42,.05);
    margin-bottom: 12px;
}

.pay-timeline-money span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
}

.pay-timeline-money strong {
    display: block;
    margin-top: 5px;
    font-size: 25px;
    letter-spacing: -.06em;
    color: #0f172a;
}

.pay-timeline-data {
    display: grid;
    gap: 6px;
}

.pay-timeline-data div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.pay-timeline-data strong {
    color: #0f172a;
}

.pay-mini-progress {
    margin-top: 13px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148,163,184,.18);
    overflow: hidden;
}

.pay-mini-progress div {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    animation: payProgress .8s ease forwards;
}

@keyframes payProgress {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

.pay-submit {
    margin-top: 22px;
    min-height: 54px;
    border-radius: 18px;
    font-weight: 950;
}

.pay-empty {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.72);
    color: #64748b;
}

@media (max-width: 1200px) {
    .pay-property-grid,
    .pay-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pay-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .pay-property-grid,
    .pay-form-grid {
        grid-template-columns: 1fr;
    }

    .pay-hero,
    .pay-panel {
        border-radius: 26px;
        padding: 20px;
    }

    .pay-detail-card {
        flex-direction: column;
    }

    .pay-detail-amount {
        text-align: left;
    }
}
/* ==========================================================
   SUBIR PAGO - CHECKOUT LIMPIO
========================================================== */

.checkout-pay {
    display: grid;
    gap: 24px;
}

.checkout-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 32px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 88% 12%, rgba(37,99,235,.20), transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.62));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 28px 76px rgba(15,23,42,.10);
}

.checkout-hero span {
    display: inline-flex;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.checkout-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: .92;
    letter-spacing: -.075em;
}

.checkout-hero p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.checkout-hero a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 16px;
    background: rgba(255,255,255,.78);
    color: #1e293b;
    border: 1px solid rgba(15,23,42,.07);
    font-weight: 950;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.checkout-main {
    display: grid;
    gap: 20px;
}

.checkout-card,
.checkout-summary-card {
    border-radius: 30px;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,.64));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 22px 64px rgba(15,23,42,.08);
}

.checkout-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.checkout-title > strong {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 16px 32px rgba(37,99,235,.22);
}

.checkout-title h2 {
    margin: 0 0 5px;
    font-size: 24px;
    letter-spacing: -.05em;
}

.checkout-title p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.checkout-property-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.checkout-property-list label {
    margin: 0;
    cursor: pointer;
}

.checkout-property-list input {
    display: none;
}

.checkout-property-list label > div {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(15,23,42,.06);
    transition: .18s ease;
}

.checkout-property-list strong {
    display: block;
    color: #0f172a;
    font-size: 22px;
    letter-spacing: -.05em;
}

.checkout-property-list span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
}

.checkout-property-list input:checked + div {
    background:
        radial-gradient(circle at 100% 0%, rgba(37,99,235,.15), transparent 42%),
        rgba(255,255,255,.92);
    border-color: rgba(37,99,235,.55);
    box-shadow:
        0 0 0 5px rgba(37,99,235,.12),
        0 20px 48px rgba(37,99,235,.10);
}

.checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 18px;
}

.checkout-grid .full {
    grid-column: 1 / -1;
}

.checkout-grid label {
    margin-top: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 950;
}

.checkout-grid input,
.checkout-grid select,
.checkout-grid textarea {
    min-height: 50px;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    font-weight: 760;
}

.checkout-dues {
    margin-top: 20px;
}

.checkout-dues-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-due {
    width: 100%;
    margin: 0;
    text-align: left;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 22px;
    padding: 16px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 14px 34px rgba(15,23,42,.05);
    cursor: pointer;
    transition: .18s ease;
}

.checkout-due:hover {
    transform: translateY(-2px);
}

.checkout-due.active {
    border-color: rgba(37,99,235,.55);
    box-shadow:
        0 0 0 5px rgba(37,99,235,.11),
        0 22px 48px rgba(37,99,235,.10);
}

.checkout-due.vencido {
    background: linear-gradient(135deg, rgba(254,226,226,.95), rgba(255,255,255,.82));
}

.checkout-due.pendiente,
.checkout-due.parcial {
    background: linear-gradient(135deg, rgba(254,243,199,.95), rgba(255,255,255,.82));
}

.checkout-due.futuro {
    background: linear-gradient(135deg, rgba(241,245,249,.95), rgba(255,255,255,.82));
}

.checkout-due-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.checkout-due-top strong {
    color: #0f172a;
    font-size: 17px;
}

.checkout-due-top span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(226,232,240,.9);
    color: #334155;
    font-size: 10px;
    font-weight: 950;
}

.checkout-due h3 {
    min-height: 38px;
    margin: 0 0 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.35;
}

.checkout-due-amount {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(15,23,42,.04);
    margin-bottom: 12px;
}

.checkout-due-amount span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
}

.checkout-due-amount strong {
    display: block;
    margin-top: 4px;
    font-size: 25px;
    letter-spacing: -.06em;
    color: #0f172a;
}

.checkout-due-meta {
    display: grid;
    gap: 5px;
}

.checkout-due-meta span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

.checkout-due-meta strong {
    color: #0f172a;
}

.checkout-progress {
    margin-top: 12px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148,163,184,.18);
    overflow: hidden;
}

.checkout-progress div {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    animation: checkoutProgress .8s ease forwards;
}

@keyframes checkoutProgress {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

.checkout-summary {
    position: sticky;
    top: 28px;
}

.checkout-summary-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(37,99,235,.22), transparent 38%),
        linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.checkout-summary-card > span {
    display: block;
    color: rgba(255,255,255,.64);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.checkout-summary-card h2 {
    margin: 12px 0 10px;
    color: #fff;
    font-size: 42px;
    letter-spacing: -.07em;
}

.checkout-summary-card p {
    margin: 0 0 20px;
    color: rgba(255,255,255,.72);
    line-height: 1.45;
}

.checkout-summary-info {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.checkout-summary-info div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
}

.checkout-summary-info span {
    color: rgba(255,255,255,.58);
    font-size: 12px;
    font-weight: 850;
}

.checkout-summary-info strong {
    color: #fff;
    font-size: 12px;
    text-align: right;
}

.checkout-summary-card button {
    width: 100%;
    min-height: 52px;
    margin-top: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    box-shadow: 0 18px 38px rgba(37,99,235,.26);
    font-weight: 950;
}

.checkout-empty {
    padding: 16px;
    border-radius: 18px;
    background: rgba(248,250,252,.75);
    color: #64748b;
    font-weight: 800;
}

@media (max-width: 1280px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-dues-grid,
    .checkout-property-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .checkout-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-grid,
    .checkout-dues-grid,
    .checkout-property-list {
        grid-template-columns: 1fr;
    }

    .checkout-hero,
    .checkout-card,
    .checkout-summary-card {
        border-radius: 24px;
        padding: 20px;
    }
}

/* ==========================================================
   CUOTAS - CATÁLOGO MODERNO
========================================================== */

.cuotas-admin {
    display: grid;
    gap: 24px;
}

.cuotas-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 34px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 88% 10%, rgba(37,99,235,.20), transparent 34%),
        radial-gradient(circle at 56% 105%, rgba(34,197,94,.12), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.60));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 30px 90px rgba(15,23,42,.10);
}

.cuotas-hero span,
.cuotas-section-title span {
    display: inline-flex;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cuotas-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: .92;
    letter-spacing: -.075em;
    color: #0f172a;
}

.cuotas-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.cuotas-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cuotas-hero-actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 16px;
    background: rgba(255,255,255,.78);
    color: #1e293b;
    border: 1px solid rgba(15,23,42,.07);
    font-weight: 950;
}

.cuotas-hero-actions a:first-child {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 16px 34px rgba(37,99,235,.22);
}

.cuotas-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cuotas-kpi-grid article {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 20px 54px rgba(15,23,42,.07);
}

.cuotas-kpi-grid article::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(37,99,235,.10);
}

.cuotas-kpi-grid article.success::after {
    background: rgba(34,197,94,.15);
}

.cuotas-kpi-grid article.warning::after {
    background: rgba(245,158,11,.15);
}

.cuotas-kpi-grid article.info::after {
    background: rgba(124,58,237,.13);
}

.cuotas-kpi-grid span,
.cuotas-kpi-grid strong {
    position: relative;
    z-index: 1;
}

.cuotas-kpi-grid span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 10px;
}

.cuotas-kpi-grid strong {
    display: block;
    color: #0f172a;
    font-size: 30px;
    letter-spacing: -.06em;
}

.cuotas-panel {
    padding: 28px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,.62));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

.cuotas-section-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.cuotas-section-title h2 {
    margin: 0 0 7px;
    font-size: 28px;
    letter-spacing: -.06em;
    color: #0f172a;
}

.cuotas-section-title p {
    margin: 0;
    color: #64748b;
}

.cuotas-section-title a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(219,234,254,.9);
    color: #1d4ed8;
    font-weight: 950;
    font-size: 13px;
}

.cuotas-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

.cuotas-form .full {
    grid-column: 1 / -1;
}

.cuotas-form label {
    margin-top: 0;
    font-size: 12px;
    font-weight: 950;
    color: #334155;
}

.cuotas-form input,
.cuotas-form select,
.cuotas-form textarea {
    min-height: 52px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    font-weight: 760;
}

.cuotas-check-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 13px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15,23,42,.06);
}

.cuotas-check-row input {
    width: auto;
}

.cuotas-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cuotas-form-actions button,
.cuotas-form-actions a {
    min-height: 48px;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 950;
}

.cuotas-form-actions a {
    color: #1d4ed8;
    background: rgba(219,234,254,.95);
    border: 1px solid rgba(37,99,235,.14);
}

.cuotas-list {
    display: grid;
    gap: 16px;
}

.cuota-card {
    padding: 22px;
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 18px 48px rgba(15,23,42,.06);
}

.cuota-card.inactivo {
    opacity: .72;
}

.cuota-card-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.cuota-chip {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(219,234,254,.95);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cuota-chip.trimestral {
    background: rgba(254,243,199,.95);
    color: #92400e;
}

.cuota-chip.semestral {
    background: rgba(237,233,254,.95);
    color: #5b21b6;
}

.cuota-chip.anual {
    background: rgba(220,252,231,.95);
    color: #166534;
}

.cuota-chip.unica {
    background: rgba(254,226,226,.95);
    color: #991b1b;
}

.cuota-card h3 {
    margin: 12px 0 8px;
    font-size: 24px;
    letter-spacing: -.05em;
    color: #0f172a;
}

.cuota-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.cuota-amount {
    min-width: 190px;
    text-align: right;
}

.cuota-amount span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 5px;
}

.cuota-amount strong {
    display: block;
    color: #0f172a;
    font-size: 32px;
    letter-spacing: -.06em;
}

.cuota-meta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.cuota-meta-grid div {
    padding: 13px;
    border-radius: 18px;
    background: rgba(248,250,252,.72);
    border: 1px solid rgba(15,23,42,.04);
}

.cuota-meta-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 5px;
}

.cuota-meta-grid strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.cuota-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.cuota-card-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 13px;
    color: #fff;
    background: #2563eb;
    font-size: 12px;
    font-weight: 950;
}

.cuota-card-actions a:nth-child(2) {
    background: #0f172a;
}

.cuota-card-actions a.danger {
    background: #dc2626;
}

@media (max-width: 1200px) {
    .cuotas-kpi-grid,
    .cuotas-form {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cuotas-hero,
    .cuota-card-main {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cuota-amount {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .cuotas-kpi-grid,
    .cuotas-form,
    .cuota-meta-grid {
        grid-template-columns: 1fr;
    }

    .cuotas-hero,
    .cuotas-panel {
        border-radius: 26px;
        padding: 20px;
    }

    .cuotas-section-title {
        flex-direction: column;
    }
}
/* ==========================================================
   DASHBOARD - BOTONES VER MÁS + MODALES
========================================================== */

.dash-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-more-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(37,99,235,.14);
    background: rgba(219,234,254,.9);
    color: #1d4ed8;
    box-shadow: none;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.dash-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37,99,235,.12);
}

.dash-more-btn.danger {
    color: #991b1b;
    background: rgba(254,226,226,.95);
    border-color: rgba(220,38,38,.14);
}

.dash-more-btn.warning {
    color: #92400e;
    background: rgba(254,243,199,.95);
    border-color: rgba(245,158,11,.14);
}

body.dash-modal-open {
    overflow: hidden;
}

.dash-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.dash-modal.open {
    display: block;
}

.dash-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dash-modal-card {
    position: absolute;
    inset: 34px;
    display: grid;
    grid-template-rows: auto auto 1fr;
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 40px 120px rgba(15,23,42,.30);
    overflow: hidden;
}

.dash-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 30px 20px;
    border-bottom: 1px solid rgba(15,23,42,.06);
}

.dash-modal-header span {
    display: inline-flex;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dash-modal-header h2 {
    margin: 0 0 6px;
    font-size: 34px;
    letter-spacing: -.06em;
    color: #0f172a;
}

.dash-modal-header p {
    margin: 0;
    color: #64748b;
}

.dash-modal-close {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.78);
    color: #0f172a;
    box-shadow: none;
    font-size: 26px;
    line-height: 1;
}

.dash-modal-tools {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 30px;
    border-bottom: 1px solid rgba(15,23,42,.06);
}

.dash-modal-tools input {
    max-width: 520px;
    min-height: 48px;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    font-weight: 750;
}

.dash-modal-tools span {
    color: #64748b;
    font-size: 13px;
    font-weight: 950;
}

.dash-modal-body {
    overflow: auto;
    padding: 22px 30px 30px;
}

.dash-modal-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.dash-modal-table th {
    text-align: left;
    padding: 0 14px 4px;
    color: #64748b;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dash-modal-table td {
    padding: 15px 14px;
    background: rgba(255,255,255,.84);
    border-top: 1px solid rgba(15,23,42,.05);
    border-bottom: 1px solid rgba(15,23,42,.05);
    color: #334155;
    font-size: 13px;
    vertical-align: top;
}

.dash-modal-table td:first-child {
    border-left: 1px solid rgba(15,23,42,.05);
    border-top-left-radius: 17px;
    border-bottom-left-radius: 17px;
}

.dash-modal-table td:last-child {
    border-right: 1px solid rgba(15,23,42,.05);
    border-top-right-radius: 17px;
    border-bottom-right-radius: 17px;
}

.dash-modal-table td strong {
    color: #0f172a;
}

.dash-modal-table td span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.dash-modal-empty {
    padding: 24px;
    border-radius: 24px;
    background: rgba(248,250,252,.86);
    border: 1px dashed rgba(100,116,139,.24);
    color: #64748b;
    text-align: center;
    font-weight: 850;
}

.dash-modal-announcements {
    display: grid;
    gap: 14px;
}

.dash-modal-announcements article {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(15,23,42,.06);
}

.dash-modal-announcements article span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(220,252,231,.95);
    color: #166534;
    font-size: 11px;
    font-weight: 950;
}

.dash-modal-announcements h3 {
    margin: 12px 0 7px;
    color: #0f172a;
}

.dash-modal-announcements p {
    margin: 0;
    color: #64748b;
    line-height: 1.48;
}

.dash-modal-announcements small {
    display: block;
    margin-top: 10px;
    color: #94a3b8;
    font-weight: 800;
}

@media (max-width: 820px) {
    .dash-modal-card {
        inset: 14px;
        border-radius: 24px;
    }

    .dash-modal-header,
    .dash-modal-tools,
    .dash-modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .dash-modal-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .dash-modal-tools input {
        max-width: none;
    }
}
/* ==========================================================
   FIX MODAL DASHBOARD - RESPETA SIDEBAR
========================================================== */

.dash-modal {
    position: fixed;
    top: 0;
    left: 286px;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    padding: 28px 34px;
    box-sizing: border-box;
}

.dash-modal.open {
    display: block;
}

.dash-modal-backdrop {
    position: fixed;
    top: 0;
    left: 286px;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dash-modal-card {
    position: relative;
    inset: auto;
    width: 100%;
    height: calc(100vh - 56px);
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.97), rgba(248,250,252,.95));
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 40px 120px rgba(15,23,42,.28);
    overflow: hidden;
}

.dash-modal-header {
    padding: 26px 30px 18px;
}

.dash-modal-tools {
    padding: 16px 30px;
}

.dash-modal-body {
    padding: 20px 30px 30px;
    overflow: auto;
}

.dash-modal-table {
    width: 100%;
    min-width: 980px;
}

.dash-modal-table th:first-child,
.dash-modal-table td:first-child {
    padding-left: 18px;
}

.dash-modal-close {
    flex: 0 0 44px;
}

/* Para que el sidebar siempre quede visible por encima del backdrop */
.sidebar {
    z-index: 10000;
}

/* Evita que la página se mueva cuando el modal está abierto */
body.dash-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 980px) {
    .dash-modal {
        left: 0;
        padding: 14px;
    }

    .dash-modal-backdrop {
        left: 0;
    }

    .dash-modal-card {
        height: calc(100vh - 28px);
        border-radius: 24px;
    }

    .sidebar {
        z-index: 9000;
    }
}

/* ==========================================================
   DASHBOARD - BOTONES VER MÁS + MODALES
========================================================== */

.dash-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-more-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(37,99,235,.14);
    background: rgba(219,234,254,.9);
    color: #1d4ed8;
    box-shadow: none;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.dash-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37,99,235,.12);
}

.dash-more-btn.danger {
    color: #991b1b;
    background: rgba(254,226,226,.95);
    border-color: rgba(220,38,38,.14);
}

.dash-more-btn.warning {
    color: #92400e;
    background: rgba(254,243,199,.95);
    border-color: rgba(245,158,11,.14);
}

/* ==========================================================
   DASHBOARD - WIDGET COMPACTO VENCIMIENTOS
========================================================== */

.dash-compact-widget {
    overflow: hidden;
}

.compact-title {
    margin-bottom: 16px;
}

.compact-title h2 {
    margin-bottom: 4px;
}

.compact-title p {
    font-size: 13px;
}

.dash-compact-list {
    display: grid;
    gap: 8px;
}

.dash-compact-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 110px 110px;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15,23,42,.05);
    box-shadow: 0 8px 20px rgba(15,23,42,.035);
}

.dash-compact-row:hover {
    background: rgba(255,255,255,.92);
    transform: translateY(-1px);
}

.dash-compact-main strong,
.dash-compact-concept strong,
.dash-compact-date strong,
.dash-compact-money strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.2;
}

.dash-compact-main span,
.dash-compact-concept span,
.dash-compact-date span,
.dash-compact-money span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
}

.dash-compact-concept {
    min-width: 0;
}

.dash-compact-concept span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash-compact-date {
    text-align: right;
}

.dash-compact-money {
    text-align: right;
}

.dash-compact-money strong {
    font-size: 14px;
    color: #92400e;
}

.dash-compact-money span {
    display: inline-flex;
    justify-content: center;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(254,243,199,.95);
    color: #92400e;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

/* ==========================================================
   DASHBOARD MODAL - RESPETA SIDEBAR
========================================================== */

body.dash-modal-open {
    overflow: hidden;
}

.dash-modal {
    position: fixed;
    top: 0;
    left: 286px;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    padding: 28px 34px;
    box-sizing: border-box;
}

.dash-modal.open {
    display: block;
}

.dash-modal-backdrop {
    position: fixed;
    top: 0;
    left: 286px;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dash-modal-card {
    position: relative;
    inset: auto;
    width: 100%;
    height: calc(100vh - 56px);
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.97), rgba(248,250,252,.95));
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 40px 120px rgba(15,23,42,.28);
    overflow: hidden;
}

.dash-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 26px 30px 18px;
    border-bottom: 1px solid rgba(15,23,42,.06);
}

.dash-modal-header span {
    display: inline-flex;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dash-modal-header h2 {
    margin: 0 0 6px;
    font-size: 34px;
    letter-spacing: -.06em;
    color: #0f172a;
}

.dash-modal-header p {
    margin: 0;
    color: #64748b;
}

.dash-modal-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.78);
    color: #0f172a;
    box-shadow: none;
    font-size: 26px;
    line-height: 1;
}

.dash-modal-tools {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 30px;
    border-bottom: 1px solid rgba(15,23,42,.06);
}

.dash-modal-tools input {
    max-width: 520px;
    min-height: 48px;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    font-weight: 750;
}

.dash-modal-tools span {
    color: #64748b;
    font-size: 13px;
    font-weight: 950;
}

.dash-modal-body {
    padding: 20px 30px 30px;
    overflow: auto;
}

.dash-modal-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.dash-modal-table th {
    text-align: left;
    padding: 0 14px 4px;
    color: #64748b;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dash-modal-table th:first-child,
.dash-modal-table td:first-child {
    padding-left: 18px;
}

.dash-modal-table td {
    padding: 15px 14px;
    background: rgba(255,255,255,.84);
    border-top: 1px solid rgba(15,23,42,.05);
    border-bottom: 1px solid rgba(15,23,42,.05);
    color: #334155;
    font-size: 13px;
    vertical-align: top;
}

.dash-modal-table td:first-child {
    border-left: 1px solid rgba(15,23,42,.05);
    border-top-left-radius: 17px;
    border-bottom-left-radius: 17px;
}

.dash-modal-table td:last-child {
    border-right: 1px solid rgba(15,23,42,.05);
    border-top-right-radius: 17px;
    border-bottom-right-radius: 17px;
}

.dash-modal-table td strong {
    color: #0f172a;
}

.dash-modal-table td span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.dash-modal-empty {
    padding: 24px;
    border-radius: 24px;
    background: rgba(248,250,252,.86);
    border: 1px dashed rgba(100,116,139,.24);
    color: #64748b;
    text-align: center;
    font-weight: 850;
}

.dash-modal-announcements {
    display: grid;
    gap: 14px;
}

.dash-modal-announcements article {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(15,23,42,.06);
}

.dash-modal-announcements article span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(220,252,231,.95);
    color: #166534;
    font-size: 11px;
    font-weight: 950;
}

.dash-modal-announcements h3 {
    margin: 12px 0 7px;
    color: #0f172a;
}

.dash-modal-announcements p {
    margin: 0;
    color: #64748b;
    line-height: 1.48;
}

.dash-modal-announcements small {
    display: block;
    margin-top: 10px;
    color: #94a3b8;
    font-weight: 800;
}

.sidebar {
    z-index: 10000;
}

@media (max-width: 1100px) {
    .dash-compact-row {
        grid-template-columns: 80px minmax(0, 1fr) 100px;
    }

    .dash-compact-date {
        display: none;
    }
}

@media (max-width: 980px) {
    .dash-modal {
        left: 0;
        padding: 14px;
    }

    .dash-modal-backdrop {
        left: 0;
    }

    .dash-modal-card {
        height: calc(100vh - 28px);
        border-radius: 24px;
    }

    .sidebar {
        z-index: 9000;
    }
}

@media (max-width: 820px) {
    .dash-modal-header,
    .dash-modal-tools,
    .dash-modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .dash-modal-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .dash-modal-tools input {
        max-width: none;
    }
}

@media (max-width: 680px) {
    .dash-compact-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dash-compact-date,
    .dash-compact-money {
        display: block;
        text-align: left;
    }
}

/* ==========================================================
   MI CUENTA - MODAL DE MORA
========================================================== */

body.mora-modal-open {
    overflow: hidden;
}

.mora-alert-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.mora-alert-modal.open {
    display: flex;
}

.mora-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.mora-alert-card {
    position: relative;
    width: min(560px, 100%);
    padding: 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, .18), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,.97), rgba(248,250,252,.94));
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 40px 120px rgba(15,23,42,.34);
    text-align: left;
    animation: moraModalIn .22s ease-out;
}

@keyframes moraModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mora-alert-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    margin: 0;
    border: 0;
    border-radius: 15px;
    background: rgba(15,23,42,.06);
    color: #0f172a;
    box-shadow: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.mora-alert-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    color: #fff;
    font-size: 34px;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(220,38,38,.28);
    margin-bottom: 18px;
}

.mora-alert-kicker {
    display: inline-flex;
    color: #dc2626;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mora-alert-card h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 34px;
    line-height: .96;
    letter-spacing: -.065em;
}

.mora-alert-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
    font-size: 15px;
}

.mora-alert-card p strong {
    color: #0f172a;
}

.mora-alert-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 24px 0;
}

.mora-alert-summary div {
    padding: 15px;
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.06);
}

.mora-alert-summary span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 6px;
}

.mora-alert-summary strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    letter-spacing: -.04em;
}

.mora-alert-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mora-alert-pay,
.mora-alert-secondary {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 17px;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
}

.mora-alert-pay {
    flex: 1;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 18px 38px rgba(220,38,38,.24);
}

.mora-alert-secondary {
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.78);
    color: #334155;
    box-shadow: none;
    cursor: pointer;
}

.account-pay-btn.danger {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 35%),
        linear-gradient(135deg, #dc2626, #f97316);
    color: #fff;
    box-shadow: 0 18px 38px rgba(220,38,38,.22);
}

@media (max-width: 680px) {
    .mora-alert-card {
        padding: 24px;
        border-radius: 26px;
    }

    .mora-alert-card h2 {
        font-size: 28px;
    }

    .mora-alert-summary {
        grid-template-columns: 1fr;
    }

    .mora-alert-actions {
        flex-direction: column;
    }

    .mora-alert-pay,
    .mora-alert-secondary {
        width: 100%;
    }
}
/* ==========================================================
   MENSAJES / INBOX / CASOS
========================================================== */

.inbox-shell,
.thread-shell {
    display: grid;
    gap: 24px;
}

.inbox-header,
.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 22px;
    padding: 34px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 90% 10%, rgba(37,99,235,.18), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.62));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 30px 90px rgba(15,23,42,.10);
}

.inbox-header.admin {
    background:
        radial-gradient(circle at 90% 10%, rgba(124,58,237,.18), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.62));
}

.inbox-header span,
.thread-header span,
.inbox-section-title span,
.thread-section-title span {
    display: inline-flex;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.inbox-header h1,
.thread-header h1 {
    margin: 0 0 8px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: .92;
    color: #0f172a;
    letter-spacing: -.075em;
}

.inbox-header p,
.thread-header p {
    max-width: 780px;
    margin: 0;
    color: #64748b;
    line-height: 1.52;
}

.inbox-actions,
.thread-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inbox-actions a,
.thread-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    color: #1d4ed8;
    border: 1px solid rgba(37,99,235,.12);
    font-weight: 950;
}

.inbox-actions a.primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 16px 34px rgba(37,99,235,.22);
}

.inbox-panel,
.thread-panel {
    padding: 28px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.64));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

.inbox-section-title,
.thread-section-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.inbox-section-title h2,
.thread-section-title h2 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #0f172a;
    letter-spacing: -.06em;
}

.inbox-section-title p {
    margin: 0;
    color: #64748b;
}

.inbox-form,
.inbox-admin-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

.inbox-form .full {
    grid-column: 1 / -1;
}

.inbox-form label,
.inbox-admin-filter label,
.thread-status-form label {
    margin-top: 0;
    font-size: 12px;
    color: #334155;
    font-weight: 950;
}

.inbox-form input,
.inbox-form select,
.inbox-form textarea,
.inbox-admin-filter input,
.inbox-admin-filter select,
.thread-status-form select,
.thread-reply-form textarea {
    min-height: 52px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    font-weight: 760;
}

.inbox-form textarea,
.thread-reply-form textarea {
    min-height: 160px;
    resize: vertical;
}

.inbox-form button,
.inbox-admin-filter button,
.thread-status-form button,
.thread-reply-form button {
    min-height: 52px;
    margin-top: 0;
    border-radius: 18px;
    font-weight: 950;
}

.inbox-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inbox-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    color: #334155;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(15,23,42,.06);
    font-size: 13px;
    font-weight: 950;
}

.inbox-tabs a.active {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 14px 28px rgba(37,99,235,.20);
}

.inbox-tabs strong {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(15,23,42,.08);
    font-size: 11px;
}

.inbox-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.inbox-kpis article {
    padding: 22px;
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 20px 54px rgba(15,23,42,.07);
}

.inbox-kpis span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 8px;
}

.inbox-kpis strong {
    display: block;
    color: #0f172a;
    font-size: 32px;
    letter-spacing: -.06em;
}

.case-list {
    display: grid;
    gap: 14px;
}

.case-card {
    padding: 20px;
    border-radius: 28px;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 18px 48px rgba(15,23,42,.06);
}

.case-card.prioridad-urgente {
    border-color: rgba(220,38,38,.28);
    box-shadow: 0 18px 48px rgba(220,38,38,.10);
}

.case-main {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 20px;
    align-items: start;
}

.case-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.case-tags span,
.case-state,
.case-priority,
.case-unread {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(226,232,240,.80);
    color: #334155;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.case-unread {
    color: #fff !important;
    background: #2563eb !important;
}

.case-state.abierto {
    color: #92400e;
    background: rgba(254,243,199,.95);
}

.case-state.en_proceso {
    color: #1d4ed8;
    background: rgba(219,234,254,.95);
}

.case-state.resuelto {
    color: #166534;
    background: rgba(220,252,231,.95);
}

.case-state.cerrado {
    color: #475569;
    background: rgba(226,232,240,.95);
}

.case-priority.urgente {
    color: #991b1b;
    background: rgba(254,226,226,.95);
}

.case-priority.alta {
    color: #9a3412;
    background: rgba(255,237,213,.95);
}

.case-priority.media {
    color: #1d4ed8;
    background: rgba(219,234,254,.95);
}

.case-priority.baja {
    color: #166534;
    background: rgba(220,252,231,.95);
}

.case-card h3 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 22px;
    letter-spacing: -.045em;
}

.case-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.case-meta {
    padding: 15px;
    border-radius: 20px;
    background: rgba(248,250,252,.78);
    border: 1px solid rgba(15,23,42,.05);
}

.case-meta span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 5px;
}

.case-meta strong {
    display: block;
    color: #0f172a;
}

.case-meta small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(15,23,42,.06);
}

.case-footer span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.case-footer a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 13px;
    color: #fff;
    background: #2563eb;
    font-size: 12px;
    font-weight: 950;
}

.inbox-empty {
    padding: 28px;
    border-radius: 24px;
    background: rgba(248,250,252,.82);
    border: 1px dashed rgba(100,116,139,.24);
    text-align: center;
}

.inbox-empty strong {
    display: block;
    color: #0f172a;
    margin-bottom: 6px;
}

.inbox-empty p {
    margin: 0;
    color: #64748b;
}

/* ==========================================================
   THREAD / CONVERSACIÓN
========================================================== */

.thread-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 22px;
}

.thread-sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
}

.thread-info-card,
.thread-status-form {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(255,255,255,.88);
    box-shadow: 0 16px 38px rgba(15,23,42,.055);
}

.thread-info-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 7px;
}

.thread-info-card strong {
    display: block;
    color: #0f172a;
}

.thread-info-card small {
    display: block;
    color: #64748b;
    margin-top: 5px;
}

.thread-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.thread-messages {
    display: grid;
    gap: 16px;
}

.thread-message {
    display: flex;
    gap: 12px;
    max-width: 86%;
}

.thread-message.mine {
    margin-left: auto;
    flex-direction: row-reverse;
}

.thread-message-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: #2563eb;
    font-weight: 950;
}

.thread-message.neighbor .thread-message-avatar {
    background: #0f172a;
}

.thread-message.admin .thread-message-avatar {
    background: #7c3aed;
}

.thread-message-bubble {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 14px 34px rgba(15,23,42,.055);
}

.thread-message.mine .thread-message-bubble {
    background: rgba(219,234,254,.95);
}

.thread-message-head {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.thread-message-head strong {
    color: #0f172a;
}

.thread-message-head span {
    margin: 0;
    color: #2563eb;
    font-size: 10px;
}

.thread-message-head small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.thread-message-bubble p {
    margin: 0;
    color: #334155;
    line-height: 1.5;
}

.thread-attachment {
    margin-top: 12px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: #1d4ed8;
    background: rgba(255,255,255,.7);
    font-size: 12px;
    font-weight: 950;
}

.thread-reply-form {
    display: grid;
    gap: 12px;
}

.thread-reply-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.thread-reply-actions input {
    flex: 1;
}

.thread-reply-actions button {
    min-width: 180px;
}

@media (max-width: 1100px) {
    .inbox-form,
    .inbox-admin-filter,
    .inbox-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .thread-layout,
    .case-main {
        grid-template-columns: 1fr;
    }

    .thread-message {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .inbox-header,
    .thread-header {
        display: grid;
        padding: 22px;
        border-radius: 28px;
    }

    .inbox-panel,
    .thread-panel {
        padding: 20px;
        border-radius: 26px;
    }

    .inbox-form,
    .inbox-admin-filter,
    .inbox-kpis {
        grid-template-columns: 1fr;
    }

    .case-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .thread-reply-actions {
        display: grid;
    }

    .thread-reply-actions button {
        width: 100%;
    }
}

/* ==========================================================
   SIDEBAR - BADGES
========================================================== */

.sidebar nav a {
    position: relative;
}

.sidebar-badge {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    padding: 0 7px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(220,38,38,.28);
}

/* ==========================================================
   VOTACIONES / POLLS
========================================================== */

.poll-shell,
.accounting-shell,
.timeline-simple {
    display: grid;
    gap: 24px;
}

.poll-hero,
.accounting-hero,
.timeline-simple-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 22px;
    padding: 34px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 90% 10%, rgba(37,99,235,.18), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.62));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 30px 90px rgba(15,23,42,.10);
}

.poll-hero.neighbor {
    background:
        radial-gradient(circle at 90% 10%, rgba(34,197,94,.16), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.62));
}

.poll-hero span,
.accounting-hero span,
.timeline-simple-hero span,
.poll-section-title span,
.accounting-section-title span,
.timeline-simple-title span,
.poll-side-title span {
    display: inline-flex;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.poll-hero h1,
.accounting-hero h1,
.timeline-simple-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: .92;
    color: #0f172a;
    letter-spacing: -.075em;
}

.poll-hero p,
.accounting-hero p,
.timeline-simple-hero p {
    max-width: 780px;
    margin: 0;
    color: #64748b;
    line-height: 1.52;
}

.poll-hero-actions,
.accounting-hero-actions,
.timeline-simple-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.poll-hero-actions a,
.accounting-hero-actions a,
.timeline-simple-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    color: #1d4ed8;
    border: 1px solid rgba(37,99,235,.12);
    font-weight: 950;
}

.timeline-simple-actions a.primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.poll-kpis,
.accounting-kpis,
.timeline-simple-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.accounting-kpis {
    grid-template-columns: repeat(5, 1fr);
}

.poll-kpis article,
.accounting-kpis article,
.timeline-simple-kpis article {
    padding: 22px;
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 20px 54px rgba(15,23,42,.07);
}

.poll-kpis span,
.accounting-kpis span,
.timeline-simple-kpis span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 8px;
}

.poll-kpis strong,
.accounting-kpis strong,
.timeline-simple-kpis strong {
    display: block;
    color: #0f172a;
    font-size: 30px;
    letter-spacing: -.06em;
}

.poll-panel,
.accounting-panel,
.timeline-simple-panel {
    padding: 28px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.64));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

.poll-section-title,
.accounting-section-title,
.timeline-simple-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.poll-section-title h2,
.accounting-section-title h2,
.timeline-simple-title h2,
.poll-side-title h2 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #0f172a;
    letter-spacing: -.06em;
}

.poll-section-title p,
.accounting-section-title p,
.timeline-simple-title p {
    margin: 0;
    color: #64748b;
}

.poll-form,
.accounting-form,
.accounting-filter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 20px;
}

.poll-form .full,
.accounting-form .full {
    grid-column: 1 / -1;
}

.poll-form label,
.accounting-form label,
.accounting-filter label,
.poll-vote-form label {
    margin-top: 0;
    font-size: 12px;
    color: #334155;
    font-weight: 950;
}

.poll-form input,
.poll-form select,
.poll-form textarea,
.accounting-form input,
.accounting-form select,
.accounting-form textarea,
.accounting-filter input,
.accounting-filter select,
.poll-vote-form input,
.poll-vote-form select,
.poll-vote-form textarea {
    min-height: 52px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    font-weight: 760;
}

.poll-form textarea,
.accounting-form textarea,
.poll-vote-form textarea {
    min-height: 130px;
    resize: vertical;
}

.poll-form button,
.accounting-form button,
.accounting-filter button,
.poll-vote-form button {
    min-height: 52px;
    margin-top: 0;
    border-radius: 18px;
    font-weight: 950;
}

.poll-check label {
    display: flex;
    gap: 10px;
    align-items: center;
    width: fit-content;
    padding: 13px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15,23,42,.06);
}

.poll-check input {
    width: auto;
    min-height: auto;
}

.poll-list,
.poll-side-list {
    display: grid;
    gap: 14px;
}

.poll-card,
.poll-side-list a {
    padding: 20px;
    border-radius: 28px;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 18px 48px rgba(15,23,42,.06);
}

.poll-side-list a.active {
    border-color: rgba(37,99,235,.35);
    box-shadow: 0 18px 48px rgba(37,99,235,.12);
}

.poll-card-main {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
    align-items: start;
}

.poll-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.poll-tags span,
.poll-state {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(226,232,240,.80);
    color: #334155;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.poll-state.publicada,
.poll-state.activa {
    color: #166534;
    background: rgba(220,252,231,.95);
}

.poll-state.borrador,
.poll-state.programada {
    color: #1d4ed8;
    background: rgba(219,234,254,.95);
}

.poll-state.cerrada,
.poll-state.vencida {
    color: #475569;
    background: rgba(226,232,240,.95);
}

.poll-card h3,
.poll-side-list strong {
    display: block;
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 22px;
    letter-spacing: -.045em;
}

.poll-side-list strong {
    font-size: 16px;
    margin-top: 10px;
}

.poll-card p,
.poll-side-list small {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.poll-date-box {
    padding: 15px;
    border-radius: 20px;
    background: rgba(248,250,252,.78);
    border: 1px solid rgba(15,23,42,.05);
}

.poll-date-box span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 5px;
}

.poll-date-box strong {
    display: block;
    color: #0f172a;
}

.poll-date-box small {
    display: block;
    margin-top: 5px;
    color: #64748b;
}

.poll-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(15,23,42,.06);
}

.poll-card-actions a,
.accounting-section-title a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 13px;
    color: #fff;
    background: #2563eb;
    font-size: 12px;
    font-weight: 950;
}

.poll-card-actions a.danger {
    background: #dc2626;
}

.poll-empty {
    padding: 28px;
    border-radius: 24px;
    background: rgba(248,250,252,.82);
    border: 1px dashed rgba(100,116,139,.24);
    text-align: center;
    color: #64748b;
}

.poll-empty strong {
    display: block;
    color: #0f172a;
    margin-bottom: 6px;
}

.poll-empty.small {
    padding: 18px;
}

.poll-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 22px;
}

.poll-side {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px;
    border-radius: 30px;
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 18px 48px rgba(15,23,42,.06);
}

.poll-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.poll-detail-head {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.poll-detail-head h2 {
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: 34px;
    letter-spacing: -.06em;
}

.poll-detail-head p {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.poll-notice {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(219,234,254,.90);
    color: #1d4ed8;
    font-weight: 850;
    margin-bottom: 16px;
}

.poll-notice.success {
    background: rgba(220,252,231,.95);
    color: #166534;
}

.poll-vote-form {
    display: grid;
    gap: 16px;
}

.poll-options {
    display: grid;
    gap: 10px;
}

.poll-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 18px;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(15,23,42,.06);
    cursor: pointer;
}

.poll-options input {
    width: auto;
    min-height: auto;
}

.poll-options span {
    color: #0f172a;
    font-weight: 900;
}

.poll-results {
    display: grid;
    gap: 12px;
}

.poll-result-row {
    display: grid;
    grid-template-columns: 240px 1fr 80px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.05);
}

.poll-result-row strong {
    color: #0f172a;
}

.poll-result-row span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.poll-result-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(226,232,240,.9);
    overflow: hidden;
}

.poll-result-bar span {
    display: block;
    width: var(--pct);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #2563eb, #22c55e);
}

/* ==========================================================
   CIERRES / PAGOS TABLA
========================================================== */

.accounting-filter {
    grid-template-columns: 1.1fr 1.8fr 1fr 1fr auto;
    align-items: end;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

/* ==========================================================
   TIMELINE SIMPLE
========================================================== */

.timeline-simple-progress,
.timeline-row-progress {
    height: 12px;
    border-radius: 999px;
    background: rgba(226,232,240,.9);
    overflow: hidden;
}

.timeline-simple-progress div,
.timeline-row-progress div {
    width: var(--progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #2563eb, #22c55e);
}

.timeline-month-list {
    display: grid;
    gap: 10px;
}

.timeline-month-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1.5fr) 110px 110px 110px 120px 90px;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.055);
    box-shadow: 0 12px 28px rgba(15,23,42,.04);
}

.timeline-month-row.vencido {
    border-color: rgba(220,38,38,.20);
}

.timeline-month-row.pagado {
    border-color: rgba(22,163,74,.18);
}

.timeline-month-name span,
.timeline-month-money span,
.timeline-month-date span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.timeline-month-name strong,
.timeline-month-money strong,
.timeline-month-date strong,
.timeline-month-concept strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.timeline-month-concept {
    min-width: 0;
}

.timeline-month-concept span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-month-money.saldo strong {
    color: #92400e;
}

.timeline-month-actions a,
.timeline-month-actions span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 950;
}

.timeline-month-actions a {
    color: #fff;
    background: #2563eb;
}

.timeline-month-actions span {
    color: #64748b;
    background: rgba(226,232,240,.86);
}

.timeline-row-progress {
    grid-column: 1 / -1;
    height: 8px;
}

.timeline-month-payments {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-month-payments span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(220,252,231,.95);
    color: #166534;
    font-size: 11px;
    font-weight: 900;
}

.sidebar-badge.blue {
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37,99,235,.28);
}

@media (max-width: 1200px) {
    .poll-kpis,
    .accounting-kpis,
    .timeline-simple-kpis,
    .poll-form,
    .accounting-form {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .poll-layout,
    .poll-card-main,
    .poll-detail-head {
        grid-template-columns: 1fr;
    }

    .timeline-month-row {
        grid-template-columns: 90px minmax(0, 1fr) 100px 100px;
    }

    .timeline-month-date {
        display: none;
    }

    .timeline-month-actions {
        grid-column: 4;
    }
}

@media (max-width: 760px) {
    .poll-hero,
    .accounting-hero,
    .timeline-simple-hero {
        display: grid;
        padding: 22px;
        border-radius: 28px;
    }

    .poll-panel,
    .accounting-panel,
    .timeline-simple-panel {
        padding: 20px;
        border-radius: 26px;
    }

    .poll-kpis,
    .accounting-kpis,
    .timeline-simple-kpis,
    .poll-form,
    .accounting-form,
    .accounting-filter,
    .poll-result-row {
        grid-template-columns: 1fr;
    }

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

    .timeline-month-actions {
        grid-column: auto;
    }
}

/* ==========================================================
   ANUNCIOS - FEED / FORO COMUNITARIO
========================================================== */

.feed-shell {
    width: min(880px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.feed-hero {
    padding: 30px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, .16), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,250,252,.78));
    border: 1px solid rgba(255,255,255,.88);
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

.feed-eyebrow {
    display: inline-flex;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.feed-hero h1 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: clamp(38px, 5vw, 58px);
    line-height: .92;
    letter-spacing: -.075em;
}

.feed-hero p {
    margin: 0;
    max-width: 640px;
    color: #64748b;
    line-height: 1.5;
}

.feed-composer,
.feed-post,
.feed-empty {
    padding: 18px;
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 18px 50px rgba(15,23,42,.07);
}

.feed-composer {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.feed-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 14px 26px rgba(37,99,235,.20);
}

.feed-avatar.small {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 14px;
}

.feed-form {
    display: grid;
    gap: 10px;
}

.feed-composer-head,
.feed-composer-actions,
.feed-post-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feed-composer-head strong,
.feed-post-meta strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
}

.feed-composer-head span,
.feed-post-meta span,
.feed-composer-actions span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.feed-composer-head select,
.feed-property-select {
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.08);
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    padding: 0 12px;
}

.feed-property-select {
    width: 100%;
    border-radius: 14px;
}

.feed-title-input,
.feed-form textarea {
    width: 100%;
    border: 1px solid rgba(15,23,42,.08);
    background: #f8fafc;
    color: #0f172a;
    outline: none;
}

.feed-title-input {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 900;
}

.feed-form textarea {
    min-height: 112px;
    padding: 14px;
    border-radius: 20px;
    resize: vertical;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 760;
}

.feed-title-input:focus,
.feed-form textarea:focus,
.feed-composer-head select:focus,
.feed-property-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.feed-composer-actions {
    padding-top: 2px;
}

.feed-composer-actions button {
    min-height: 42px;
    margin: 0;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(37,99,235,.18);
}

.feed-list {
    display: grid;
    gap: 14px;
}

.feed-post-author {
    justify-content: flex-start;
    position: relative;
}

.feed-post-meta {
    min-width: 0;
    flex: 1;
}

.feed-type {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(226,232,240,.9);
    color: #334155;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.feed-type.seguridad,
.feed-type.emergencia {
    color: #991b1b;
    background: rgba(254,226,226,.95);
}

.feed-type.mantenimiento {
    color: #92400e;
    background: rgba(254,243,199,.95);
}

.feed-type.cobro {
    color: #1d4ed8;
    background: rgba(219,234,254,.95);
}

.feed-type.asamblea {
    color: #6d28d9;
    background: rgba(237,233,254,.95);
}

.feed-post-content {
    padding-left: 58px;
    margin-top: 12px;
}

.feed-post-content h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    letter-spacing: -.04em;
}

.feed-post-content p {
    margin: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.55;
}

.feed-post-note {
    margin: 14px 0 0 58px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(254,243,199,.8);
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
}

.feed-empty {
    text-align: center;
    color: #64748b;
}

.feed-empty strong {
    display: block;
    color: #0f172a;
    margin-bottom: 5px;
}

@media (max-width: 700px) {
    .feed-shell {
        width: 100%;
    }

    .feed-hero {
        padding: 22px;
        border-radius: 26px;
    }

    .feed-composer {
        grid-template-columns: 1fr;
    }

    .feed-avatar:not(.small) {
        display: none;
    }

    .feed-composer-head,
    .feed-composer-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .feed-composer-head select,
    .feed-composer-actions button {
        width: 100%;
    }

    .feed-post-content,
    .feed-post-note {
        padding-left: 0;
        margin-left: 0;
    }

    .feed-post-author {
        align-items: flex-start;
    }
}

/* ==========================================================
   FIX ANUNCIOS FULL WIDTH
========================================================== */

.feed-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: grid;
    gap: 18px;
}

.feed-hero {
    width: 100%;
    padding: 34px;
}

.feed-composer,
.feed-post,
.feed-empty {
    width: 100%;
    padding: 22px;
}

.feed-list {
    width: 100%;
}

@media (max-width: 700px) {
    .feed-shell {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }
}

/* ==========================================================
   SIDEBAR AGRUPADO / UX ADMIN
========================================================== */

.sidebar nav {
    gap: 6px;
}

.sidebar-section-label {
    margin: 16px 8px 7px;
    color: rgba(148, 163, 184, .95);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sidebar-main-link {
    margin-bottom: 4px;
}

.sidebar-group {
    display: grid;
    gap: 6px;
    margin: 3px 0;
}

.sidebar-group summary {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 17px;
    color: #cbd5e1;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.055);
    cursor: pointer;
    list-style: none;
    transition: .18s ease;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-group summary::after {
    content: '›';
    position: absolute;
    right: 18px;
    margin-top: 0;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 950;
    transform: rotate(0deg);
    transition: .18s ease;
}

.sidebar-group[open] summary::after {
    transform: rotate(90deg);
}

.sidebar-group summary:hover {
    background: rgba(255,255,255,.075);
    color: #ffffff;
}

.sidebar-group[open] summary {
    background: rgba(37, 99, 235, .16);
    border-color: rgba(96, 165, 250, .24);
    color: #ffffff;
}

.sidebar-group summary span {
    display: block;
    padding-right: 22px;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: -.01em;
}

.sidebar-group summary small {
    display: block;
    padding-right: 22px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
}

.sidebar-subnav {
    display: grid;
    gap: 4px;
    padding: 4px 0 7px 12px;
    border-left: 1px solid rgba(148, 163, 184, .18);
    margin-left: 14px;
}

.sidebar-subnav a {
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 12px;
    color: #cbd5e1;
    background: transparent;
}

.sidebar-subnav a:hover {
    background: rgba(255,255,255,.065);
    color: #ffffff;
}

.sidebar-subnav a.active {
    background: rgba(37, 99, 235, .22);
    color: #ffffff;
    box-shadow: none;
}

.sidebar-logout {
    margin-top: 6px;
    color: #fecaca !important;
    background: rgba(239, 68, 68, .08) !important;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, .16) !important;
}

/* ==========================================================
   MODALES SIEMPRE SOBRE EL SIDEBAR
   Corrige el stacking context generado por .content.
========================================================== */
.content {
    z-index: auto !important;
}

.owner-modal,
.provider-modal,
.bank-account-modal,
.payment-modal,
.dash-modal,
.mora-alert-modal,
#sidebarContactModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 50000 !important;
    isolation: isolate;
}

.owner-modal-backdrop,
.provider-modal-backdrop,
.bank-account-modal-backdrop,
.payment-modal-backdrop,
.dash-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
}

.owner-modal-card,
.provider-modal-card,
.bank-account-modal-card,
.payment-modal-card,
.dash-modal-card,
.mora-alert-modal > *:not(.mora-alert-backdrop) {
    position: relative !important;
    z-index: 2 !important;
}

body:has(.owner-modal.open),
body:has(.provider-modal.open),
body:has(.bank-account-modal.open),
body:has(.payment-modal.open),
body:has(.dash-modal.open),
body:has(.mora-alert-modal.open) {
    overflow: hidden;
}
