:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* El fondo se aplica dinámicamente desde el layout Blade */
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout Principal */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.app-main {
    flex: 1;
    padding: 2rem 0;
    margin-top: 80px; /* Espacio para el navbar fijo */
}

.app-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-container {
        padding-left: 2rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding-right: 1rem !important;
    }
}

/* Cards */
.card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

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

.card-modern .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.card-modern .card-body {
    padding: 1.5rem;
}

.card-modern .card-body .list-group-flush {
    margin-bottom: 0;
}

.card-modern .card-body .list-group-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.card-modern .card-body .list-group-item {
    background: transparent;
}

/* Botones */
.btn-modern {
    border-radius: var(--radius-lg);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(214, 212, 212), transparent);
    transition: left 0.5s;
}

.btn-primary-modern:hover {
    background: linear-gradient(135deg, var(--primary-dark), #3730a3);
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    border-radius: 35px;
    color: white !important;
}

.btn-primary-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-primary-modern.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 25px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-primary-modern.btn-sm:hover {
    border-radius: 30px;
    transform: translateY(-2px) scale(1.03);
    color: white !important;
}

/* Botón de Actualizar Moderno */
.btn-update-modern {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-update-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-update-modern:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    border-radius: 35px;
}

.btn-update-modern:hover::before {
    left: 100%;
}

.btn-update-modern:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-update-modern.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 25px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-update-modern.btn-sm:hover {
    border-radius: 30px;
    transform: translateY(-2px) scale(1.03);
}

/* Botón Outline Primary Moderno */
.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    border-radius: 35px;
}

.btn-outline-primary:hover::before {
    left: 100%;
}

.btn-outline-primary:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 25px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    border-width: 1.5px;
}

.btn-outline-primary.btn-sm:hover {
    border-radius: 30px;
    transform: translateY(-2px) scale(1.03);
}

/* Botón Outline Secondary Moderno (Celeste) */
.btn-outline-secondary {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
    border-radius: 35px;
}

.btn-outline-secondary:hover::before {
    left: 100%;
}

.btn-outline-secondary:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.btn-outline-secondary.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 25px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-outline-secondary.btn-sm:hover {
    border-radius: 30px;
    transform: translateY(-2px) scale(1.03);
}

