:root {
    --bg: #f7f4f1;
    --surface: #ffffff;
    --surface-soft: #fff7f2;
    --text: #1f2937;
    --muted: #6b7280;

    --primary: #d95a1a;
    --primary-dark: #c94d12;
    --primary-soft: #f08a3c;
    --primary-pale: #fff1e8;

    --border: #eadfd8;
    --border-soft: #f1e7e1;

    --success: #15803d;
    --warning: #f4b400;
    --danger: #dc2626;

    --shadow-soft: 0 1px 3px rgba(15, 23, 42, 0.05);
    --radius: 8px;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    font-family: Inter, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    padding-bottom: 86px;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1280px;
}

.page-wrap {
    padding-top: 0;
    padding-bottom: 24px;
}

/* HEADER ESCRITORIO */
.app-shell-header {
    width: 100%;
    margin-bottom: 30px;
}

.app-shell-topbar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.app-shell-topbar-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-shell-brand {
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0.1px;
    color: #fff;
}

.app-shell-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-shell-user-btn {
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 600;
    padding: 8px 0;
}

.app-shell-user-btn:focus,
.app-shell-user-btn:hover {
    color: #fff;
}

.app-shell-user-dropdown {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    padding: 8px 0;
    min-width: 230px;
}

.app-shell-user-dropdown-header {
    padding: 8px 16px;
}

.app-shell-user-name {
    font-weight: 700;
    color: var(--text);
}

.app-shell-user-role {
    font-size: 0.84rem;
    color: var(--muted);
    margin-top: 2px;
    text-transform: capitalize;
}

.app-shell-menubar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.app-shell-menu {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.app-shell-menu::-webkit-scrollbar {
    display: none;
}

.app-shell-menu a {
    color: #5a4a42;
    font-weight: 500;
    padding: 18px 2px 14px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.app-shell-menu a:hover {
    color: var(--primary-dark);
}

.app-shell-menu a.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* PAGE HEAD */
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: #2f241f;
    margin: 0 0 4px 0;
}

.page-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
}

.page-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* CARDS / DASHBOARD */
.card-soft,
.pp-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.pp-card {
    padding: 24px;
}

.pp-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.pp-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2f241f;
}

.pp-card-dots {
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1;
}

.pp-balance-card {
    min-height: 100%;
}

.pp-balance-amount {
    font-size: 3rem;
    line-height: 1.05;
    font-weight: 300;
    color: #3d3028;
    margin-bottom: 6px;
}

.pp-balance-available {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 18px;
}

.pp-balance-list {
    border-top: 1px solid var(--border-soft);
    margin-top: 16px;
    padding-top: 10px;
}

.pp-balance-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border);
    font-size: 0.94rem;
}

.pp-balance-list-row:last-child {
    border-bottom: 0;
}

.pp-small-note {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 14px;
}

.pp-balance-link {
    margin-top: 18px;
}

.pp-balance-link a {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.pp-quick-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    align-items: start;
    margin-bottom: 24px;
}

.pp-quick-link {
    text-align: center;
    color: #4b3b33;
}

.pp-quick-link-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2rem;
}

.pp-quick-link-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.pp-recommend-box {
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.pp-recommend-left {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pp-recommend-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffe7d8;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.pp-recommend-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.pp-recommend-text {
    color: #5f554f;
    font-size: 0.94rem;
    max-width: 540px;
}

.pp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.pp-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2f241f;
}

.pp-stat-card,
.pp-stat-card-simple,
.pp-info-block,
.pp-inner-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 18px;
    height: 100%;
}

.pp-stat-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #2f241f;
    margin-bottom: 16px;
}

.pp-stat-value {
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 400;
    color: #2f241f;
    margin-bottom: 8px;
}

.pp-stat-sub {
    color: var(--muted);
    font-size: 0.92rem;
}

.pp-stat-mini {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 10px;
}

