/* ════════════════════════════════════════════════════════════════════════════
   CheckClub — app de socios, UI 3.0 (nov-2026)
   Mismos colores (índigo del proyecto y color del club). Cambia la forma: la tipografía del panel (Manrope),
   credencial tipo carné, accesos rápidos arriba y una pestaña propia para la credencial.
   Se carga después de app.css.
   ════════════════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root { --m-font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif; --m-radius: 14px; --m-shadow: 0 6px 18px -8px rgba(31, 41, 89, .22); }

html, body, .mud-typography, .mud-button-root, .mud-input, .mud-input-root, .mud-chip, .mud-list-item-text, .mud-snackbar,
.mud-dialog, input, textarea, button, select { font-family: var(--m-font) !important; }
body { font-variant-numeric: tabular-nums; }

/* ── Barra superior e inferior ─────────────────────────────────────────────── */
.member-topbar { height: 56px; box-shadow: 0 1px 0 rgba(15, 23, 42, .12); }
.member-brand-text { font-weight: 800; letter-spacing: -.01em; }
.member-bottomnav { box-shadow: none; border-top: 1px solid var(--m-line); }
.member-navitem { position: relative; font-size: .7rem; font-weight: 700; gap: 2px; min-width: 0; }
.member-navitem .mud-icon-root { font-size: 24px; }
.member-navitem.active::before {
    content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--m-primary);
}
.member-navitem:focus-visible { outline: 3px solid var(--m-primary); outline-offset: -3px; }

/* ── Inicio ────────────────────────────────────────────────────────────────── */
.dash { gap: 16px; }
.dash-hero { gap: 14px; }
.dash-hero-avatar { width: 52px; height: 52px; font-size: 1.05rem; }
.dash-hero-hello { font-size: 1.35rem; letter-spacing: -.025em; line-height: 1.2; }
.dash-hero-type { font-size: .88rem; }
.dash-section-label { font-size: .82rem; font-weight: 800; color: var(--m-ink); letter-spacing: -.005em; margin-bottom: 8px; }

/* Credencial tipo carné: datos a la izquierda, un botón grande para mostrar el QR. */
.cred-card--compact {
    flex-direction: row; align-items: stretch; justify-content: space-between; gap: 14px; text-align: left;
    padding: 18px; border-radius: 18px; box-shadow: 0 10px 24px -12px rgba(31, 41, 89, .5);
}
.cred-compact-info { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; }
.cred-card--compact .cred-card-label { font-size: .68rem; letter-spacing: .12em; color: rgba(255, 255, 255, .82); }
.cred-card--compact .cred-card-number { font-size: 1.45rem; letter-spacing: .04em; line-height: 1.1; overflow-wrap: anywhere; }
.cred-card--compact .cred-card-status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #FFFFFF; }
.cred-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8EF0C4; box-shadow: 0 0 0 3px rgba(142, 240, 196, .25); }
.cred-compact-qr {
    flex-shrink: 0; width: 104px; min-height: 104px; border: none; border-radius: 14px; cursor: pointer; background: #FFFFFF; color: var(--m-primary);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font: 800 .76rem var(--m-font); transition: transform 120ms ease;
}
.cred-compact-qr .mud-icon-root { font-size: 52px; }
.cred-compact-qr:active { transform: scale(.97); }
.cred-compact-qr:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }

/* Accesos rápidos en una fila de cuatro. */
.qa-grid--top { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qa-grid--top .qa-item { min-height: 72px; padding: 10px 4px; gap: 6px; border-radius: 14px; font-size: .74rem; font-weight: 700; }
.qa-grid--top .qa-item .mud-icon-root { font-size: 24px; }
.qa-item:hover:not(:disabled), .qa-item:focus-visible { transform: none; box-shadow: none; }
.qa-item:active:not(:disabled) { background: #EEF0F8; }

/* Tarjetas: borde nítido en vez de sombra grande. */
.dash-card { box-shadow: none; border: 1px solid var(--m-line); border-radius: var(--m-radius); }

/* Botones: sin mayúsculas forzadas ni sombras tintadas. */
.mud-button-root { text-transform: none !important; letter-spacing: 0 !important; font-weight: 700 !important; border-radius: 12px !important; }
.mud-button-filled { box-shadow: 0 1px 2px rgba(16, 24, 40, .14) !important; }

@media (prefers-reduced-motion: reduce) { .cred-compact-qr:active { transform: none; } }
.balance-card .balance-text { text-align: left; flex: 1; }

/* ── Repaso de pantallas (25-nov-2026) ─────────────────────────────────────── */
/* La cuenta regresiva del QR va sobre la tarjeta índigo: en gris no se leía. */
.cred-rotate { color: rgba(255, 255, 255, .92); }
/* Inicio de sesión: «Recordarme» y «¿Olvidaste…?» ya no chocan en pantallas angostas. */
.member-auth-row { flex-wrap: wrap; gap: 4px 12px; }
.member-auth-row .mud-link { margin-left: auto; text-align: right; }
.member-auth-title { letter-spacing: -.025em; }
/* Las tarjetas principales no se pegan a la que sigue. */
.mem-hero, .prof-hero, .profile-hero { margin-bottom: 14px; }
.member-body > section + section, .member-body > section + .dash-card, .member-body > .dash-card + section { margin-top: 14px; }
