/* ============================================================
   WEBËË · Identity Core — estilos del módulo "Mi Cuenta"
   ------------------------------------------------------------
   Archivo nuevo, separado de styles.css (Fase 2 cerrada) — mismo
   criterio que auth-modal.css: componente nuevo, reutiliza las
   variables de marca ya definidas (--ink, --yellow, --paper,
   --line, --r-lg, --shadow-sm, tipografía Plus Jakarta Sans/Inter
   ya cargada) para verse coherente con el resto del sitio sin
   tomar ninguna decisión de diseño nueva.

   Inspirado en el patrón de cuenta de Uber/Mercado Libre/Amazon
   que pidió Bruno: sidebar de navegación + contenido a la derecha
   en desktop; sidebar horizontal scrolleable arriba del contenido
   en mobile.
   ============================================================ */

.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

/* ---- Sidebar ---- */

.account-sidebar {
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--r-lg, 20px);
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(0,0,0,.06));
  padding: 20px;
  position: sticky;
  top: 88px;
}

@media (max-width: 860px) {
  .account-sidebar {
    position: static;
  }
}

.account-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line, #e5e7eb);
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow, #fff877);
  color: var(--ink, #0e1116);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
}

.account-sidebar-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink, #0e1116);
  line-height: 1.3;
}

.account-sidebar-email {
  font-size: 12px;
  color: var(--muted, #6b7280);
  word-break: break-all;
}

.account-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 860px) {
  .account-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }
}

.account-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 12px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #3c434f;
  cursor: pointer;
  white-space: nowrap;
}

.account-sidebar-item:hover {
  background: var(--paper, #f6f7f9);
  color: var(--ink, #0e1116);
}

.account-sidebar-item.active {
  background: var(--ink, #0e1116);
  color: #fff;
}

.account-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 12px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #d33a2c;
  cursor: pointer;
  margin-top: 14px;
  border-top: 1px solid var(--line, #e5e7eb);
  padding-top: 18px;
}

.account-sidebar-logout:hover {
  background: #fdf0ef;
}

/* ---- Contenido ---- */

.account-section-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink, #0e1116);
  margin-bottom: 6px;
}

.account-section-subtitle {
  font-size: 14px;
  color: var(--muted, #6b7280);
  margin-bottom: 22px;
}

.account-badge {
  display: inline-block;
  background: var(--yellow, #fff877);
  color: var(--ink, #0e1116);
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

/* ---- Estado vacío (Membresías, Historial) ---- */

.account-empty-state {
  background: #fff;
  border: 1px dashed var(--line-2, #d5d9e0);
  border-radius: var(--r-lg, 20px);
  padding: 40px 28px;
  text-align: center;
  max-width: 480px;
}

.account-empty-state .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper, #f6f7f9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}

.account-empty-state h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #0e1116);
  margin-bottom: 8px;
}

.account-empty-state p {
  font-size: 13.5px;
  color: var(--muted, #6b7280);
  margin-bottom: 18px;
}
