/* Trabajo Seguro - Diseño Moderno Unificado */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #2563EB;
    --primary-dark: #1d4ed8;
    --secondary: #6B7280;
    --success: #059669;
    --danger: #DC2626;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: #f8f9fa;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.display-1 { font-size: 6rem; font-weight: 800; }
.display-2 { font-size: 5.5rem; font-weight: 800; }
.display-3 { font-size: 4.5rem; font-weight: 800; }
.display-4 { font-size: 3.5rem; font-weight: 800; }

.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }
.fw-black { font-weight: 900; }

/* Navbar Moderno */
.navbar {
    background: white !important;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-dark .navbar-brand {
    color: white !important;
    text-shadow: 0 2px 10px rgba(37, 99, 235, 0.5);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white !important;
}

.navbar-dark .navbar-nav .nav-link i {
    opacity: 0.85;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover i {
    opacity: 1;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px !important;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #60a5fa);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-modern:hover::after {
    width: 80%;
}

.nav-link-modern:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #60a5fa !important;
}

.nav-link-modern i {
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.nav-link-modern:hover i {
    opacity: 1;
    color: #60a5fa;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    transition: var(--transition);
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Botones Modernos */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.025em;
}



.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    background: var(--gradient-primary);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    background: var(--gradient-success);
    color: white;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-danger);
    color: white;
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-warning);
    color: white;
}

.btn-info {
    background: var(--gradient-info);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-info);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    border-color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Cards Glassmorphism */
.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hover-lift {
    transition: box-shadow 0.2s ease;
}

.hover-lift:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Formularios Modernos */
.form-control {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-weight: 400;
    transition: var(--transition);
    color: var(--gray-800);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--gray-600);
    font-weight: 500;
}

/* Hero Section Modern */
.hero-modern {
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    padding: 60px 0;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.stat-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item-modern i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1f2937;
    line-height: 1;
}

