/* ============================================================
   Figuritas Mundial 2026 - Estilos
   ============================================================ */

:root {
    --fig-size: 90px;
    --fig-radius: 10px;
}

/* --- Grilla de figuritas --- */
.fig-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fig-card {
    width: var(--fig-size);
    height: var(--fig-size);
    border-radius: var(--fig-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
    border: 2px solid transparent;
    padding: 4px;
    text-align: center;
    user-select: none;
}

.fig-card:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    z-index: 2;
}

.fig-tengo {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.fig-falta {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.fig-foil.fig-tengo {
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 40%, #f59e0b 100%);
    border-color: #f59e0b;
    color: #78350f;
}

.fig-foil.fig-falta {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #94a3b8;
    color: #475569;
}

.fig-foto {
    border-style: dashed;
}

.fig-codigo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    opacity: .7;
    line-height: 1;
    margin-bottom: 2px;
}

.fig-nombre {
    font-size: 9.5px;
    line-height: 1.2;
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fig-badge-foil {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 7px;
    font-weight: 800;
    background: #f59e0b;
    color: #fff;
    padding: 1px 3px;
    border-radius: 3px;
    letter-spacing: .5px;
}

.fig-repetidas {
    position: absolute;
    bottom: 3px;
    right: 4px;
    font-size: 9px;
    font-weight: 800;
    background: #f59e0b;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Cards de estadísticas --- */
.stat-pill {
    border-radius: 10px;
    padding: 8px 4px;
}

.hover-card {
    transition: transform .15s ease, box-shadow .15s ease;
}
.hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.1) !important;
}

/* --- Avatar inicial --- */
.avatar-sm {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: .85rem;
}

/* --- Responsive figuritas --- */
@media (max-width: 576px) {
    :root { --fig-size: 76px; }
    .fig-nombre { font-size: 8.5px; }
}

@media (max-width: 380px) {
    :root { --fig-size: 66px; }
}