.btn-success-modern {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.btn-success-modern:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Formularios */
.form-control-modern {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #000 !important;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
    color: #000 !important;
}

/* Asegurar color negro en inputs de perfiles */
.card .form-control-modern,
.card .form-control-modern:focus,
.card .form-control-modern::placeholder {
    color: #000 !important;
}

.card .form-control-modern::placeholder {
    color: #666 !important;
}

/* Inputs en tarjetas con fondo claro */
.bg-light .form-control-modern,
.bg-light .form-control-modern:focus {
    color: #000 !important;
    background: #fff !important;
}

.bg-light .form-control-modern::placeholder {
    color: #666 !important;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-section-title {
    text-align: center;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Stats Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    min-width: 0;
}

.stat-card .d-flex {
    min-width: 0;
}

.stat-card .flex-grow-1 {
    min-width: 0;
    overflow: hidden;
}

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

.stat-value {
    font-size: clamp(0.9rem, 3.5vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
    max-width: 100%;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Iconos circulares en stat-cards - Tamaños aumentados */
.stat-card .rounded-circle {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.stat-card .rounded-circle i {
    font-size: 1.2rem !important;
    margin: 0 !important;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Progress Bars */
.progress-modern {
    height: 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-bar-modern {
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border-radius: 2rem;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    min-width: 0%;
    max-width: 100%;
}

.progress-bar-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.progress-bar-modern::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 1.5rem;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Progress Bar with percentage text */
.progress-container {
    position: relative;
    margin: 1rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-percentage {
    color: var(--text-secondary);
    font-weight: 600;
}

.progress-value {
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Pagination Bootstrap */
.pagination {
    margin: 0;
    padding: 0;
}

.pagination .page-link {
    color: var(--primary-color);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: 0 2px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pagination .page-item.active .page-link {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Navigation */
.nav-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
}

.nav-item-modern {
    margin: 0 0.25rem;
}

.nav-link-modern {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .app-main {
        padding: 1rem 0;
    }
    
    .stat-value {
        font-size: 1.3rem;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .card-modern .card-body {
        padding: 1rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-modern {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard Header - Texto Blanco */
.dashboard-header {
    color: white !important;
}

.dashboard-header h2,
.dashboard-header p,
.dashboard-header .text-muted,
.dashboard-header i,
.dashboard-header .btn,
.dashboard-header .btn i {
    color: white !important;
}

.dashboard-header .btn-outline-primary {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.dashboard-header .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
}

.dashboard-header .btn-primary-modern {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.dashboard-header .btn-primary-modern:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: white !important;
    color: white !important;
}

/* Select2 Custom Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    background-color: var(--bg-primary) !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary) !important;
    line-height: 46px !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 8px !important;
}

.select2-dropdown {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    background-color: var(--bg-primary) !important;
}

.select2-container--default .select2-results__option {
    padding: 12px 16px !important;
    color: var(--text-primary) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 12px !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.select2-container--default .select2-selection--single:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #334155;
    }
}

/* ===== NAVBAR ESTILOS INSPIRADOS EN VOOKARA ===== */

/* Navbar Principal */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: -1;
}

/* Logo */
.navbar-brand {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-icon:hover {
    background: linear-gradient(135deg, var(--primary-dark), #3730a3);
    transform: rotate(360deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    line-height: 1;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #000000;
    line-height: 1;
    margin: 0;
}

/* Clase para icono morado igual que logo-icon */
.bg-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Menú de escritorio */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    margin-right: 2rem;
    flex-wrap: nowrap;
}

.navbar-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.navbar-menu a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.navbar-menu a.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.navbar-menu a i {
    font-size: 1rem;
}

/* Dropdowns */
.profile-dropdown,
.notifications-dropdown,
.impactpoints-dropdown,
.user-menu {
    position: relative;
    display: block;
    margin-left: 0.75rem;
}

.profile-toggle,
.notifications-toggle,
.impactpoints-toggle,
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.profile-toggle:hover,
.notifications-toggle:hover,
.impactpoints-toggle:hover,
.user-menu-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.profile-toggle i:last-child,
.user-menu-toggle i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.profile-dropdown.active .profile-toggle i:last-child,
.user-menu.active .user-menu-toggle i:last-child {
    transform: rotate(180deg);
}

/* Badge de notificaciones */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Avatar de usuario */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

/* Dropdowns */
.profile-list,
.notifications-panel,
.impactpoints-panel,
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-dropdown.active .profile-list,
.notifications-dropdown.active .notifications-panel,
.impactpoints-dropdown.active .impactpoints-panel,
.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-list li,
.user-dropdown .dropdown-item {
    list-style: none;
}

.profile-list a,
.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.profile-list a:hover,
.user-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateX(5px);
}

.profile-list a.active {
    background: var(--primary-color);
    color: white;
}

.profile-list .divider,
.user-dropdown .dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0.5rem 0;
}

/* Panel de notificaciones */
.notifications-panel {
    width: 320px;
}

.notifications-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.close-notifications {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-notifications:hover {
    background: #f8f9fa;
    color: #333;
}

.notifications-body {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.notification-item-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.notification-item-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.notification-item i {
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.notification-content p {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-weight: 500;
}

.notification-content small {
    color: #666;
    font-size: 0.8rem;
}

.notifications-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.view-all-notifications {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-notifications:hover {
    color: var(--primary-dark);
}

/* Panel de ImpactPoints */
.impactpoints-panel {
    width: 350px;
    max-height: 80vh;
    overflow-y: auto;
}

.impactpoints-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.impactpoints-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.close-impactpoints {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-impactpoints:hover {
    background: #f8f9fa;
    color: #333;
}

.impactpoints-body {
    padding: 1rem;
}

.impactpoints-balance-display {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 1rem;
}

.impactpoints-balance-display h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.impactpoints-balance-display p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.impactpoints-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item i {
    font-size: 1.5rem;
}

.stat-item strong {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.stat-item p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.impactpoints-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    color: var(--primary-dark);
}

.btn-action i {
    font-size: 1.1rem;
}

.no-wallet {
    text-align: center;
    padding: 2rem 1rem;
}

.no-wallet p {
    color: #666;
    margin-bottom: 1rem;
}

/* Información del usuario */
.user-info {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.5rem;
}

.user-info:hover {
    background-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info:hover h4 {
    color: var(--primary-color);
}

.user-info:hover p {
    color: var(--primary-dark);
}

.user-info:hover .fa-chevron-right {
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

.user-info .fa-chevron-right {
    transition: all 0.3s ease;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-details h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.user-details p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

/* Botón de logout */
.logout-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    font-size: 16px;
    color: #333;
}

.logout-button:hover {
    color: #ef4444;
}

/* Botones de autenticación */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-login,
.btn-register {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-login {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-login:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-register {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Overlay del menú móvil */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    display: block !important;
    opacity: 1 !important;
}

/* Menú lateral móvil */
.offcanvas {
    position: fixed;
    top: 0;
    left: -100%;
    max-width: 320px;
    width: 85%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(0);
    visibility: hidden;
    opacity: 0;
}

.offcanvas.active {
    left: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.offcanvas-body {
    padding: 1.5rem;
    padding-bottom: 100px;
    overflow-y: auto;
}

/* Personalización de la barra de scroll con color blanco que combina con morado */
.offcanvas-body::-webkit-scrollbar {
    width: 8px;
}

.offcanvas-body::-webkit-scrollbar-track {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
}

.offcanvas-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* Para Firefox */
.offcanvas-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.8) rgba(99, 102, 241, 0.1);
}

.offcanvas-body a,
.logout-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.offcanvas-body a:hover,
.logout-mobile:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(10px);
}

.offcanvas-body a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.offcanvas-body a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: white;
    border-radius: 0 4px 4px 0;
}

.offcanvas-body a i,
.logout-mobile i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.offcanvas-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Modal de autenticación */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.auth-modal.active {
    display: flex;
}

.auth-container {
    position: relative;
    width: 60%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.auth-panel {
    padding: 2rem;
    transition: all 0.3s ease;
}

.login-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.register-panel {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.auth-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.auth-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.auth-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    background: white;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
}

.auth-switch a {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auth-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Responsive */
/* ===== RESPONSIVE NAVBAR SIMPLIFICADO ===== */

/* Pantallas grandes - menú completo horizontal */
@media (min-width: 1025px) {
    .navbar-menu {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .profile-dropdown {
        display: block;
    }
    
    .notifications-dropdown {
        display: block;
    }
    
    .user-menu {
        display: block;
    }
}


/* Pantallas medianas específicas (1025px - 1627px) */
@media (min-width: 1025px) and (max-width: 1627px) {
    .navbar {
        padding: 0.75rem 1.5rem;
    }

    .navbar-menu {
        display: none !important;
    }

    .menu-toggle {
        display: block !important;
    }
    
    /* Mostrar selector de perfil completo */
    .profile-dropdown {
        display: block !important;
    }
    
    .notifications-dropdown {
        display: block !important;
    }
    
    /* Mostrar solo avatar del usuario (sin nombre ni flecha) */
    .user-menu {
        display: block !important;
    }
    
    /* Espaciado para elementos en laptop */
    .profile-dropdown,
    .notifications-dropdown,
    .user-menu {
        margin-left: 0.55rem !important;
    }
    
    .user-menu-toggle .user-name {
        display: none !important;
    }
    
    .user-menu-toggle .fa-chevron-down {
        display: none !important;
    }
    
    .user-menu-toggle {
        padding: 0.5rem !important;
        border-radius: 50% !important;
        background: none !important;
        border: none !important;
    }
}

/* Pantallas pequeñas (<1025px) - Siempre mostrar elementos esenciales */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-menu {
        display: none !important;
    }

    .menu-toggle {
        display: block !important;
    }
    
    /* Siempre mostrar estos elementos cuando no es escritorio */
    .profile-dropdown {
        display: block !important;
    }
    
    .notifications-dropdown {
        display: block !important;
    }
    
    .impactpoints-dropdown {
        display: block !important;
    }
    
    .user-menu {
        display: block !important;
    }
    
    /* Simplificar elementos para móvil */
    .profile-dropdown,
    .notifications-dropdown,
    .impactpoints-dropdown,
    .user-menu {
        margin-left: 0rem !important;
    }
    
    /* Asegurar que el navbar use flexbox correctamente */
    .navbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .navbar-brand {
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .profile-dropdown,
    .notifications-dropdown,
    .impactpoints-dropdown,
    .user-menu {
        flex-shrink: 0 !important;
        margin-left: 0.25rem !important;
    }
    
    .menu-toggle {
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }
    
    .profile-toggle {
        padding: 0.5rem !important;
        border-radius: 50% !important;
        background: rgba(99, 102, 241, 0.1) !important;
        border: 1px solid rgba(99, 102, 241, 0.2) !important;
        gap: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .profile-toggle span {
        display: none !important;
    }
    
    .profile-toggle .fa-chevron-down {
        display: none !important;
    }
    
    .profile-toggle i:first-child {
        margin: 0 !important;
        font-size: 0.9rem !important;
    }
    
    .notifications-toggle {
        padding: 0.5rem !important;
        border-radius: 50% !important;
        background: rgba(99, 102, 241, 0.1) !important;
        border: 1px solid rgba(99, 102, 241, 0.2) !important;
        gap: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .notifications-toggle i {
        margin: 0 !important;
        font-size: 0.9rem !important;
    }
    
    /* ImpactPoints toggle - solo icono en móvil */
    .impactpoints-toggle {
        padding: 0.5rem !important;
        border-radius: 50% !important;
        background: rgba(99, 102, 241, 0.1) !important;
        border: 1px solid rgba(99, 102, 241, 0.2) !important;
        gap: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .impactpoints-toggle .impactpoints-balance {
        display: none !important;
    }
    
    .impactpoints-toggle i {
        margin: 0 !important;
        font-size: 0.9rem !important;
    }
    
    .user-menu-toggle .user-name {
        display: none !important;
    }
    
    .user-menu-toggle .fa-chevron-down {
        display: none !important;
    }
    
    .user-menu-toggle {
        padding: 0 !important;
        border-radius: 50% !important;
        background: none !important;
        border: none !important;
        gap: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .user-menu-toggle .user-avatar {
        margin: 0 !important;
        width: 36px !important;
        height: 36px !important;
    }
    
    .logo-title {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
    }

    .logo-subtitle {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
    }
    
    .user-avatar {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
    }
    
    .logo-container {
        gap: 0.5rem !important;
    }
    
    .logo-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
        flex-shrink: 0 !important;
    }
    
    .logo-text {
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
}

/* Mostrar todos los elementos en el menú lateral */
@media (max-width: 1627px) {
    .offcanvas .navbar-menu a[href*="savings"],
    .offcanvas .navbar-menu a[href*="goals"],
    .offcanvas .navbar-menu a[href*="assets"],
    .offcanvas .navbar-menu a[href*="transactions"],
    .offcanvas .navbar-menu a[href*="accounts"],
    .offcanvas .navbar-menu a[href*="dashboard"] {
        display: flex !important;
    }
    
    .offcanvas .profile-dropdown,
    .offcanvas .notifications-dropdown,
    .offcanvas .user-menu {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .auth-container {
        width: 90%;
        margin: 1rem;
    }

    .auth-panel {
        padding: 1.5rem;
    }

    .auth-content h2 {
        font-size: 1.5rem;
    }

    /* Modal de notificaciones responsive */
    .notifications-panel {
        width: 280px !important;
        right: -50px !important;
        transform: translateX(50%) !important;
    }
    
    /* Panel de ImpactPoints responsive */
    .impactpoints-panel {
        width: calc(100vw - 2rem) !important;
        max-width: 320px !important;
        right: 1rem !important;
        left: auto !important;
        transform: none !important;
        position: fixed !important;
        top: 70px !important;
        margin: 0 !important;
        max-height: calc(100vh - 90px) !important;
        overflow-y: auto !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
    }
    
    .impactpoints-dropdown.active .impactpoints-panel {
        transform: none !important;
    }
    
    .impactpoints-header {
        padding: 0.875rem !important;
        position: sticky !important;
        top: 0 !important;
        background: white !important;
        z-index: 10 !important;
    }
    
    .impactpoints-header h5 {
        font-size: 1rem !important;
    }
    
    .impactpoints-body {
        padding: 0.875rem !important;
    }
    
    .impactpoints-balance-display {
        padding: 1.25rem !important;
        margin-bottom: 0.875rem !important;
    }
    
    .impactpoints-balance-display h3 {
        font-size: 1.75rem !important;
    }
    
    .impactpoints-balance-display p {
        font-size: 0.85rem !important;
    }
    
    .impactpoints-stats {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 0.875rem !important;
    }
    
    .stat-item {
        padding: 0.875rem !important;
        gap: 0.625rem !important;
    }
    
    .stat-item i {
        font-size: 1.25rem !important;
    }
    
    .stat-item strong {
        font-size: 0.8rem !important;
    }
    
    .stat-item p {
        font-size: 1rem !important;
    }
    
    .impactpoints-actions {
        gap: 0.5rem !important;
    }
    
    .btn-action {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.9rem !important;
        gap: 0.625rem !important;
    }
    
    .btn-action i {
        font-size: 1rem !important;
    }

    .offcanvas {
        max-width: 100%;
        width: 90%;
    }
    
    .offcanvas-header {
        padding: 1rem;
    }
    
    .offcanvas-body {
        padding: 1rem;
    }
    
    .offcanvas-body a {
        padding: 1rem 0.75rem;
        font-size: 1rem;
    }

    /* Texto del logo en blanco para móvil */
    .logo-title {
        color: #ffffff !important;
    }

    .logo-subtitle {
        color: #ffffff !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0.75rem !important;
        gap: 0.25rem !important;
    }

    .logo-container {
        gap: 0.4rem !important;
    }

    .logo-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }

    .logo-title {
        font-size: 1rem !important;
        color: #ffffff !important;
    }
    
    .logo-subtitle {
        font-size: 0.6rem !important;
    }
    
    .profile-toggle,
    .notifications-toggle,
    .impactpoints-toggle,
    .user-menu-toggle {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0.4rem !important;
    }
    
    .user-menu-toggle .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    .profile-toggle i:first-child,
    .notifications-toggle i,
    .impactpoints-toggle i {
        font-size: 0.85rem !important;
    }
    
    /* Panel de ImpactPoints en pantallas muy pequeñas */
    .impactpoints-panel {
        width: calc(100vw - 1rem) !important;
        max-width: 300px !important;
        right: 0.5rem !important;
        left: auto !important;
        margin: 0 !important;
        top: 65px !important;
        max-height: calc(100vh - 80px) !important;
    }
    
    .impactpoints-header {
        padding: 0.75rem !important;
    }
    
    .impactpoints-header h5 {
        font-size: 0.9rem !important;
    }
    
    .impactpoints-body {
        padding: 0.75rem !important;
    }
    
    .impactpoints-balance-display {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .impactpoints-balance-display h3 {
        font-size: 1.5rem !important;
    }
    
    .impactpoints-balance-display p {
        font-size: 0.8rem !important;
    }
    
    .stat-item {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .stat-item i {
        font-size: 1.1rem !important;
    }
    
    .stat-item strong {
        font-size: 0.75rem !important;
    }
    
    .stat-item p {
        font-size: 0.9rem !important;
    }
    
    .btn-action {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        gap: 0.5rem !important;
    }
    
    .btn-action i {
        font-size: 0.9rem !important;
    }

    .logo-subtitle {
        font-size: 0.65rem;
        color: #ffffff !important;
    }
    
    .offcanvas {
        width: 95%;
        max-width: 95%;
    }
    
    .offcanvas-header {
        padding: 0.75rem;
    }
    
    .offcanvas-body {
        padding: 0.75rem;
    }
    
    .offcanvas-body a {
        padding: 0.875rem 0.5rem;
        font-size: 0.95rem;
    }
    
    .menu-toggle {
        padding: 0.5rem;
        font-size: 1.3rem;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===== RESPONSIVE DASHBOARD ===== */

/* Stats Cards Responsive */
@media (max-width: 1199px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-value {
        font-size: 1.3rem !important;
        font-weight: 700;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .stat-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-change {
        font-size: 0.8rem;
    }
    
    .stat-card .rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .stat-card .rounded-circle i {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.1rem !important;
        font-weight: 700;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .stat-change {
        font-size: 0.75rem;
    }
    
    .stat-card .rounded-circle {
        width: 48px !important;
        height: 48px !important;
    }
    
    .stat-card .rounded-circle i {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 576px) {
    .stat-card {
        margin-bottom: 0.75rem;
        padding: 0.875rem;
    }
    
    .stat-value {
        font-size: 1rem !important;
        font-weight: 700;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .stat-label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-change {
        font-size: 0.7rem;
    }
    
    .stat-card .rounded-circle {
        width: 44px !important;
        height: 44px !important;
    }
    
    .stat-card .rounded-circle i {
        font-size: 1.1rem !important;
    }
}

/* Dashboard Header Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .dashboard-header .d-flex {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-header .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .dashboard-header .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dashboard-header .btn {
        width: 100%;
        justify-content: center;
    }
}


/* Gráfico Responsive */
@media (max-width: 768px) {
    .chart-container {
        height: 300px !important;
    }

    .chart-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .chart-controls .btn-group {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .chart-controls .btn-group .btn {
        flex: 1;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        min-width: 0;
    }
}

@media (max-width: 576px) {
    .chart-container {
        height: 250px !important;
    }

    .chart-controls .btn-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem;
    }

    .chart-controls .btn-group .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        text-align: center;
        white-space: nowrap;
    }
}

/* ===== BOTONES PERSONALIZADOS DEL GRÁFICO ===== */

.chart-period-selector {
    display: flex;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 30px;
    padding: 4px;
    gap: 2px;
}

.period-btn {
    background: transparent;
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.period-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.period-btn:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.period-btn:hover::before {
    left: 100%;
}

.period-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.period-btn.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.period-text {
    position: relative;
    z-index: 1;
}

/* Espacio adicional para las cards */
.chart-card {
    margin-bottom: 0.5rem !important;
}

.quadrant-card {
    margin-bottom: 0.5rem !important;
}

@media (max-width: 768px) {
    .chart-card {
        margin-bottom: 1rem !important;
    }
    
    .quadrant-card {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .chart-card {
        margin-bottom: 1.5rem !important;
    }
    
    .quadrant-card {
        margin-bottom: 1rem !important;
    }
}

/* Espaciado para Sección de Cuentas */
.accounts-section {
    margin-bottom: 1.5rem !important;
}

@media (max-width: 576px) {
    .accounts-section {
        margin-bottom: 1.5rem !important;
    }
}

/* Espaciado para Transacciones y Metas */
.transactions-card {
    margin-bottom: 0.5rem !important;
}

.goals-card {
    margin-bottom: 0.5rem !important;
}

@media (max-width: 768px) {
    .transactions-card {
        margin-bottom: 1rem !important;
    }
    
    .goals-card {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    .transactions-card {
        margin-bottom: 1.5rem !important;
    }
    
    .goals-card {
        margin-bottom: 1.5rem !important;
    }
}

/* Responsive para botones del gráfico */
@media (max-width: 768px) {
    .chart-period-selector {
        flex-wrap: wrap;
        gap: 4px;
    }

    .period-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .chart-period-selector {
        width: 100%;
        justify-content: center;
    }

    .period-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
        flex: 1;
        min-width: 0;
    }
}

/* Botones del grupo de gráfico específicos */
.btn-group-sm .btn {
    border-radius: 25px !important;
}

.btn-group-sm .btn:first-child {
    border-top-left-radius: 25px !important;
    border-bottom-left-radius: 25px !important;
}

.btn-group-sm .btn:last-child {
    border-top-right-radius: 25px !important;
    border-bottom-right-radius: 25px !important;
}

.btn-group-sm .btn:not(:first-child):not(:last-child) {
    border-radius: 0 !important;
}

@media (max-width: 576px) {
    .btn-group-sm .btn {
        border-radius: 20px !important;
    }

    .btn-group-sm .btn:first-child {
        border-top-left-radius: 20px !important;
        border-bottom-left-radius: 20px !important;
    }

    .btn-group-sm .btn:last-child {
        border-top-right-radius: 20px !important;
        border-bottom-right-radius: 20px !important;
    }

    .btn-group-sm .btn:not(:first-child):not(:last-child) {
        border-radius: 0 !important;
    }
}

/* Cuentas Responsive */
@media (max-width: 768px) {
    .account-card {
        margin-bottom: 1rem;
    }

    .account-card .card-body {
        padding: 1rem;
    }

    .account-card h5 {
        font-size: 1rem;
    }

    .account-card .account-balance {
        font-size: 1.25rem;
    }

    .account-card .account-type {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .account-card .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .account-card .account-balance {
        font-size: 1.125rem;
    }
}

/* Libertad Financiera Responsive */
@media (max-width: 768px) {
    .freedom-card {
        margin-bottom: 1rem;
    }

    .freedom-card .card-body {
        padding: 1rem;
    }

    .freedom-progress {
        margin: 1rem 0;
    }

    .freedom-progress .progress {
        height: 8px;
    }

    .freedom-progress .progress-text {
        font-size: 0.875rem;
    }

    .freedom-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .freedom-card .row {
        flex-direction: column;
    }

    .freedom-card .col-md-8 {
        margin-bottom: 1rem;
    }

    .freedom-card .col-md-4 {
        text-align: center;
    }

    .freedom-image {
        width: 50px;
        height: 50px;
    }

    .freedom-progress .progress-text {
        font-size: 0.75rem;
    }
}

/* Metas Responsive */
@media (max-width: 768px) {
    .goal-card {
        margin-bottom: 1rem;
    }

    .goal-card .card-body {
        padding: 1rem;
    }

    .goal-card h5 {
        font-size: 1rem;
    }

    .goal-card .goal-progress {
        margin: 0.75rem 0;
    }

    .goal-card .goal-progress .progress {
        height: 6px;
    }

    .goal-card .goal-amount {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .goal-card .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .goal-card .goal-amount {
        font-size: 0.875rem;
    }
}

/* Transacciones Recientes Responsive */
@media (max-width: 768px) {
    .transactions-card {
        margin-bottom: 1rem;
    }

    .transactions-card .card-body {
        padding: 1rem;
    }

    .transaction-item {
        padding: 0.75rem 0;
    }

    .transaction-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .transaction-item .transaction-amount {
        font-size: 1rem;
    }

    .transaction-item .transaction-date {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .transaction-item .transaction-amount {
        font-size: 0.875rem;
    }

    .transaction-item .transaction-category {
        font-size: 0.75rem;
    }
}

/* Botones Responsive */
@media (max-width: 768px) {
    .btn-primary-modern,
    .btn-outline-primary,
    .btn-outline-secondary,
    .btn-update-modern {
        font-size: 1rem;
        padding: 0.625rem 1.5rem;
    }

    .btn-primary-modern.btn-sm,
    .btn-outline-primary.btn-sm,
    .btn-outline-secondary.btn-sm,
    .btn-update-modern.btn-sm {
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .btn-primary-modern,
    .btn-outline-primary,
    .btn-outline-secondary,
    .btn-update-modern {
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-primary-modern.btn-sm,
    .btn-outline-primary.btn-sm,
    .btn-outline-secondary.btn-sm,
    .btn-update-modern.btn-sm {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
}

/* Modales Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }

    .modal-content {
        border-radius: 15px;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-header h4 {
        font-size: 1.125rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    /* Modal de notificaciones para móviles pequeños */
    .notifications-panel {
        width: 260px !important;
        right: 30px !important;
        left: auto !important;
        transform: translateX(50%) !important;
    }
}

/* ===== ESTILOS UNIFICADOS DE VISTAS ===== */

/* ===== CATEGORÍAS ===== */
.category-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.category-stats {
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
}

.category-preview {
    padding: 1rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.category-icon-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto;
}

/* ===== CUENTAS ===== */
.account-summary-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.account-summary-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.account-card-content {
    position: relative;
    z-index: 2;
}

.account-icon-bg {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.1;
    z-index: 1;
    color: var(--primary-color);
}

.account-card-personal .account-icon-bg {
    color: #007bff;
}

.account-card-business .account-icon-bg {
    color: #17a2b8;
}

.account-card-savings .account-icon-bg {
    color: #28a745;
}

.account-card-investment .account-icon-bg {
    color: #ffc107;
}

.account-info {
    margin-bottom: 1rem;
}

.account-balance {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.account-summary-card:hover .account-icon-bg {
    opacity: 0.15;
    transform: translateY(-50%) scale(1.1);
}

.account-card-personal {
    border-left: 4px solid #007bff !important;
}

.account-card-business {
    border-left: 4px solid #17a2b8 !important;
}

.account-card-savings {
    border-left: 4px solid #28a745 !important;
}

.account-card-investment {
    border-left: 4px solid #ffc107 !important;
}

.account-card-personal:hover {
    border-color: #007bff !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2) !important;
}

.account-card-business:hover {
    border-color: #17a2b8 !important;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.2) !important;
}

.account-card-savings:hover {
    border-color: #28a745 !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2) !important;
}

.account-card-investment:hover {
    border-color: #ffc107 !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2) !important;
}

.account-config-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.2s ease;
}

.account-config-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.config-details {
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* ===== ONBOARDING - QUADRANT ===== */
.quadrant-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.quadrant-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.quadrant-card.selected {
    border: 4px solid #0da746 !important;
    box-shadow: 0 0 0 6px rgba(13, 167, 70, 0.3), 0 25px 50px rgba(13, 167, 70, 0.4);
    transform: translateY(-10px) scale(1.05);
    animation: celebrationPulse 0.6s ease-in-out;
}

.quadrant-card.selected::after {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2rem;
    animation: bounceIn 0.8s ease-out;
    z-index: 10;
}

.quadrant-card input[type="radio"]:checked + label {
    color: #0da746;
    font-weight: bold;
}

@keyframes celebrationPulse {
    0% { transform: translateY(-10px) scale(1.05); }
    50% { transform: translateY(-15px) scale(1.1); }
    100% { transform: translateY(-10px) scale(1.05); }
}

@keyframes bounceIn {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.quadrant-card.selected h4 {
    color: #0a8537 !important;
    text-shadow: 0 0 10px rgba(13, 167, 70, 0.3);
}

.quadrant-card.selected .bg-primary,
.quadrant-card.selected .bg-success,
.quadrant-card.selected .bg-warning,
.quadrant-card.selected .bg-info {
    animation: iconGlow 1s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    0% { box-shadow: 0 0 5px rgba(13, 167, 70, 0.5); }
    100% { box-shadow: 0 0 20px rgba(13, 167, 70, 0.8); }
}

/* ===== DASHBOARD - ESTILOS ESPECÍFICOS ===== */
.passive-income-link {
    transition: all 0.3s ease;
}

.passive-income-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.passive-income-modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.passive-income-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.passive-income-modal-header .modal-title {
    font-weight: 600;
    margin: 0;
}

.passive-income-modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.passive-income-modal-header .btn-close:hover {
    opacity: 1;
}

.passive-income-modal-body {
    padding: 2rem;
    background: var(--bg-primary);
}

.passive-income-section {
    height: 100%;
}

.passive-income-examples .example-item {
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.passive-income-examples .example-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.example-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.steps-container .step-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 10px;
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.steps-container .step-item:hover {
    background: rgba(40, 167, 69, 0.1);
    transform: translateX(5px);
}

.step-number {
    width: 30px;
    height: 30px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h6 {
    color: #28a745;
    font-weight: 600;
}

.passive-income-modal-footer {
    background: rgba(99, 102, 241, 0.05);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1rem 2rem;
}

.passive-income-modal-footer .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.progressive-image-container {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progressive-image {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: var(--bg-primary);
    padding: 8px;
}

.progressive-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.progressive-status-text {
    text-align: center;
    max-width: 120px;
}

.progressive-status-text small {
    font-size: 0.75rem;
    line-height: 1.2;
    display: block;
}

.progressive-modal-content {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 400px;
    height: 400px;
    position: relative;
    overflow: visible;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progressive-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    font-size: 18px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.progressive-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.progressive-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#progressiveImageModal .modal-dialog {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#progressiveImageModal .modal-content {
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
}

.progressive-modal-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: var(--bg-primary);
    padding: 20px;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.progressive-modal-text {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    text-align: center;
    min-width: 250px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.progressive-modal-text h5 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.progressive-modal-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.modal-dialog.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.modal.show .modal-dialog {
    transform: none;
}

.family-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.family-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.family-item {
    transition: all 0.3s ease;
}

/* Solo aplicar hover especial en la página de familias, no en el dashboard */
.families-index .family-item:hover {
    background-color: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    margin: -0.75rem;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.member-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.member-avatar.more-members {
    background: linear-gradient(135deg, #6c757d, #495057);
    font-size: 0.7rem;
}

.family-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.family-actions .btn {
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.family-card .card-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.1));
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.invitation-item {
    transition: all 0.3s ease;
    border-left: 4px solid #ffc107 !important;
}

.invitation-item:hover {
    background-color: rgba(255, 193, 7, 0.15) !important;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.invitation-actions .btn {
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.invitation-role .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.affiliate-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.affiliate-banner-inactive {
    border-left-color: #17a2b8;
}

.affiliate-banner:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 3px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.affiliate-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.affiliate-banner-inactive .affiliate-icon-wrapper {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.affiliate-banner h6 {
    font-size: 0.95rem;
    color: #212529;
}

.affiliate-banner p {
    font-size: 0.85rem;
    line-height: 1.4;
}

.affiliate-banner .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.affiliate-actions .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
}

/* ===== HELP ===== */
.help-search-container {
    max-width: 800px;
    margin: 0 auto;
}

.help-search-container .input-group {
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.help-search-icon {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem !important;
    font-size: inherit !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-search-icon i {
    font-size: 1rem;
    color: white;
}

.help-search-input {
    border: 2px solid var(--border-color);
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.help-search-input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.help-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    outline: none;
}

.help-search-input:focus::placeholder {
    opacity: 0.5;
}

.help-search-btn {
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.help-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.help-search-btn:active {
    transform: translateY(0);
}

.help-search-results {
    margin-top: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-height: 500px;
    overflow-y: auto;
}

.help-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.help-results-header h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.help-results-list {
    padding: 0.5rem;
}

.help-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.help-result-item:last-child {
    border-bottom: none;
}

.help-result-item:hover {
    background: var(--bg-secondary);
}

.help-result-item .result-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-result-item .result-title i {
    font-size: 0.875rem;
}

.help-result-item .result-snippet {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.help-result-item .result-snippet strong {
    color: var(--primary-color);
    font-weight: 600;
}

.help-result-item .result-page-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.help-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.help-no-results i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ===== PAGES - CONTENT SECTION ===== */
.content-section {
    line-height: 1.8;
    color: var(--text-primary);
}

.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5,
.content-section h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.content-section h1 { font-size: 2rem; }
.content-section h2 { font-size: 1.75rem; }
.content-section h3 { font-size: 1.5rem; }
.content-section h4 { font-size: 1.25rem; }

.content-section p {
    margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

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

.content-section a:hover {
    text-decoration: underline;
}

.content-section blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.content-section code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.content-section pre {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1rem 0;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.content-section table th,
.content-section table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

.content-section table th {
    background: var(--bg-tertiary);
    font-weight: 600;
}

/* ===== FINANCIAL MATRIX ===== */
.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
}

.metric-card {
    border-left: 4px solid;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-card.success { 
    border-color: #10B981; 
    background: rgba(16, 185, 129, 0.05);
}

.metric-card.warning { 
    border-color: #F59E0B; 
    background: rgba(245, 158, 11, 0.05);
}

.metric-card.danger { 
    border-color: #EF4444; 
    background: rgba(239, 68, 68, 0.05);
}

.metric-card.info { 
    border-color: #3B82F6; 
    background: rgba(59, 130, 246, 0.05);
}

.categoria-card {
    transition: transform 0.2s;
}

.categoria-card:hover {
    transform: translateY(-2px);
}

.categoria-card-compact {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    border-left: 3px solid #6B7280;
}

.categoria-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color, #007bff);
}

.categoria-header-compact {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.categoria-nombre {
    font-size: 0.875rem;
    color: var(--text-primary, #1f2937);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categoria-body-compact {
    font-size: 0.8rem;
}

.categoria-metric {
    margin-bottom: 0;
}

.categoria-metric .text-sm {
    font-size: 0.8rem;
    line-height: 1.2;
}

.categoria-alert {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.recommendation-badge {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
}

.recommendation-badge.bg-warning {
    background-color: #f09c00 !important;
    color: white;
}

.recommendation-card {
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.progress-bar-modern.progress-filled {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== NOTIFICATIONS ===== */
.notifications-list {
    max-height: none;
}

.notification-item-list {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    transition: background-color 0.2s;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notification-item-list:last-child {
    border-bottom: none;
}

.notification-item-list:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.notification-item-list.unread {
    background-color: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3B82F6;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.notification-icon i {
    font-size: 1.2rem;
}

.notification-content-list h6 {
    font-size: 1rem;
}

.notification-content-list p {
    color: var(--text-secondary, #6B7280);
    margin-bottom: 0.5rem;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.notification-actions .btn-link {
    padding: 0.25rem 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.notification-actions .btn-link:hover {
    opacity: 0.7;
}

/* ===== IMPACTPOINTS ===== */
.package-card {
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    border: none !important;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4) !important;
}

.package-card.shadow-sm {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
}

.package-card.popular-package {
    border: 3px solid #3b82f6 !important;
}

.package-card.selected {
    border: 3px solid #10b981 !important;
    background: linear-gradient(135deg, rgba(16,185,129,0.05) 0%, rgba(16,185,129,0.02) 100%);
    box-shadow: 0 5px 20px rgba(16,185,129,0.3) !important;
    transform: scale(1.02);
}

.package-card.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.ball-container {
    display: flex;
    gap: 10px;
}

.ball {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s infinite ease-in-out;
}

.ball:nth-child(1) {
    animation-delay: -0.32s;
}

.ball:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#customPoints {
    color: #000 !important;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

#customPoints:focus {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    outline: none;
}

#customPoints::placeholder {
    color: #999 !important;
}

#customPoints + .input-group-text {
    border: 2px solid #e2e8f0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    padding: 0.75rem 1.25rem;
}

.input-group #customPoints {
    border-right: none;
    border-radius: 8px 0 0 8px;
}

/* ===== DEBTS ===== */
.btn-gradient-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.btn-gradient-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.4);
    color: white;
}

.btn-gradient-info:focus {
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);
    color: white;
}

.calculator-modal .modal-dialog {
    max-width: 90%;
}

.calculator-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.calculator-modal .modal-header {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.calculator-modal .btn-close {
    filter: invert(1);
}

.calculator-modal .form-control:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

.calculator-modal .form-select:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

.calculator-modal .btn {
    min-width: 120px;
    padding: 0.5rem 1rem;
}

.calculator-modal .d-flex.gap-2 {
    gap: 0.75rem !important;
}

.calculator-modal .btn-primary-modern {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    color: white;
    font-weight: 500;
}

.calculator-modal .btn-primary-modern:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    color: white;
}

#detailedModal .modal-xl {
    max-width: 95%;
}

#detailedModal .card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: none;
}

#detailedModal .card-header {
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

#detailedModal .table-responsive {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

#detailedModal .table th {
    position: sticky;
    top: 0;
    background-color: #343a40;
    z-index: 10;
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
}

#detailedModal .table td {
    font-size: 0.875rem;
    padding: 0.5rem;
    white-space: nowrap;
}

#detailedModal .table-dark td {
    font-weight: bold;
    font-size: 0.9rem;
}

#detailedModal .table-light {
    background-color: rgba(0,0,0,0.02);
}

#detailedModal .text-primary {
    color: #0d6efd !important;
}

#detailedModal .text-success {
    color: #198754 !important;
}

#detailedModal .text-warning {
    color: #fd7e14 !important;
}

#detailedModal .text-info {
    color: #0dcaf0 !important;
}

#detailedModal .border.rounded {
    transition: all 0.3s ease;
}

#detailedModal .border.rounded:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#detailedModal .text-center.p-3.border.rounded {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

#detailedModal .text-center.p-3.border.rounded.bg-light {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

/* ===== FAMILIES ===== */
.member-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.3s ease;
}

.member-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.member-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== INVESTMENTS ===== */
.currency-symbol-btn {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: 0 !important;
    min-width: 60px;
    font-weight: 600;
    font-size: 1rem;
}

.input-group .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group .form-control:focus + .currency-symbol-btn {
    border-color: var(--primary-color);
}

#editAssetModal .form-control,
#editAssetModal .form-select,
#editAssetModal .form-control:focus,
#editAssetModal .form-select:focus {
    color: #000 !important;
    background-color: #fff !important;
}

#editAssetModal .input-group-text {
    color: #000 !important;
    background-color: #f8f9fa !important;
    border-color: #ced4da !important;
}

#editAssetModal .form-label {
    color: #000 !important;
}

#editAssetModal .dropdown-toggle {
    color: #000 !important;
    background-color: #fff !important;
    border-color: #ced4da !important;
}

#editAssetModal .dropdown-menu {
    background-color: #fff !important;
}

#editAssetModal .dropdown-item {
    color: #000 !important;
}

/* ===== GOALS ===== */
.goal-item {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid var(--border-color) !important;
}

.goal-priority-high {
    border-left-color: #dc3545;
}

.goal-priority-medium {
    border-left-color: #ffc107;
}

.goal-priority-low {
    border-left-color: #28a745;
}

.goal-card .card-header {
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(0,123,255,0.05));
    border-bottom: 1px solid rgba(0,123,255,0.1);
}

.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.goal-detail-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.progress-detail {
    height: 12px;
    border-radius: 6px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar-detail {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.6s ease;
    border-radius: 6px;
}

.dropdown-menu {
    z-index: 1300 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 0.75rem;
}

.dropdown {
    position: relative;
    z-index: 10 !important;
}

.dropdown-toggle::after {
    display: none;
}

.goal-card .dropdown-menu {
    z-index: 1300 !important;
    position: absolute !important;
}

.goal-card .dropdown.show {
    z-index: 1300 !important;
}

.goal-card .dropdown.show .dropdown-menu {
    z-index: 1300 !important;
    position: absolute !important;
    display: block !important;
}

.suggestion-card {
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 160px;
    min-height: 160px;
    text-align: center;
    word-wrap: normal !important;
}

.suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color) !important;
}

.suggestion-card h6 {
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    word-wrap: normal !important;
    word-break: keep-all !important;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background-color: #0d6efd;
    color: white;
}

.step-indicator i {
    font-size: 16px;
}

/* ===== UTILIDADES ===== */
.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.bg-light {
    background-color: rgba(248, 250, 252, 0.8) !important;
}

/* ===== RESPONSIVE ADICIONAL ===== */
@media (max-width: 768px) {
    .help-search-container .input-group {
        flex-direction: column;
    }

    .help-search-icon {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    }

    .help-search-input {
        border-left: 2px solid var(--border-color);
        border-right: 2px solid var(--border-color);
        border-radius: 0;
    }

    .help-search-btn {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .progressive-image-container {
        width: 100px;
        margin-top: 1rem;
    }

    .progressive-image {
        max-width: 80px;
        max-height: 80px;
    }

    .progress-container .d-flex {
        flex-direction: column;
        align-items: center !important;
    }

    .progressive-image-container {
        margin-left: 0 !important;
    }

    .progressive-status-text small {
        font-size: 0.7rem;
    }

    .progressive-modal-content {
        width: 300px;
        height: 300px;
    }

    .progressive-modal-image {
        width: 220px;
        height: 220px;
        padding: 15px;
    }

    .progressive-modal-text {
        bottom: -70px;
        min-width: 200px;
        padding: 12px 20px;
    }

    .progressive-modal-text h5 {
        font-size: 1rem;
    }

    .progressive-modal-text p {
        font-size: 0.8rem;
    }

    .family-item {
        flex-direction: column;
        align-items: stretch !important;
    }

    .family-actions {
        margin-top: 0.75rem;
        text-align: center;
    }

    .family-actions .btn {
        width: 100%;
    }

    .member-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .invitation-item {
        padding: 1rem !important;
    }

    .invitation-item .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    .invitation-actions {
        margin-top: 0.75rem;
        text-align: center;
    }

    .invitation-actions .btn {
        width: 100%;
    }

    .invitation-item .d-flex > div:first-child {
        margin-bottom: 0.5rem;
    }

    .affiliate-banner {
        padding: 0.75rem;
    }

    .affiliate-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .affiliate-banner h6 {
        font-size: 0.85rem;
    }

    .affiliate-banner p {
        font-size: 0.75rem;
    }

    .affiliate-actions {
        margin-top: 0.5rem;
        width: 100%;
    }

    .affiliate-actions .btn {
        width: 100%;
    }

    .affiliate-banner .d-flex {
        flex-wrap: wrap;
    }

    .passive-income-modal-content {
        border-radius: 12px;
    }

    .passive-income-modal-header {
        padding: 1.25rem;
    }

    .passive-income-modal-header .modal-title {
        font-size: 1.1rem;
    }

    .passive-income-modal-body {
        padding: 1.25rem;
    }

    .passive-income-modal-footer {
        padding: 0.875rem 1.25rem;
    }

    .passive-income-modal-footer .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .progressive-modal-content {
        width: 280px;
        height: 280px;
    }

    .progressive-modal-image {
        width: 200px;
        height: 200px;
        padding: 12px;
    }

    .progressive-modal-text {
        bottom: -60px;
        min-width: 180px;
        padding: 10px 16px;
    }

    .passive-income-modal-content {
        border-radius: 10px;
    }

    .passive-income-modal-header {
        padding: 1rem;
    }

    .passive-income-modal-header .modal-title {
        font-size: 1rem;
    }

    .passive-income-modal-body {
        padding: 1rem;
    }

    .passive-income-modal-body .row {
        margin: 0;
    }

    .passive-income-modal-body .col-md-6 {
        margin-bottom: 1.5rem;
    }

    .passive-income-section h5 {
        font-size: 1rem;
    }

    .passive-income-section p {
        font-size: 0.9rem;
    }

    .example-item {
        margin-bottom: 1rem !important;
    }

    .example-item h6 {
        font-size: 0.9rem;
    }

    .example-item p {
        font-size: 0.8rem;
    }

    .step-item {
        margin-bottom: 1rem !important;
    }

    .step-item h6 {
        font-size: 0.9rem;
    }

    .step-item p {
        font-size: 0.8rem;
    }

    .alert {
        padding: 0.75rem;
    }

    .alert h6 {
        font-size: 0.9rem;
    }

    .alert p {
        font-size: 0.8rem;
    }

    .passive-income-modal-footer {
        padding: 0.75rem 1rem;
    }

    .passive-income-modal-footer .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .passive-income-modal-content {
        border-radius: 8px;
    }

    .passive-income-modal-header {
        padding: 0.875rem;
    }

    .passive-income-modal-header .modal-title {
        font-size: 0.95rem;
    }

    .passive-income-modal-body {
        padding: 0.875rem;
    }

    .passive-income-modal-body .col-md-6 {
        margin-bottom: 1.25rem;
    }

    .passive-income-section h5 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem !important;
    }

    .passive-income-section p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem !important;
    }

    .example-item {
        margin-bottom: 0.875rem !important;
    }

    .example-item h6 {
        font-size: 0.85rem;
    }

    .example-item p {
        font-size: 0.75rem;
    }

    .step-item {
        margin-bottom: 0.875rem !important;
    }

    .step-item h6 {
        font-size: 0.85rem;
    }

    .step-item p {
        font-size: 0.75rem;
    }

    .alert {
        padding: 0.625rem;
    }

    .alert h6 {
        font-size: 0.85rem;
    }

    .alert p {
        font-size: 0.75rem;
    }

    .passive-income-modal-footer {
        padding: 0.625rem 0.875rem;
    }

    .passive-income-modal-footer .btn {
        width: 100%;
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
}