.stat-desc {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.feature-card-modern {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

.icon-wrapper-modern {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin: 0 auto 1rem;
}

.icon-wrapper-modern.bg-primary { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.icon-wrapper-modern.bg-success { background: linear-gradient(135deg, #059669, #10b981); }
.icon-wrapper-modern.bg-warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.icon-wrapper-modern.bg-info { background: linear-gradient(135deg, #0891b2, #06b6d4); }

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}



.hero-title {
    line-height: 1.2;
    letter-spacing: -0.02em;
}









.min-vh-75 {
    min-height: 75vh;
}

.min-vh-80 {
    min-height: 80vh;
}





.hero-image-container {
    position: relative;
    height: 500px;
}

.hero-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 2px solid rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(10px);
}

.hero-card-1 {
    top: 50px;
    left: 50px;
}

.hero-card-2 {
    top: 200px;
    right: 50px;
}

.hero-card-3 {
    bottom: 50px;
    left: 100px;
}

.text-shadow {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.feature-mini {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.feature-mini:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* Estadísticas Modernas */
.stat-card-modern {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: white;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.stat-card-modern:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.stat-modern {
    padding: 1rem;
}

.stat-number-modern {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label-modern {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Dashboard Moderno */
.dashboard-sidebar {
    background: white;
    border-right: 1px solid #e5e7eb;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-nav {
    list-style: none;
    padding: 1rem;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
    left: 0;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: white;
    transform: translateX(5px);
}

/* Alertas Modernas */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border-left: 4px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left-color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left-color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left-color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left-color: var(--info);
}

/* Badges Modernos */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-basico {
    background: var(--gradient-info);
    color: white;
}

.plan-professional {
    background: var(--gradient-primary);
    color: white;
}

.plan-premium {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
}

/* Tablas Modernas */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table th {
    background: #f9fafb;
    border: none;
    font-weight: 600;
    color: var(--gray-700);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: #f9fafb;
}

/* Animaciones */


/* Efectos de Hover */
.icon-hover {
    transition: var(--transition);
}

.icon-hover:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary) !important;
}



/* Utilidades */
.bg-light-custom {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(20px);
}

.section-white {
    background: white;
}

.pricing-card-pro {
    position: relative;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    border: 2px solid #e5e7eb;
    overflow: hidden;
}

.pricing-card-pro:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.pricing-featured {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 50%, #ffffff 100%);
    border: 3px solid #f59e0b !important;
    position: relative;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2) !important;
    overflow: visible !important;
    margin-top: 30px;
}

.pricing-featured:hover {
    box-shadow: 0 30px 60px rgba(245, 158, 11, 0.3) !important;
}

.popular-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
    z-index: 100;
    white-space: nowrap;
    border: 3px solid rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}



.pricing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 50%;
}

.feature-icon-check {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.feature-icon-check.featured {
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-glow {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.6);
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.text-white {
    color: white !important;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }

/* Responsive */
@media (max-width: 768px) {
    .stats-bar { flex-direction: column; gap: 2rem; padding: 1.5rem; }
    .stat-item-modern { justify-content: center; }
    .display-4 { font-size: 2.5rem; }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .card {
        margin: 1rem 0.5rem;
    }
    
    .stat-card-modern {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-modern {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .dashboard-sidebar {
        min-height: auto;
    }
    
    .sidebar-nav a {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 { font-size: 2rem; }
    .stats-bar { gap: 1.5rem; }
    .stat-num { font-size: 1.5rem; }
    .feature-card-modern { padding: 1.5rem 1rem; }
    .container {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Loader Moderno */
.modern-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Estados de carga */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Footer Modern */
.footer-modern {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: rgba(255, 255, 255, 0.8);
}

.footer-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-subtitle {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    justify-content: end;
}

.badge-footer {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-badges {
        justify-content: center;
        margin-top: 1rem;
    }
}


/* ===== DASHBOARD FIXES ===== */

/* Sidebar Dark Theme */
.dashboard-sidebar.bg-dark {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-sidebar.bg-dark .sidebar-nav {
    padding: 1rem 0.75rem !important;
}

.dashboard-sidebar.bg-dark .sidebar-nav li {
    margin-bottom: 0.25rem;
}

.dashboard-sidebar.bg-dark .sidebar-nav a {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem;
    border-radius: 8px;
}

.dashboard-sidebar.bg-dark .sidebar-nav a i {
    font-size: 0.95rem;
    width: 20px;
}

.dashboard-sidebar.bg-dark .sidebar-nav a:hover {
    background: rgba(37, 99, 235, 0.15);
    color: white;
    transform: translateX(3px);
}

.dashboard-sidebar.bg-dark .sidebar-nav a.active {
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.dashboard-sidebar.bg-dark .sidebar-nav a::before {
    display: none;
}

/* Dashboard Main Content */
.dashboard-content {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Navbar Compact */
.navbar {
    padding: 0.5rem 0 !important;
}

.navbar-brand {
    font-size: 1.25rem !important;
}

.navbar-brand i {
    font-size: 1.1rem;
}

.navbar .badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
}

/* Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.card.bg-primary .card-body,
.card.bg-success .card-body,
.card.bg-warning .card-body,
.card.bg-info .card-body {
    padding: 1rem !important;
}

.card.bg-primary h3,
.card.bg-success h3,
.card.bg-warning h3,
.card.bg-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.card.bg-primary p,
.card.bg-success p,
.card.bg-warning p,
.card.bg-info p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.card.bg-primary i,
.card.bg-success i,
.card.bg-warning i,
.card.bg-info i {
    font-size: 1.5rem !important;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-warning:hover,
.card.bg-info:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Card Headers */
.card-header.bg-white {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 1rem 1.25rem !important;
}

.card-header h5 {
    margin: 0;
    font-size: 1rem;
}

.card-header h5 i {
    font-size: 0.95rem;
}

.card-body {
    padding: 1.25rem !important;
}

/* Alert Improvements */
.alert.border-0 {
    border-left: 3px solid !important;
    border-radius: 10px !important;
    padding: 0.85rem 1rem !important;
}

.alert h6 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.alert p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.alert i.fa-2x {
    font-size: 1.5rem !important;
}

.alert-warning.border-0 {
    border-left-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

.alert-info.border-0 {
    border-left-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

.alert-success.border-0 {
    border-left-color: #059669 !important;
    background: rgba(5, 150, 105, 0.1) !important;
}

/* Progress Bars */
.progress {
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.alert .progress {
    height: 10px;
}

/* Plan Card Progress */
.card .progress {
    height: 8px;
    background: #e5e7eb;
}

.card .progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

/* Badge Plans */
.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    font-weight: 700;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: white !important;
    font-weight: 600;
}

/* Plan Status Cards */
.card[style*="border-left: 4px"] {
    transition: all 0.3s ease;
}

.card[style*="border-left: 4px"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.card[style*="border-left: 4px"] .rounded-circle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card[style*="border-left: 4px"] h6 {
    font-size: 0.95rem;
    color: #1f2937;
}

.card[style*="border-left: 4px"] p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e5e7eb;
}

/* Empty States */
.text-center.py-5 {
    padding: 2rem 1.5rem !important;
}

.text-center.py-5 i {
    opacity: 0.4;
    font-size: 2.5rem !important;
}

.text-center.py-5 h6 {
    color: #6b7280;
    font-weight: 600;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.text-center.py-5 p {
    color: #9ca3af;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

/* Button Groups in Cards */
.card-body .row.g-3 {
    margin: 0 -0.5rem;
}

.card-body .row.g-3 > div {
    padding: 0 0.5rem;
}

.card-body .btn-outline-primary,
.card-body .btn-outline-success,
.card-body .btn-outline-warning,
.card-body .btn-outline-info,
.card-body .btn-outline-secondary {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.card-body .btn-outline-primary i,
.card-body .btn-outline-success i,
.card-body .btn-outline-warning i,
.card-body .btn-outline-info i,
.card-body .btn-outline-secondary i {
    font-size: 0.85rem;
}

/* Tips/Consejos Cards */
.card-body h6.fw-bold {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.card-body p.text-muted.small {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-sidebar {
        min-height: auto !important;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem !important;
    }
    
    .sidebar-nav li {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .sidebar-nav a {
        white-space: nowrap;
        padding: 0.6rem 0.9rem !important;
        font-size: 0.85rem;
    }
    
    .card.bg-primary h3,
    .card.bg-success h3,
    .card.bg-warning h3,
    .card.bg-info h3 {
        font-size: 1.5rem;
    }
}

/* Fix Container Fluid */
.container-fluid {
    padding: 0;
}

.container-fluid > .row {
    margin: 0;
}

.container-fluid > .row > div {
    padding: 0;
}

/* Row Spacing */
.row.mb-4 {
    margin-bottom: 1.25rem !important;
}

.col-md-3.mb-3,
.col-lg-4.mb-3,
.col-lg-8.mb-3 {
    margin-bottom: 1rem !important;
}

/* Main Content Padding */
.col-md-9.col-lg-10 > .p-4 {
    padding: 1.5rem !important;
    background: #f8f9fa;
}

/* Dashboard Header */
.col-md-9.col-lg-10 h2 {
    font-size: 1.5rem;
}

.col-md-9.col-lg-10 .text-muted {
    font-size: 0.9rem;
}

/* Buttons in Dashboard */
.col-md-9.col-lg-10 .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.col-md-9.col-lg-10 .btn i {
    font-size: 0.85rem;
}

.col-md-9.col-lg-10 .btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

/* Spacing Adjustments */
.mb-4 {
    margin-bottom: 1.25rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

@media (max-width: 768px) {
    .col-md-9.col-lg-10 > .p-4 {
        padding: 1rem !important;
    }
    
    .col-md-9.col-lg-10 h2 {
        font-size: 1.35rem;
    }
}
