/* Voces PTM — Contador de Visitas
   Estilo moderno: tarjeta con gradiente, filas glassmorphism y acentos de color. */

.vp-vc {
    --vp-radius: 18px;
    --vp-gap: 10px;
    max-width: 420px;
    margin: 0 auto;
    padding: 18px;
    border-radius: var(--vp-radius);
    background: linear-gradient(160deg, #1b2030 0%, #11141f 100%);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
    color: #eef1f7;
    font-family: inherit;
    box-sizing: border-box;
}

.vp-vc * { box-sizing: border-box; }

.vp-vc__head {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8b93a7;
    margin-bottom: 16px;
}

.vp-vc__list {
    display: flex;
    flex-direction: column;
    gap: var(--vp-gap);
}

.vp-vc__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    overflow: hidden;
}

/* Barra de acento a la izquierda */
.vp-vc__row::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--vp-accent, #6c8cff);
    border-radius: 0 4px 4px 0;
}

.vp-vc__row:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .7);
}

.vp-vc__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 18px;
    line-height: 1;
    background: color-mix(in srgb, var(--vp-accent, #6c8cff) 22%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vp-accent, #6c8cff) 35%, transparent);
}

.vp-vc__label {
    flex: 1 1 auto;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #c7cdda;
}

.vp-vc__value {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
}

/* Acentos por fila */
.vp-vc__row.vp-vc-today      { --vp-accent: #22c55e; }
.vp-vc__row.vp-vc-yesterday  { --vp-accent: #38bdf8; }
.vp-vc__row.vp-vc-week       { --vp-accent: #f59e0b; }
.vp-vc__row.vp-vc-month      { --vp-accent: #a855f7; }
.vp-vc__row.vp-vc-last-month { --vp-accent: #2dd4bf; }
.vp-vc__row.vp-vc-total      { --vp-accent: #f43f5e; }

/* Fila total destacada */
.vp-vc__row.vp-vc-total {
    background: linear-gradient(100deg, rgba(244, 63, 94, .18), rgba(244, 63, 94, .06));
    border-color: rgba(244, 63, 94, .35);
}
.vp-vc__row.vp-vc-total .vp-vc__value {
    color: #ff7088;
    font-size: 24px;
    text-shadow: 0 0 18px rgba(244, 63, 94, .45);
}

/* Fallback si el navegador no soporta color-mix() */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .vp-vc__icon {
        background: rgba(255, 255, 255, .1);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
    }
}

@media (max-width: 480px) {
    .vp-vc { padding: 14px; }
    .vp-vc__icon { width: 34px; height: 34px; font-size: 16px; }
    .vp-vc__value { font-size: 18px; }
}
