/* FIT2PRO - Enhanced Sports-Oriented Custom Styles */

:root {
    /* Paleta de colores deportiva */
    --sport-primary: #1e3a8a;        /* Azul deportivo profundo */
    --sport-secondary: #059669;      /* Verde energético */
    --sport-accent: #059669;         /* Verde dinámico */
    --sport-orange: #ea580c;         /* Naranja vibrante */
    --sport-purple: #7c3aed;         /* Púrpura moderno */
    
    /* Colores funcionales */
    --success-color: #10b981;        /* Verde éxito */
    --warning-color: #f59e0b;        /* Amarillo advertencia */
    --danger-color: #ef4444;         /* Rojo peligro */
    --info-color: #3b82f6;           /* Azul información */
    
    /* Colores neutros */
    --light-bg: #f8fafc;            /* Fondo claro */
    --white: #ffffff;                /* Blanco puro */
    --gray-50: #f9fafb;
    --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;
    
    /* Gradientes deportivos */
    --gradient-sport-primary: linear-gradient(135deg, var(--sport-primary) 0%, var(--sport-secondary) 100%);
    --gradient-sport-energy: linear-gradient(135deg, var(--sport-accent) 0%, var(--sport-accent) 100%);
    --gradient-sport-cool: linear-gradient(135deg, var(--sport-purple) 0%, var(--sport-primary) 100%);
    --gradient-performance: linear-gradient(45deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    /* Sombras mejoradas */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 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-sport: 0 8px 32px rgba(30, 58, 138, 0.15);
    
    /* Espaciado y bordes */
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Transiciones */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Tipografía */
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Reset y estilos globales */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light-bg);
    color: var(--gray-800);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--sport-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sport-secondary);
}

/* Animaciones deportivas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes pulse-sport {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(30, 58, 138, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 58, 138, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Clases utilitarias */
.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

.animate-pulse-sport {
    animation: pulse-sport 2s infinite;
}

.gradient-sport {
    background: var(--gradient-sport-primary);
}

.gradient-energy {
    background: var(--gradient-sport-energy);
}

.gradient-performance {
    background: var(--gradient-performance);
}

.text-sport-primary {
    color: var(--sport-primary);
}

.text-sport-secondary {
    color: var(--sport-secondary);
}

.bg-sport-primary {
    background-color: var(--sport-primary);
}

.bg-sport-secondary {
    background-color: var(--sport-secondary);
}

/* Componentes mejorados */

/* Cards deportivas */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-sport-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

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

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: var(--gradient-sport-primary);
    color: var(--white);
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-sport {
    border-left: 4px solid var(--sport-primary);
}

.card-performance {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

/* Tarjetas de filtros y búsqueda mejoradas */
.search-card, .filter-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.search-card::before, .filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-sport-primary);
}

.filter-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

/* Contenedores de estadísticas mejorados */
.stats-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-sport-primary);
}

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

.stats-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--sport-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stats-card p {
    color: var(--gray-600);
    font-weight: var(--font-weight-medium);
    margin: 0;
}

/* Botones deportivos */
.btn {
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-normal);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::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: var(--transition-fast);
}

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

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

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

.btn-primary {
    background: var(--gradient-sport-primary);
    color: var(--white);
}

.btn-success {
    background: var(--gradient-sport-energy);
    color: var(--white);
}

.btn-info {
    background: var(--gradient-sport-cool);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f97316 100%);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: var(--white);
}

.btn-light {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline-primary {
    border: 2px solid var(--sport-primary);
    color: var(--sport-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-sport-primary);
    color: var(--white);
    border-color: var(--sport-primary);
}

.btn-outline-secondary {
    border: 2px solid var(--gray-400);
    color: var(--gray-600);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--gray-600);
    color: var(--white);
    border-color: var(--gray-600);
}

/* Formularios mejorados */
.form-control, .form-select {
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: var(--transition-normal);
    background: var(--white);
    color: var(--gray-700);
}

