/* ===================================
   COMPONENTS.CSS - Rey de la Cancha
   Reusable UI Components: Badges, Cards, Alerts, Modals, Forms
   =================================== */

/* ===================================
   SIDEBAR DRAWER - Estilo Android Mejorado
   =================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height para móviles */
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    overscroll-behavior: contain;
}

.sidebar-drawer.active {
    right: 0;
}

[data-theme="dark"] .sidebar-drawer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role {
    font-size: 0.75rem;
    opacity: 0.9;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand img {
    width: 40px;
    height: 40px;
}

.sidebar-brand span {
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

/* Sidebar Body */
.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-section {
    margin-bottom: 0.5rem;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    padding: 0.5rem 1.25rem;
    margin-top: 0.5rem;
}

[data-theme="dark"] .sidebar-section-title {
    color: #6b7280;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-item i {
    font-size: 1.1rem;
    color: #10b981;
    width: 24px;
    text-align: center;
}

.sidebar-item:hover {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-left-color: #10b981;
}

[data-theme="dark"] .sidebar-item {
    color: #e5e7eb;
}

[data-theme="dark"] .sidebar-item:hover {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.sidebar-item-primary {
    color: #10b981 !important;
    font-weight: 600;
}

.sidebar-item-success {
    color: #059669 !important;
    font-weight: 600;
}

.sidebar-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

[data-theme="dark"] .sidebar-footer {
    border-top-color: #2a2a2a;
    background: #1a1a1a;
}

.sidebar-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ===================================
   NAVBAR COMPACTO
   =================================== */
.navbar-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    border-bottom: 2px solid rgba(16, 185, 129, 0.15);
    min-height: 56px;
}

.navbar-modern .container-fluid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

[data-theme="dark"] .navbar-modern {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.98) 0%, rgba(10, 10, 10, 0.95) 100%) !important;
    border-bottom-color: rgba(16, 185, 129, 0.25);
}

.navbar-actions-compact {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-modern-compact {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-link-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-link-compact i {
    font-size: 1rem;
    color: #10b981;
}

.nav-link-compact:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

[data-theme="dark"] .nav-link-compact {
    color: #e5e7eb;
}

[data-theme="dark"] .nav-link-compact:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* Botones compactos */
.btn-icon-compact {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    position: relative;
}

.btn-icon-compact i {
    font-size: 1.15rem;
}

.btn-icon-compact:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

[data-theme="dark"] .btn-icon-compact {
    color: #e5e7eb;
}

[data-theme="dark"] .btn-icon-compact:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* Theme toggle en navbar compacto */
.btn-icon-compact .theme-icon-light,
.btn-icon-compact .theme-icon-dark {
    position: absolute;
    transition: all 0.3s ease;
}

.btn-icon-compact .theme-icon-light {
    color: #f59e0b;
    opacity: 1;
}

.btn-icon-compact .theme-icon-dark {
    color: #6366f1;
    opacity: 0;
}

[data-theme="dark"] .btn-icon-compact .theme-icon-light {
    opacity: 0;
}

[data-theme="dark"] .btn-icon-compact .theme-icon-dark {
    opacity: 1;
}

.notification-badge-compact {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
}

.btn-login-compact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-login-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: white !important;
}

.btn-sidebar-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #10b981;
    flex-shrink: 0;
}

.btn-sidebar-toggle i {
    font-size: 1.35rem;
    line-height: 1;
}

.btn-sidebar-toggle:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

[data-theme="dark"] .btn-sidebar-toggle {
    border-color: rgba(52, 211, 153, 0.3);
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}

[data-theme="dark"] .btn-sidebar-toggle:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #34d399;
}

/* ===================================
   NAVBAR RESPONSIVE - MÓVILES MEJORADO
   =================================== */

/* Brand responsive */
.brand-modern {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-modern:hover .brand-logo {
    transform: scale(1.1) rotate(-5deg);
}

.brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: #10b981;
    white-space: nowrap;
}

[data-theme="dark"] .brand-text {
    color: #34d399;
}

/* ===================================
   MOBILE RESPONSIVE (max-width: 575.98px)
   =================================== */
