/* =========================================
   GlowFit member portal — mobile-app aesthetic
   ========================================= */

:root {
  --app-bg: #000;
  --app-surface: #0c0907;
  --app-surface-2: #14100a;
  --app-line: rgba(177, 147, 101, 0.14);
  --app-line-soft: rgba(177, 147, 101, 0.08);
  --side-w: 232px;
  --side-w-collapsed: 76px;
}

.app-shell {
  min-height: 100vh;
  background: var(--app-bg);
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  transition: grid-template-columns 0.25s var(--ease);
}

html.sidebar-collapsed .app-shell {
  grid-template-columns: var(--side-w-collapsed) 1fr;
}

.app-side {
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.6) 0%, rgba(6, 4, 3, 0.6) 100%);
  border-right: 1px solid var(--app-line-soft);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.app-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-logo img {
  height: 38px;
  width: auto;
  transition: opacity 0.2s var(--ease);
}

html.sidebar-collapsed .app-logo img {
  opacity: 0;
  pointer-events: none;
}

.sidebar-toggle {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(177, 147, 101, 0.06);
  border: 1px solid var(--app-line-soft);
  color: var(--cream-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: rgba(177, 147, 101, 0.12);
  color: var(--cream);
}

.app-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: opacity 0.2s var(--ease);
}

html.sidebar-collapsed .app-badge {
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 6px;
  flex: 1;
}

.app-nav a,
.app-nav .shell-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--cream-mute);
  font-size: 13.5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.app-nav a svg,
.app-nav .shell-link-btn svg {
  flex-shrink: 0;
  color: var(--gold-soft);
}

.app-nav a:hover,
.app-nav .shell-link-btn:hover {
  background: rgba(177, 147, 101, 0.06);
  color: var(--cream);
}

.app-nav a span,
.app-nav .shell-link-btn span {
  transition: opacity 0.2s var(--ease);
}

html.sidebar-collapsed .app-nav a span,
html.sidebar-collapsed .app-nav .shell-link-btn span,
html.sidebar-collapsed .app-nav-section {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  width: 0;
}

.app-nav-section {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream-dim);
  margin: 10px 11px 2px;
  transition: opacity 0.2s var(--ease);
}

.app-side-user {
  font-size: 10.5px;
  color: var(--cream-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
  padding: 6px 11px;
  border-top: 1px solid var(--app-line-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.sidebar-collapsed .app-side-user {
  opacity: 0;
  height: 0;
  padding: 0;
  border: 0;
}

.app-main {
  padding: 26px 32px 80px;
  background: var(--app-bg);
  min-height: 100vh;
}

.app-main .page {
  max-width: 1040px;
  margin: 0 auto;
}

/* ===== Hero card ===== */
.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  background:
    radial-gradient(ellipse at 88% -10%, rgba(177, 147, 101, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(20, 15, 10, 0.95) 0%, rgba(8, 5, 3, 0.95) 100%);
  border: 1px solid var(--app-line);
  border-radius: 18px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.hero-greeting {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero-card-left h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 4px 0 10px;
  letter-spacing: -0.028em;
  line-height: 1;
}

.hero-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill-soft {
  background: rgba(177, 147, 101, 0.12);
  color: var(--cream);
  border-color: var(--app-line);
}

.hero-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 24px rgba(177, 147, 101, 0.22);
  flex-shrink: 0;
}

/* ===== Stats pill row ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.stat-pill {
  background: var(--app-surface);
  border: 1px solid var(--app-line-soft);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-pill-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-pill-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 2px;
}

/* ===== Section blocks ===== */
.block-bare {
  margin-bottom: 18px;
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.block-head h2 {
  font-size: 15.5px;
  margin: 0;
  letter-spacing: -0.005em;
  font-weight: 600;
}

.block-link {
  font-size: 12px;
  color: var(--gold-soft);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.block-link:hover {
  color: var(--gold);
}

/* ===== Quick actions ===== */
.quick-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-card-v2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 13px;
  background: var(--app-surface);
  border: 1px solid var(--app-line-soft);
  border-radius: 12px;
  color: var(--cream);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.quick-card-v2:hover {
  border-color: var(--app-line);
  transform: translateY(-1px);
}

.quick-card-v2 strong {
  font-size: 13.5px;
  font-weight: 600;
}

.quick-card-v2 span {
  color: var(--cream-dim);
  font-size: 11px;
}

.qc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(177, 147, 101, 0.08);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.quick-accent {
  background: linear-gradient(180deg, rgba(177, 147, 101, 0.18) 0%, rgba(177, 147, 101, 0.04) 100%);
  border-color: var(--gold-line);
}

.quick-accent .qc-icon {
  background: rgba(177, 147, 101, 0.2);
  color: var(--gold-soft);
}

/* ===== Recommended classes ===== */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* (Las reglas reales de .rec-card / .rec-thumb están más abajo, layout vertical
   con miniatura grande. Se quitó aquí el layout viejo de fila con miniatura 56px
   que provocaba la miniatura minúscula.) */
.rec-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.rec-info strong {
  font-size: 14px;
  font-weight: 600;
}

.rec-when {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.rec-sub {
  color: var(--cream-mute);
  font-size: 12px;
}

.rec-spots {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(177, 147, 101, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--app-line);
  white-space: nowrap;
}

/* ===== Event horizontal scroll ===== */
.event-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.event-scroll::-webkit-scrollbar {
  display: none;
}

.event-card {
  flex-shrink: 0;
  width: clamp(240px, 32vw, 290px);
  aspect-ratio: 4 / 5;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--app-surface);
  border: 1px solid var(--app-line-soft);
}

.event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.95) 100%);
}

.event-card-body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: var(--cream);
}

.event-card-body h3 {
  margin: 4px 0 4px;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.event-card-body p {
  margin: 0;
  font-size: 12.5px;
  color: var(--cream-mute);
}

.event-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(177, 147, 101, 0.18);
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--app-line);
}

