.tournament-card-content-updated {
    background: linear-gradient(90deg, #fff9f0 0%, #fff 100%);
}

/* Mejorar contraste del botón Iniciar Sesión (btn-outline-light) en hover */
.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: #fff !important;
    color: #ff6b35 !important;
    border-color: #ff6b35 !important;
    text-shadow: none !important;
}

/* Tarjetas modernas de usuario para gestión */
.user-card-modern {
    border-radius: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: box-shadow 0.3s, transform 0.3s;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.user-card-modern:hover {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
    transform: translateY(-4px) scale(1.02);
    border-color: #764ba2;
}

.user-avatar-modern {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    margin-bottom: 0.5rem;
    border: 3px solid #fff;
    letter-spacing: 1px;
}

.badge.super-admin-badge {
    background: linear-gradient(90deg, #ffd700 0%, #ffb347 100%);
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.12);
}

.badge.admin-badge {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
}

.badge.user-badge {
    background: linear-gradient(90deg, #e9ecef 0%, #adb5bd 100%);
    color: #495057;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(173, 181, 189, 0.10);
}

.stat-badge {
    background: #f8f9fa;
    color: #764ba2;
    border-radius: 12px;
    padding: 0.35em 0.9em;
    font-size: 0.95em;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.08);
    border: 1px solid #e9ecef;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}

.user-card-modern .btn {
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.user-card-modern .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.user-card-modern .btn-outline-primary:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: scale(1.08);
}

.user-card-modern .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.user-card-modern .btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    transform: scale(1.08);
}

/* Personalización de colores Bootstrap */
:root {
    --bs-primary: #ff6b35;
    --bs-primary-rgb: 255, 107, 53;
    --bs-link-color: #ff6b35;
    --bs-link-hover-color: #e55a30;
}

/* Sobrescribir color primario de Bootstrap */
.btn-primary {
    --bs-btn-bg: #ff6b35;
    --bs-btn-border-color: #ff6b35;
    --bs-btn-color: #ffffff;
    /* Texto blanco para contraste */
    --bs-btn-hover-bg: #e55a30;
    --bs-btn-hover-border-color: #e55a30;
    --bs-btn-hover-color: #ffffff;
    /* Texto blanco en hover */
    --bs-btn-focus-shadow-rgb: 255, 107, 53;
    --bs-btn-active-bg: #d94d26;
    --bs-btn-active-border-color: #d94d26;
    --bs-btn-active-color: #ffffff;
    /* Texto blanco en estado activo */
    --bs-btn-disabled-bg: #ff6b35;
    --bs-btn-disabled-border-color: #ff6b35;
    --bs-btn-disabled-color: #ffffff;
    /* Texto blanco cuando está deshabilitado */

    /* Estilos base existentes... */

    /* Estilos para la página home moderna */
    .bg-gradient-elegant {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .text-light-muted {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .btn-modern {
        border-radius: 8px;
        padding: 10px 20px;
        font-weight: 500;
        transition: all 0.3s ease;
        border: none;
    }

    .btn-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Estilos para el card de contacto y modal */
    .bg-light-info {
        background-color: rgba(13, 202, 240, 0.1) !important;
    }

    .hero-feature {
        transition: all 0.3s ease;
        padding: 1rem;
        border-radius: 8px;
    }

    .hero-feature:hover {
        background-color: rgba(0, 0, 0, 0.02);
        transform: translateY(-2px);
    }

    #contactModal .modal-content {
        border-radius: 15px;
        overflow: hidden;
    }

    #contactModal .form-control:focus,
    #contactModal .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    }

    #contactModal .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        border-radius: 8px;
        padding: 12px 30px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    #contactModal .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .hero-feature {
        transition: all 0.3s ease;
    }

    .hero-feature:hover {
        transform: translateX(5px);
    }

    .torneo-card-modern {
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        cursor: pointer;
    }

    .torneo-card-modern:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-color: #007bff;
    }

    .torneo-card-modern:hover .card-body {
        background-color: #f8f9fa;
    }

    .card-img-container {
        position: relative;
        height: 120px;
        background: linear-gradient(45deg, #f8f9fa, #e9ecef);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .card-img-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 120px;
        max-height: 300px;
        overflow: hidden;
    }

    .torneo-logo {
        max-height: 300px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    /* Botón de edición más elegante */
    .btn-outline-secondary.btn-sm {
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .btn-outline-secondary.btn-sm:hover {
        transform: scale(1.1);
        background-color: #6c757d;
        color: white;
    }

    /* Animaciones suaves */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .torneo-card-modern {
        animation: fadeInUp 0.6s ease-out;
    }

    /* Estilo para cards vacías */
    .empty-state {
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    .empty-state:hover {
        opacity: 1;
        transform: scale(1.02);
    }

    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #c13d13 !important;
    border-color: #c13d13 !important;
    color: #fff !important;
    text-shadow: 0 1px 2px #000, 0 0 2px #fff;
    font-weight: 700;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #d94d26 !important;
    border-color: #d94d26 !important;
    color: #ffffff !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #ffffff !important;
    opacity: 0.65;
}

.btn-outline-primary {
    --bs-btn-color: #ff6b35;
    --bs-btn-border-color: #ff6b35;
    --bs-btn-hover-bg: #ff6b35;
    --bs-btn-hover-border-color: #ff6b35;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-focus-shadow-rgb: 255, 107, 53;
    --bs-btn-active-bg: #ff6b35;
    --bs-btn-active-border-color: #ff6b35;
    --bs-btn-active-color: #ffffff;
}

.bg-primary {
    background-color: #ff6b35 !important;
}

.text-primary {
    color: #ff6b35 !important;
}

.border-primary {
    border-color: #ff6b35 !important;
}

.link-primary {
    color: #ff6b35;
}

.link-primary:hover,
.link-primary:focus {
    color: #e55a30;
}

/* Sobrescribir todos los enlaces predeterminados, excepto botones */
a:not(.btn) {
    color: #ff6b35 !important;
    text-decoration: none;
}

a:not(.btn):hover,
a:not(.btn):focus {
    color: #e55a30 !important;
}

/* Enlaces específicos que pueden usar el color azul por defecto */
a[href]:not(.btn):not(.nav-link):not(.navbar-brand) {
    color: #ff6b35 !important;
}

a[href]:not(.btn):not(.nav-link):not(.navbar-brand):hover {
    color: #e55a30 !important;
}

/* Excepciones para fondos oscuros - usar texto claro */
.btn-secondary a,
.btn-dark a,
.bg-secondary a,
.bg-dark a,
.navbar-dark a,
.bg-primary a {
    color: #ffffff !important;
}

.btn-secondary a:hover,
.btn-dark a:hover,
.bg-secondary a:hover,
.bg-dark a:hover,
.navbar-dark a:hover,
.bg-primary a:hover {
    /*color: #f8f9fa !important;*/
}

/* Asegurar que los botones con fondos oscuros tengan texto claro */
.btn-secondary,
.btn-dark {
    color: #ffffff !important;
}

.btn-secondary:hover,
.btn-dark:hover {
    color: #f8f9fa !important;
}

/* Personalizar tabs con color anaranjado */
.nav-tabs .nav-link {
    color: #6c757d !important;
    border-color: transparent !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    color: #ff6b35 !important;
    border-color: #dee2e6 #dee2e6 #dee2e6 !important;
}

.nav-tabs .nav-link.active {
    color: #ff6b35 !important;
    background-color: #fff !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
    border-bottom-color: #fff !important;
}

/* Pills tabs también con color anaranjado */
.nav-pills .nav-link {
    color: #6c757d !important;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
    color: #ff6b35 !important;
}

.nav-pills .nav-link.active {
    background-color: #ff6b35 !important;
    color: #ffffff !important;
}

/* Personalizar navbar con colores anaranjados - DESACTIVADO para usar colores por defecto */
/*
.navbar-dark .navbar-nav .nav-link {
    color: #ff6b35 !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #e55a30 !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ff6b35 !important;
    font-weight: bold;
}

.navbar-dark .navbar-brand {
    color: #ff6b35 !important;
}

.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:focus {
    color: #e55a30 !important;
}
*/

/* Cambiar elementos verdes por anaranjados */
/* Filas seleccionadas de tablas */
.table-success,
tr.table-success,
td.table-success,
th.table-success {
    --bs-table-bg: #fff2ed !important;
    --bs-table-color: #d94d26 !important;
    background-color: #fff2ed !important;
    color: #d94d26 !important;
}

/* Botones verdes cambiados a anaranjados */
.btn-success {
    --bs-btn-bg: #ff6b35;
    --bs-btn-border-color: #ff6b35;
    --bs-btn-hover-bg: #e55a30;
    --bs-btn-hover-border-color: #e55a30;
    --bs-btn-focus-shadow-rgb: 255, 107, 53;
    --bs-btn-active-bg: #d94d26;
    --bs-btn-active-border-color: #d94d26;
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #ffffff !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #e55a30 !important;
    border-color: #e55a30 !important;
    color: #ffffff !important;
}

.btn-outline-success {
    --bs-btn-color: #ff6b35;
    --bs-btn-border-color: #ff6b35;
    --bs-btn-hover-bg: #ff6b35;
    --bs-btn-hover-border-color: #ff6b35;
    --bs-btn-active-bg: #ff6b35;
    --bs-btn-active-border-color: #ff6b35;
    color: #ff6b35 !important;
    border-color: #ff6b35 !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #ffffff !important;
}

/* Estilos para btn-outline-warning */
.btn-outline-warning {
    --bs-btn-color: #ffc107;
    --bs-btn-border-color: #ffc107;
    --bs-btn-hover-bg: #ffc107;
    --bs-btn-hover-border-color: #ffc107;
    --bs-btn-hover-color: #000000;
    --bs-btn-active-bg: #ffc107;
    --bs-btn-active-border-color: #ffc107;
    --bs-btn-active-color: #000000;
}

/* Estilos para btn-outline-danger */
.btn-outline-danger {
    --bs-btn-color: #dc3545;
    --bs-btn-border-color: #dc3545;
    --bs-btn-hover-bg: #dc3545;
    --bs-btn-hover-border-color: #dc3545;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #dc3545;
    --bs-btn-active-border-color: #dc3545;
    --bs-btn-active-color: #ffffff;
}

/* Elementos con clase success cambiados a anaranjado */
.bg-success {
    background-color: #ff6b35 !important;
}

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

.border-success {
    border-color: #ff6b35 !important;
}

/* Alertas y badges verdes cambiados a anaranjados */
.alert-success {
    --bs-alert-bg: #fff2ed;
    --bs-alert-border-color: #ffcab0;
    --bs-alert-color: #d94d26;
    background-color: #fff2ed !important;
    border-color: #ffcab0 !important;
    color: #d94d26 !important;
}

.badge.bg-success {
    background-color: #ff6b35 !important;
}

/* Específico para elementos del panel de registrar partido */
.jugador-seleccionado,
.jugador-verde,
.seleccionado {
    background-color: #fff2ed !important;
    border-color: #ff6b35 !important;
    color: #d94d26 !important;
}

/* Fila de jugador seleccionada - mayor especificidad para el tema Lux */
.table .jugador-row.selected,
tr.jugador-row.selected,
.jugador-row.selected.selected,
.table tbody tr.jugador-row.selected,
.table-hover tbody tr.jugador-row.selected:hover {
    background-color: #ffe4d6 !important;
    border-color: #ff6b35 !important;
    color: #d94d26 !important;
}

/* Estilos adicionales para jugadores seleccionados en tema Lux */
.jugador-row.selected td,
.table tbody tr.jugador-row.selected td {
    background-color: #ffe4d6 !important;
    border-color: #ff6b35 !important;
    color: #d94d26 !important;
    font-weight: 500;
}

/* Hover state para jugadores seleccionados */
.table tbody tr.jugador-row.selected:hover td {
    background-color: #ffd4c4 !important;
    color: #c63d1f !important;
}

/* Cursor pointer para jugadores clickeables */
.jugador-row {
    cursor: pointer !important;
}

.jugador-row:hover {
    background-color: #f8f9fa !important;
}

/* Estilos del panel de registro sin bordes */
#panel-registro {
    background: #fff2ed;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#panel-registro .jugador-nombre {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Estilos para botones de puntos unificados */
.puntos-btn {
    border-color: #ff6b35 !important;
    color: #ff6b35 !important;
    transition: all 0.3s ease;
}

.puntos-btn:hover {
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: white !important;
}

.puntos-btn.active {
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: white !important;
}

/* Reducir padding excesivo del tema Lux */
/* Container principal */
.container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Cards */
.card {
    padding: 0 !important;
}

.card-body {
    padding: 1rem !important;
    /* Reducido del padding por defecto */
}

.card-header {
    padding: 0.75rem 1rem !important;
    /* Reducido del padding por defecto */
}

/* Formularios */
.form-control {
    padding: 0.5rem 0.75rem !important;
    /* Reducido del padding por defecto */
}

.form-label {
    margin-bottom: 0.5rem !important;
    /* Reducido del margen por defecto */
}

.mb-3 {
    margin-bottom: 1rem !important;
    /* Reducido del margen por defecto */
}

/* Botones */
.btn {
    padding: 0.5rem 1rem !important;
    /* Reducido del padding por defecto */
}

.btn-lg {
    padding: 0.75rem 1.5rem !important;
    /* Reducido del padding por defecto */
}

.btn-sm {
    padding: 0.25rem 0.5rem !important;
    /* Reducido del padding por defecto */
}

/* Navbar */
.navbar {
    padding-top: 0.5rem !important;
    /* Reducido del padding por defecto */
    padding-bottom: 0.5rem !important;
    /* Reducido del padding por defecto */
    margin-bottom: 1rem !important;
    /* Reducido del margen por defecto */
}

.navbar-brand {
    padding-top: 0.3rem !important;
    /* Reducido del padding por defecto */
    padding-bottom: 0.3rem !important;
    /* Reducido del padding por defecto */
}

.nav-link:not(.navbar-nav .nav-link) {
    padding: 0.5rem 1rem !important;
    /* Reducido del padding por defecto - solo para nav-links que NO estén en navbar */
    font-size: 0.875rem !important;
    /* Texto más pequeño para que quepan en una línea */
}

/* Estilos específicos para navbar - texto más pequeño excepto el brand */
.navbar-nav .nav-link {
    font-size: 0.85rem !important;
    /* Tamaño de fuente reducido */
    font-weight: 500 !important;
    /* Peso de fuente medio para legibilidad */
    padding: 0.3rem 0.6rem !important;
    /* Padding muy reducido entre elementos */
    margin: 0 0.1rem !important;
    /* Margen mínimo entre elementos */
}

/* Reducir espaciado de la lista del navbar */
.navbar-nav {
    margin: 0 !important;
    gap: 0.1rem !important;
    /* Espacio mínimo entre elementos de la lista */
}

.navbar-nav .nav-item {
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-nav .nav-link i {
    font-size: 0.8rem !important;
    /* Iconos un poco más pequeños */
}

/* Mantener el navbar-brand con su tamaño original */
.navbar-brand {
    font-size: 1.25rem !important;
    /* Tamaño original del brand */
    padding: 0.3rem 0.8rem !important;
    /* Padding reducido para el brand también */
}

/* Reducir espaciado general del navbar */
.navbar {
    padding: 0.25rem 0 !important;
    /* Padding vertical muy reducido */
}

.navbar .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

/* Botón toggler más compacto */
.navbar-toggler {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.9rem !important;
}

/* Alerts */
.alert {
    padding: 0.75rem !important;
    /* Reducido del padding por defecto */
    margin-bottom: 1rem !important;
    /* Reducido del margen por defecto */
}

/* Tablas */
.table td,
.table th {
    padding: 0.5rem !important;
    /* Reducido del padding por defecto */
}

/* Modal */
.modal-body {
    padding: 1rem !important;
    /* Reducido del padding por defecto */
}

.modal-header {
    padding: 0.75rem 1rem !important;
    /* Reducido del padding por defecto */
}

.modal-footer {
    padding: 0.75rem 1rem !important;
    /* Reducido del padding por defecto */
}

/* Torneo cards específicas */
.torneo-card .card-body {
    padding: 0.75rem !important;
    /* Padding más compacto para las cards de torneos */
}

/* Badges */
.badge {
    padding: 0.35em 0.65em !important;
    /* Reducido del padding por defecto */
}

/* Modal de registrar partido más espacioso */
#modalRegistrarPartido .modal-body {
    padding: 1.5rem !important;
    /* Más espacioso para el modal de partido */
}

#modalRegistrarPartido .modal-dialog {
    max-width: 600px !important;
    /* Ancho específico para mejor distribución */
}

#modalRegistrarPartido .puntos-btn {
    margin: 0.2rem !important;
    /* Más espacio entre botones de puntos */
}

/* Estilos mejorados para selección de jugadores - compatibles con tema Lux */
.table.table-hover tbody tr.jugador-row {
    transition: all 0.2s ease-in-out;
}

.table.table-hover tbody tr.jugador-row:hover {
    background-color: #f1f3f4 !important;
    transform: scale(1.01);
}

.table tbody tr.jugador-row.selected {
    background: linear-gradient(135deg, #ffe4d6 0%, #fff2ed 100%) !important;
    border-left: 4px solid #ff6b35 !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2) !important;
    position: relative;
}

.table tbody tr.jugador-row.selected::before {
    content: "✓";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6b35;
    font-weight: bold;
    font-size: 1.2em;
}

/* Animación para cuando se selecciona un jugador */
@keyframes jugadorSeleccionado {
    0% {
        background-color: #ffffff;
    }

    50% {
        background-color: #ffd4c4;
    }

    100% {
        background-color: #ffe4d6;
    }
}

.jugador-row.selected.newly-selected {
    animation: jugadorSeleccionado 0.5s ease-in-out;
}

/* ==========================================
   NUEVO DISEÑO TORNEO - MODERN LAYOUT
   ========================================== */

/* Gradiente personalizado para header */
.bg-gradient-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.text-light-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Estilos para ranking */
.ranking-item {
    padding: 1.25rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ranking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #adb5bd;
}

.ranking-item:hover::before {
    background: linear-gradient(90deg, transparent, #007bff, transparent);
}

.ranking-podium {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.ranking-podium::before {
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
}

.ranking-position {
    position: relative;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
}

.position-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.position-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.position-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.position-medal {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.8rem;
    color: #ffc107;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tendencia-badge .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
}

/* Progress bars mejoradas */
.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    transition: width 0.8s ease;
    border-radius: 10px;
}

/* Timeline para jornadas */
.jornadas-timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-marker {
    position: relative;
    width: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-dot.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.4);
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 17px;
    transform: translateX(-50%);
    width: 2px;
    height: 45px;
    background: linear-gradient(to bottom, #dee2e6, transparent);
}

.timeline-latest {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 1.25rem;
    border-radius: 15px;
    border: 2px solid #2196f3;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.timeline-latest:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

/* Cards principales */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

.card-title i {
    font-size: 1.2em;
}

/* Animaciones de entrada */
.ranking-item {
    animation: fadeInUp 0.6s ease forwards;
}

.ranking-item:nth-child(1) {
    animation-delay: 0.1s;
}

.ranking-item:nth-child(2) {
    animation-delay: 0.2s;
}

.ranking-item:nth-child(3) {
    animation-delay: 0.3s;
}

.ranking-item:nth-child(4) {
    animation-delay: 0.4s;
}

.ranking-item:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados vacíos mejorados */
.text-center.py-5,
.text-center.py-4 {
    padding: 3rem 1rem !important;
}

.text-center i[class*="fa-"] {
    opacity: 0.6;
    margin-bottom: 1rem;
}

/* Responsive específico */
@media (max-width: 991px) {

    .col-lg-8,
    .col-lg-4 {
        margin-bottom: 2rem;
    }

    .ranking-position {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .ranking-item {
        padding: 1rem;
    }

    .timeline-latest {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .bg-gradient-custom .col-auto {
        margin-bottom: 0.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .ranking-position {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ==========================================
   NUEVO DISEÑO JORNADA - MODERN LAYOUT
   ========================================== */

/* Header jornada con gradiente verde */
.bg-gradient-jornada {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.text-light-custom {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
}

.text-light-custom:hover {
    color: white !important;
}

.text-light-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Breadcrumb personalizado */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
}

.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* Cards de jornada */
.jornada-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.jornada-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

.jornada-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    border-bottom: 1px solid #ced4da;
    color: #495057;
}

/* Jugadores inscritos - Estilo moderno */
.jugadores-container {
    max-height: 660px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.jugador-item {
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.jugador-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.jugador-item.selected {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.2);
}

.jugador-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: transparent;
    border-radius: 12px 0 0 12px;
    transition: all 0.3s ease;
}

.jugador-item.selected::before {
    background: linear-gradient(to bottom, #2196f3, #1976d2);
}

/* Avatares de jugadores */
.jugador-avatar {
    position: relative;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
}

.avatar-circle.avatar-small {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
}

.avatar-initials {
    font-size: 0.9rem;
}

/* Partidos - Cards modernas */
.partidos-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.partido-item {
    animation: fadeInUp 0.6s ease forwards;
}

.partido-item:nth-child(1) {
    animation-delay: 0.1s;
}

.partido-item:nth-child(2) {
    animation-delay: 0.2s;
}

.partido-item:nth-child(3) {
    animation-delay: 0.3s;
}

.partido-item:nth-child(4) {
    animation-delay: 0.4s;
}

.partido-item:nth-child(5) {
    animation-delay: 0.5s;
}

.partido-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.partido-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.partido-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: #28a745;
}

.partido-readonly {
    border-color: #6c757d;
}

.partido-readonly::before {
    background: linear-gradient(90deg, #6c757d, #adb5bd);
}

/* Información de jugadores en partidos */
.jugador-info h6 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.elo-change .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Marcador central */
.marcador-central {
    text-align: center;
}

.sets-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.set-score {
    font-size: 2rem;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
}

.set-score.winner {
    color: #28a745;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    transform: scale(1.1);
}

.vs-separator {
    font-size: 1.5rem;
    color: #adb5bd;
    font-weight: normal;
}

/* Gradiente elegante en tonos grises */
.bg-gradient-elegant {
    background: linear-gradient(135deg, #6c757d 0%, #495057 50%, #343a40 100%) !important;
    color: white !important;
}

/* Texto suave para el gradiente elegante */
.text-light-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Cards de inscripción de jugadores */
.jugador-card-inscripcion {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.jugador-card-inscripcion:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.jugador-card-inscripcion.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.jugador-card-inscripcion.row-adding {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    animation: pulseGreen 1.5s ease-in-out;
}

.jugador-card-inscripcion.row-removing {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    animation: pulseRed 1.5s ease-in-out;
}

@keyframes pulseGreen {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulseRed {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
    }

    100% {
        transform: scale(1);
    }
}

.jugador-card-inscripcion .form-check-input:checked+.form-check-label {
    color: #28a745;
}

/* Home page hero features */
.hero-feature {
    transition: all 0.3s ease;
}

.hero-feature:hover {
    transform: translateY(-5px);
}

/* Modal moderno para registrar partidos */
.modal-header.bg-gradient-elegant {
    color: white !important;
}

.modal-header.bg-gradient-elegant .modal-title {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.jugador-card-modal {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.jugador-card-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.sets-btn-modern {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-weight: bold;
    transition: all 0.3s ease;
    border-width: 2px;
}

.sets-btn-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sets-btn-modern.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.sets-btn-modern.btn-outline-warning.active {
    background-color: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
    color: white !important;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.btn-modern {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enlace del título del torneo en jornada */
.text-light.text-decoration-none:hover {
    opacity: 1 !important;
    transform: translateX(2px);
}

/* Botón de volver sutil */
.btn-back-subtle {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 3.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    z-index: 1;
    text-decoration: none;
}

.btn-back-subtle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Acciones de partido */
.partido-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.partido-card:hover .partido-actions {
    opacity: 1;
}

/* Asegurar que el contenido tenga margen para no ser tapado */
.partido-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 1.5rem;
    padding-right: 4rem;
    /* Espacio reservado para el botón */
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Nuevo partido destacado */
.nuevo-partido .partido-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
    animation: pulseGlow 2s ease-in-out;
}

.nuevo-partido .partido-card::before {
    background: linear-gradient(90deg, #ffc107, #ffb347);
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    }

    50% {
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
    }
}

/* Scrollbars personalizados */
.jugadores-container::-webkit-scrollbar,
.partidos-container::-webkit-scrollbar {
    width: 6px;
}

.jugadores-container::-webkit-scrollbar-track,
.partidos-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.jugadores-container::-webkit-scrollbar-thumb,
.partidos-container::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #007bff, #0056b3);
    border-radius: 3px;
}

/* Responsive para jornada */
@media (max-width: 991px) {

    .col-lg-5,
    .col-lg-7 {
        margin-bottom: 2rem;
    }

    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .set-score {
        font-size: 1.8rem;
    }

    .partido-card {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .bg-gradient-jornada .col-lg-4 {
        margin-top: 1rem;
    }

    .jugador-info h6 {
        font-size: 0.9rem;
    }

    .set-score {
        font-size: 1.5rem;
    }

    .avatar-circle {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }

    .elo-change .badge {
        font-size: 0.7rem;
    }
}

/* ==========================================
   ESTILOS ADICIONALES PARA LISTAS DE JUGADORES
   ========================================== */

/* Lista general de jugadores */
.jugador-item-list {
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.jugador-item-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Jugadores en club */
.jugador-item-club {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.jugador-item-club:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

/* Hero card minimalista para lista de torneos */
.hero-card-minimal {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.hero-card-minimal:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

/* Descripción expandible */
.descripcion-torneo {
    position: relative;
}

/* Cursor pointer para tarjetas de torneo */
.torneo-card-modern {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.descripcion-texto {
    max-height: 200px;
    /* 5 veces más largo que los 40px originales */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.descripcion-texto.expandido {
    max-height: none;
}

.descripcion-toggle {
    background: none;
    border: none;
    color: #6c757d;
    /* Color más discreto (gris) */
    cursor: pointer;
    font-size: 0.75rem;
    /* Más pequeño */
    padding: 0;
    margin-top: 5px;
    text-decoration: none;
    opacity: 0.7;
    /* Más discreto */
}

.descripcion-toggle:hover {
    color: #495057;
    /* Gris más oscuro al hover */
    text-decoration: none;
    opacity: 1;
}

/* Estilo para las tarjetas de torneo simplificadas */
.torneo-card-simple {
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.torneo-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.torneo-card-simple .card-title {
    font-size: 1.3rem;
    cursor: help;
    transition: color 0.3s ease;
}

.torneo-card-simple .card-title:hover {
    color: #e55a30 !important;
}

/* Logo pequeño en el título */
.torneo-logo-small {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    background-color: #f8f9fa;
    padding: 2px;
}

/* Estilos para las estadísticas */
.statistic-item {
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.statistic-number {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.statistic-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.statistic-item:hover {
    background-color: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
}

/* Botón moderno mejorado */
.btn-modern {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Botón de editar en posición absoluta */
.position-absolute.btn {
    z-index: 10;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Footer styling */
.torneo-card-simple .card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .torneo-card-simple .card-title {
        font-size: 1.1rem;
    }

    .statistic-number {
        font-size: 1.3rem;
    }

    .statistic-label {
        font-size: 0.8rem;
    }

    .btn-modern {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Mantener cursor pointer en títulos de torneo con tooltip */
.tournament-title[title] {
    cursor: pointer !important;
}