.form-control:focus, .form-select:focus {
    border-color: var(--sport-primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
    outline: none;
}

.form-control:hover, .form-select:hover {
    border-color: var(--sport-secondary);
}

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

.required-field::after {
    content: ' *';
    color: var(--danger-color);
    font-weight: var(--font-weight-bold);
}

.form-text {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Input groups mejorados */
.input-group {
    position: relative;
}

.input-group-text {
    background: var(--gradient-sport-primary);
    color: var(--white);
    border: 2px solid var(--sport-primary);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-weight: var(--font-weight-medium);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.input-group .form-control:focus {
    border-color: var(--sport-primary);
    box-shadow: none;
}

/* Validación de formularios */
.is-valid {
    border-color: var(--success-color) !important;
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

.valid-feedback {
    color: var(--success-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Checkboxes y radios personalizados */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
}

.form-check-input:checked {
    background-color: var(--sport-primary);
    border-color: var(--sport-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

.form-check-label {
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    margin-left: 0.5rem;
}

/* Tablas mejoradas */
.table-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--gradient-sport-primary);
    color: var(--white);
    font-weight: var(--font-weight-semibold);
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

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

.table tbody tr:hover {
    background-color: rgba(30, 58, 138, 0.05);
    transform: scale(1.01);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges mejorados */
.badge {
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: var(--gradient-sport-energy) !important;
}

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

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f97316 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%) !important;
}

.badge.bg-info {
    background: var(--gradient-sport-cool) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-600) 100%) !important;
}

/* Badges de referencia personalizados (naranja y amarillo) */
.bg-orange { background-color: #fd7e14 !important; }
.bg-yellow { background-color: #f1c40f !important; }
.badge.bg-orange, .badge.bg-yellow { color: #212529 !important; }

/* Paginación mejorada */
.pagination {
    margin: 0;
    gap: 0.25rem;
}

.page-item .page-link {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-normal);
    margin: 0 0.125rem;
}

.page-item .page-link:hover {
    background: var(--gradient-sport-primary);
    color: var(--white);
    border-color: var(--sport-primary);
    transform: translateY(-1px);
}

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

.page-item.disabled .page-link {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-400);
}

/* Breadcrumbs mejorados */
.breadcrumb {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.breadcrumb-item {
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--sport-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--sport-secondary);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* Alertas mejoradas */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Tooltips mejorados */
.tooltip {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
}

.tooltip-inner {
    background: var(--gray-800);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-lg);
}

/* Dropdowns mejorados */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.dropdown-item {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
    color: var(--gray-700);
}

.dropdown-item:hover {
    background: var(--gradient-sport-primary);
    color: var(--white);
}

.dropdown-item:active {
    background: var(--sport-primary);
    color: var(--white);
}

/* Modales mejorados */
.modal-content {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-sport-primary);
    color: var(--white);
    border: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: var(--font-weight-semibold);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border: none;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--gray-50);
}

/* Spinners y loading mejorados */
.spinner-border {
    border-color: var(--sport-primary);
    border-right-color: transparent;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--sport-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Tarjetas de deportistas mejoradas */
.athlete-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    overflow: hidden;
    background: var(--white);
    position: relative;
}

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

.athlete-card .status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
}

.athlete-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--gradient-sport-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-md);
}

.athlete-avatar-sm {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gradient-sport-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.sport-icon {
    font-size: 2rem;
    color: var(--sport-primary);
    margin: 1rem 0;
}

.athlete-card .card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* Filtros y búsqueda mejorados */
.filter-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.admin-header {
    background: var(--gradient-sport-primary);
    color: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
}

.admin-header h1 {
    margin: 0;
    font-weight: var(--font-weight-bold);
}

/* Botones de acción mejorados */
.btn-action {
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-action.btn-outline-primary:hover {
    background: var(--gradient-sport-primary);
    border-color: var(--sport-primary);
}

.btn-action.btn-outline-danger:hover {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    border-color: var(--danger-color);
}

/* Estados y badges personalizados */
.status-active {
    background: var(--gradient-sport-energy) !important;
    color: var(--white) !important;
}

.status-inactive {
    background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-600) 100%) !important;
    color: var(--white) !important;
}

/* Mejoras para elementos de navegación */
/* Pestañas mejoradas con mejor contraste y diseño moderno */
.nav-tabs {
    border-bottom: 2px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link {
    border: none;
    border-radius: var(--border-radius-lg);
    color: var(--gray-700) !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 0.25rem;
    position: relative;
    background: transparent;
    text-shadow: none;
    font-size: 0.95rem;
}

.nav-tabs .nav-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)) !important;
    color: var(--sport-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-bottom: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 700 !important;
}