/* ===== Timeline ===== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: var(--app-surface);
  border: 1px solid var(--app-line-soft);
  border-radius: 10px;
}

.timeline strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(177, 147, 101, 0.5);
  margin-top: 6px;
}

.timeline li.timeline-empty {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.timeline-empty p {
  color: var(--cream-dim);
  font-size: 13px;
  margin: 0;
}

.btn-pill {
  display: inline-block;
  padding: 8px 18px;
  background: var(--gold);
  color: var(--bg-deep);
  border-radius: 999px;
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s var(--ease);
}

.btn-pill:hover {
  background: var(--gold-soft);
}

/* ===== Bottom nav (mobile only) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 14px max(5px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--app-line-soft);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 4px 4px 2px;
  border-radius: 12px;
  transition: color 0.2s var(--ease);
}

.bn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bn-icon svg {
  width: 19px;
  height: 19px;
}

.bn-label {
  font-size: 9px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bn-active {
  color: var(--gold-soft);
}

.bn-accent .bn-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--bg-deep);
  margin-top: -22px;
  box-shadow: 0 6px 20px rgba(177, 147, 101, 0.45);
  border: 3px solid #000;
}

.bn-accent.bn-active {
  color: var(--gold);
}

.bn-accent .bn-label {
  margin-top: 2px;
}

/* ===== QR card ===== */
.qr-card-v2 {
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.95) 0%, rgba(8, 5, 3, 0.95) 100%);
  border: 1px solid var(--app-line);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  max-width: 440px;
  margin: 0 auto;
}

.qr-card-v2 .qr-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.qr-card-v2 h2 {
  margin: 0;
  font-size: 20px;
  text-align: center;
}

.qr-card-v2 .qr-image {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  background: var(--cream);
  padding: 14px;
}

.qr-meta-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Session/event grids ===== */
.app-main .session-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.app-main .session-card {
  background: var(--app-surface);
  border: 1px solid var(--app-line-soft);
  border-radius: 12px;
  padding: 14px 16px;
}

.app-main .block {
  background: var(--app-surface);
  border: 1px solid var(--app-line-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

/* Horarios: lista de tarjetas (sin tabla, no requiere scroll lateral en móvil). */
.sched-list { display: flex; flex-direction: column; gap: 8px; }
.sched-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--app-surface-2, rgba(255,255,255,0.02));
  border: 1px solid var(--app-line-soft);
  border-radius: 10px;
}
.sched-time {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-soft);
  min-width: 64px;
}
.sched-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sched-info strong { font-size: 14.5px; font-weight: 600; }
.sched-info span { font-size: 12.5px; color: var(--cream-mute); }
.sched-price { flex: 0 0 auto; font-family: var(--mono); font-size: 13px; color: var(--gold-soft); }

.app-main .block h2 {
  font-size: 15px;
  margin: 0 0 12px;
}

/* =================
   Mobile breakpoint
   ================= */
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr !important;
  }
  .app-side {
    display: none;
  }
  .app-main {
    padding: 22px 16px 78px;
  }
  .bottom-nav {
    display: flex;
  }
  .hero-card {
    padding: 20px 20px;
    border-radius: 16px;
  }
  .hero-card-left h1 {
    font-size: 26px;
  }
  .hero-avatar {
    width: 70px;
    height: 70px;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }
  .stat-pill {
    padding: 10px;
  }
  .stat-pill-num {
    font-size: 16px;
  }
  .stat-pill-label {
    font-size: 8.5px;
  }
  .quick-grid-v2 {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .event-card {
    width: 75vw;
  }
  .qr-card-v2 {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .stat-pill-num {
    font-size: 15px;
  }
  .stat-pill-label {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .quick-card-v2 strong {
    font-size: 12.5px;
  }
}

/* ===========================
   Member dashboard v3 — compact consolidated
   =========================== */

.app-main .page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Snapshot bar */
.mp-snapshot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  background:
    radial-gradient(ellipse at 88% -20%, rgba(177, 147, 101, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(20, 15, 10, 0.95) 0%, rgba(8, 5, 3, 0.95) 100%);
  border: 1px solid var(--app-line);
  border-radius: 16px;
}

.mp-snap-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mp-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(177, 147, 101, 0.25);
  flex-shrink: 0;
}

.mp-photo-placeholder {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.mp-snap-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mp-greeting {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.mp-snap-text h1 {
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1;
}

.mp-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.mp-snap-mini {
  display: flex;
  gap: 8px;
}

.mp-snap-mini > div {
  text-align: center;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--app-line-soft);
  border-radius: 10px;
  min-width: 64px;
}

.mp-mini-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
}

.mp-mini-num small {
  font-size: 12px;
  font-weight: 500;
  margin-left: 1px;
}

.mp-mini-lbl {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 2px;
}

/* Grid de cards */
.mp-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.mp-card {
  background: var(--app-surface);
  border: 1px solid var(--app-line-soft);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.mp-card-head h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.mp-card-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.mp-card-link {
  font-size: 11.5px;
  color: var(--gold-soft);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mp-card-link:hover {
  color: var(--gold);
}

/* Tarjeta "Tu plan" en Inicio: nombre del plan + qué incluye */
.mp-plan-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mp-plan-name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}
.mp-plan-includes {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mp-plan-includes li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  opacity: 0.82;
}
.mp-plan-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-soft);
  font-weight: 700;
}

/* Activity */
.mp-activity {
  grid-row: 1 / 3;
}

.mp-week-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  height: 130px;
  align-items: end;
}

.mp-week-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.mp-week-bar-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: rgba(177, 147, 101, 0.04);
  border-radius: 6px;
  overflow: hidden;
}

.mp-week-bar {
  width: 100%;
  background: rgba(177, 147, 101, 0.15);
  border-radius: 6px;
  min-height: 6px;
  transition: height 0.4s var(--ease);
}

.mp-week-bar.is-done {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  box-shadow: 0 0 12px rgba(177, 147, 101, 0.3);
}

.mp-week-day {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
}

.mp-streak {
  padding: 10px 12px;
  background: rgba(177, 147, 101, 0.06);
  border: 1px solid var(--app-line);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--cream);
}

/* Next class */
.mp-next-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: block;
  text-decoration: none;
}

.mp-next-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-next-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 80%);
}

.mp-next-body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mp-next-body strong {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.mp-next-body span {
  font-size: 12.5px;
  color: var(--cream-mute);
}

.mp-next-meta {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft) !important;
}

/* QR card */
.mp-qr-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(177, 147, 101, 0.14) 0%, rgba(177, 147, 101, 0.02) 100%);
  border: 1px solid var(--app-line);
  color: var(--cream);
  text-decoration: none;
}

