/* ============================================
   COMPONENTES REUTILIZABLES - 15% MÁS GRANDES
============================================ */

/* Tarjeta base */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    margin-bottom: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.575rem; /* var(--space-sm) × 1.15 = 0.575rem */
    padding: 0.8625rem 1.725rem; /* 0.75×1.15=0.8625, 1.5×1.15=1.725 */
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.15rem; /* var(--font-size-base) × 1.15 = 1.15rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: var(--color-light);
    color: var(--color-dark);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2875rem; /* var(--space-xs) × 1.15 = 0.2875rem */
    padding: 0.2875rem 0.8625rem; /* 0.25×1.15=0.2875, 0.75×1.15=0.8625 */
    border-radius: 20px;
    font-size: 1.00625rem; /* var(--font-size-sm) × 1.15 = 1.00625rem */
    font-weight: 600;
}

.badge-primary {
    background: var(--color-primary);
    color: white;
}

.badge-secondary {
    background: var(--color-secondary);
    color: white;
}

/* Estados vacíos */
.empty-state {
    text-align: center;
    padding: 2.3rem; /* var(--space-xl) × 1.15 = 2.3rem */
    color: var(--color-gray);
}

.empty-state i {
    font-size: 3.45rem; /* 3 × 1.15 = 3.45rem */
    margin-bottom: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    opacity: 0.5;
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.3rem; /* var(--space-xl) × 1.15 = 2.3rem */
}

.spinner {
    width: 46px; /* 40 × 1.15 = 46px */
    height: 46px; /* 40 × 1.15 = 46px */
    border: 3px solid #e2e8f0;
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   MENÚ LATERAL - 15% MÁS GRANDE
============================================ */

.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 322px; /* 280 × 1.15 = 322px */
    height: 100%;
    background: white;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.menu-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 8px 0;
    list-style: none;
    padding: 0;
    height: 0;
}

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

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    border-bottom: 1px solid #e2e8f0;
}

.menu-items {
    list-style: none;
    padding: 0;
}

.menu-items li {
    border-bottom: 1px solid #f1f5f9;
}

.menu-items a {
    display: flex;
    align-items: center;
    gap: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    padding: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    color: var(--color-dark);
    text-decoration: none;
    transition: background 0.2s;
}

.menu-items a:hover,
.menu-items a.active {
    background: #f7fafc;
    color: var(--color-primary);
}

.menu-items i {
    width: 23px; /* 20 × 1.15 = 23px */
    color: var(--color-secondary);
}

/* ============================================
   PANEL DE FILTROS - 15% MÁS GRANDE
============================================ */

.filters-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 322px; /* 280 × 1.15 = 322px */
    height: 100%;
    background: white;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.filters-panel.active {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    border-bottom: 1px solid #e2e8f0;
}

.panel-content {
    padding: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
}

.quick-filters {
    display: flex;
    flex-direction: column;
    gap: 0.575rem; /* var(--space-sm) × 1.15 = 0.575rem */
}

.quick-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    background: #f7fafc;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-dark);
    transition: all 0.2s;
}

.quick-filter:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

/* ============================================
   MENÚ LATERAL RESPONSIVE - 15% MÁS GRANDE
============================================ */

@media (max-width: 767px) {
    .sidebar-menu {
        width: 322px; /* 280 × 1.15 = 322px */
    }
    
    .menu-header {
        padding: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    }
    
    .menu-header h2 {
        font-size: 1.38rem; /* 1.2 × 1.15 = 1.38rem */
    }
    
    .menu-items a {
        padding: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
        font-size: 1.15rem; /* var(--font-size-base) × 1.15 = 1.15rem */
        gap: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    }
    
    .menu-items i {
        font-size: 1.15rem; /* 1 × 1.15 = 1.15rem */
        width: 23px; /* 20 × 1.15 = 23px */
    }
    
    .close-menu {
        width: 36.8px; /* 32 × 1.15 = 36.8px */
        height: 36.8px; /* 32 × 1.15 = 36.8px */
        font-size: 1.4375rem; /* 1.25 × 1.15 = 1.4375rem */
    }
    
    /* Panel de filtros también 15% más grande */
    .filters-panel {
        width: 322px; /* 280 × 1.15 = 322px */
    }
    
    .panel-header {
        padding: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
    }
    
    .quick-filter {
        padding: 1.15rem; /* var(--space-md) × 1.15 = 1.15rem */
        font-size: 1.15rem; /* var(--font-size-base) × 1.15 = 1.15rem */
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .sidebar-menu {
        width: 299px; /* 260 × 1.15 = 299px */
    }
    
    .menu-items a {
        font-size: 1.035rem; /* 0.9 × 1.15 = 1.035rem */
        padding: 0.8625rem 1.15rem; /* 0.75×1.15=0.8625, 1×1.15=1.15 */
    }
    
    .menu-items i {
        font-size: 1.035rem; /* 0.9 × 1.15 = 1.035rem */
        width: 20.7px; /* 18 × 1.15 = 20.7px */
    }
    
    .menu-header h2 {
        font-size: 1.265rem; /* 1.1 × 1.15 = 1.265rem */
    }
    
    .filters-panel {
        width: 299px; /* 260 × 1.15 = 299px */
    }
}

/* Responsive base */
@media (max-width: 768px) {
    .sidebar-menu,
    .filters-panel {
        width: 322px; /* 280 × 1.15 = 322px */
    }
}