/* Estructura de la aplicación: barra lateral por grupos + barra superior. Usa los tokens de app.css. */
:root {
    --tint: #eaf0ff;
    --own: #1f4fd8;
    --rival: #7a3b8f;
    --orange: #a14a00;
    --orange-bg: #ffe6cf;
    --sh-shadow: 0 1.2rem 3rem rgba(14, 18, 27, 0.14);
}
:root[data-theme="dark"] {
    --tint: #1c2a52;
    --own: #86a4ff;
    --rival: #d19be6;
    --orange: #ffb072;
    --orange-bg: #482608;
    --sh-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --tint: #1c2a52;
        --own: #86a4ff;
        --rival: #d19be6;
        --orange: #ffb072;
        --orange-bg: #482608;
        --sh-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.5);
    }
}

.sh-skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.6rem 1rem; color: #fff; background: var(--brand); border-radius: 0 0 0.6rem 0; }
.sh-skip:focus { left: 0; }
.sh-frame { min-height: 100vh; display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); }
.sh-side { position: sticky; top: 0; z-index: 30; height: 100vh; display: flex; flex-direction: column; gap: 0.2rem; padding: 1.1rem 0.9rem; overflow-y: auto;
    background: var(--surface); border-right: 1px solid var(--line); }
.sh-brand { display: flex; align-items: center; gap: 0.7rem; padding: 0.2rem 0.5rem 1rem; color: var(--ink); text-decoration: none; }
.sh-brand b { display: block; font-size: 1rem; line-height: 1.1; }
.sh-brand .pt-logo { width: 7.2rem; height: auto; }
.sh-brand-product { padding-left: 0.7rem; border-left: 2px solid var(--line); font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; }
.sh-visitor { display: grid; gap: 0.4rem; margin: 0.2rem 0 0.4rem; padding: 0.75rem 0.7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 0.9rem; font-size: 0.78rem; line-height: 1.45; }
.sh-visitor b { color: var(--ink); font-size: 0.84rem; }
.sh-brand small { color: var(--muted); font-size: 0.72rem; }
.sh-mark { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; color: #fff; background: var(--premium-gradient); border-radius: 0.8rem; font-weight: 850;
    box-shadow: 0 0.5rem 1.1rem rgba(51, 91, 255, 0.25); }
.sh-grp { margin: 1rem 0.6rem 0.3rem; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.sh-nav { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.55rem 0.65rem; color: var(--ink-soft); text-align: left; text-decoration: none;
    background: none; border: 1px solid transparent; border-radius: 0.75rem; font-size: 0.88rem; font-weight: 650; }
.sh-nav:hover { color: var(--ink); background: var(--surface-subtle); }
.sh-nav[aria-current="page"] { color: var(--brand-dark); background: var(--tint); border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.sh-g { width: 1.5rem; height: 1.5rem; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--muted); font-size: 1rem; }
.sh-nav[aria-current="page"] .sh-g { color: var(--brand); }
.sh-sub { display: grid; gap: 0.05rem; margin: 0.1rem 0 0.3rem 1.45rem; padding-left: 0.7rem; border-left: 2px solid var(--line); }
.sh-sub .sh-nav { padding: 0.38rem 0.6rem; font-size: 0.82rem; font-weight: 600; }
.sh-camp { display: block; padding: 0.35rem 0.6rem; color: var(--ink); font-size: 0.8rem; font-weight: 800; overflow-wrap: anywhere; }
.sh-camp small { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 500; }
.sh-cta { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0.45rem 0 0; padding: 0.55rem; color: #fff; background: var(--brand);
    border-radius: 0.75rem; font-size: 0.85rem; font-weight: 750; text-decoration: none; }
.sh-cta:hover { color: #fff; background: var(--brand-dark); }
.sh-spacer { flex: 1; min-height: 1rem; }
.sh-who { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.8rem; padding: 0.7rem; background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 0.9rem; }
.sh-av { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--premium-gradient); border-radius: 0.7rem; font-size: 0.85rem; font-weight: 850; }
.sh-who-text { min-width: 0; display: grid; }
.sh-who-text b { overflow: hidden; font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.sh-who-text small { color: var(--muted); font-size: 0.7rem; }
.sh-row { margin-left: auto; display: flex; gap: 0.3rem; }
.sh-row form { margin: 0; }
.sh-ico { width: 1.9rem; min-height: 1.9rem; height: 1.9rem; display: grid; place-items: center; padding: 0; color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: 0.55rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.sh-ico:hover { color: var(--ink); background: var(--surface-subtle); }
.sh-main { min-width: 0; }
.sh-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.6rem;
    background: color-mix(in srgb, var(--surface) 86%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.sh-crumbs { min-width: 0; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.sh-crumbs b { color: var(--ink); }
.sh-burger { display: none; }
.sh-veil { position: fixed; inset: 0; z-index: 25; background: rgba(8, 12, 20, 0.45); }
.sh-veil[hidden] { display: none; }
#contenido:focus { outline: none; }

@media (max-width: 62rem) {
    .sh-frame { display: block; }
    .sh-side { position: fixed; inset: 0 auto 0 0; width: 17.5rem; max-width: 86vw; transform: translateX(-102%); transition: transform 0.18s; box-shadow: var(--sh-shadow); }
    .sh-side.is-open { transform: none; }
    .sh-burger { display: grid; }
    .sh-top { padding: 0.7rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .sh-side { transition: none; } }

/* Membresía y marca Politrack en la barra lateral */
.sh-lock { margin-left: auto; font-size: 0.7rem; opacity: 0.85; }
.sh-pill { margin-left: auto; padding: 0.06rem 0.5rem; color: var(--muted); background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 999px; font-size: 0.66rem; font-weight: 800; }
.sh-pill.is-on { color: var(--green); background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 28%, transparent); }
.sh-dot { width: 0.55rem; height: 0.55rem; margin-left: auto; background: var(--yellow, #e0a800); border-radius: 50%; }
.sh-cta-pro { margin-top: 0.4rem; color: #fff; background: var(--premium-gradient, var(--brand)); }
.sh-cta-pro:hover { color: #fff; filter: brightness(1.06); background: var(--premium-gradient, var(--brand-dark)); }
.sh-endorse { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; margin: 0.8rem 0.3rem 0; padding: 0.7rem 0.8rem; color: var(--muted); text-decoration: none;
    border: 1px dashed var(--line); border-radius: 0.8rem; font-size: 0.68rem; font-weight: 650; }
.sh-endorse:hover { color: var(--ink); border-color: var(--muted); }
.sh-endorse .pt-logo { width: 6rem; height: auto; }
.sh-sitelink { margin-left: auto; color: var(--muted); font-size: 0.76rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sh-sitelink:hover { color: var(--ink); text-decoration: underline; }
.sh-notices { padding: 1rem 1.6rem 0; max-width: 84rem; margin: 0 auto; }
.sh-notices .flash:last-child { margin-bottom: 0; }
@media (max-width: 62rem) { .sh-notices { padding: 0.8rem 1rem 0; } }
