/* ==========================================================================
   Dorsales - Paleta estricta: Rojo, Blanco y Negro (Sin colores ajenos)
   ========================================================================== */

/* Píldoras de selección de categorías */
.category-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    background-color: #1a1a1f;
    border: 1px solid #2d2d36;
    border-radius: 30px;
    color: #a0a0a8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}

.category-filter-btn:hover {
    background-color: #26262e;
    color: #ffffff;
    border-color: #40404c;
}

.category-filter-btn.active {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Pestañas de navegación limpias */
.dorsal-nav-tab {
    background-color: #1a1a1f;
    border: 1px solid #2d2d36;
    color: #a0a0a8;
    border-radius: 30px !important;
    padding: 8px 22px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.dorsal-nav-tab:hover {
    color: #ffffff;
    background-color: #24242c;
    border-color: #3f3f4a;
}

.dorsal-nav-tab.active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.dorsal-tab-count {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    margin-left: 6px;
}

/* ==========================================================================
   Grilla y Tarjetas de Dorsales Disponibles (1 al 99)
   ========================================================================== */
.dorsal-available-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (min-width: 576px) {
    .dorsal-available-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .dorsal-available-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 575px) {
    .dorsal-item-card {
        padding: 10px 4px 6px 4px;
        border-radius: 12px;
    }
    .dorsal-shirt-art {
        height: 75px;
        margin-bottom: 4px;
    }
    .dorsal-big-number {
        font-size: 2.5rem;
    }
    .dorsal-status-text {
        font-size: 0.65rem;
    }
}

.dorsal-item-card {
    background: linear-gradient(160deg, #18181d 0%, #111114 100%);
    border: 1px solid #26262f;
    border-radius: 14px;
    padding: 14px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.dorsal-item-card:hover {
    transform: translateY(-4px);
    border-color: #dc3545;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.2);
    background: linear-gradient(160deg, #202026 0%, #141418 100%);
}

.dorsal-shirt-art {
    position: relative;
    width: 100%;
    height: 95px;
    background: url('/assets/img/Plantilla.png') no-repeat center center;
    background-size: contain;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,0.5));
    margin-bottom: 8px;
}

.dorsal-big-number {
    font-family: 'Oswald', 'Bebas Neue', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0px 4px 10px rgba(0,0,0,0.7);
}

.dorsal-card-footer {
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dorsal-status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a0a0a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.btn-block-action {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #3d3d48;
    background-color: transparent;
    color: #a0a0a8;
    transition: all 0.2s ease;
    font-weight: 500;
    width: 100%;
}

.btn-block-action:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.btn-unblock-action {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #dc3545;
    background-color: transparent;
    color: #dc3545;
    transition: all 0.2s ease;
    font-weight: 600;
    width: 100%;
}

.btn-unblock-action:hover {
    background-color: #dc3545;
    color: #ffffff;
}

/* ==========================================================================
   Grilla de Dorsales Asignados a Jugadores
   ========================================================================== */
.jersey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 18px;
    justify-items: center;
}

.jersey-card-wrapper {
    width: 100%;
    background: linear-gradient(150deg, #1c1c22 0%, #121215 100%);
    border-radius: 14px;
    padding: 16px 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid #282830;
}

.jersey-card-wrapper:hover {
    transform: translateY(-4px);
    border-color: #dc3545;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.jersey-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.jersey-name {
    font-family: 'Oswald', 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jersey-shirt {
    position: relative;
    width: 100%;
    height: 110px;
    background: url('/assets/img/Plantilla.png') no-repeat center center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5));
}

.jersey-number {
    font-family: 'Oswald', 'Bebas Neue', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-align: center;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0px 4px 10px rgba(0,0,0,0.6);
}

.jersey-position {
    font-family: 'Oswald', 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a0a0a8;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .jersey-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    .jersey-shirt {
        height: 140px;
    }
    .jersey-number {
        font-size: 4.5rem;
    }
}