.mp-qr-pattern {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mp-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mp-qr-meta strong {
  font-size: 14px;
  font-weight: 600;
}

.mp-qr-meta .mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cream-mute);
}

.mp-qr-tag {
  font-size: 11px;
  color: var(--gold-soft);
  margin-top: 2px;
}

/* Billing card */
.mp-billing-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--cream);
  line-height: 1;
}

.mp-amount small {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-mute);
  margin-left: 4px;
}

.mp-billing-main p {
  margin: 6px 0 0;
  font-size: 12.5px;
}

.mp-billing-bar {
  height: 6px;
  background: rgba(177, 147, 101, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.mp-billing-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 999px;
}

/* Events row */
.mp-events-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mp-event-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
}

.mp-event-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-event-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 75%);
}

.mp-event-body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-event-tag {
  display: inline-block;
  width: fit-content;
  padding: 3px 8px;
  background: rgba(177, 147, 101, 0.22);
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 6px;
}

.mp-event-body strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.mp-event-body span {
  font-size: 12px;
  color: var(--cream-mute);
}

/* Booking list */
.mp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  background: rgba(177, 147, 101, 0.04);
  border-radius: 10px;
}

.mp-list strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 1px;
}

.mp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(177, 147, 101, 0.45);
  margin-top: 5px;
}

.mp-list li.mp-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px;
  background: transparent;
}

.mp-list-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--cream-dim);
}

/* Mobile breakpoint for member dashboard v3 */
@media (max-width: 900px) {
  .mp-snapshot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .mp-snap-left {
    gap: 12px;
  }
  .mp-photo {
    width: 56px;
    height: 56px;
  }
  .mp-snap-text h1 {
    font-size: 22px;
  }
  .mp-snap-mini {
    gap: 6px;
  }
  .mp-snap-mini > div {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
  }
  .mp-mini-num {
    font-size: 17px;
  }
  .mp-grid {
    grid-template-columns: 1fr;
  }
  .mp-activity {
    grid-row: auto;
  }
  .mp-events-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .mp-event-body strong {
    font-size: 13px;
  }
  .mp-event-body span {
    font-size: 11px;
  }
}

/* Fix for collapsed sidebar — sign out text */
html.sidebar-collapsed .app-nav button.shell-link-btn span {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  width: 0;
}

/* =================================
   Member portal v4 — phone-frame app
   Distinct from admin SaaS layout
   ================================= */
.mp-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(177, 147, 101, 0.08), transparent 50%),
    #000;
  display: flex;
  flex-direction: column;
  position: relative;
}

.mp-appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px max(12px, env(safe-area-inset-top));
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--app-line-soft);
}

.mp-appbar-brand img {
  height: 30px;
  width: auto;
}

.mp-appbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.mp-appbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 18px 110px;
  position: relative;
}

.mp-side-actions {
  position: fixed;
  top: 14px;
  right: calc(50% - 300px);
  z-index: 60;
}

.mp-side-actions .shell-link-btn {
  background: transparent;
  border: 1px solid var(--app-line-soft);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--cream-mute);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.mp-side-actions .shell-link-btn:hover {
  color: var(--cream);
  border-color: var(--app-line);
}

.mp-side-actions .shell-link-btn span {
  display: none;
}

.mp-side-actions .shell-link-btn svg {
  width: 16px;
  height: 16px;
  color: var(--cream-mute);
}

/* Overrides for the member dashboard inside mp-main */
.mp-main .page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-main .mp-snapshot {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 18px 18px;
}

.mp-main .mp-snap-left {
  gap: 14px;
}

.mp-main .mp-photo {
  width: 56px;
  height: 56px;
}

.mp-main .mp-snap-text h1 {
  font-size: 24px;
}

.mp-main .mp-snap-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mp-main .mp-snap-mini > div {
  min-width: 0;
  padding: 10px 8px;
}

.mp-main .mp-mini-num {
  font-size: 18px;
}

.mp-main .mp-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.mp-main .mp-activity {
  grid-row: auto;
}

.mp-main .mp-events-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

@media (max-width: 540px) {
  .mp-appbar {
    padding: 12px 16px max(10px, env(safe-area-inset-top));
  }
  .mp-main {
    padding: 14px 14px 110px;
  }
  .mp-side-actions {
    right: 16px;
    top: 14px;
  }
}

/* ============ Member portal v5: hybrid sidebar (desktop) + phone-frame (mobile) ============ */

/* DESKTOP: sidebar on left, full-width main */
.mp-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: #000;
}

.mp-side {
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.6) 0%, rgba(6, 4, 3, 0.6) 100%);
  border-right: 1px solid var(--app-line-soft);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.mp-side-logo img {
  height: 40px;
  width: auto;
}

.mp-side-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-mute);
}

.mp-side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(177, 147, 101, 0.06);
  border: 1px solid var(--app-line-soft);
  border-radius: 12px;
}

.mp-side-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--bg-deep);
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
}

.mp-side-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-side-user div {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.mp-side-user strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
}

.mp-side-user small {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 2px;
}

.mp-side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mp-side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--cream-mute);
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mp-side-nav a:hover {
  background: rgba(177, 147, 101, 0.06);
  color: var(--cream);
}

.mp-side-nav svg {
  flex-shrink: 0;
  color: var(--gold-soft);
}

.mp-side .shell-link-btn {
  background: transparent;
  border: 1px solid var(--app-line-soft);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--cream-mute);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.mp-side .shell-link-btn:hover {
  color: var(--cream);
  border-color: var(--app-line);
}

.mp-appbar {
  display: none;
}

.mp-main {
  padding: 24px 32px 80px;
  max-width: 100%;
  margin: 0;
}

.mp-main .page {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* On desktop revert grid to 2-col and snapshot horizontal */
@media (min-width: 901px) {
  .mp-main .mp-snapshot {
    flex-direction: row;
    align-items: center;
    padding: 18px 24px;
  }
  .mp-main .mp-snap-left {
    gap: 16px;
  }
  .mp-main .mp-photo {
    width: 64px;
    height: 64px;
  }
  .mp-main .mp-snap-text h1 {
    font-size: 28px;
  }
  .mp-main .mp-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
  }
  .mp-main .mp-activity {
    grid-row: 1 / 3;
  }
  .mp-main .mp-snap-mini {
    grid-template-columns: repeat(3, auto);
    gap: 8px;
  }
  .mp-main .mp-snap-mini > div {
    padding: 8px 14px;
    min-width: 70px;
  }
  .mp-main .mp-mini-num {
    font-size: 20px;
  }
}