.pp-info-label {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.pp-info-value {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.pp-info-sub {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.pp-perm-box {
    background: #fcfaf8;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 14px;
    height: 100%;
}

/* FORMULARIOS */
.form-label {
    font-weight: 600;
    color: #4b3b33;
    margin-bottom: 7px;
}

.form-control,
.form-select,
.btn {
    border-radius: 8px;
    min-height: 44px;
}

.form-control,
.form-select {
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #e7a179;
    box-shadow: 0 0 0 3px rgba(217, 90, 26, 0.12);
}

textarea.form-control {
    min-height: 110px;
}

.btn {
    font-weight: 600;
    padding: 10px 16px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-success {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.btn-warning {
    background: #f4b400;
    border-color: #f4b400;
    color: #1f2937;
}

.btn-dark {
    background: #2f241f;
    border-color: #2f241f;
    color: #fff;
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-warning,
.btn-outline-danger {
    background: #fff;
    border: 1px solid var(--border);
}

/* TABLAS */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background: #fcfaf8;
    color: #7a6d66;
    font-size: 0.84rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    border-color: var(--border-soft);
    vertical-align: middle;
}

.app-table .table-subtext {
    color: var(--muted);
    font-size: 0.84rem;
    margin-top: 3px;
}

.badge {
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 600;
}

.alert {
    border-radius: 8px;
    border: 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2f241f;
    margin-bottom: 12px;
}

/* MOBILE NAV */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(234,223,216,0.9);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav-inner {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.bottom-nav a {
    text-align: center;
    color: var(--muted);
    font-size: 0.74rem;
    padding: 10px 6px;
    border-radius: 16px;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.bottom-nav a.active,
.bottom-nav a:hover {
    background: var(--primary-pale);
    color: var(--primary-dark);
}

.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .pp-quick-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    html, body {
        font-size: 14px;
    }

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .container {
        max-width: 100%;
    }

    .page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .page-head-actions {
        width: 100%;
    }

    .page-head-actions .btn {
        width: 100%;
    }

    .pp-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-recommend-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .pp-balance-amount {
        font-size: 2.2rem;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}
.form-section {
    border-top: 1px solid var(--border-soft);
    padding-top: 20px;
    margin-top: 20px;
}

.form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.form-section-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #2f241f;
    margin-bottom: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .form-actions .btn {
        width: 100%;
    }
}
.mobile-shell {
    min-height: 100vh;
    background: #f7f4f1;
}

.mobile-topbar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 18px 16px 22px;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

.mobile-topbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mobile-app-name {
    font-size: 1.08rem;
    font-weight: 700;
}

.mobile-switch-link {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.95;
}

.mobile-user-line {
    margin-top: 8px;
    font-size: 0.92rem;
    opacity: 0.92;
}

.mobile-container {
    padding-top: 16px;
    padding-bottom: 100px;
}

.mobile-balance-card {
    background: linear-gradient(135deg, #df6a2b 0%, #c94d12 100%);
    color: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(201, 77, 18, 0.18);
}

.mobile-balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.mobile-balance-amount {
    font-size: 1.95rem;
    font-weight: 800;
    margin-top: 8px;
    line-height: 1.1;
}

.mobile-balance-subtitle {
    margin-top: 6px;
    font-size: 0.92rem;
    opacity: 0.92;
}

.mobile-balance-retention {
    margin-top: 12px;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 8px 10px;
}

.mobile-section-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #2f241f;
    margin-bottom: 10px;
}

.mobile-box-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-box-row {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mobile-box-name {
    font-size: 0.92rem;
    color: #5e514a;
}

.mobile-box-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2f241f;
}

.mobile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-stat-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px;
}

.mobile-stat-title {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.mobile-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2f241f;
}

.mobile-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-quick-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    color: #2f241f;
    text-decoration: none;
}

.mobile-quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.1rem;
}

.mobile-quick-text {
    font-size: 0.9rem;
    font-weight: 700;
}
.mobile-app-shell {
    min-height: 100vh;
    background: #f7f4f1;
    position: relative;
}

.mobile-app-topbar {
    background: #f7f4f1;
    padding: 14px 16px 10px;
    position: sticky;
    top: 0;
    z-index: 1200;
}

.mobile-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-app-brand {
    font-size: 1.05rem;
    font-weight: 800;
    color: #53c7be;
    text-align: center;
}

.mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-icon-btn {
    border: 0;
    background: transparent;
    color: #4b3b33;
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.mobile-back-link {
    color: #2f241f;
    text-decoration: none;
    font-size: 1.2rem;
    width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 1250;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 1300;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    transition: left 0.25s ease;
    padding: 16px;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

.mobile-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mobile-drawer-title {
    font-size: 1rem;
    font-weight: 800;
    color: #2f241f;
}

.mobile-close-btn {
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    color: #2f241f;
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-drawer-nav a {
    color: #2f241f;
    text-decoration: none;
    padding: 12px 10px;
    border-radius: 12px;
    background: #fff;
}

.mobile-drawer-nav a:hover {
    background: #fff1e8;
}

.mobile-user-menu {
    position: fixed;
    top: 58px;
    right: 14px;
    width: 220px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    padding: 14px;
    z-index: 1301;
    display: none;
}

.mobile-user-menu.open {
    display: block;
}

.mobile-user-menu-name {
    font-weight: 800;
    color: #2f241f;
}

.mobile-user-menu-role {
    color: #6b7280;
    font-size: 0.88rem;
    margin-top: 2px;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.mobile-user-menu-link {
    display: block;
    text-decoration: none;
    color: #2f241f;
    padding: 10px 0 4px;
}

.mobile-user-menu-link.danger {
    color: #b42318;
}

.mobile-page-body {
    padding-top: 6px;
    padding-bottom: 110px;
}

.mobile-greeting-block {
    margin-bottom: 14px;
}

.mobile-greeting-small {
    color: #5e514a;
    font-size: 0.95rem;
}

.mobile-greeting-title {
    color: #111827;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.05;
    margin-top: 4px;
}

.mobile-wallet-card {
    background: linear-gradient(135deg, #0e1736 0%, #051037 100%);
    color: #fff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 28px rgba(5, 16, 55, 0.24);
}

.mobile-wallet-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.mobile-wallet-chip {
    width: 38px;
    height: 26px;
    border-radius: 20px;
    background: linear-gradient(90deg, #d9d9d9 0%, #9fa3b0 100%);
}

.mobile-wallet-brand {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.mobile-wallet-number {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin-bottom: 18px;
}

.mobile-wallet-balance-label {
    font-size: 0.92rem;
    opacity: 0.84;
}

.mobile-wallet-balance-value {
    font-size: 1.95rem;
    font-weight: 800;
    margin-top: 4px;
    line-height: 1.1;
}

.mobile-wallet-bottom {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.mobile-wallet-meta-label {
    font-size: 0.78rem;
    opacity: 0.72;
}

.mobile-wallet-meta-value {
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 3px;
}

.mobile-retention-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 14px 16px;
}

.mobile-retention-title {
    color: #6b7280;
    font-size: 0.9rem;
}

.mobile-retention-value {
    color: #2f241f;
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 6px;
}

.mobile-retention-sub {
    color: #8a7b73;
    font-size: 0.84rem;
    margin-top: 4px;
}

.mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mobile-round-action {
    text-decoration: none;
    color: #2f241f;
    text-align: center;
}

.mobile-round-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.25rem;
}

.mobile-round-label {
    font-size: 0.84rem;
    font-weight: 700;
}

.mobile-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mobile-section-head-title {
    font-size: 1rem;
    font-weight: 800;
    color: #2f241f;
}

.mobile-section-head-link {
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.mobile-summary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-summary-item {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mobile-summary-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f8f3ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.mobile-summary-name {
    font-size: 0.93rem;
    font-weight: 800;
    color: #2f241f;
}

.mobile-summary-sub {
    font-size: 0.82rem;
    color: #8a7b73;
    margin-top: 2px;
}

.mobile-summary-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2f241f;
}

.mobile-box-row.large {
    padding: 16px 14px;
    align-items: flex-start;
}

.mobile-box-sub {
    color: #8a7b73;
    font-size: 0.82rem;
    margin-top: 4px;
}

.mobile-empty-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 16px;
    color: #8a7b73;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--border-soft);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    z-index: 1200;
}

.mobile-bottom-link {
    text-decoration: none;
    color: #9aa3b2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    font-size: 1rem;
}

.mobile-bottom-link small {
    font-size: 0.7rem;
    font-weight: 700;
}

.mobile-bottom-link.active {
    color: #111827;
}

.mobile-bottom-link.center {
    width: 56px;
    height: 56px;
    background: #051037;
    color: #fff;
    border-radius: 50%;
    margin: -18px auto 0;
    align-items: center;
    justify-content: center;
    display: flex;
    font-size: 1.45rem;
}

.mobile-bottom-link.center small {
    display: none;
}
/* ===== NUEVO DASHBOARD MÓVIL TIPO DIGITAL WALLET ===== */

.wallet-mobile-shell {
    min-height: 100vh;
    background: #f7f7f8;
    position: relative;
}

.wallet-mobile-page {
    padding: 18px 16px 110px;
}

.wallet-page-inner {
    padding-top: 10px;
}

.wallet-mobile-hero {
    background: linear-gradient(135deg, #eb7a32 0%, #d95a1a 55%, #c94d12 100%);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding: 16px 16px 26px;
    color: #fff;
    box-shadow: 0 14px 32px rgba(201, 77, 18, 0.22);
}

.wallet-mobile-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.wallet-mobile-hero-actions {
    display: flex;
    gap: 8px;
}

.wallet-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
}

.wallet-icon-circle.ghost {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.wallet-icon-circle.light {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.wallet-icon-circle.notif-btn {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

.wallet-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #c94d12;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.wallet-mobile-welcome-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.wallet-mobile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #c94d12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.wallet-mobile-welcome-text {
    flex: 1;
}

.wallet-mobile-welcome-small {
    font-size: 0.78rem;
    opacity: 0.85;
}

.wallet-mobile-welcome-name {
    font-size: 0.98rem;
    font-weight: 800;
    margin-top: 2px;
}

.wallet-mobile-total-label {
    font-size: 0.92rem;
    opacity: 0.88;
    margin-bottom: 4px;
}

.wallet-mobile-total-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.08;
}

.wallet-mobile-retention-line {
    font-size: 0.83rem;
    opacity: 0.92;
    margin-top: 6px;
}

.wallet-mobile-action-panel {
    background: #fff;
    border-radius: 20px;
    padding: 14px 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.wallet-mobile-action-btn {
    text-decoration: none;
    color: #334155;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-height: 68px;
}

.wallet-mobile-action-btn span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff4ec;
    color: #d95a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.wallet-mobile-action-btn small {
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
}

.wallet-mobile-list-section {
    margin-top: 18px;
    padding: 0 16px 110px;
}

.wallet-mobile-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.wallet-mobile-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.wallet-mobile-section-link {
    color: #d95a1a;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.wallet-mobile-transaction-list,
.wallet-mobile-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-mobile-transaction-item,
.wallet-mobile-box-card,
.wallet-mobile-account-card,
.wallet-mobile-empty-card {
    background: #fff;
    border: 1px solid #eee7e1;
    border-radius: 18px;
    padding: 14px;
}

.wallet-mobile-transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wallet-mobile-transaction-left {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.wallet-mobile-transaction-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f8f2ee;
    color: #d95a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.wallet-mobile-transaction-title {
    font-size: 0.93rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.wallet-mobile-transaction-subtitle {
    font-size: 0.78rem;
    color: #8b7d75;
    margin-top: 3px;
    line-height: 1.2;
}

.wallet-mobile-transaction-amount {
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
}

.wallet-mobile-transaction-amount.positive {
    color: #15803d;
}

.wallet-mobile-transaction-amount.negative {
    color: #dc2626;
}

.wallet-mobile-simple-top {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #f7f7f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
}

.wallet-mobile-back {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee7e1;
}

.wallet-mobile-simple-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.wallet-mobile-box-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #111827;
}

.wallet-mobile-box-amount {
    font-size: 1.2rem;
    font-weight: 900;
    color: #d95a1a;
    margin-top: 6px;
}

.wallet-mobile-box-sub {
    font-size: 0.8rem;
    color: #8b7d75;
    margin-top: 4px;
}

.wallet-mobile-main-link {
    display: block;
    text-decoration: none;
    color: #111827;
    background: #fff;
    border: 1px solid #eee7e1;
    border-radius: 16px;
    padding: 14px;
    font-weight: 800;
}

.wallet-mobile-main-link.danger {
    color: #b42318;
}

.wallet-mobile-account-card {
    text-align: center;
    margin-bottom: 14px;
}

.wallet-mobile-account-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eb7a32 0%, #c94d12 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 auto 12px;
}

.wallet-mobile-account-name {
    font-size: 1rem;
    font-weight: 900;
    color: #111827;
}

.wallet-mobile-account-role {
    font-size: 0.84rem;
    color: #8b7d75;
    margin-top: 4px;
    text-transform: capitalize;
}

.wallet-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 1250;
}

.wallet-mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

.wallet-mobile-drawer {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1300;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    transition: left 0.25s ease;
    padding: 16px;
    overflow-y: auto;
}

.wallet-mobile-drawer.open {
    left: 0;
}

.wallet-mobile-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.wallet-mobile-drawer-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.wallet-mobile-close-btn {
    border: 0;
    background: transparent;
    font-size: 1rem;
    color: #111827;
}

.wallet-mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wallet-mobile-drawer-nav a {
    text-decoration: none;
    color: #111827;
    padding: 12px 10px;
    border-radius: 12px;
}

.wallet-mobile-drawer-nav a:hover {
    background: #fff1e8;
}

.wallet-mobile-user-menu {
    position: fixed;
    top: 58px;
    right: 14px;
    width: 220px;
    background: #fff;
    border: 1px solid #eee7e1;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    padding: 14px;
    z-index: 1301;
    display: none;
}

.wallet-mobile-user-menu.open {
    display: block;
}

.wallet-mobile-user-name {
    font-weight: 900;
    color: #111827;
}

.wallet-mobile-user-role {
    color: #8b7d75;
    font-size: 0.82rem;
    margin-top: 2px;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.wallet-mobile-user-link {
    display: block;
    text-decoration: none;
    color: #111827;
    padding: 8px 0;
    font-weight: 700;
}

.wallet-mobile-user-link.danger {
    color: #b42318;
}

.wallet-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #eee7e1;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    z-index: 1200;
}

.wallet-mobile-bottom-item {
    text-decoration: none;
    color: #a2aab8;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    font-size: 1rem;
}

.wallet-mobile-bottom-item small {
    font-size: 0.68rem;
    font-weight: 700;
}

.wallet-mobile-bottom-item.active {
    color: #111827;
}

.wallet-mobile-bottom-item.center {
    width: 58px;
    height: 58px;
    background: #d95a1a;
    color: #fff;
    border-radius: 50%;
    margin: -22px auto 0;
    align-items: center;
    justify-content: center;
    display: flex;
    font-size: 1.25rem;
    box-shadow: 0 12px 24px rgba(217, 90, 26, 0.3);
}

.wallet-mobile-bottom-item.center small {
    display: none;
}

.wallet-mobile-bottom-item.center.active-center {
    color: #fff;
}
.wallet-form-group {
    margin-bottom: 14px;
}
.wallet-mobile-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wallet-mobile-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-mobile-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.wallet-mobile-info-pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #111827;
    font-size: 0.9rem;
}

.wallet-mobile-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.wallet-mobile-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.wallet-mobile-topline-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wallet-mobile-inline-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wallet-mobile-inline-text {
    min-width: 0;
}

.wallet-mobile-avatar.small {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.wallet-mobile-welcome-name.inline {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-mobile-bottom-item.avatar-item {
    gap: 5px;
}

.wallet-bottom-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3e0d4;
    color: #c94d12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    margin: 0 auto;
}