.nav-tabs .nav-link.active i {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-tabs .nav-link i {
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

/* Cards de información mejoradas */
.info-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}

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

.info-card .info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient-sport-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Mejoras para listas y elementos de contenido */
.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}

.content-list li:hover {
    background: var(--gray-50);
}

.content-list li:last-child {
    border-bottom: none;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .athlete-card {
        margin-bottom: 1.5rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .admin-header {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .btn-action {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .stat-card .stat-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .athlete-avatar {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

.btn-secondary {
    background: var(--gradient-sport-cool);
    color: var(--white);
}

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

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: var(--white);
}

.btn-sport {
    background: var(--gradient-sport-energy);
    color: var(--white);
    font-weight: var(--font-weight-semibold);
}

.btn-outline-sport {
    background: transparent;
    border: 2px solid var(--sport-primary);
    color: var(--sport-primary);
}

.btn-outline-sport:hover {
    background: var(--sport-primary);
    color: var(--white);
}

/* Paneles de administración mejorados */
.admin-panel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.08);
}

.admin-panel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-sport-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.admin-panel-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.2);
    color: var(--sport-primary);
    border-color: rgba(30, 58, 138, 0.2);
    text-decoration: none;
}

.admin-panel-btn:hover::before {
    transform: scaleX(1);
}

.admin-panel-btn i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.admin-panel-btn:hover i {
    transform: scale(1.1);
    color: var(--sport-primary);
}

.admin-panel-btn span {
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Actividad reciente mejorada */
.recent-activity {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.12);
    position: relative;
    overflow: hidden;
}

.recent-activity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-sport-primary);
    opacity: 0.7;
}

.activity-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
}

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

.activity-item:hover {
    background: rgba(30, 58, 138, 0.05);
    border-radius: var(--border-radius);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Formularios deportivos */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-200);
    transition: var(--transition-fast);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--sport-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

.form-control:hover {
    border-color: var(--gray-300);
}

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

.input-group-text {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-right: none;
    color: var(--gray-600);
    font-weight: var(--font-weight-medium);
}

/* Navegación deportiva */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
    color: var(--sport-primary) !important;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Brand logo sizing */
