/* Identidad de Commerce, compartida por el acceso y el panel. */
.pn-brand, .commerce-login-brand {
    --mb-word: #522dd7; --mb-dot: #CFD42A; --mb-sep: #522dd7; --mb-desc: #1a1a2e;
}
:root[data-theme="dark"] .pn-brand {
    --mb-word: #fff; --mb-dot: #CFD42A; --mb-sep: #CFD42A; --mb-desc: #e6e6f0;
}
.commerce-mobile-name { font-size: 14px; font-weight: 700; color: var(--pn-ink); }
@media (min-width: 640px) { .commerce-mobile-name { display: none; } }
.commerce-intro {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px; padding: 25px 28px; margin-bottom: 20px;
    border: 1px solid var(--pn-accent-line); border-radius: 16px;
    background: var(--pn-accent-softer); border-left: 4px solid var(--pn-accent);
}
.commerce-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: var(--pn-accent-ink); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.commerce-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pn-lime); }
.commerce-intro h1 { margin: 0; color: var(--pn-ink); font-size: clamp(23px, 2vw, 29px); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.commerce-issuer { margin: 9px 0 0; color: var(--pn-muted); font-size: 12px; }
.commerce-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.commerce-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.commerce-filters a { border-radius: 999px; min-height: 36px; padding: 7px 14px; font-size: 12px; }
[data-pn-theme][aria-pressed="true"] { background: var(--pn-surface); color: var(--pn-accent); box-shadow: 0 1px 3px #0001; }
.commerce-login {
    min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
    padding: 32px 20px; margin: 0; color: #1a1a2e;
    background: radial-gradient(ellipse at 50% 0%, #eae3ff 0%, transparent 55%), #f6f6fa;
    font-family: Poppins, system-ui, sans-serif;
}
.commerce-login-card { width: 100%; max-width: 440px; padding: 36px; background: #fff; border: 1px solid #e6e1f1; border-top: 4px solid #CFD42A; border-radius: 20px; box-shadow: 0 18px 60px #2a1a6e0a; }
.commerce-login-brand { display: inline-flex; margin-bottom: 30px; }
.commerce-login h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.035em; }
.commerce-login-copy { margin: 0 0 26px; color: #6b6b80; font-size: 14px; line-height: 1.6; }
.commerce-login .commerce-sso, .commerce-login button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 11px 15px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s; }
.commerce-login .commerce-sso { background: #CFD42A; border: 1px solid #CFD42A; color: #1a1a2e; }
.commerce-login .commerce-sso:hover { background: #bcc122; }
.commerce-login button { margin-top: 18px; background: #f7f5ff; color: #522dd7; border: 1px solid #e3dcff; }
.commerce-login button:hover { background: #f0ecff; }
.commerce-login-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: #6b6b80; font-size: 11px; }
.commerce-login-divider::before, .commerce-login-divider::after { content: ''; height: 1px; background: #e6e8f0; flex: 1; }
.commerce-login label { display: block; margin: 15px 0 6px; font-size: 12px; font-weight: 600; }
.commerce-login input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d9dbe6; border-radius: 9px; background: #fff; color: #1a1a2e; font: inherit; font-size: 16px; }
.commerce-login :is(a, button, input):focus-visible { outline: 2px solid #522dd7; outline-offset: 3px; }
.commerce-login-error { padding: 12px; margin-bottom: 18px; border: 1px solid #f3c1bb; border-radius: 9px; background: #fdecea; color: #9c2e24; font-size: 13px; }
.commerce-login-footer { margin: 24px 0 0; text-align: center; font-size: 11px; color: #6b6b80; }
.commerce-login-footer a { color: #522dd7; text-decoration: none; }
@media (max-width: 639px) {
    .commerce-intro { padding: 20px; gap: 18px; }
    .commerce-actions { width: 100%; }
    .commerce-actions a { flex: 1; white-space: nowrap; }
    .commerce-login-card { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { .commerce-login :is(a, button), .pn-main { transition: none; } }

/* Los importes se leen completos, también en pantallas angostas. */
.commerce-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.commerce-stats .pn-num { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 639px) {
    .commerce-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commerce-stats > .pn-card { flex-direction: column; align-items: flex-start; gap: 10px; }
}