/* MOBILE: hide sidebar, phone-frame layout */
@media (max-width: 900px) {
  .mp-shell {
    grid-template-columns: 1fr;
    background:
      radial-gradient(circle at 50% 0%, rgba(177, 147, 101, 0.08), transparent 50%),
      #000;
  }
  .mp-side {
    display: none;
  }
  .mp-appbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px max(10px, env(safe-area-inset-top));
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--app-line-soft);
  }
  .mp-appbar-brand img {
    height: 28px;
    width: auto;
  }
  .mp-appbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: var(--bg-deep);
    font-weight: 700;
    font-size: 13px;
  }
  .mp-appbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .mp-main {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 14px 110px;
  }
}

/* ============ Booking modal (member side) ============ */
.book-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: bookFade 0.18s ease-out;
}

@keyframes bookFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.book-modal-card {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(177, 147, 101, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(20, 15, 10, 0.98) 0%, rgba(8, 5, 3, 0.98) 100%);
  border: 1px solid var(--app-line);
  border-radius: 18px;
  padding: 28px 26px;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  animation: bookPop 0.22s var(--ease);
  /* El panel de miembro usa tema claro (texto oscuro); el modal es oscuro, así
     que forzamos texto claro para que no quede invisible. */
  color: #f4ead5;
}
.book-modal-card .btn-mini { color: #f4ead5; border-color: rgba(177, 147, 101, 0.4); }

@keyframes bookPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.book-step {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.book-modal-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
}

.book-modal-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(177, 147, 101, 0.06);
  border: 1px solid var(--app-line-soft);
  border-radius: 12px;
}

.book-modal-body strong {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.book-modal-body span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.book-modal-tip {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: rgba(244, 234, 213, 0.72);
  line-height: 1.5;
}

.book-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.book-modal-actions .btn-mini-primary {
  flex: 1;
}

.book-modal-success {
  align-items: center;
  text-align: center;
}

.book-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(120, 200, 140, 0.12);
  color: #b9e0c2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  border: 1.5px solid rgba(120, 200, 140, 0.3);
}

.book-modal-success p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(244, 234, 213, 0.78);
  line-height: 1.55;
}

/* =========================================================
   Fase 4 — Grabaciones (biblioteca on-demand) + en vivo
   ========================================================= */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.rec-card {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rec-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 140px;
  background: var(--app-surface-2);
  overflow: hidden;
}

.rec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-thumb-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 150, 63, 0.12), rgba(20, 15, 10, 0.6));
}

.rec-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--cream);
  font-size: 11px;
  font-family: var(--mono);
  padding: 3px 8px;
  border-radius: 999px;
}

.rec-locked .rec-thumb img,
.rec-locked .rec-thumb-ph {
  filter: grayscale(0.7) brightness(0.5);
}

.rec-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
}

.rec-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rec-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.rec-body h3 {
  font-size: 16px;
  margin: 0;
}

.rec-play-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}

.rec-upsell {
  margin-top: 8px;
  align-self: flex-start;
  opacity: 0.85;
}

/* Modal del reproductor */
.rec-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rec-modal-inner {
  width: min(900px, 100%);
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  overflow: hidden;
}

.rec-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--app-line);
}

.rec-modal-close {
  background: none;
  border: none;
  color: var(--cream-mute);
  font-size: 18px;
  cursor: pointer;
}

.rec-modal-stage {
  aspect-ratio: 16 / 9;
  background: #000;
}

/* Clase EN VIVO: modal más grande + botón pantalla completa */
.live-modal-inner {
  width: min(1100px, 96vw);
}
.live-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-fs-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--cream);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}
.live-fs-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.live-stage:fullscreen {
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh;
}
.live-stage:fullscreen mux-player {
  width: 100%;
  height: 100%;
}

.rec-modal-stage video,
.rec-modal-stage iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.rec-modal-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--cream-mute);
  font-size: 14px;
}

/* Badge EN VIVO */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #ff5a5a;
  border: 1px solid rgba(255, 90, 90, 0.4);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5a5a;
  animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.session-live {
  border-color: rgba(255, 90, 90, 0.35);
}

.live-join {
  margin: 8px 0;
  align-self: flex-start;
}

/* ===========================
   Variantes sin imagen (datos reales) para Próxima clase y Eventos.
   Reemplazan los tiles con foto de stock por tarjetas con degradé.
   =========================== */
.mp-next-card.mp-next-plain {
  position: relative;
  aspect-ratio: auto;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(135deg, rgba(177, 147, 101, 0.22) 0%, rgba(20, 15, 10, 0.6) 100%);
  border: 1px solid var(--app-line);
}
.mp-next-card.mp-next-plain .mp-next-body {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
}

.mp-event-tile.mp-event-plain {
  position: relative;
  aspect-ratio: auto;
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(177, 147, 101, 0.2) 0%, rgba(20, 15, 10, 0.55) 100%);
  border: 1px solid var(--app-line);
}
.mp-event-tile.mp-event-plain .mp-event-body {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
}

/* Badge de miembro (reemplaza el patrón QR en la tarjeta "Miembro") */
.mp-id-badge {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 30px;
  font-weight: 700;
  color: var(--cream);
  text-transform: uppercase;
  background: linear-gradient(150deg, rgba(177, 147, 101, 0.45) 0%, rgba(20, 15, 10, 0.7) 100%);
  border: 1px solid var(--app-line);
}
.mp-id-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   REDISEÑO: panel de miembro con FONDO BLANCO + barra negra
   + navegación móvil estilo app + colapsar barra.
   ========================================================= */

/* ---- Botón colapsar (compartido por ambas barras) ---- */
.side-collapse-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.side-collapse-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---- Shell: fondo blanco ---- */
.mp-shell { background: #ffffff; }

/* ---- Barra lateral NEGRA con texto blanco ---- */
.mp-side {
  background: #0c0a08;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.mp-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mp-side-badge {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.16);
}
.mp-side-nav a { color: rgba(255, 255, 255, 0.72); }
.mp-side-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mp-side-nav a.active { background: rgba(201, 162, 78, 0.16); color: #fff; }
.mp-side-nav svg { color: var(--gold-soft); }
.mp-side .shell-link-btn { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.12); }
.mp-side .shell-link-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.22); }