.navbar-brand img.brand-logo {
    height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.brand-logo {
    height: 32px;
    width: auto;
    display: inline-block;
}

.brand-logo-large {
    height: 72px;
    width: auto;
    display: inline-block;
}

.nav-link {
    color: var(--gray-600) !important;
    transition: var(--transition-fast);
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    font-weight: var(--font-weight-medium);
    position: relative;
}

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

.nav-link:hover {
    color: var(--sport-primary) !important;
    background: rgba(30, 58, 138, 0.05);
}

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

.nav-link.active {
    color: var(--sport-primary) !important;
    background: rgba(30, 58, 138, 0.1);
}

/* Sidebar deportiva - Diseño Premium alineado con Welcome Banner */
.container-fluid .row .col-md-2.sidebar,
.sidebar {
    background: linear-gradient(135deg, var(--sport-primary) 0%, var(--sport-secondary) 100%) !important;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    border-radius: 0 var(--border-radius-xl) var(--border-radius-xl) 0 !important;
    padding: 2rem 0 !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh !important;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Logo/Brand Area en Sidebar */
.sidebar-brand {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-xl);
    margin: 0 1.5rem 2rem 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-brand h4 {
    color: white;
    font-weight: var(--font-weight-bold);
    margin: 0;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-brand .brand-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Perfil de Usuario Mejorado */
.sidebar .user-profile-sidebar {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-xl);
    margin: 0 1.5rem 2rem 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar .user-profile-sidebar .nav-link {
    color: white !important;
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.sidebar .user-profile-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Secciones de Navegación */
.nav-section-header {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0 1.5rem !important;
    margin: 2rem 0 1rem 0 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: var(--font-weight-bold) !important;
    position: relative !important;
    z-index: 2 !important;
}

.nav-section-header::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

/* Enlaces de Navegación Premium */
.sidebar .nav-link,
.container-fluid .row .col-md-2.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 1rem 1.5rem !important;
    margin: 0.375rem 1.5rem !important;
    border-radius: var(--border-radius-xl) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: var(--font-weight-medium) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    z-index: 2 !important;
    font-size: 0.9rem !important;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ffd700, #ffed4e, #ffd700);
    transform: scaleY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.sidebar .nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius-xl);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: translateX(12px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.sidebar .nav-link:hover::before,
.sidebar .nav-link.active::before {
    transform: scaleY(1);
}

.sidebar .nav-link:hover::after,
.sidebar .nav-link.active::after {
    opacity: 1;
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Efectos de Hover Mejorados */
.sidebar .nav-link:hover {
    animation: pulse-sport 2s infinite;
}

/* Dropdown en Sidebar - Mejorado para evitar superposiciones */
.sidebar .user-profile-sidebar {
    position: relative !important;
    z-index: 1000 !important;
}

.sidebar .user-profile-sidebar .dropdown {
    position: relative !important;
}

.sidebar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    z-index: 1050 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 0.5rem !important;
    min-width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Asegurar que el dropdown se posicione correctamente */
.sidebar .dropdown-menu.show {
    display: block !important;
    animation: slideInDown 0.3s ease-out !important;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar .dropdown-item {
    color: var(--gray-700) !important;
    transition: var(--transition-fast) !important;
    border-radius: var(--border-radius) !important;
    margin: 0.25rem 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-weight: var(--font-weight-medium) !important;
    position: relative !important;
    overflow: hidden !important;
}

.sidebar .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--sport-primary);
    transform: scaleY(0);
    transition: var(--transition-fast);
    border-radius: 0 2px 2px 0;
}

.sidebar .dropdown-item:hover {
    background: linear-gradient(135deg, var(--sport-primary), var(--sport-secondary)) !important;
    color: white !important;
    transform: translateX(8px) !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3) !important;
}

.sidebar .dropdown-item:hover::before {
    transform: scaleY(1);
}

.sidebar .dropdown-item i {
    width: 20px;
    text-align: center;
    transition: var(--transition-fast);
}

.sidebar .dropdown-item:hover i {
    transform: scale(1.1);
    color: #ffd700;
}

/* Separador mejorado */
.sidebar .dropdown-divider {
    margin: 0.5rem 1rem !important;
    border-top: 1px solid rgba(30, 58, 138, 0.2) !important;
    opacity: 1 !important;
}

/* Tablas deportivas */
.table {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
}

.table thead th {
    background: var(--gradient-sport-primary);
    color: var(--white);
    border: none;
    font-weight: var(--font-weight-semibold);
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.table tbody tr {
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: rgba(30, 58, 138, 0.02);
    transform: scale(1.005);
}

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

/* Alertas deportivas */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.5rem;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    transform: translateX(100px);
    animation: shimmer 2s infinite;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 58, 138, 0.05));
    color: var(--info-color);
    border-left-color: var(--info-color);
}

/* Badges deportivas */
.badge {
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

/* Spinner deportivo */
.spinner-sport {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--sport-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Componentes específicos deportivos */

/* Estadísticas deportivas mejoradas */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(30, 58, 138, 0.08);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: slideInCard 0.6s ease-out;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-sport-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 70px rgba(30, 58, 138, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 58, 138, 0.15);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card > * {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #059669 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
    animation: countUp 1s ease-out;
    letter-spacing: -0.02em;
}

.stat-label {
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.85;
    line-height: 1.4;
}

.stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.15;
    transition: all 0.3s ease;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    opacity: 0.25;
    transform: scale(1.1) rotate(5deg);
}

/* Variantes de colores para stat-cards */
.stat-card.primary {
    border-left: 5px solid #1e3a8a;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card.primary:hover {
    border-left-color: #1d4ed8;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.stat-card.success {
    border-left: 5px solid #059669;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.02) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card.success:hover {
    border-left-color: #047857;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.stat-card.warning {
    border-left: 5px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.02) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card.warning:hover {
    border-left-color: #d97706;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.stat-card.danger {
    border-left: 5px solid #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.02) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card.danger:hover {
    border-left-color: #b91c1c;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.stat-card.info {
    border-left: 5px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card.info:hover {
    border-left-color: #2563eb;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* Animaciones para stat-cards */
@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.7);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Contenedores de gráficos mejorados */
.chart-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-sport-primary);
    opacity: 0.7;
}

.chart-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(30, 58, 138, 0.18);
    border-color: rgba(30, 58, 138, 0.2);
}

