/* axhome.css — Inicio "clean" (/sandbox-new · design_new). Portado 1:1 de la referencia #Inicio
 * (axis-demo.tomesieira.chatgpt.site): CSS Modules _yp8b4_ → clases .axh-*. Solo se carga bajo la
 * cookie design_new (ver inc/head_meta.php). Cablea a los datos reales del gym en modules/home/index.php. */

.axh-dash {
  --axh-h1: 2.5rem; --axh-h2: 1.5rem; --axh-h3: 1.25rem; --axh-body: 1rem; --axh-secondary: .875rem; --axh-number: 2rem;
  color: var(--axis-ink); font-size: var(--axh-body); line-height: 1.25;
}
.axh-dash h1, .axh-dash h2, .axh-dash h3 { letter-spacing: -.035em; font-weight: 600; line-height: 1.15; margin: 0; }
.axh-dash h1 { font-size: var(--axh-h1); }
.axh-dash h2 { font-size: var(--axh-h2); }
.axh-dash h3 { font-size: var(--axh-h3); }
.axh-dash p { font-size: var(--axh-body); line-height: 1.25; margin: 0; }
.axh-dash strong { font-weight: 600; }
.axh-dash button, .axh-dash a { cursor: pointer; }

/* Cabecera 2 columnas: día · atención */
.axh-workspace { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; }

.axh-sec-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.axh-sec-h > span { color: var(--axis-muted); font-size: var(--axh-secondary); }

