/* Estilos generales del sistema de fondos
 * Fecha: 14 de octubre de 2025
 */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --light: #f1f5f9;
    --dark: #1e293b;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-700: #334155;
    --gray-900: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--gray-100);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--secondary);
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Dashboard */
/* Layout Principal */
.dashboard {
    min-height: 100vh;
    display: flex;
}

/* Sidebar para Desktop */
.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-header h2 {
    font-size: 18px;
    color: var(--dark);
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary);
    color: var(--white);
}

/* Badge de notificación en el menú */
.nav-link {
    position: relative;
}

.badge-count {
    position: absolute;
    top: 8px;
    right: 12px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.nav-link.active .badge-count {
    background: #fbbf24;
    color: #78350f;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 20px;
}

/* Bottom Navigation - Solo visible en móvil */
.bottom-nav {
    display: none;
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

.bottom-nav .nav-item .nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item .nav-icon svg {
    width: 100%;
    height: 100%;
}

.bottom-nav .nav-item .nav-label {
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item.active {
    color: var(--primary);
}

.bottom-nav .nav-item.active .nav-icon {
    transform: translateY(-2px);
}

.bottom-nav .nav-item:hover {
    color: var(--primary);
}

/* Botón especial central */
.bottom-nav .nav-item-special {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    margin-top: -28px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    padding: 0 !important;
    flex: 0 0 56px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bottom-nav .nav-item-special .nav-icon {
    margin-bottom: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav .nav-item-special .nav-label {
    position: absolute;
    bottom: -20px;
    font-size: 10px;
    color: var(--gray-700);
}

.bottom-nav .nav-item-special:hover {
    transform: scale(1.05);
    color: var(--white);
}

.bottom-nav .nav-item-special.active {
    color: var(--white);
}

/* Menú desplegable "Más" */
.more-menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: bottom 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
}

.more-menu.active {
    bottom: 0;
}

.more-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.more-menu-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.more-menu-header .close-menu {
    background: var(--gray-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.more-menu-header .close-menu:hover {
    background: var(--gray-200);
}

.more-menu-content {
    padding: 12px 0;
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.more-menu-item svg {
    width: 24px;
    height: 24px;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.more-menu-item span {
    font-size: 15px;
    font-weight: 500;
}

.more-menu-item:hover {
    background: var(--gray-50);
    border-left-color: var(--primary);
}

.more-menu-item:hover svg {
    color: var(--primary);
}

.more-menu-item.logout {
    color: var(--danger);
    margin-top: 8px;
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
}

.more-menu-item.logout svg {
    color: var(--danger);
}

.more-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.more-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.topbar {
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
    padding: 20px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-700);
    border-radius: 4px;
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.menu-toggle:hover {
    background: var(--gray-100);
}

.menu-toggle:active {
    background: var(--gray-200);
}

.topbar h1 {
    font-size: 24px;
    color: var(--dark);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray-700);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-card-title {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
}

/* Table */
.table-container {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.table-container h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 20px;
    font-weight: 600;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--gray-100);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.table tbody tr:hover {
    background: #f3f4f6;
    transform: scale(1.002);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr[onclick] {
    cursor: pointer;
}

.table tbody tr[onclick]:active {
    transform: scale(0.998);
    background: #e5e7eb;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-pendiente {
    background: var(--warning);
    color: var(--white);
}

.badge-aprobado {
    background: var(--info);
    color: var(--white);
}

.badge-transferido {
    background: var(--success);
    color: var(--white);
}

.badge-rendido {
    background: var(--dark);
    color: var(--white);
}

.badge-contabilizado {
    background: linear-gradient(135deg, #7e55df 0%, #7a72ec 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-rechazado {
    background: var(--danger);
    color: var(--white);
}

.badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.badge-secondary {
    background: #6b7280;
    color: var(--white);
}

/* Estados específicos */
.estado-devolucion {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.estado-transferido {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.stat-devoluciones {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-left: 4px solid #d97706;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-700);
}

/* Messages */
.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-banner-content img {
    width: 40px;
    height: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Ocultar sidebar en móvil */
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Mostrar bottom navigation en móvil */
    .bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        z-index: 1000;
        border-top: 1px solid var(--gray-200);
    }
    
    /* Ajustar contenido principal */
    .dashboard {
        flex-direction: column;
        padding-bottom: 80px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 12px;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .topbar {
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 16px;
    }
    
    .topbar h1 {
        font-size: 18px;
    }
    
    .user-name {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
        border-radius: 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        padding: 20px;
        max-height: calc(100vh - 100px);
    }
    
    .login-card {
        padding: 24px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .btn {
        padding: 12px 20px;
    }
    
    /* Ajustar menú inferior en móviles pequeños */
    .bottom-nav .nav-label {
        font-size: 10px;
    }
    
    .bottom-nav .nav-item {
        min-width: 50px;
        padding: 6px 2px;
    }
}

/* Desktop: Mantener sidebar lateral */
@media (min-width: 769px) {
    .dashboard {
        padding-bottom: 20px;
    }
    
    .main-content {
        max-width: none;
    }
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* File upload */
.file-upload {
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: var(--primary);
    background: var(--gray-100);
}

.file-upload input[type="file"] {
    display: none;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, #059669 100%);
    transition: width 0.3s;
}

/* Animaciones adicionales para el dashboard */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-grid .stat-card {
    animation: fadeInUp 0.5s ease-out;
}

.stats-grid .stat-card:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Mejorar stat-card-footer */
.stat-card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.stat-card-footer small {
    font-size: 13px;
    font-weight: 500;
}

/* Mejorar tabla */
.table tr {
    transition: all 0.2s ease;
}

.table th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}



/* ========================================
   Vista de Tarjetas Móvil para Fondos
   ======================================== */

/* Ocultar/Mostrar según dispositivo */
.desktop-only {
    display: table !important;
    width: 100%;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

/* Contenedor de Tarjetas */
.fondos-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

/* Tarjeta Individual */
.fondo-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease;
}

.fondo-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Header de la Tarjeta */
.fondo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.fondo-card-id {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fondo-id-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 8px;
}

/* Solicitante */
.fondo-card-solicitante {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.fondo-card-solicitante .icon {
    font-size: 16px;
}

/* Descripción */
.fondo-card-descripcion {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer de la Tarjeta */
.fondo-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.fondo-card-monto {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fondo-card-monto .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 600;
}

.fondo-card-monto .value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.fondo-card-fecha {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.fondo-card-fecha .icon {
    font-size: 14px;
}

/* Animación de entrada escalonada */
.fondo-card:nth-child(1) { animation-delay: 0.05s; }
.fondo-card:nth-child(2) { animation-delay: 0.1s; }
.fondo-card:nth-child(3) { animation-delay: 0.15s; }
.fondo-card:nth-child(4) { animation-delay: 0.2s; }
.fondo-card:nth-child(5) { animation-delay: 0.25s; }
.fondo-card:nth-child(6) { animation-delay: 0.3s; }
.fondo-card:nth-child(7) { animation-delay: 0.35s; }
.fondo-card:nth-child(8) { animation-delay: 0.4s; }
.fondo-card:nth-child(9) { animation-delay: 0.45s; }
.fondo-card:nth-child(10) { animation-delay: 0.5s; }


/* ========================================
   Filtros Mejorados
   ======================================== */

.page-header-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-toggle-filtros {
    display: none;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle-filtros:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-toggle-filtros svg {
    flex-shrink: 0;
}

.filters-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.3px;
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filters-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter svg {
    flex-shrink: 0;
}

.btn-filter.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.btn-filter.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-filter.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-filter.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .btn-toggle-filtros {
        display: inline-flex;
    }
    
    .filters-container {
        display: none;
        animation: slideDown 0.3s ease;
    }
    
    .filters-container.active {
        display: block;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .filters-actions {
        flex-direction: column;
    }
    
    .btn-filter {
        width: 100%;
        justify-content: center;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