/* ---- Contenido en CLARO (tokens redefinidos solo acá) ---- */
.mp-main {
  --cream: #1d1812;
  --cream-mute: rgba(29, 24, 18, 0.62);
  --cream-dim: rgba(29, 24, 18, 0.45);
  --app-surface: #ffffff;
  --app-surface-2: #faf7f1;
  --app-line: rgba(40, 30, 15, 0.12);
  --app-line-soft: rgba(40, 30, 15, 0.07);
  --gold-soft: #9a7b3f;
  color: #1d1812;
}
.mp-main .mp-card,
.mp-main .session-card,
.mp-main .block {
  background: #ffffff;
  border: 1px solid rgba(40, 30, 15, 0.1);
  box-shadow: 0 14px 30px -22px rgba(60, 45, 20, 0.25);
}
.mp-main .mp-snapshot {
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
  border: 1px solid rgba(40, 30, 15, 0.1);
  box-shadow: 0 14px 30px -22px rgba(60, 45, 20, 0.22);
}
.mp-main .mp-snap-text h1,
.mp-main .mp-mini-num { color: #1d1812; }
.mp-main .mp-snap-mini > div {
  background: #faf6ee;
  border-color: rgba(40, 30, 15, 0.1);
}
.mp-main .empty,
.mp-main .muted,
.mp-main .mp-list-empty p { color: rgba(29, 24, 18, 0.55); }
.mp-main .mp-list li {
  background: #faf7f1;
  border: 1px solid rgba(40, 30, 15, 0.08);
}
/* Tiles sin foto: degradé dorado claro en vez de oscuro */
.mp-main .mp-next-card.mp-next-plain,
.mp-main .mp-event-tile.mp-event-plain {
  background: linear-gradient(150deg, rgba(154, 123, 63, 0.16) 0%, rgba(154, 123, 63, 0.04) 100%);
  border: 1px solid rgba(40, 30, 15, 0.1);
}
.mp-main .mp-next-plain .mp-next-body strong,
.mp-main .mp-event-plain .mp-event-body strong { color: #1d1812; }

/* ---- Colapsar barra (escritorio) ---- */
.mp-shell.is-collapsed { grid-template-columns: 72px 1fr; }
.mp-shell.is-collapsed .mp-nav-label,
.mp-shell.is-collapsed .mp-side-badge,
.mp-shell.is-collapsed .shell-link-btn span { display: none; }
.mp-shell.is-collapsed .mp-side-nav a,
.mp-shell.is-collapsed .shell-link-btn { justify-content: center; }
.mp-shell.is-collapsed .mp-side-head { flex-direction: column; gap: 10px; }

/* =========================================================
   Navegación móvil (barra inferior) — compartida admin/miembro
   ========================================================= */
.mnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  justify-content: space-around;
  align-items: stretch;
  background: #0c0a08;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
.mnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: var(--sans);
  padding: 6px 2px;
}
.mnav-item.is-active { color: var(--gold-soft); }
.mnav-ico { display: grid; place-items: center; }
.mnav-label { font-size: 10px; letter-spacing: 0.02em; }
.mnav-more.is-active { color: #fff; }

.mnav-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 59; }
.mnav-sheet {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 74px;
  z-index: 61;
  background: #141210;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}
.mnav-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14.5px;
}
.mnav-sheet-item:hover,
.mnav-sheet-item.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mnav-sheet-item svg { color: var(--gold-soft); flex-shrink: 0; }

@media (max-width: 900px) {
  .mp-shell { grid-template-columns: 1fr; }
  .mp-side { display: none; }
  .mnav { display: flex; }
}

/* =========================================================
   Ajustes panel de miembro (claro): tarjetas, tipografía,
   pill de estado, saludo grande + fecha a la derecha.
   ========================================================= */

/* Tarjetas KPI (.stat) e inputs ya no grises: claros */
.mp-main .stat {
  background: #ffffff;
  border: 1px solid rgba(40, 30, 15, 0.1);
  box-shadow: 0 14px 30px -22px rgba(60, 45, 20, 0.22);
}
.mp-main .stat-value { color: #1d1812; }
.mp-main .admin-form input,
.mp-main .admin-form select,
.mp-main .admin-form textarea {
  background: #ffffff;
  border: 1px solid rgba(40, 30, 15, 0.16);
  color: #1d1812;
}
.mp-main .admin-form input::placeholder,
.mp-main .admin-form textarea::placeholder { color: rgba(29, 24, 18, 0.4); }
.mp-main .admin-form input:focus,
.mp-main .admin-form select:focus,
.mp-main .admin-form textarea:focus { border-color: rgba(154, 123, 63, 0.6); }

/* Títulos planos (Inter) como el panel admin */
.mp-main h1,
.mp-main h2,
.mp-main h3,
.mp-main .page-head h1 { font-family: var(--sans); letter-spacing: -0.015em; }
.mp-main .page-head h1 { font-weight: 700; }
.mp-main h2 { font-weight: 600; }

/* Pill "Activa" más visible (verde más marcado) */
.mp-main .pill-converted,
.mp-main .pill-approved,
.mp-main .pill-going,
.mp-main .pill-booked {
  color: #1d7a43;
  background: rgba(34, 160, 90, 0.16);
  border-color: rgba(34, 160, 90, 0.4);
  font-weight: 600;
}

/* Saludo grande + fecha a la derecha */
.mp-main .mp-greeting {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-soft);
}
.mp-main .mp-snap-text h1 { font-size: 32px; }
.mp-snap-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.mp-main .mp-snap-date {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: #1d1812;
}
.mp-main .mp-snap-date::first-letter { text-transform: uppercase; }

/* =========================================================
   Barra lateral de miembro con estructura tipo admin:
   panel flotante redondeado + secciones + tarjeta de perfil abajo.
   ========================================================= */
.mp-shell { grid-template-columns: 250px 1fr; }

.mp-side {
  margin: 14px;
  border-radius: 24px;
  background: #0c0a08;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px -26px rgba(0, 0, 0, 0.6);
  padding: 0;
  height: auto;
  align-self: stretch;
  position: relative;
  top: auto;
}
.mp-side-inner {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}
.mp-side-head { padding: 6px 8px 10px; }

.mp-side-nav { flex: 1; overflow-y: auto; gap: 2px; }
.mp-nav-group { display: flex; flex-direction: column; gap: 2px; }
.mp-nav-section {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 15px 10px 6px;
}
.mp-side-nav a { border-radius: 13px; }

.mp-side-foot { padding-top: 12px; }
.mp-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.mp-profile-card:hover { border-color: rgba(201, 162, 78, 0.4); }
.mp-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(150deg, #c2a36a 0%, #8a6c30 100%);
}
.mp-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-profile-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mp-profile-meta strong {
  font-size: 13px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-profile-meta small {
  font-size: 11px; color: rgba(255, 255, 255, 0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-profile-chev { color: rgba(255, 255, 255, 0.4); flex-shrink: 0; }

/* Colapsar (escritorio) con la nueva estructura */
.mp-shell.is-collapsed { grid-template-columns: 90px 1fr; }
.mp-shell.is-collapsed .mp-nav-label,
.mp-shell.is-collapsed .mp-nav-section,
.mp-shell.is-collapsed .mp-profile-meta,
.mp-shell.is-collapsed .mp-profile-chev,
.mp-shell.is-collapsed .shell-link-btn span { display: none; }
.mp-shell.is-collapsed .mp-side-nav a,
.mp-shell.is-collapsed .mp-profile-card,
.mp-shell.is-collapsed .shell-link-btn { justify-content: center; }
.mp-shell.is-collapsed .mp-side-head { flex-direction: column; gap: 10px; }

/* ===== Sección de Planes (portal de miembro) ===== */
.mp-main .plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.mp-main .plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(40, 30, 15, 0.12);
  box-shadow: 0 14px 30px -22px rgba(60, 45, 20, 0.22);
}
.mp-main .plan-card.plan-popular { border-color: rgba(154, 123, 63, 0.55); }
.mp-main .plan-card.plan-current { border-color: rgba(34, 160, 90, 0.5); }
.mp-main .plan-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(154, 123, 63, 0.16);
  color: #9a7b3f;
}
.mp-main .plan-tag-current { background: rgba(34, 160, 90, 0.16); color: #1d7a43; }
.mp-main .plan-card h3 { font-family: var(--sans); font-size: 18px; margin: 0; color: #1d1812; }
.mp-main .plan-freq { font-size: 12.5px; color: rgba(29, 24, 18, 0.55); margin: 0; }
.mp-main .plan-price {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  color: #1d1812;
  margin: 6px 0 0;
  letter-spacing: -0.02em;
}
.mp-main .plan-price span { font-size: 13px; font-weight: 500; color: rgba(29, 24, 18, 0.5); margin-left: 2px; }
.mp-main .plan-per { font-size: 11.5px; color: rgba(29, 24, 18, 0.45); margin: 0; }
.mp-main .plan-desc { font-size: 13px; color: rgba(29, 24, 18, 0.62); margin: 6px 0 0; line-height: 1.4; }
.mp-main .plan-cta { margin-top: 12px; width: 100%; justify-content: center; }

/* Menú contraído (miembro): logo más grande, avatar que encaja, centrado */
.mp-shell.is-collapsed { grid-template-columns: 112px 1fr; }
.mp-shell.is-collapsed .mp-side-head {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 8px 8px;
}
.mp-shell.is-collapsed .mp-side-logo { width: 100%; display: flex; justify-content: center; }
.mp-shell.is-collapsed .mp-side-logo img { width: 86px; height: auto; }
.mp-shell.is-collapsed .mp-side-nav a { padding: 11px 0; }
.mp-shell.is-collapsed .mp-profile-card { padding: 9px; }
.mp-shell.is-collapsed .mp-profile-avatar { width: 44px; height: 44px; }

/* =========================================================
   MÓVIL (definitivo): ocultar barra lateral y usar una sola
   columna en AMBOS paneles, incluso si quedó "contraído".
   Va al final para ganarle a cualquier regla previa.
   ========================================================= */
@media (max-width: 900px) {
  .mp-shell,
  .mp-shell.is-collapsed,
  .ad-shell,
  .ad-shell.is-collapsed {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  .mp-side,
  .ad-side { display: none !important; }
  .mnav { display: flex !important; }
  .mp-main { padding: 18px 16px 96px !important; }
  .ad-main { padding: 18px 16px 96px !important; }

  /* Barra superior NEGRA (no gris), con la foto que abre el perfil */
  .mp-appbar {
    display: flex !important;
    background: #0c0a08 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .mp-appbar-avatar {
    border: 1.5px solid rgba(201, 162, 78, 0.7);
    overflow: hidden;
  }

  /* El email largo ya no se sale de la tarjeta */
  .mp-main .stat-value { overflow-wrap: anywhere; word-break: break-word; }
}

/* Snapshot del inicio: en móvil, fecha + "días aquí" como línea fina ARRIBA */
@media (max-width: 620px) {
  .mp-main .mp-snapshot { flex-direction: column; align-items: stretch; gap: 12px; }

  .mp-snap-aside {
    order: -1;                 /* sube la fila al tope de la tarjeta */
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(40, 30, 15, 0.1);
  }
  .mp-main .mp-snap-date { font-size: 13px; white-space: nowrap; }

  /* "10 días aquí": de caja a texto chico en una sola línea */
  .mp-snap-aside .mp-snap-mini { gap: 0; flex-shrink: 0; }
  .mp-snap-aside .mp-snap-mini > div {
    background: transparent;
    border: 0;
    padding: 0;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
  }
  .mp-snap-aside .mp-mini-num { font-size: 15px; }
  .mp-snap-aside .mp-mini-lbl { margin-top: 0; letter-spacing: 0.08em; white-space: nowrap; }

  .mp-main .mp-grid { grid-template-columns: 1fr; }
}

/* ===== Menú desplegable de la barra superior (móvil): foto + flecha ===== */
.appbar-menu { position: relative; }
.appbar-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.appbar-chev { color: rgba(255, 255, 255, 0.75); transition: transform 0.18s ease; }
.appbar-trigger[aria-expanded="true"] .appbar-chev { transform: rotate(180deg); }

.appbar-scrim { position: fixed; inset: 0; z-index: 70; }
.appbar-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 71;
  min-width: 200px;
  background: #141210;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.appbar-dd-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 12px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14.5px;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.appbar-dd-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.appbar-dd-item svg { color: var(--gold-soft); flex-shrink: 0; }

/* =========================================================
   Sección de Planes del miembro (tema claro) — 3 niveles
   ========================================================= */
.mp-main .mpl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.mp-main .mpl-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(40, 30, 15, 0.12);
  color: rgba(29, 24, 18, 0.6);
  background: #fff;
}
.mp-main .mpl-pill strong { color: #1d1812; font-weight: 600; }
.mp-main .mpl-pill-best { border-color: rgba(154, 123, 63, 0.5); color: #9a7b3f; background: rgba(154, 123, 63, 0.08); }
.mp-main .mpl-pill-best strong { color: #9a7b3f; }

/* Founding */
.mp-main .mpl-founding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border: 1px solid rgba(154, 123, 63, 0.45) !important;
}
.mp-main .mpl-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7b3f;
  margin-bottom: 6px;
}
.mp-main .mpl-founding-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mp-main .mpl-founding-price { font-family: var(--sans); font-size: 34px; font-weight: 700; color: #1d1812; }
.mp-main .mpl-founding-price small { font-size: 13px; font-weight: 500; color: rgba(29, 24, 18, 0.5); }
.mp-main .mpl-was { font-size: 12px; color: rgba(29, 24, 18, 0.45); text-decoration: line-through; }

/* Grid de tarjetas */
.mp-main .mpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.mp-main .mpl-grid-small { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mp-main .mpl-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(40, 30, 15, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 30px -22px rgba(60, 45, 20, 0.22);
}
.mp-main .mpl-card-pop { border-color: rgba(154, 123, 63, 0.5); }
.mp-main .mpl-badge {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(154, 123, 63, 0.16);
  color: #9a7b3f;
}
.mp-main .mpl-card h3 { font-family: var(--serif); font-size: 20px; margin: 0; color: #1d1812; }
.mp-main .mpl-blurb { font-size: 12.5px; color: rgba(29, 24, 18, 0.58); margin: 6px 0 0; line-height: 1.4; }

/* Bloque por frecuencia + niveles (botones) */
.mp-main .mpl-freq { margin-top: 16px; }
.mp-main .mpl-freq-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(29, 24, 18, 0.5);
  margin-bottom: 8px;
}
.mp-main .mpl-tier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.mp-main .mpl-tier {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 6px;
  border-radius: 10px;
  background: #faf7f1;
  border: 1px solid rgba(40, 30, 15, 0.1);
  cursor: pointer;
  text-align: center;
  font-family: var(--sans);
  transition: border-color 0.15s, background 0.15s;
}
.mp-main .mpl-tier:hover:not(:disabled) { border-color: rgba(154, 123, 63, 0.6); background: #fff; }
.mp-main .mpl-tier:disabled { opacity: 0.6; cursor: default; }
.mp-main .mpl-tier-best { border-color: rgba(154, 123, 63, 0.55); background: rgba(154, 123, 63, 0.08); }
.mp-main .mpl-tier-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(29, 24, 18, 0.5);
}
.mp-main .mpl-tier-price { font-size: 18px; font-weight: 700; color: #1d1812; }
.mp-main .mpl-tier-price small { font-size: 9px; font-weight: 500; color: rgba(29, 24, 18, 0.45); }

/* 1:1 filas */
.mp-main .mpl-oto-tiers { display: flex; flex-direction: column; margin-top: 14px; }
.mp-main .mpl-oto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  border: 0;
  border-top: 1px solid rgba(40, 30, 15, 0.08);
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-radius: 8px;
}
.mp-main .mpl-oto-row:first-child { border-top: 0; }
.mp-main .mpl-oto-row:hover:not(:disabled) { background: rgba(154, 123, 63, 0.07); }
.mp-main .mpl-oto-best .mpl-tier-label { color: #9a7b3f; }
.mp-main .mpl-oto-price { display: flex; flex-direction: column; align-items: flex-end; font-size: 18px; font-weight: 700; color: #1d1812; }
.mp-main .mpl-oto-price small { font-family: var(--sans); font-size: 11px; font-weight: 500; color: rgba(29, 24, 18, 0.45); }

/* Drop-in / paquetes */
.mp-main .mpl-dropin {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Más espacio arriba: el círculo de selección va en la esquina superior
     derecha (absoluto) y así el título no choca con él. */
  padding: 32px 16px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(40, 30, 15, 0.1);
  text-align: center;
}
.mp-main .mpl-dropin-feat { border-color: rgba(34, 160, 90, 0.4); background: rgba(34, 160, 90, 0.06); }
.mp-main .mpl-dropin-label { font-size: 12px; color: rgba(29, 24, 18, 0.6); }
.mp-main .mpl-dropin-price { font-family: var(--sans); font-size: 24px; font-weight: 700; color: #1d1812; }
.mp-main .mpl-dropin-note { font-size: 10.5px; color: rgba(29, 24, 18, 0.45); }

/* ===== Selección de planes (selecciona -> resalta -> confirma) ===== */
/* Toggle de compromiso */
.mp-main .mpl-toggle {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(154, 123, 63, 0.07);
  border: 1px solid rgba(154, 123, 63, 0.22);
}
.mp-main .mpl-toggle-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(29, 24, 18, 0.55);
  transition: background 0.18s, color 0.18s;
}
.mp-main .mpl-toggle-opt strong { font-family: var(--sans); font-size: 13px; font-weight: 600; }
.mp-main .mpl-toggle-opt small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(29, 24, 18, 0.4);
}
.mp-main .mpl-toggle-opt.is-active {
  background: linear-gradient(180deg, #b5945f, #9a7b3f);
  color: #fff;
}
.mp-main .mpl-toggle-opt.is-active small { color: rgba(255, 255, 255, 0.8); }
.mp-main .mpl-toggle-opt:hover:not(.is-active) { color: #1d1812; }
/* Móvil: los 3 plazos en una sola fila, segmentos iguales (sin envolver torcido). */
@media (max-width: 560px) {
  .mp-main .mpl-toggle { width: 100%; flex-wrap: nowrap; }
  .mp-main .mpl-toggle-opt { flex: 1 1 0; min-width: 0; padding: 8px 4px; text-align: center; }
  .mp-main .mpl-toggle-opt strong { font-size: 12px; }
  .mp-main .mpl-toggle-opt small { font-size: 7.5px; letter-spacing: 0.02em; }
}

/* Filas de frecuencia seleccionables (radio) */
.mp-main .mpl-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.mp-main .mpl-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf7f1;
  border: 1px solid rgba(40, 30, 15, 0.1);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.mp-main .mpl-row:hover { border-color: rgba(154, 123, 63, 0.6); background: #fff; }
.mp-main .mpl-row.is-selected { border-color: #9a7b3f; background: rgba(154, 123, 63, 0.1); }
.mp-main .mpl-row-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.6px solid rgba(154, 123, 63, 0.5);
  position: relative;
  flex-shrink: 0;
}
.mp-main .is-selected .mpl-row-check { border-color: #9a7b3f; background: #9a7b3f; }
.mp-main .is-selected .mpl-row-check::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.mp-main .mpl-row-freq {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(29, 24, 18, 0.6);
}
.mp-main .mpl-row-amount { font-family: var(--sans); font-size: 22px; font-weight: 700; color: #1d1812; line-height: 1; }
.mp-main .mpl-row-amount small { font-size: 11px; font-weight: 500; color: rgba(29, 24, 18, 0.45); }

/* Tarjetas 1:1 seleccionables */
.mp-main .mpl-card-sel {
  cursor: pointer;
  text-align: left;
  font: inherit;
  display: block;
}
.mp-main .mpl-card-sel:hover { border-color: rgba(154, 123, 63, 0.6); }
.mp-main .mpl-card-sel.is-selected { border-color: #9a7b3f; background: rgba(154, 123, 63, 0.07); }
.mp-main .mpl-card-sel .mpl-row-check { position: absolute; top: 18px; right: 18px; }
.mp-main .mpl-oto-big { display: block; margin-top: 14px; font-family: var(--sans); font-size: 28px; font-weight: 700; color: #1d1812; line-height: 1; }
.mp-main .mpl-oto-big small { font-size: 12px; font-weight: 500; color: rgba(29, 24, 18, 0.45); margin-left: 2px; }
.mp-main .mpl-oto-per { display: block; margin-top: 4px; font-size: 12px; color: rgba(29, 24, 18, 0.5); }

/* Drop-in seleccionable */
.mp-main .mpl-dropin-sel { position: relative; cursor: pointer; font: inherit; transition: border-color 0.15s, background 0.15s; }
.mp-main .mpl-dropin-sel:hover { border-color: rgba(154, 123, 63, 0.6); }
.mp-main .mpl-dropin-sel.is-selected { border-color: #9a7b3f; background: rgba(154, 123, 63, 0.1); }
.mp-main .mpl-dropin-sel .mpl-row-check { position: absolute; top: 12px; right: 12px; }

/* Botón confirmar — claro, con borde dorado y destello (combina con el panel) */
.mp-main .mpl-cta {
  display: block;
  width: fit-content;
  min-width: 240px;
  margin: 22px auto 0;
  text-align: center;
  background: #fff;
  color: #9a7b3f;
  border: 1px solid rgba(154, 123, 63, 0.55);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 12px 26px -18px rgba(154, 123, 63, 0.7);
}
.mp-main .mpl-cta:hover {
  color: #1d1812;
  border-color: #9a7b3f;
  background: #fffdf8;
  transform: translateY(-2px);
}
.mp-main .mpl-cta:disabled { opacity: 0.55; cursor: default; transform: none; }


/* Horarios del miembro: calendario en recuadros por día */
.sched-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; align-items: start; margin-bottom: 18px; }
.sched-cal .sched-daycard { margin: 0; }
.sched-cal .sched-daycard h2 { font-size: 16px; margin-bottom: 12px; }

/* Modal de reserva: permitir scroll cuando incluye las políticas */
.book-modal-card { max-height: 90vh; overflow-y: auto; }
.book-modal-card .policy-box { margin-top: 16px; max-width: 100%; }

/* Cuenta suspendida / vencida — banner superior */
.susp-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #fbeaea, #f7dede);
  border: 1px solid #e3b7b7; border-radius: 14px;
  padding: 13px 16px; margin: 0 0 18px;
}
.susp-ico { font-size: 18px; color: #b3261e; flex-shrink: 0; }
.susp-banner-text { flex: 1; font-size: 13px; line-height: 1.45; color: #7a2a24; }
.susp-banner-text strong { color: #8a1c14; }
.susp-banner-cta {
  flex-shrink: 0; background: #b3261e; color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px;
}
/* Bloqueo de sección */
.susp-block {
  text-align: center; max-width: 440px; margin: 30px auto; padding: 30px 24px;
  border: 1px solid var(--app-line-soft); border-radius: 18px;
  background: rgba(177, 147, 101, 0.05);
}
.susp-block-ico { font-size: 34px; display: block; margin-bottom: 10px; }
.susp-block h2 { font-size: 20px; margin: 0 0 8px; }
.susp-block p { font-size: 13.5px; color: inherit; opacity: 0.8; line-height: 1.6; margin: 0 0 18px; }

/* Mis reservas: lista de clases reservadas */
.booking-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.booking-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--app-line-soft); border-radius: 14px;
  background: rgba(177, 147, 101, 0.04);
}
.booking-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.booking-cover {
  width: 60px; height: 60px; /* portada cuadrada 1:1 */
  border-radius: 12px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--app-line-soft);
}
.booking-cover-empty { background: rgba(177, 147, 101, 0.1); display: inline-block; }
.booking-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.booking-info strong { font-size: 15px; }
.booking-when { font-family: var(--mono); font-size: 12px; color: var(--gold-soft); letter-spacing: 0.02em; }
.book-tag {
  align-self: flex-start; margin-top: 3px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 999px; border: 1px solid var(--app-line-soft); color: inherit; opacity: 0.75;
}
.book-tag-live { color: #c0392b; border-color: rgba(192, 57, 43, 0.4); opacity: 1; }

/* Aviso de "primera clase gratis" (miembro con plan free) en Reservar */
.free-class-banner {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid rgba(177, 147, 101, 0.45);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(201, 162, 78, 0.12), rgba(201, 162, 78, 0.04));
}
.free-class-banner p { margin: 0; font-size: 14px; line-height: 1.5; color: inherit; }
.free-class-banner strong { color: var(--gold); }
.free-class-banner a { color: var(--gold); font-weight: 600; text-decoration: underline; }
