/* Rediseño del perfil de Hiibrid (créditos/membresía, clases agendadas, stay in line) — 19-oct-2026.
   Reescrito aplicando las leyes de Movara (Laws of UX): el color nunca decora (los rieles de color se
   quitaron); un ícono nunca vive en una caja con fondo/borde; tarjetas solo para unir cosas lejanas, no una
   caja por fila — las listas van planas, separadas por líneas finas (tabla sin bordes). Solo .hb-perfil. */

.hb-perfil { overflow-x: clip; }
.hb-perfil .hb-panel-cred { padding-bottom: 2rem; }

/* ── Créditos: lista plana con divisores, sin cajas ni rieles ─────────────────────────────── */
.hb-perfil .hb-cred-grid { display: flex; flex-direction: column; margin: .25rem 0 1rem; border-top: 1px solid #e6e6e6; }
.hb-perfil .hb-cred { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: 1rem;
  padding: .9rem .25rem; border-bottom: 1px solid #e6e6e6; }
.hb-perfil .hb-cred-n { display: flex; flex-direction: column; line-height: 1; }
.hb-perfil .hb-cred-n b { font-family: 'RMNeueBlack', sans-serif; font-size: 1.8rem; color: #111; }
.hb-perfil .hb-cred--muted .hb-cred-n b { color: #a8a8a8; }
.hb-perfil .hb-cred-n span { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #8a8a8a; margin-top: .25rem; }
.hb-perfil .hb-cred-mid { display: flex; flex-direction: column; min-width: 0; gap: .2rem; }
.hb-perfil .hb-cred-name { font-weight: 700; color: #1a1a1a; text-transform: uppercase; letter-spacing: .01em; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.hb-perfil .hb-cred--muted .hb-cred-name { color: #9a9a9a; }
.hb-perfil .hb-cred-date { font-size: .8rem; color: #6b6b6b; display: inline-flex; align-items: center; gap: .35rem; }
.hb-perfil .hb-cred-date i { color: #bdbdbd; font-size: .72rem; }
.hb-perfil .hb-chip--ok { color: #0b7a3b; background: #e4f3ea; }
.hb-perfil .hb-cred-grupo { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #8a8a8a; margin: 1.5rem 0 .25rem; }
.hb-perfil .hb-cred-vencidos { margin-top: 1rem; }
.hb-perfil .hb-cred-vencidos > summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: #8a8a8a; padding: .6rem .25rem; }
.hb-perfil .hb-cred-vencidos > summary::-webkit-details-marker { display: none; }
.hb-perfil .hb-cred-vencidos[open] > summary i { transform: rotate(180deg); }
.hb-perfil .hb-cred-vencidos > summary i { transition: transform .15s ease; color: #bdbdbd; }
.hb-perfil .hb-cred-grid--muted { border-top: none; }
.hb-perfil .hb-cred-grid--muted .hb-cred { padding: .65rem .25rem; }
.hb-perfil .hb-cred-grid--muted .hb-cred-n b { font-size: 1.3rem; }
.hb-perfil .hb-cred-vacio { color: #8a8a8a; margin: .6rem 0 1rem; }

/* ── Membresía: una tarjeta (sí une algo distinto), oscura, sin riel ─────────────────────── */
.hb-perfil .hb-memb { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: #111; color: #fff; border-radius: 12px; padding: 1.25rem 1.4rem; }
.hb-perfil .hb-memb-info { display: flex; flex-direction: column; gap: .35rem; }
.hb-perfil .hb-memb-name { font-family: 'RMNeueBlack', sans-serif; font-size: 1.1rem; letter-spacing: .01em; }
.hb-perfil .hb-memb-price { color: #ff6a5c; font-weight: 700; font-size: .95rem; }
.hb-perfil .hb-memb .profile-update-button { margin: 0; }
.hb-perfil .hb-memb--none { background: #fff; color: #6b6b6b; border: 1px solid #e0e0e0; }
.hb-perfil .hb-memb + .hb-cred-grid { margin-top: 1rem; }
/* «Gestionar» es secundario: un enlace dentro de la tarjeta; la acción sólida es «Reservar clase» (5-nov-2026). */
.hb-perfil .hb-memb-gestionar { color: #fff; font-weight: 700; font-size: .85rem; text-decoration: underline;
  text-underline-offset: .2em; display: inline-flex; align-items: center; min-height: 44px; }

/* ── Lo que deja reservar (5-nov-2026): bajo el nombre, la membresía y los créditos; una sola acción ────── */
.hb-perfil .profile-name h2, .hb-perfil .profile-name-mb h2 { text-transform: uppercase; margin-bottom: .15rem; }
.hb-perfil .hb-acceso-creditos { font-family: 'RMNeueBlack', sans-serif; color: #E73B2B; text-transform: uppercase;
  font-size: .85rem; margin: 0 0 .5rem; }
.hb-perfil .profile-name-mb .hb-acceso-creditos { text-align: center; }
.hb-perfil .hb-acciones { display: flex; justify-content: center; margin: 1.25rem 0 .5rem; }
.hb-perfil .hb-acciones .profile-update-button { margin: 0; }

/* ── Teléfono (5-nov-2026, Alberto: «bien centrado los textos… que no queden tan separados»): el panel sube junto
   al encabezado y su título no compite con el nombre; la membresía va centrada como el encabezado; la acción
   ocupa el ancho del panel, a la mano del pulgar. ──────────────────────────────────────────────────────────── */
.hb-perfil .hb-perfil-movil .profile-name-mb { padding-bottom: 1rem; }
.hb-perfil .hb-perfil-movil .hb-panel-cred .streaks-subtitle { font-size: 1.5rem; margin: 0 0 .75rem; text-align: center; }
.hb-perfil .hb-perfil-movil .hb-memb { flex-direction: column; align-items: center; text-align: center; row-gap: .25rem;
  padding: 1rem 1.25rem; }
.hb-perfil .hb-perfil-movil .hb-memb-info { align-items: center; }
.hb-perfil .hb-perfil-movil .hb-memb-price { justify-content: center; }
.hb-perfil .hb-perfil-movil .hb-memb + .hb-cred-grid { margin-top: .75rem; }
.hb-perfil .hb-perfil-movil .hb-acciones { margin: 1rem 0 .25rem; }
.hb-perfil .hb-perfil-movil .hb-acciones .profile-update-button { width: 100%; }

/* ── Clases agendadas: filas planas con divisores; ícono DESNUDO (sin caja) ─────────────── */
.hb-perfil .hb-clase-grupo { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #8a8a8a; margin: .25rem 0 .25rem; }
.hb-perfil .hb-clase-grupo--hist { margin-top: 2rem; }
.hb-perfil .hb-clase-lista { display: flex; flex-direction: column; border-top: 1px solid #e6e6e6; }
.hb-perfil .hb-clase { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .9rem;
  padding: .85rem .25rem; border-bottom: 1px solid #e6e6e6; }
.hb-perfil .hb-clase--next .hb-clase-name { color: #E73B2B; }
.hb-perfil .hb-clase-ico { color: #E73B2B; font-size: 1.05rem; width: 1.4rem; text-align: center; }
.hb-perfil .hb-clase-mid { display: flex; flex-direction: column; min-width: 0; gap: .15rem; }
.hb-perfil .hb-clase-name { font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: #1a1a1a;
  font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-perfil .hb-clase-meta { font-size: .82rem; color: #6b6b6b; }
.hb-perfil .hb-clase-fecha { font-size: .85rem; color: #4a4a4a; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Cancelar: control de texto/ícono, sin caja (acción secundaria). */
.hb-perfil .hb-clase-x { border: none; background: none; color: #b0b0b0; cursor: pointer; font-size: 1.1rem; padding: .35rem;
  line-height: 1; transition: color .15s; }
.hb-perfil .hb-clase-x:hover, .hb-perfil .hb-clase-x:focus-visible { color: #E73B2B; outline: none; }
.hb-perfil .hb-clase--hist { grid-template-columns: auto 1fr auto; }
.hb-perfil .hb-clase-chip { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; font-size: .7rem;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hb-perfil .hb-chip--cancel { color: #8a8a8a; }
.hb-perfil .hb-chip--noshow { color: #b45309; }
.hb-perfil .hb-chip--ok.hb-clase-chip { color: #0b7a3b; }
.hb-perfil .hb-clase--cancel .hb-clase-name, .hb-perfil .hb-clase--cancel .hb-clase-meta { color: #a0a0a0; }
.hb-perfil .reserva-ver-mas { margin-top: 1rem; background: none; border: none; color: #E73B2B; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; cursor: pointer; padding: .4rem 0; }

/* ── Stay in line ──────────────────────────────────────────────────────────────────────── */
.hb-perfil .hb-espera-intro { color: #6b6b6b; font-size: .9rem; margin: .25rem 0 .5rem; }
.hb-perfil .hb-clase--espera { grid-template-columns: auto 1fr auto; }
.hb-perfil .hb-clase-ico--espera { color: #b45309; }

@media (max-width: 560px) {
  .hb-perfil .hb-cred { grid-template-columns: 3.75rem 1fr auto; gap: .6rem; }
  .hb-perfil .hb-clase-fecha { font-size: .78rem; }
}