@media (max-width: 575.98px) {
    /* Navbar compacto móvil */
    .navbar-modern {
        padding: 0.5rem 0;
        min-height: 52px;
    }
    
    .navbar-modern .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        gap: 0.5rem;
    }
    
    .brand-logo {
        width: 34px;
        height: 34px;
    }
    
    .brand-text {
        display: none !important;
    }
    
    /* Botones de acción más compactos */
    .btn-icon-compact {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    
    .btn-icon-compact i {
        font-size: 1.1rem;
    }
    
    /* Botón hamburguesa más visible en móvil */
    .btn-sidebar-toggle {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        border: none !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    
    .btn-sidebar-toggle i {
        font-size: 1.4rem;
        color: white !important;
    }
    
    .btn-sidebar-toggle:hover,
    .btn-sidebar-toggle:active {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    
    .navbar-actions-compact {
        gap: 0.35rem;
        display: flex !important;
        align-items: center !important;
    }
    
    .notification-badge-compact {
        top: 2px;
        right: 2px;
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        min-width: 15px;
    }
    
    /* Ocultar botón de login en móvil (se usa bottom nav) */
    .btn-login-compact span {
        display: none !important;
    }
    
    .btn-login-compact {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }
    
    /* Sidebar móvil optimizado */
    .sidebar-drawer {
        width: 85vw;
        max-width: 320px;
    }
    
    .sidebar-header {
        padding: 1.25rem 1rem;
        min-height: 80px;
        padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
    }
    
    .sidebar-avatar {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .sidebar-user-name {
        font-size: 0.95rem;
        max-width: 140px;
    }
    
    .sidebar-user-role {
        font-size: 0.75rem;
    }
    
    .sidebar-body {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px) + 70px);
    }
    
    .sidebar-section-title {
        font-size: 0.7rem;
        padding: 0.5rem 1.25rem;
    }
    
    .sidebar-item {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        gap: 0.875rem;
        min-height: 48px;
    }
    
    .sidebar-item i {
        font-size: 1.1rem;
        width: 24px;
    }
    
    .sidebar-close {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .sidebar-footer {
        padding: 1rem 1.25rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    
    .sidebar-logout {
        padding: 0.875rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
}

/* ===================================
   TABLET RESPONSIVE (576px - 991.98px)
   =================================== */
@media (min-width: 576px) and (max-width: 991.98px) {
    .navbar-modern {
        padding: 0.5rem 0;
    }
    
    .navbar-actions-compact {
        gap: 0.5rem;
    }
    
    .sidebar-drawer {
        width: 320px;
    }
}

/* Tablet: ajustes intermedios */
@media (min-width: 576px) and (max-width: 991.98px) {
    .navbar-actions-compact {
        gap: 0.35rem;
    }
}

/* Ocultar nav central en pantallas pequeñas y medianas */
@media (max-width: 1199.98px) {
    .nav-modern-compact {
        display: none !important;
    }
}

/* Large screens (xl+): mostrar nav central */
@media (min-width: 1200px) {
    .nav-modern-compact {
        display: flex !important;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 350px) {
    .sidebar-drawer {
        width: 260px;
        max-width: 95vw;
    }
    
    .sidebar-header {
        padding: 0.875rem;
        min-height: 60px;
    }
    
    .sidebar-avatar {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .sidebar-user-name {
        font-size: 0.8rem;
        max-width: 100px;
    }
    
    .sidebar-user-role {
        font-size: 0.65rem;
    }
    
    .sidebar-section-title {
        font-size: 0.6rem;
        padding: 0.35rem 0.875rem;
    }
    
    .sidebar-item {
        padding: 0.65rem 0.875rem;
        font-size: 0.8rem;
        gap: 0.65rem;
    }
    
    .sidebar-item i {
        font-size: 0.9rem;
        width: 18px;
    }
    
    .sidebar-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

/* ===== BADGES ===== */
.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.badge-attendance-high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-attendance-medium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.badge-attendance-low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-status-active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
}

.badge-status-suspended {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
}

.badge-status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.badge-position {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
}

.badge-ghost {
    background: linear-gradient(135deg, #fecaca 0%, #fee2e2 100%);
    color: #991b1b;
    border: 2px solid #dc2626;
}

/* ===== CARDS ===== */
.card-player {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: var(--bg-primary, white);
    color: var(--text-primary, #212529);
}

[data-theme="dark"] .card-player {
    background: #2d2d2d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-player:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .card-player:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.card-player-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    border-bottom: 3px solid #667eea;
}

[data-theme="dark"] .card-player-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.card-player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.card-team {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-primary, white);
    color: var(--text-primary, #212529);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

[data-theme="dark"] .card-team {
    background: #2d2d2d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-team:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .card-team:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.card-team-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.card-match {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-primary, white);
    color: var(--text-primary, #212529);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

[data-theme="dark"] .card-match {
    background: #2d2d2d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-match::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.card-match-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

[data-theme="dark"] .card-match-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.card-stats {
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    z-index: 1;
}

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

.card-stats-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.card-stats-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-stats-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* ===== ALERTS ===== */
.alert-modern {
    border: none;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-modern-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-success-modern {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #10b981;
    color: #065f46;
}

.alert-warning-modern {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

.alert-danger-modern {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: #ef4444;
    color: #991b1b;
}

.alert-info-modern {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: #3b82f6;
    color: #1e3a8a;
}

/* ===== BUTTONS EXTRA ===== */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

.btn-outline-modern {
    border: 2px solid #667eea;
    color: #667eea;
    background: white;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===== BUTTON LOADING STATE ===== */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
    cursor: not-allowed !important;
}

.btn-loading:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    vertical-align: middle;
}

/* Animación de pulso suave para el botón en loading */
.btn-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btn-shimmer 1.5s infinite;
}

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

/* Variantes de spinner para botones oscuros/claros */
.btn-outline-primary.btn-loading .spinner-border,
.btn-outline-secondary.btn-loading .spinner-border,
.btn-outline-success.btn-loading .spinner-border,
.btn-outline-danger.btn-loading .spinner-border,
.btn-outline-warning.btn-loading .spinner-border,
.btn-outline-info.btn-loading .spinner-border,
.btn-outline-modern.btn-loading .spinner-border {
    border-color: currentColor;
    border-right-color: transparent;
}

.btn-primary.btn-loading .spinner-border,
.btn-success.btn-loading .spinner-border,
.btn-danger.btn-loading .spinner-border,
.btn-gradient-primary.btn-loading .spinner-border,
.btn-gradient-success.btn-loading .spinner-border,
.btn-gradient-danger.btn-loading .spinner-border {
    border-color: rgba(255,255,255,0.6);
    border-right-color: white;
}

/* Prevenir interacción durante loading */
form.form-submitting {
    pointer-events: none;
    opacity: 0.9;
}

form.form-submitting input,
form.form-submitting select,
form.form-submitting textarea,
form.form-submitting button {
    pointer-events: none;
}

/* ===== FORMS ===== */
.form-control-modern {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary, white);
    color: var(--text-primary, #212529);
}

[data-theme="dark"] .form-control-modern {
    background: #2d2d2d;
    border-color: #4b5563;
    color: #e2e8f0;
}

.form-control-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

[data-theme="dark"] .form-control-modern:focus {
    background: #3a3a3a;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.form-label-modern {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

[data-theme="dark"] .form-label-modern {
    color: #e2e8f0;
}

.form-select-modern {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary, white);
    color: var(--text-primary, #212529);
    cursor: pointer;
}

[data-theme="dark"] .form-select-modern {
    background: #2d2d2d;
    border-color: #4b5563;
    color: #e2e8f0;
}

.form-select-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

[data-theme="dark"] .form-select-modern:focus {
    background: #3a3a3a;
}

.form-check-modern {
    padding-left: 2rem;
}

.form-check-modern .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    cursor: pointer;
}

.form-check-modern .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

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

.input-group-modern {
    display: flex;
    gap: 0.5rem;
}

.input-group-modern .form-control-modern {
    flex: 1;
}

/* ===== MODALS ===== */
.modal-modern .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-modern .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 2rem;
    border: none;
}

.modal-modern .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-modern .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-modern .modal-body {
    padding: 2rem;
    background: var(--bg-primary, white);
    color: var(--text-primary, #212529);
}

[data-theme="dark"] .modal-modern .modal-body {
    background: #2d2d2d;
}

.modal-modern .modal-footer {
    border: none;
    padding: 1rem 2rem 2rem 2rem;
    background: var(--bg-primary, white);
}

[data-theme="dark"] .modal-modern .modal-footer {
    background: #2d2d2d;
}

/* ===== PROGRESS BARS ===== */
.progress-modern {
    height: 12px;
    border-radius: 10px;
    background: #f1f5f9;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .progress-modern {
    background: #1a1a1a;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-modern .progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-modern-success .progress-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.progress-modern-warning .progress-bar {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.progress-modern-danger .progress-bar {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* ===== TOOLTIPS ===== */
.tooltip-modern {
    position: relative;
    display: inline-block;
}

.tooltip-modern .tooltip-text {
    visibility: hidden;
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip-modern .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
}

.tooltip-modern:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===== PAGINATION ===== */
.pagination-modern {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pagination-modern .page-item {
    margin: 0;
}

.pagination-modern .page-link {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    background: var(--bg-primary, white);
}

[data-theme="dark"] .pagination-modern .page-link {
    background: #2d2d2d;
    border-color: #4b5563;
    color: #818cf8;
}

.pagination-modern .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* ===== TABS ===== */
.nav-tabs-modern {
    border: none;
    gap: 0.5rem;
}

.nav-tabs-modern .nav-link {
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 1rem 2rem;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #f8fafc;
}

[data-theme="dark"] .nav-tabs-modern .nav-link {
    background: #1a1a1a;
    color: #94a3b8;
}

.nav-tabs-modern .nav-link:hover {
    background: #e5e7eb;
    color: #667eea;
}

[data-theme="dark"] .nav-tabs-modern .nav-link:hover {
    background: #2d2d2d;
    color: #818cf8;
}

.nav-tabs-modern .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-content-modern {
    border: 2px solid #e5e7eb;
    border-radius: 0 12px 12px 12px;
    padding: 2rem;
    background: var(--bg-primary, white);
    color: var(--text-primary, #212529);
}

[data-theme="dark"] .tab-content-modern {
    background: #2d2d2d;
    border-color: #4b5563;
}

/* ===== LOADING SPINNER ===== */
.spinner-modern {
    width: 50px;
    height: 50px;
    border: 5px solid #f1f5f9;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

[data-theme="dark"] .loading-overlay {
    background: rgba(26, 26, 26, 0.95);
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .empty-state-title {
    color: #f1f5f9;
}

.empty-state-description {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

[data-theme="dark"] .empty-state-description {
    color: #94a3b8;
}

/* ===================================
   RESPONSIVE UTILITIES
   =================================== */

/* Utilidades de display responsive */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Stack buttons vertically on mobile */
    .btn-group-mobile {
        flex-direction: column;
        width: 100%;
    }

    .btn-group-mobile .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Full width cards on mobile */
    .card-mobile-full {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    /* Hide unnecessary text on mobile */
    .hide-mobile-text {
        font-size: 0;
    }

    .hide-mobile-text::before {
        font-size: 1rem;
    }

    /* Adjust table for mobile */
    .table-responsive-mobile {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce padding on mobile */
    .px-mobile-0 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .py-mobile-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Center text on mobile */
    .text-mobile-center {
        text-align: center !important;
    }

    /* Adjust image sizes */
    .img-mobile-responsive {
        max-width: 100%;
        height: auto;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .tablet-hidden {
        display: none !important;
    }

    .tablet-visible {
        display: block !important;
    }
}

/* Touch-friendly sizing */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for touch devices */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem !important;
    }

    .form-control, .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .card {
        margin-bottom: 1rem;
    }
}

/* Hover effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}

[data-theme="dark"] .hover-lift:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.5) !important;
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* ========================================
   FOOTER MODERNO
======================================== */
.footer-custom {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 4rem 0 0;
    margin-top: 5rem;
    border-top: 3px solid #10b981;
}

.footer-custom h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-custom h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
}

.footer-custom p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-custom ul {
    padding: 0;
    margin: 0;
}

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

.footer-custom ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-custom ul li a:hover {
    color: #10b981;
    padding-left: 5px;
}

.footer-custom .social-links {
    margin-top: 1rem;
}

.footer-custom .social-links small {
    color: #94a3b8;
    font-size: 0.85rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.8;
}

.footer-bottom a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #f59e0b;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-custom {
        padding: 3rem 0 0;
        margin-top: 3rem;
    }
    
    .footer-custom h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-custom .col-lg-4,
    .footer-custom .col-lg-2,
    .footer-custom .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* ========================================
   BOOKING CARDS
======================================== */
.booking-pending {
    background: #fef3c7;
    border-left: 4px solid #d97706;
    transition: all 0.3s ease;
}

[data-theme="dark"] .booking-pending {
    background: rgba(217, 119, 6, 0.15);
    border-left-color: #f59e0b;
}

.booking-pending:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

[data-theme="dark"] .booking-pending:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.booking-pending-badge {
    background: #d97706;
    color: white;
}

[data-theme="dark"] .booking-pending-badge {
    background: #f59e0b;
    color: #000000;
}

.booking-confirmed {
    background: #d1fae5;
    border-left: 4px solid #059669;
    transition: all 0.3s ease;
}

[data-theme="dark"] .booking-confirmed {
    background: rgba(5, 150, 105, 0.15);
    border-left-color: #10b981;
}

.booking-confirmed:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

[data-theme="dark"] .booking-confirmed:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.booking-confirmed-badge {
    background: #059669;
    color: white;
}

[data-theme="dark"] .booking-confirmed-badge {
    background: #10b981;
    color: #000000;
}

.booking-cancelled {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    transition: all 0.3s ease;
}

[data-theme="dark"] .booking-cancelled {
    background: rgba(220, 38, 38, 0.15);
    border-left-color: #ef4444;
}

.booking-cancelled:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

[data-theme="dark"] .booking-cancelled:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.booking-cancelled-badge {
    background: #dc2626;
    color: white;
}

[data-theme="dark"] .booking-cancelled-badge {
    background: #ef4444;
    color: #ffffff;
}

.booking-completed {
    background: #e2e8f0;
    border-left: 4px solid #64748b;
    transition: all 0.3s ease;
}

[data-theme="dark"] .booking-completed {
    background: rgba(100, 116, 139, 0.15);
    border-left-color: #94a3b8;
}

.booking-completed:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

[data-theme="dark"] .booking-completed:hover {
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.4);
}

.booking-completed-badge {
    background: #64748b;
    color: white;
}

[data-theme="dark"] .booking-completed-badge {
    background: #94a3b8;
    color: #000000;
}

/* Print styles */
@media print {
    .navbar-custom,
    .footer-custom,
    .back-to-top,
    .scroll-progress,
    .btn,
    .no-print {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .card {
        border: 1px solid #dee2e6;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* ========================================
   LANDING PAGE FEATURE BOXES
======================================== */
.feature-box {
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .feature-box {
    background: rgba(28, 28, 28, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-box:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .feature-box:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.step-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

[data-theme="dark"] .step-box {
    background: rgba(28, 28, 28, 0.8);
    border-left-color: #10b981;
}

.step-box:hover {
    transform: translateX(10px);
}

.step-box-2 {
    border-left-color: #34d399;
}

.step-box-3 {
    border-left-color: #6ee7b7;
}

.pricing-feature {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 12px;
}

[data-theme="dark"] .pricing-feature {
    background: rgba(28, 28, 28, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ===================================
   NAVBAR MODERNO PREMIUM
   =================================== */

/* Navbar Container - Glassmorphism */
.navbar-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
}

/* Línea de acento verde brillante en la parte inferior */
.navbar-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(16, 185, 129, 0.6) 20%, 
        rgba(16, 185, 129, 1) 50%, 
        rgba(16, 185, 129, 0.6) 80%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar-modern.scrolled::after {
    opacity: 1;
}

/* Navbar on scroll - más compacto */
.navbar-modern.scrolled {
    padding: 0.35rem 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .navbar-modern,
html[data-bs-theme="dark"] .navbar-modern,
body.dark-mode .navbar-modern {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.98) 0%, rgba(18, 18, 24, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(16, 185, 129, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .navbar-modern::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(16, 185, 129, 0.4) 20%, 
        rgba(16, 185, 129, 0.8) 50%, 
        rgba(16, 185, 129, 0.4) 80%, 
        transparent 100%);
}

/* Brand Container */
.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.brand-logo {
    height: 42px;
    width: 42px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.3));
}

.brand-modern {
    text-decoration: none;
}

.brand-modern:hover .brand-logo {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 4px 16px rgba(16, 185, 129, 0.5));
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: none;
    letter-spacing: -0.02em;
    position: relative;
}

/* Efecto de brillo en hover */
.brand-modern:hover .brand-text {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

@media (min-width: 576px) {
    .brand-text {
        display: inline;
    }
}

/* Mobile Toggle Button - Premium */
.modern-toggler {
    border: none;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 0.6rem;
    position: relative;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.modern-toggler:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    transform: scale(1.05);
}

.modern-toggler:active {
    transform: scale(0.95);
}

.modern-toggler span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .modern-toggler {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
}

[data-theme="dark"] .modern-toggler span {
    background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 1px 6px rgba(16, 185, 129, 0.4);
}

/* Animación hamburger → X */
.modern-toggler:not(.collapsed) span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.modern-toggler:not(.collapsed) span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Items Container */
.nav-modern {
    gap: 0.35rem;
}

/* Nav Link Premium */
.nav-link-modern {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

/* Efecto de brillo en hover */
.nav-link-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(16, 185, 129, 0.1) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

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

[data-theme="dark"] .nav-link-modern,
html[data-bs-theme="dark"] .nav-link-modern,
body.dark-mode .nav-link-modern {
    color: #e5e7eb !important;
}

.nav-link-modern i {
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #10b981;
    display: inline-block;
    margin-right: 0.2rem;
}

[data-theme="dark"] .nav-link-modern i {
    color: #34d399;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.4));
}

.nav-link-modern span {
    display: inline-block;
}

.nav-link-modern:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
    color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .nav-link-modern:hover,
html[data-bs-theme="dark"] .nav-link-modern:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.12) 100%);
    color: #34d399 !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.nav-link-modern:hover i {
    transform: scale(1.15);
    color: #059669;
}

[data-theme="dark"] .nav-link-modern:hover i {
    color: #34d399;
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.6));
}

.nav-link-modern.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.nav-link-modern.active i {
    color: white;
    filter: none;
}

.nav-link-admin {
    position: relative;
}

.nav-link-admin::after {
    content: 'ADMIN';
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.55rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    padding: 2px 5px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* Dropdown Premium con glassmorphism */
.dropdown-modern .dropdown-toggle::after {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top-color: #10b981;
}

[data-theme="dark"] .dropdown-modern .dropdown-toggle::after {
    border-top-color: #34d399;
}

.dropdown-modern.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu-modern {
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 
        0 10px 50px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(16, 185, 129, 0.05);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 0.75rem;
    min-width: 250px;
    animation: dropdownSlide 0.25s ease-out;
    transform-origin: top center;
}

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

[data-theme="dark"] .dropdown-menu-modern,
html[data-bs-theme="dark"] .dropdown-menu-modern,
body.dark-mode .dropdown-menu-modern {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 
        0 10px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(16, 185, 129, 0.1);
}

.dropdown-header {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.75rem 1rem 0.5rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .dropdown-header {
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.dropdown-item-modern {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem !important;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #374151 !important;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .dropdown-item-modern,
html[data-bs-theme="dark"] .dropdown-item-modern,
body.dark-mode .dropdown-item-modern {
    color: #e5e7eb !important;
}

.dropdown-item-modern i {
    font-size: 1.1rem;
    width: 26px;
    text-align: center;
    color: #10b981;
    transition: all 0.25s ease;
}

[data-theme="dark"] .dropdown-item-modern i {
    color: #34d399;
}

.dropdown-item-modern:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
    color: #059669 !important;
    transform: translateX(6px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.dropdown-item-modern:hover i {
    transform: scale(1.15);
}

[data-theme="dark"] .dropdown-item-modern:hover,
html[data-bs-theme="dark"] .dropdown-item-modern:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.12) 100%);
    color: #34d399 !important;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25);
}

.dropdown-item-modern.text-danger {
    color: #ef4444 !important;
}

.dropdown-item-modern.text-danger i {
    color: #ef4444;
}

.dropdown-item-modern.text-danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.08) 100%);
    color: #dc2626 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.dropdown-divider {
    margin: 0.6rem 0.5rem;
    opacity: 0.15;
    border-color: #10b981;
}

[data-theme="dark"] .dropdown-divider {
    border-color: #34d399;
    opacity: 0.2;
}

/* User Info Header Premium */
.user-info {
    padding: 1rem !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: 10px;
    margin-bottom: 0.6rem;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .user-info,
html[data-bs-theme="dark"] .user-info {
    color: #34d399 !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
    border-color: rgba(52, 211, 153, 0.2);
}

.user-info i {
    color: #10b981;
}

[data-theme="dark"] .user-info i,
html[data-bs-theme="dark"] .user-info i {
    color: #34d399;
}

.user-email {
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    color: #374151 !important;
}

[data-theme="dark"] .user-email,
html[data-bs-theme="dark"] .user-email {
    color: #e5e7eb !important;
}

.admin-section {
    color: #f59e0b !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    margin: 0.25rem 0;
}

[data-theme="dark"] .admin-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

/* Theme Toggle Premium */
.theme-toggle-modern {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.theme-toggle-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle-modern:hover::before {
    opacity: 1;
}

.theme-toggle-modern:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

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

.theme-icon-light,
.theme-icon-dark {
    font-size: 1.2rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
}

.theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon-dark {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .theme-icon-light,
html[data-bs-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .theme-icon-dark,
html[data-bs-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Icon Button Premium */
.btn-icon-modern {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid rgba(16, 185, 129, 0.25);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #10b981 !important;
    text-decoration: none;
    position: relative;
}

[data-theme="dark"] .btn-icon-modern,
html[data-bs-theme="dark"] .btn-icon-modern,
body.dark-mode .btn-icon-modern {
    border-color: rgba(52, 211, 153, 0.35);
    color: #34d399 !important;
}

.btn-icon-modern:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
    border-color: #10b981;
    transform: translateY(-3px);
    color: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .btn-icon-modern:hover,
html[data-bs-theme="dark"] .btn-icon-modern:hover,
body.dark-mode .btn-icon-modern:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.12) 100%);
    border-color: #34d399;
    color: #34d399 !important;
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.btn-icon-modern i {
    font-size: 1.2rem;
    color: inherit;
    transition: transform 0.3s ease;
}

.btn-icon-modern:hover i {
    transform: scale(1.1);
}

/* Notification Badge Premium */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: notificationPulse 2s infinite;
}

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

/* User Button Premium */
.btn-user-modern {
    height: 44px;
    padding: 0 1.1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-user-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-user-modern:hover::before {
    opacity: 1;
}

.btn-user-modern:hover {
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

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

.btn-user-modern i {
    font-size: 1.15rem;
}

/* Auth Buttons Premium */
.btn-auth-modern {
    height: 44px;
    padding: 0 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-auth-login {
    background: transparent;
    border-color: #10b981;
    color: #10b981 !important;
}

[data-theme="dark"] .btn-auth-login,
html[data-bs-theme="dark"] .btn-auth-login,
body.dark-mode .btn-auth-login {
    border-color: #34d399;
    color: #34d399 !important;
}

.btn-auth-login:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
    transform: translateY(-3px);
    color: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .btn-auth-login:hover,
html[data-bs-theme="dark"] .btn-auth-login:hover,
body.dark-mode .btn-auth-login:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.12) 100%);
    color: #34d399 !important;
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.btn-auth-register {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-auth-register::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-auth-register:hover::before {
    opacity: 1;
}

.btn-auth-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    color: white !important;
}

/* ==========================================
   MOBILE RESPONSIVE PREMIUM
   ========================================== */
@media (max-width: 991.98px) {
    .navbar-modern {
        padding: 0.5rem 0;
    }
    
    /* Animación del menú colapsable */
    .navbar-collapse {
        margin-top: 1rem;
        max-height: 75vh;
        overflow-y: auto;
        padding: 1rem;
        background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 100%);
        border-radius: 16px;
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(16, 185, 129, 0.15);
        animation: mobileMenuSlide 0.3s ease-out;
    }
    
    [data-theme="dark"] .navbar-collapse {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 30, 0.95) 100%);
        border-color: rgba(16, 185, 129, 0.25);
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.4),
            0 0 60px rgba(16, 185, 129, 0.05);
    }
    
    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-modern {
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
    }
    
    .nav-link-modern {
        width: 100%;
        justify-content: flex-start;
        padding: 0.9rem 1.25rem !important;
        border-radius: 14px;
        font-size: 0.95rem;
    }
    
    .nav-link-modern i {
        font-size: 1.25rem;
        width: 28px;
    }
    
    .navbar-actions {
        margin-top: 1.25rem;
        padding-top: 1rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        border-top: 1px solid rgba(16, 185, 129, 0.15);
    }
    
    [data-theme="dark"] .navbar-actions {
        border-top-color: rgba(16, 185, 129, 0.25);
    }
    
    .btn-auth-modern {
        flex: 1;
        justify-content: center;
        min-width: 120px;
        height: 48px;
    }
    
    .dropdown-menu-modern {
        width: 100%;
        margin-top: 0.5rem;
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid rgba(16, 185, 129, 0.2);
        background: rgba(255, 255, 255, 0.6) !important;
    }
    
    [data-theme="dark"] .dropdown-menu-modern {
        background: rgba(15, 23, 42, 0.6) !important;
    }
}

/* Pantallas medianas - Laptops pequeños (MacBook Air 13") */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-link-modern {
        padding: 0.5rem 0.65rem !important;
        font-size: 0.82rem;
    }
    
    .nav-link-modern i {
        font-size: 0.95rem;
        margin-right: 0.15rem;
    }
    
    .brand-text {
        font-size: 1.05rem;
    }
    
    .brand-logo {
        height: 34px;
        width: 34px;
    }
    
    .btn-auth-modern {
        padding: 0.4rem 0.85rem;
        font-size: 0.82rem;
        height: 38px;
    }
    
    .btn-user-modern {
        height: 38px;
        padding: 0 0.85rem;
        font-size: 0.82rem;
    }
    
    .theme-toggle-modern,
    .btn-icon-modern {
        width: 38px;
        height: 38px;
    }
    
    .theme-icon-light,
    .theme-icon-dark {
        font-size: 1rem;
    }
    
    .btn-icon-modern i {
        font-size: 1.05rem;
    }
    
    .navbar-actions {
        gap: 0.4rem;
    }
}

/* Móviles pequeños */
@media (max-width: 575.98px) {
    .navbar-actions {
        flex-wrap: wrap;
        gap: 0.6rem;
        justify-content: center;
    }
    
    .theme-toggle-modern,
    .btn-icon-modern {
        width: 42px;
        height: 42px;
    }
    
    .btn-user-modern {
        height: 42px;
        padding: 0 1rem;
    }
    
    .btn-user-modern span,
    .btn-auth-modern span {
        display: none;
    }
    
    .btn-auth-modern {
        min-width: auto;
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }
    
    .btn-auth-modern i {
        margin: 0;
    }
    
    .nav-link-modern {
        padding: 0.8rem 1rem !important;
    }
    
    .dropdown-item-modern {
        padding: 0.7rem 0.9rem !important;
    }
}

/* ============================================
   SPORT SELECTION CARDS
   ============================================ */

.sport-select-card {
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

[data-theme="dark"] .sport-select-card {
    border-color: #3a3a3a;
    background: #2d2d2d;
}

.sport-select-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.sport-select-card.sport-selected {
    border-color: #667eea;
    border-width: 3px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .sport-select-card.sport-selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.sport-select-card.sport-selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.sport-icon-large {
    font-size: 3rem;
    line-height: 1;
}

.sport-select-card h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.sport-select-card small {
    color: #6c757d;
}

[data-theme="dark"] .sport-select-card small {
    color: #9ca3af;
}

/* Sport Badges */
.badge.bg-gradient-sport {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 0.5rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==================== RESPONSIVE COMPONENTS ==================== */

/* === Sport Select Cards Responsive === */
@media (max-width: 768px) {
    .sport-select-card {
        padding: 16px;
    }
    
    .sport-icon-large {
        font-size: 2.5rem;
    }
    
    .sport-select-card h6 {
        font-size: 0.9rem;
    }
    
    .sport-select-card.sport-selected::after {
        width: 24px;
        height: 24px;
        font-size: 14px;
        top: 6px;
        right: 6px;
    }
}

@media (max-width: 576px) {
    .sport-select-card {
        padding: 12px;
    }
    
    .sport-icon-large {
        font-size: 2rem;
    }
    
    .sport-select-card h6 {
        font-size: 0.85rem;
    }
    
    .sport-select-card small {
        font-size: 0.7rem;
    }
}

/* === Player Cards Responsive === */
@media (max-width: 768px) {
    .card-player {
        border-radius: 12px;
    }
    
    .card-player-header {
        padding: 1rem;
    }
    
    .card-player-avatar {
        width: 60px;
        height: 60px;
    }
    
    .card-player-body {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .card-player-header {
        padding: 12px;
    }
    
    .card-player-avatar {
        width: 50px;
        height: 50px;
    }
    
    .card-player-name {
        font-size: 0.95rem;
    }
    
    .card-player-position {
        font-size: 0.75rem;
    }
}

/* === Badges Responsive === */
@media (max-width: 576px) {
    .badge-custom {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .badge-position {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .badge.bg-gradient-sport {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* === Alerts Responsive === */
@media (max-width: 576px) {
    .alert-custom {
        padding: 12px;
        border-radius: 10px;
        font-size: 0.875rem;
    }
    
    .alert-custom .alert-icon {
        font-size: 1.25rem;
    }
}

/* === Forms Responsive === */
@media (max-width: 768px) {
    .form-floating > label {
        font-size: 0.9rem;
    }
    
    .input-group-text {
        padding: 10px 12px;
    }
    
    .form-check {
        padding-left: 28px;
    }
}

/* === Modals Responsive === */
@media (max-width: 576px) {
    .modal-fullscreen-sm {
        max-width: 100%;
        margin: 0;
        height: 100%;
    }
    
    .modal-fullscreen-sm .modal-content {
        height: 100%;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 100px;
    }
}

/* === Lists Responsive === */
@media (max-width: 576px) {
    .list-group-item {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .list-group-item .badge {
        font-size: 0.7rem;
    }
}

/* === Tables Responsive === */
@media (max-width: 768px) {
    .table-card {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table th,
    .table td {
        white-space: nowrap;
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    /* Tablas de stack en móviles */
    .table-stack-mobile thead {
        display: none;
    }
    
    .table-stack-mobile tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 12px;
    }
    
    .table-stack-mobile td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .table-stack-mobile td:last-child {
        border-bottom: none;
    }
    
    .table-stack-mobile td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
    }
}

/* === Pagination Responsive === */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 40px;
        text-align: center;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        padding: 8px 10px;
    }
}

/* === Dropdowns Responsive === */
@media (max-width: 576px) {
    .dropdown-menu {
        min-width: 200px;
        font-size: 0.9rem;
    }
    
    .dropdown-item {
        padding: 10px 16px;
    }
    
    .dropdown-fullwidth-mobile {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 12px;
    }
}

/* === Tabs Responsive === */
@media (max-width: 576px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .nav-pills .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* === Accordions Responsive === */
@media (max-width: 576px) {
    .accordion-button {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 16px;
        font-size: 0.9rem;
    }
}

/* === Stats Cards Responsive === */
@media (max-width: 768px) {
    .stats-card {
        padding: 16px;
    }
    
    .stats-card .stats-value {
        font-size: 1.75rem;
    }
    
    .stats-card .stats-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .stats-card {
        padding: 12px;
    }
    
    .stats-card .stats-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .stats-card .stats-value {
        font-size: 1.5rem;
    }
    
    .stats-card .stats-label {
        font-size: 0.8rem;
    }
}

/* === Action Buttons Container Responsive === */
@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-icon-only {
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* === Empty State Responsive === */
@media (max-width: 576px) {
    .empty-state {
        padding: 32px 20px;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state h4 {
        font-size: 1.1rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
}

/* === Loading Spinner Responsive === */
@media (max-width: 576px) {
    .loading-overlay .spinner-border {
        width: 2rem;
        height: 2rem;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
}