/* Card de sesión en curso (mint) */
.axh-live { background: var(--axis-mint); border-radius: 18px; padding: 24px; }
.axh-live-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--axis-green-ink); font-size: var(--axh-secondary); }
.axh-live-top > span:first-child { display: flex; align-items: center; gap: 8px; }
.axh-live-top i { width: 7px; height: 7px; border-radius: 50%; background: #218854; display: inline-block; }
.axh-live-person { display: flex; align-items: center; gap: 15px; margin: 24px 0; }
.axh-live-person p { color: var(--axis-muted); margin-top: 1px; font-size: var(--axh-secondary); }

.axh-primary { display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 17px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-radius: 9px; white-space: nowrap; font-weight: 600; font-size: var(--axh-secondary); border: 0; font-family: inherit; cursor: pointer; }
.axh-primary:hover { background: hsl(var(--primary-hover)); }
.axh-primary svg { width: 1rem; height: 1rem; }

.axh-upnext { color: var(--axis-muted); padding-top: 25px; padding-bottom: 5px; font-size: var(--axh-secondary); }
.axh-session { display: flex; align-items: center; gap: 17px; width: 100%; padding: 22px 0; text-align: left;
  border: 0; border-bottom: 1px solid var(--axis-line); background: none; font: inherit; color: inherit; cursor: pointer; }
.axh-session time { min-width: 42px; font-size: var(--axh-secondary); }
.axh-session strong { display: block; }
.axh-session small { display: block; color: var(--axis-muted); margin-top: 1px; }
.axh-session > svg { color: var(--axis-muted); margin-left: auto; width: 1rem; height: 1rem; }
.axh-session:hover { background: var(--axis-surface); }

/* Columna derecha: necesitan tu atención */
.axh-attention { border-left: 1px solid var(--axis-line); padding-left: 32px; }
.axh-count { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 24px; height: 24px;
  border-radius: 50%; background: #f8eee2; text-align: center; font-size: var(--axh-secondary); }
/* Modo oscuro: el crema claro del contador de "atención" pasa al soft ámbar oscuro del token. */
.dark .axh-count { background: hsl(var(--warning-soft)); color: hsl(var(--warning-soft-foreground)); }
.axh-intro { color: var(--axis-muted); max-width: 290px; margin: -5px 0 20px; }
.axh-person { display: flex; align-items: center; gap: 12px; padding: 17px 0; width: 100%; text-align: left; background: none; }
.axh-person strong { display: block; }
.axh-person small { display: flex; align-items: center; gap: 5px; color: var(--axis-muted); margin-top: 1px; }
.axh-person i { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.axh-dot-3 { background: #c64a3c; }
.axh-dot-2 { background: #b78326; }
.axh-dot-1 { background: #9aa39c; }

.axh-textlink { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; color: var(--axis-green-ink); font-weight: 600;
  font-size: var(--axh-secondary); background: none; border: 0; font-family: inherit; cursor: pointer; text-decoration: none; }
.axh-textlink:hover { text-decoration: underline; }
.axh-textlink svg { width: 1rem; height: 1rem; }

.axh-pending { border-top: 1px solid var(--axis-line); margin-top: 36px; padding-top: 28px; }
.axh-pending-h { display: flex; align-items: center; gap: 8px; color: var(--axis-green-ink); margin-bottom: 14px; }
.axh-pending-h > svg { flex-shrink: 0; width: 1.1rem; height: 1.1rem; }
.axh-pending-h h3 { color: var(--axis-ink); }
.axh-pending-h > span { color: var(--axis-muted); margin-left: auto; }
.axh-pending-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; }
.axh-pending-row + .axh-pending-row { border-top: 1px solid var(--axis-line); }
.axh-pending-row strong { display: block; }
.axh-pending-row small { display: block; color: var(--axis-muted); margin-top: 1px; }
.axh-pending-row button { flex-shrink: 0; min-height: 36px; }

/* Tu panel de control (KPIs sin caja) */
.axh-pulse { border-top: 1px solid var(--axis-line); margin-top: 72px; padding-top: 40px; }
.axh-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.axh-stat { position: relative; text-align: left; }
.axh-stat .axh-ic { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--axis-ink); }
.axh-stat .axh-ic svg { width: 1.85rem; height: 1.85rem; }
.axh-stat strong { display: block; margin-top: 1rem; font-family: Geist, 'DM Sans', sans-serif; font-size: var(--axh-number);
  font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.axh-stat > span:not(.axh-ic) { display: block; margin-top: .7rem; font-size: var(--axh-secondary); font-weight: 500; }
.axh-stat small { display: block; margin-top: .25rem; font-size: .75rem; color: var(--axis-muted); }
.axh-stat .axh-textlink { margin-top: 1.25rem; color: var(--axis-ink); font-weight: 500; }

/* Fila inferior: clientes activos · resumen semanal */
.axh-bottom { border-top: 1px solid var(--axis-line); display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; margin-top: 64px; padding-top: 40px; }
.axh-active { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; row-gap: 20px; }
.axh-active > a { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 100px; min-width: 0; text-align: left; }
.axh-active > a > :first-child { margin-bottom: 10px; }
.axh-active strong { display: block; }
.axh-active small { display: block; color: var(--axis-muted); margin-top: 1px; }
.axh-weekly { border-left: 1px solid var(--axis-line); padding-left: 32px; }
.axh-weekly > div:last-child { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.axh-weekly strong { display: block; font-family: Geist, 'DM Sans', sans-serif; font-size: var(--axh-number); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.axh-weekly small { display: block; color: var(--axis-muted); margin-top: 1px; }

/* Banner Axis Intelligence */
.axh-intel { display: flex; align-items: center; gap: 20px; background: var(--axis-surface); border-radius: 14px; margin-top: 56px; padding: 24px; }
.axh-intel > svg { flex-shrink: 0; width: 2rem; height: 2rem; color: var(--axis-green-ink); }
.axh-intel h2 { font-size: var(--axh-h3); }
.axh-intel p { color: var(--axis-muted); margin: 4px 0; }
.axh-intel small { color: var(--axis-muted); }
.axh-intel .axh-textlink { margin-left: auto; white-space: nowrap; }

@media (max-width: 1100px) {
  .axh-workspace, .axh-bottom { grid-template-columns: 1.2fr 1fr; gap: 24px; }
  .axh-attention, .axh-weekly { padding-left: 20px; }
  .axh-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .axh-active > a { flex: 0 0 28%; }
}
@media (max-width: 760px) {
  .axh-workspace, .axh-bottom { grid-template-columns: 1fr; gap: 28px; }
  .axh-attention, .axh-weekly { border-left: 0; padding-left: 0; }
  .axh-attention { border-top: 1px solid var(--axis-line); padding-top: 24px; }
  .axh-pulse, .axh-bottom { margin-top: 48px; padding-top: 32px; }
  .axh-intel { margin-top: 40px; flex-wrap: wrap; }
  .axh-intel .axh-textlink { margin-left: 44px; }
  .axh-active > a { flex: 1 1 100px; }
}
@media (max-width: 400px) {
  .axh-panel { grid-template-columns: 1fr; }
}

/* Los KPIs planos de "Tu panel de control" YA NO se estilan aquí: ese look es ahora el POR DEFECTO de
 * `.axn-kpi*` en axui.css, así que cualquier dash_kpi sale bien sin depender del contenedor. Lo que
 * había aquí era una tercera copia de la misma receta (junto a .axn-fkpis y .axh-stat) y encima
 * colgaba de `.axh-grid`, un selector que NO EXISTE en ningún HTML (el grid real es `#dash-grid`).
 *
 * ⚠ OJO: el bloque de abajo sigue colgando de ese mismo `.axh-grid` inexistente, así que NUNCA ha
 * llegado a aplicarse. No es un duplicado —es una intención distinta, "widgets sin caja"— y por eso
 * no se borra: hay que decidir si se conecta a `#dash-grid` o se retira. */

/* Los widgets de contenido (listas, mini-calendario, resumen semanal, gráficas) dejan de ser CAJAS:
 * fuera fondo/borde/sombra/radius → secciones abiertas sobre el lienzo, separadas por aire (como la
 * referencia, que no apila cajas). Más gap para que respiren igual que _pulse_/_bottom_ de la ref. */
.axh-grid { row-gap: 2.5rem; column-gap: 2rem; }
.axh-grid .card-unified,
.axh-grid .dashboard-card,
.axh-grid .dash-w > .card-unified,
.axh-grid .dash-w > .dashboard-card { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
/* El título de cada sección (cabecera del widget) al estilo de la referencia. */
.axh-grid .card-unified .text-h3,
.axh-grid .card-unified h2, .axh-grid .card-unified h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; color: var(--axis-ink); }

/* Ficha de cliente · tira de KPIs de rendimiento (Resumen): sin caja → anillo + label sobre el lienzo,
 * como _metrics_ de la referencia. El tinte/sombra inline por score ya se anula en PHP (axn_on). */
.axn-fkpis .card-unified { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: .5rem .25rem; }
/* Los KPIs de dash_kpi dentro de .axn-fkpis ya NO necesitan override: el estilo plano (sin caja, icono
 * ink sin círculo, número Geist, rótulo en minúscula) es el por defecto de `.axn-kpi*` en axui.css.
 * `.axn-fkpis` queda solo como contenedor de rejilla y para la regla de .card-unified de arriba. */

/* Onboarding — MODAL FLOTANTE (esquina inferior derecha), réplica de la referencia. Cabecera verde con
 * sparkles, progreso, pasos con check verde en los completados, CTA oscuro + "Lo haré más adelante". */
.axh-obm { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 348px; max-width: calc(100vw - 32px);
  max-height: min(86vh, 680px); display: flex; flex-direction: column;
  background: hsl(var(--card)); border: 1px solid var(--axis-line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 34px -10px rgba(16,24,20,.20), 0 5px 14px -6px rgba(16,24,20,.12); }
.axh-obm-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 17px; text-align: left; flex-shrink: 0;
  background: var(--axis-mint); border: 0; cursor: pointer; font: inherit; }
.axh-obm-htxt { flex: 1; min-width: 0; }
.axh-obm-htxt strong { display: block; color: var(--axis-ink); font-weight: 600; }
.axh-obm-htxt small { display: block; color: var(--axis-muted); font-size: .8125rem; margin-top: 1px; }
.axh-obm-chev { color: var(--axis-green-ink); flex-shrink: 0; transition: transform .2s; }
.axh-obm-chev svg { width: 1.1rem; height: 1.1rem; }
.axh-obm.is-collapsed .axh-obm-chev { transform: rotate(180deg); }
.axh-obm.is-collapsed .axh-obm-body { display: none; }
.axh-obm-body { padding: 15px 17px 16px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.axh-obm-prog { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8125rem; color: var(--axis-muted); margin-bottom: 8px; }
.axh-obm-prog span:last-child { font-weight: 600; color: var(--axis-ink); flex-shrink: 0; }
.axh-obm-bar { height: 6px; width: 100%; overflow: hidden; border-radius: 999px; background: var(--axis-soft); margin-bottom: 4px; }
.axh-obm-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--axis-green-ink); transition: width .5s ease; }
.axh-obm-steps { margin: 8px 0 14px; }
.axh-obm-step { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; text-decoration: none; color: inherit; border-top: 1px solid var(--axis-line); }
.axh-obm-step:first-child { border-top: 0; }
/* Iconos de paso: verdes y SIN caja (como la referencia); ancho fijo solo para alinear las etiquetas. */
.axh-obm-ic { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; background: transparent; color: var(--axis-green-ink); }
.axh-obm-ic svg { width: 1.15rem; height: 1.15rem; }
.axh-obm-copy { flex: 1; min-width: 0; }
.axh-obm-lbl { display: block; font-size: .9rem; font-weight: 500; }
.axh-obm-desc { display: block; font-size: .78rem; color: var(--axis-muted); margin-top: 2px; line-height: 1.35; }
a.axh-obm-step:hover .axh-obm-lbl { color: var(--axis-green-ink); }
/* Paso terminado: TACHADO y apagado (lo pedido: "ir tachando los pasos terminados"). */
.axh-obm-step.is-done .axh-obm-lbl { text-decoration: line-through; color: var(--axis-muted); font-weight: 400; }
.axh-obm-step.is-done .axh-obm-desc { color: var(--axis-muted); opacity: .7; }
.axh-obm-chk, .axh-obm-go { display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.axh-obm-chk { color: var(--axis-green-ink); }
.axh-obm-go { color: var(--axis-muted); }
a.axh-obm-step:hover .axh-obm-go { color: var(--axis-green-ink); }
.axh-obm-go svg { width: 1rem; height: 1rem; }
.axh-obm-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 14px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-radius: 10px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.axh-obm-cta:hover { background: hsl(var(--primary-hover)); }
.axh-obm-cta svg { width: 1rem; height: 1rem; }
.axh-obm-later { display: block; width: 100%; margin-top: 9px; padding: 4px; background: none; border: 0; cursor: pointer;
  color: var(--axis-muted); font: inherit; font-size: .8125rem; text-align: center; }
.axh-obm-later:hover { color: var(--axis-ink); text-decoration: underline; }
/* Móvil: el onboarding NO se muestra. El alta de la cuenta se hace mejor en escritorio/tablet
   (la mayoría del staff los usa); en móvil estorbaba. Se reactiva desde Ayuda cuando toque.
   En >=641px sigue siendo la pestaña fija en la esquina inferior derecha. */
@media (max-width: 640px) { .axh-obm { display: none !important; } }

/* Biblioteca · lista de rutinas — réplica 1:1 de .axis-routine-row de la referencia (grid de 6 columnas,
 * separadas por línea continua). El contenedor en clean es grid-cols-1 sin gap → border-bottom continuo. */
.axl-row { display:grid; grid-template-columns:48px minmax(200px,1fr) minmax(150px,.6fr) auto auto 32px; align-items:center; gap:24px; padding:24px 0; border-bottom:1px solid var(--axis-line); text-decoration:none; color:inherit; }
.axl-symbol { display:grid; place-items:center; width:48px; height:48px; border-radius:12px; background:var(--axis-soft); color:var(--axis-ink); }
.axl-symbol svg { width:24px; height:24px; }
.axl-copy { min-width:0; }
.axl-copy h3 { font-size:1rem; font-weight:600; line-height:1.35; color:var(--axis-ink); }
.axl-copy p { margin-top:6px; font-size:.875rem; line-height:1.45; color:var(--axis-muted); }
.axl-chips { display:flex; flex-wrap:wrap; gap:8px; }
.axl-chips span { display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border-radius:999px; background:var(--axis-soft); color:var(--axis-muted); font-size:12px; }
.axl-count { color:var(--axis-muted); white-space:nowrap; font-size:13px; }
.axl-open { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; color:var(--axis-ink); font-weight:600; font-size:14px; background:none; border:0; cursor:pointer; }
.axl-open svg { width:16px; height:16px; }
/* Móvil: la fila es tappable (abre el detalle) → se ocultan chips, meta y el CTA "Ver…" redundante; quedan
 * símbolo + copy + menú (⋮) en 3 columnas. Sin ocultar el CTA, el 4º ítem desbordaba a una 2ª línea. */
@media (max-width:900px){ .axl-row { grid-template-columns:44px 1fr auto; gap:14px; } .axl-chips, .axl-count, .axl-open { display:none; } }
