    /* Modal personalizado */
    .modal-content {
        border: none;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }

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

    .modal-header .modal-title {
        font-weight: bold;
        font-size: 1.4rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .modal-header .modal-title::before {
        content: "";
        font-size: 1.8rem;
    }

    .modal-header .close {
        color: white;
        opacity: 1;
        text-shadow: none;
        font-size: 2rem;
        font-weight: 300;
        transition: transform 0.2s ease;
        text-align: right;
    }

    .modal-header .close:hover {
        transform: rotate(90deg);
        color: #ffeaa7;
    }

    .modal-body {
        padding: 2rem;
        background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    }

    /* Tabla estilizada */
    .tabla-puntajes {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }

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

    .tabla-puntajes thead th {
        color: white;
        font-weight: 600;
        padding: 15px 12px;
        text-align: center;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: none;
    }

    .tabla-puntajes thead th:first-child {
        border-radius: 0;
        width: 60px;
    }

    .tabla-puntajes thead th:nth-child(2) {
        text-align: left;
        padding-left: 20px;
    }

    .tabla-puntajes tbody tr {
        transition: all 0.3s ease;
        background: white;
        border-bottom: 1px solid #e9ecef;
    }

    .tabla-puntajes tbody tr:hover {
        background: linear-gradient(90deg, #f0f4ff 0%, #e8eeff 100%);
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }

    .tabla-puntajes tbody tr:last-child {
        border-bottom: none;
    }

    .tabla-puntajes tbody td {
        padding: 16px 12px;
        text-align: center;
        font-size: 0.95rem;
        color: #2d3436;
        border: none;
    }

    .tabla-puntajes tbody td:nth-child(2) {
        text-align: left;
        padding-left: 20px;
        font-weight: 500;
    }

    /* Posiciones con colores */
    .rank {
        font-weight: bold;
        font-size: 1.1rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .tabla-puntajes tbody tr:nth-child(1) .rank {
        background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
        color: #2d3436;
    }

    .tabla-puntajes tbody tr:nth-child(2) .rank {
        background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
        color: #2d3436;
    }

    .tabla-puntajes tbody tr:nth-child(3) .rank {
        background: linear-gradient(135deg, #cd7f32 0%, #e09856 100%);
        color: white;
    }

    .tabla-puntajes tbody tr:nth-child(n+4) .rank {
        background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    }

    /* Puntos destacados */
    .tabla-puntajes tbody td strong {
        color: #667eea;
        font-size: 1.1rem;
        font-weight: 700;
    }

    /* Footer del modal */
    .modal-footer {
        border: none;
        padding: 1rem 1.5rem;
        background: #f8f9fa;
    }

    .modal-footer .btn-danger {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
        border: none;
        padding: 10px 30px;
        border-radius: 25px;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(238, 90, 111, 0.3);
        transition: all 0.3s ease;
    }

    .modal-footer .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(238, 90, 111, 0.4);
        background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
    }

    /* Animación de entrada */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .tabla-puntajes tbody tr {
        animation: fadeInUp 0.5s ease backwards;
    }

    .tabla-puntajes tbody tr:nth-child(1) { animation-delay: 0.05s; }
    .tabla-puntajes tbody tr:nth-child(2) { animation-delay: 0.1s; }
    .tabla-puntajes tbody tr:nth-child(3) { animation-delay: 0.15s; }
    .tabla-puntajes tbody tr:nth-child(4) { animation-delay: 0.2s; }
    .tabla-puntajes tbody tr:nth-child(5) { animation-delay: 0.25s; }
    .tabla-puntajes tbody tr:nth-child(6) { animation-delay: 0.3s; }

    /* Responsive */
    @media (max-width: 576px) {
        .modal-body {
            padding: 1rem;
        }

        .tabla-puntajes thead th,
        .tabla-puntajes tbody td {
            padding: 10px 8px;
            font-size: 0.85rem;
        }

        .rank {
            width: 35px;
            height: 35px;
            font-size: 0.95rem;
        }

        .modal-header .modal-title {
            font-size: 1.1rem;
        }
    }
    /* Botones de puntaje */ 
    .puntajeBtn {
        background-color: #CCC;  
        border-color: #666; 
        margin-left: 15px;
        margin-right: 15px;
        padding: 10px; 
        border-radius:7px; 
        cursor: pointer;
        display: grid; 
        place-items: center;
    }