/* Sección Top Compradores - Estilo Horizontal REDUCIDO */
.buyers-section {
    position: relative;
    padding: 80px 20px;
    background: transparent;
    overflow: hidden;
    border-bottom: 1px solid rgba(161, 1, 255, 0.1);
}

.buyers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(161, 1, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(161, 1, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 35s linear infinite;
    z-index: 1;
}

.buyers-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse-soft 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.buyers-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.buyers-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.buyers-badge {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.buyers-badge i {
    animation: crownGlow 2s ease-in-out infinite;
}

@keyframes crownGlow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
    }
}

.buyers-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #A101FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.buyers-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.buyers-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.buyer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    width: 160px;
    transition: all 0.3s ease;
}

.buyer-item:hover {
    transform: translateY(-5px);
}

/* Número de ranking - REDUCIDO */
.buyer-rank {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1rem;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FF9800);
    color: #000;
    border: 2px solid #FFD700;
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #000;
    border: 2px solid #C0C0C0;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #A66B28);
    color: #000;
    border: 2px solid #CD7F32;
}

.rank-4 {
    background: linear-gradient(135deg, #A101FF, #8200CC);
    color: #fff;
    border: 2px solid #A101FF;
}

.rank-5 {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    color: #fff;
    border: 2px solid #2196F3;
}

/* Avatar - REDUCIDO */
.buyer-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 15px;
    padding: 3px;
    background: linear-gradient(135deg, #A101FF, #FFD700);
    display: flex;
    align-items: center;
    justify-content: center;
}


.buyer-avatar img {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #000;
}
/* Corona para el #1 - REDUCIDO */
.buyer-crown {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFD700;
    font-size: 1.5rem;
    z-index: 2;
    animation: crownFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

@keyframes crownFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) translateY(-3px) rotate(5deg);
    }
    75% {
        transform: translateX(-50%) translateY(-3px) rotate(-5deg);
    }
}

/* Nombre del comprador - REDUCIDO */
.buyer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    padding-top: 8px;
}

.buyer-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #A101FF, transparent);
}

/* Monto invertido - REDUCIDO */
.buyer-amount {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FFD700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.buyer-amount i {
    font-size: 1.2rem;
}

/* Productos adquiridos - REDUCIDO */
.buyer-products {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(161, 1, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid rgba(161, 1, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.buyer-products i {
    font-size: 0.8rem;
    color: #A101FF;
}

/* Efecto de brillo al hover */
.buyer-item:hover .buyer-avatar {
    box-shadow: 0 0 20px rgba(161, 1, 255, 0.4);
}

.buyer-item:hover .buyer-name {
    color: #FFD700;
}

/* Stats generales - REDUCIDOS */
.buyers-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(161, 1, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #FFD700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loading Skeleton */
.loading-skeleton {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive - Tamaños ajustados */
@media (max-width: 1200px) {
    .buyers-title {
        font-size: 2.5rem;
    }

    .buyers-grid {
        gap: 20px;
    }

    .buyer-item {
        width: 150px;
    }
}

@media (max-width: 968px) {
    .buyers-title {
        font-size: 2.2rem;
    }

    .buyers-grid {
        gap: 20px;
    }

    .buyer-item {
        width: 140px;
    }

    .buyer-avatar {
        width: 80px;
        height: 80px;
    }

    .buyer-name {
        font-size: 1.1rem;
    }

    .buyer-amount {
        font-size: 1.2rem;
    }

    .buyer-products {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .buyers-grid {
        flex-wrap: wrap;
        gap: 30px;
    }

    .buyer-item {
        width: 45%;
        min-width: 140px;
    }

    .buyers-stats {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .stat-item {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .buyers-section {
        padding: 60px 15px;
    }

    .buyers-title {
        font-size: 2rem;
    }

    .buyers-badge {
        font-size: 0.75rem;
        padding: 8px 20px;
    }

    .buyers-subtitle {
        font-size: 0.9rem;
    }

    .buyers-grid {
        gap: 25px;
    }

    .buyer-item {
        width: 100%;
        max-width: 160px;
    }

    .buyer-avatar {
        width: 85px;
        height: 85px;
    }

    .buyer-name {
        font-size: 1.1rem;
    }

    .buyer-amount {
        font-size: 1.3rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .buyers-title {
        font-size: 1.8rem;
    }

    .buyers-grid {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .buyer-item {
        width: 100%;
        max-width: 180px;
    }

    .buyer-avatar {
        width: 90px;
        height: 90px;
    }

    .buyer-name {
        font-size: 1.2rem;
    }

    .buyer-amount {
        font-size: 1.4rem;
    }
}