/* =============================================================================
 *  cuenta.css — Auth + dashboard.
 * ===========================================================================*/
.account-wrap { padding-top: 40px; padding-bottom: 60px; }

/* ---- Auth box ---- */
.auth-box { max-width: 420px; margin: 20px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.auth-box > h2 { margin-bottom: 8px; }
.auth-tabs { display: flex; gap: 4px; background: var(--void); padding: 4px; border-radius: var(--radius-sm); margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.auth-tab.active { background: var(--surface); color: var(--text); }
.auth-form .btn { margin-top: 6px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.google-btn img { background: #fff; border-radius: 3px; padding: 1px; }

/* ---- Dashboard ---- */
.dashboard { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.dash-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--nav-h) + 20px); }
.dash-user { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.dash-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.dash-name { font-weight: 600; }
.dash-nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; }
.dash-link { text-align: left; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; }
.dash-link:hover { background: var(--void); color: var(--text); }
.dash-link.active { background: rgba(var(--accent-rgb), .12); color: var(--accent); }

.dash-content { min-height: 300px; }
.dash-panel h2 { margin-bottom: 18px; }
.dash-empty { text-align: center; padding: 50px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---- Pedidos ---- */
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.order-total { color: var(--accent); font-size: 1.1rem; font-weight: 600; }
.order-items { font-size: .88rem; margin-bottom: 16px; }
.order-timeline { display: flex; justify-content: space-between; position: relative; }
.order-timeline::before { content: ''; position: absolute; top: 7px; left: 5%; right: 5%; height: 2px; background: var(--border); }
.ot-step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; flex: 1; }
.ot-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--border); border: 2px solid var(--base); }
.ot-step.done .ot-dot { background: var(--accent); }
.ot-step.current .ot-dot { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .25); }
.ot-label { font-size: .72rem; color: var(--muted); }
.ot-step.done .ot-label { color: var(--text); }
.order-cancelled { color: #e35d5d; font-weight: 600; }

/* ---- Perfil ---- */
.profile-form { max-width: 460px; }
.profile-form textarea { min-height: 70px; }

/* ---- Seguridad ---- */
.sec-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; max-width: 520px; }
.sec-block h3 { margin-bottom: 6px; }
.sec-block p { margin-bottom: 14px; }
.mfa-enroll { margin-top: 16px; text-align: center; }
.mfa-qr { width: 180px; height: 180px; margin: 14px auto; background: #fff; padding: 8px; border-radius: 8px; }
.mfa-enroll code { background: var(--void); padding: 2px 8px; border-radius: 5px; }

@media (max-width: 820px) {
  .dashboard { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .ot-label { font-size: .62rem; }
}
