/* Estadísticas de Productos de Subasta v1.2 */

.asub-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 540px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px 24px 16px;
    box-sizing: border-box;
}

.asub-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ebebeb;
}

/* Cards */
.asub-card {
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

/* Metrics row */
.asub-metrics {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 18px 0;
}

.asub-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 16px;
    border-right: 1px solid #dedede;
}

.asub-metric:last-child {
    border-right: none;
}

.asub-number {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    color: #222;
}

.asub-number--green {
    color: #27ae60;
}

.asub-number--gray {
    color: #aaaaaa;
}

.asub-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
}

.asub-sub {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}

/* Distribution */
.asub-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 14px;
}

.asub-bar-track {
    display: flex;
    height: 34px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.asub-bar-fill {
    background: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.4s ease;
}

.asub-bar-fill span,
.asub-bar-empty span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.asub-bar-empty {
    flex: 1;
    background: #aaaaaa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asub-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.asub-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.asub-legend-dot--green {
    background: #27ae60;
}

.asub-legend-dot--gray {
    background: #aaaaaa;
}

.asub-legend-text {
    font-size: 0.8rem;
    color: #555;
    margin-right: 10px;
}

/* Money */
.asub-money {
    display: flex;
    gap: 0;
}

.asub-money-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 10px;
    border-right: 1px solid #dedede;
}

.asub-money-item:last-child {
    border-right: none;
}

.asub-money-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.asub-money-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #2980b9;
}

/* Footer */
.asub-footer {
    text-align: right;
    font-size: 0.72rem;
    color: #bbb;
    margin: 6px 0 0;
}