.chart-title {
    color: var(--gray-800);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.chart-canvas-wrapper {
    position: relative;
    height: 300px;
    z-index: 2;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Welcome banner mejorado */
.welcome-banner {
    background: linear-gradient(135deg, var(--sport-primary) 0%, var(--sport-secondary) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.25);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.welcome-banner > * {
    position: relative;
    z-index: 2;
}

/* Progreso deportivo */
.progress-sport {
    height: 12px;
    border-radius: 6px;
    background: var(--gray-200);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-sport {
    height: 100%;
    background: var(--gradient-sport-primary);
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

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

/* Responsive mejorado */
@media (max-width: 768px) {
    .sidebar {
        border-radius: 0;
    }
    
    .card {
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .value-card {
        margin-bottom: 1.5rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
    }
    
    .value-title {
        font-size: 1.2rem;
    }
}

/* Modo oscuro deportivo */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #0f172a;
        --white: #1e293b;
        --gray-50: #1e293b;
        --gray-100: #334155;
        --gray-200: #475569;
        --gray-300: #64748b;
        --gray-400: #94a3b8;
        --gray-500: #cbd5e1;
        --gray-600: #e2e8f0;
        --gray-700: #f1f5f9;
        --gray-800: #f8fafc;
        --gray-900: #ffffff;
    }
    
    body {
        background: var(--light-bg);
        color: var(--gray-800);
    }
    
    .navbar {
        background: var(--white) !important;
        border-bottom-color: var(--gray-200);
    }
    
    .sidebar {
        background: var(--white);
    }
    
    .card {
        background: var(--white);
        color: var(--gray-800);
    }
    
    .form-control {
        background: var(--white);
        border-color: var(--gray-200);
        color: var(--gray-800);
    }
    
    .table {
        background: var(--white);
        color: var(--gray-800);
    }
}

/* Estilos de impresión */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
        break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .stat-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* Efectos especiales para elementos interactivos */
.interactive-hover {
    transition: var(--transition-normal);
    cursor: pointer;
}

.interactive-hover:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Indicadores de rendimiento */
.performance-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
}

.performance-excellent {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.performance-good {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.performance-needs-improvement {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Animaciones de carga */
.loading-skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius);
}

/* Value Cards for Commercial Presentation */
.value-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.value-icon i {
    font-size: 1.8rem;
    color: white;
}

.value-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Feature Highlight Badges */
.feature-highlight {
    display: flex;
    justify-content: center;
}

.feature-highlight .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Utilidades adicionales */
.text-gradient {
    background: var(--gradient-sport-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-weight-bold);
}

.border-sport {
    border: 2px solid var(--sport-primary) !important;
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-sport-primary) 1;
}

.hover-lift {
    transition: var(--transition-normal);
}

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

/* Estilos para las secciones del sidebar - Alineado con Welcome Banner */
.nav-section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin: 1.5rem 1rem 0.75rem 1rem !important;
    position: relative;
}

.nav-section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, #ffd700, #ffed4e);
    border-radius: 1px;
}

.nav-section-header small {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
}

/* Dropdown menu styles for sidebar */
.sidebar .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sidebar .dropdown-item {
    color: var(--gray-700);
    transition: var(--transition-fast);
    border-radius: var(--border-radius);
    margin: 0.25rem;
}

.sidebar .dropdown-item:hover {
    background: var(--gradient-sport-primary);
    color: white;
    transform: translateX(4px);
}

/* ===== ESTILOS PARA CHECKBOXES PERSONALIZADOS ===== */

/* Contenedor de la cuadrícula de checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

/* Estilos para cada opción de checkbox */
.checkbox-grid .form-check {
    margin: 0;
    padding: 0;
}

/* Contenedor del checkbox personalizado */
.custom-checkbox-deportes .form-check,
.custom-checkbox-grupos .form-check,
.custom-checkbox-fases .form-check {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Efectos hover para los checkboxes */
.custom-checkbox-deportes .form-check:hover {
    border-color: var(--sport-primary);
    background: rgba(30, 58, 138, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.custom-checkbox-grupos .form-check:hover {
    border-color: var(--sport-secondary);
    background: rgba(5, 150, 105, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.custom-checkbox-fases .form-check:hover {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Estilos para checkboxes seleccionados */
.custom-checkbox-deportes .form-check:has(input:checked) {
    border-color: var(--sport-primary);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(30, 58, 138, 0.05) 100%);
    box-shadow: var(--shadow-md);
}

.custom-checkbox-grupos .form-check:has(input:checked) {
    border-color: var(--sport-secondary);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    box-shadow: var(--shadow-md);
}

.custom-checkbox-fases .form-check:has(input:checked) {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    box-shadow: var(--shadow-md);
}

/* Ocultar el checkbox nativo */
.checkbox-grid input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Crear checkbox personalizado */
.checkbox-grid .form-check-label {
    position: relative;
    padding-left: 40px;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    line-height: 1.5;
    display: block;
    transition: var(--transition-fast);
    font-size: 15px;
    word-wrap: break-word;
    flex: 1;
}

.checkbox-grid .form-check-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 5px;
    background: var(--white);
    transition: var(--transition-fast);
}

.checkbox-grid .form-check-label:after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 16px;
    color: var(--white);
    font-size: 15px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-50%) scale(0);
    transition: var(--transition-fast);
}

/* Estados del checkbox personalizado para deportes */
.custom-checkbox-deportes input:checked + .form-check-label:before {
    background: var(--sport-primary);
    border-color: var(--sport-primary);
}

.custom-checkbox-deportes input:checked + .form-check-label:after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.custom-checkbox-deportes input:checked + .form-check-label {
    color: var(--sport-primary);
    font-weight: var(--font-weight-semibold);
}

/* Estados del checkbox personalizado para grupos */
.custom-checkbox-grupos input:checked + .form-check-label:before {
    background: var(--sport-secondary);
    border-color: var(--sport-secondary);
}

.custom-checkbox-grupos input:checked + .form-check-label:after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.custom-checkbox-grupos input:checked + .form-check-label {
    color: var(--sport-secondary);
    font-weight: var(--font-weight-semibold);
}

/* Estados del checkbox personalizado para fases */
.custom-checkbox-fases input:checked + .form-check-label:before {
    background: var(--warning-color);
    border-color: var(--warning-color);
}

.custom-checkbox-fases input:checked + .form-check-label:after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.custom-checkbox-fases input:checked + .form-check-label {
    color: var(--warning-color);
    font-weight: var(--font-weight-semibold);
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
        max-height: 350px;
        padding: 16px;
        gap: 14px;
    }
    
    .custom-checkbox-deportes .form-check,
    .custom-checkbox-grupos .form-check,
    .custom-checkbox-fases .form-check {
        padding: 14px 16px;
        min-height: 56px;
    }
    
    .checkbox-grid .form-check-label {
        font-size: 15px;
        padding-left: 38px;
        line-height: 1.4;
    }
    
    .checkbox-grid .form-check-label:before {
        width: 20px;
        height: 20px;
    }
    
    .checkbox-grid .form-check-label:after {
        left: 4px;
        font-size: 14px;
        transform: translateY(-50%);
    }
}

/* Responsive para tablets */
@media (max-width: 992px) and (min-width: 769px) {
    .checkbox-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 14px;
        padding: 18px;
    }
    
    .custom-checkbox-deportes .form-check,
    .custom-checkbox-grupos .form-check,
    .custom-checkbox-fases .form-check {
        padding: 15px 18px;
        min-height: 58px;
    }
}

/* Animación de entrada para los checkboxes */
.checkbox-grid .form-check {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicador de selección múltiple */
.checkbox-grid:before {
    content: attr(data-selected) ' seleccionados';
    position: sticky;
    top: 0;
    background: var(--info-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 10px;
    text-align: center;
    display: none;
}

.checkbox-grid[data-selected]:not([data-selected="0"]):before {
    display: block;
}

/* ===== ESTILOS PARA LAYOUT DE VINCULACIONES EN FILAS ===== */

/* Contenedor principal de vinculaciones */
.vinculaciones-container {
    margin-bottom: 2rem;
}

/* Cards de vinculaciones en formato de fila */
.vinculacion-card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.vinculacion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Headers de las cards con diseño mejorado */
.vinculacion-card .card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.vinculacion-card .card-header .row {
    margin: 0;
}

.vinculacion-card .card-header h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.vinculacion-card .card-header small {
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Iconos decorativos en el header */
.vinculacion-card .card-header .col-auto i {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.vinculacion-card:hover .card-header .col-auto i {
    opacity: 0.5;
}

/* Body de las cards */
.vinculacion-card .card-body {
    padding: 1.5rem;
    background: #fafbfc;
}

.vinculacion-card .form-group .form-label {
    color: #495057;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Footer de las cards */
.vinculacion-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 0.875rem 1.5rem;
    border-radius: 0 0 12px 12px;
}

.vinculacion-card .card-footer small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Colores específicos para cada tipo de vinculación */
.vinculacion-deportes {
    border-left: 4px solid #007bff;
}

.vinculacion-deportes .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.vinculacion-grupos {
    border-left: 4px solid #28a745;
}

.vinculacion-grupos .card-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.vinculacion-fases {
    border-left: 4px solid #ffc107;
}

.vinculacion-fases .card-header {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529 !important;
}

.vinculacion-fases .card-header h5,
.vinculacion-fases .card-header small {
    color: #212529 !important;
}

/* Responsive para el nuevo layout */
@media (max-width: 768px) {
    .vinculacion-card .card-header {
        padding: 1rem 1.25rem;
    }
    
    .vinculacion-card .card-body {
        padding: 1.25rem;
    }
    
    .vinculacion-card .card-footer {
        padding: 0.75rem 1.25rem;
    }
    
    .vinculacion-card .card-header h5 {
        font-size: 1.1rem;
    }
    
    .vinculacion-card .card-header small {
        font-size: 0.8rem;
    }
}

/* Animaciones de entrada */
.vinculacion-card {
    animation: slideInUp 0.6s ease-out;
}

.vinculacion-card:nth-child(1) { animation-delay: 0.1s; }
.vinculacion-card:nth-child(2) { animation-delay: 0.2s; }
.vinculacion-card:nth-child(3) { animation-delay: 0.3s; }

/* ===== ESTILOS PARA IMÁGENES DE PERFIL DE DEPORTISTAS ===== */

/* Imagen de perfil pequeña (para listas) */
.athlete-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.athlete-profile-img:hover {
    border-color: var(--sport-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Imagen de perfil pequeña para tablas compactas */
.athlete-profile-img-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xs);
}

.athlete-profile-img-sm:hover {
    border-color: var(--sport-secondary);
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

/* Imagen de perfil grande (para detalles y encabezados) */
.athlete-profile-img-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-200);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.athlete-profile-img-large:hover {
    border-color: var(--sport-primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Imagen de perfil extra grande (para perfiles principales) */
.athlete-profile-img-xl {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gray-200);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.athlete-profile-img-xl:hover {
    border-color: var(--sport-primary);
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Contenedor de avatar para mantener compatibilidad */
.athlete-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.athlete-avatar-sm {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estados especiales */
.athlete-profile-img.loading {
    opacity: 0.6;
    filter: blur(1px);
}

.athlete-profile-img.error {
    border-color: var(--danger-color);
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .athlete-profile-img-large {
        width: 60px;
        height: 60px;
    }
    
    .athlete-profile-img-xl {
        width: 80px;
        height: 80px;
    }
}

/* ===== ESTILOS PARA IMÁGENES DE PERFIL DE USUARIO ===== */

/* Imagen de perfil en el perfil de usuario */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--sport-primary);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--sport-secondary);
}

/* Contenedor del avatar en el perfil */
.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-avatar i {
    font-size: 6rem;
    color: var(--gray-400);
}

/* Vista previa de imagen en formularios */
.profile-image-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-preview img {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-300);
    transition: all 0.3s ease;
}

.profile-image-preview img:hover {
    border-color: var(--sport-primary);
    transform: scale(1.02);
}

/* Estilos para el input de archivo */
.form-control-file {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-700);
    background-color: var(--white);
    background-image: none;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-file:focus {
    color: var(--gray-700);
    background-color: var(--white);
    border-color: var(--sport-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Imagen de perfil pequeña para navegación */
.profile-image-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

/* Imagen de perfil mediana para listas */
.profile-image-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

/* Responsive para imágenes de perfil */
@media (max-width: 768px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .profile-avatar i {
        font-size: 4rem;
    }
}

/* Flechas de orden en encabezados de tablas - color blanco */
.table thead .fa-sort-up,
.table thead .fa-sort-down {
    color: var(--white) !important;
}