/* ==========================================================================
   Demo interactivo del CRM — pestaña "Predice" del carrusel del hero.

   Paleta y radios copiados de moostreak-crm (tailwind.config.ts + globals.css):
   ink-900 #0b0c16 fondo · ink-875 #101120 sidebar · ink-850 #131425 card
   ink-800 #181930 input · ink-750 #1e1f38 hover · ink-650 #2a2b48 borde
   ink-300 #7a7d99 muted · ink-250 #a0a3b8 secundario · ink-50 #fff primario
   brand #fbd708 · danger #FF2D78 · warning #ffb300 · success #22c55e
   info #00D4FF · lime #b6f46c

   Se maqueta a un tamaño fijo (1200×700) y se escala con transform para
   ocupar el hueco del video conservando la proporción, igual que haría un
   video. Así el tablero nunca se rompe en pantallas estrechas.
   ========================================================================== */

.moo-demo-root {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  border-radius: 0;   /* el corte de abajo tiene que salir recto */
  container-type: inline-size;
}
.moo-demo-root[data-active="true"] { display: block; }

/* Anclado arriba-izquierda: fit() calcula left/top para dejar el mismo aire
   contra el cristal en los tres lados. Antes iba centrado y el hueco superior
   salía más estrecho que los laterales. */
.moo-demo-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 700px;
  transform-origin: top left;
  --moo-scale: 1;
  transform: scale(var(--moo-scale));
}

.moo-demo {
  --ink-900: #0b0c16;
  --ink-875: #101120;
  --ink-850: #131425;
  --ink-800: #181930;
  --ink-750: #1e1f38;
  --ink-650: #2a2b48;
  --ink-500: #2e2f3b;
  --ink-400: #4b4d6a;
  --ink-300: #7a7d99;
  --ink-250: #a0a3b8;
  --ink-50: #ffffff;
  --brand: #fbd708;
  --brand-fg: #0b0c16;
  --danger: #ff2d78;
  --warning: #ffb300;
  --success: #22c55e;
  --info: #00d4ff;
  --lime: #b6f46c;

  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;   /* abajo recto: el panel sigue por debajo */
  border: 1px solid var(--ink-650);
  border-bottom: 0;
  background: var(--ink-900);
  color: var(--ink-50);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
}
/* El marco es común a todos los paneles; la rejilla es propia del CRM. */
.moo-demo--crm { display: grid; grid-template-columns: 214px 1fr; }
.moo-demo *, .moo-demo *::before, .moo-demo *::after { box-sizing: border-box; }
.moo-demo button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------------------------------------------------------------- sidebar */
.moo-side {
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  border-right: 1px solid var(--ink-650);
  background: var(--ink-875);
}
.moo-brandrow { display: flex; align-items: center; gap: 9px; padding: 0 4px 14px; }
.moo-logo {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-fg);
  font-weight: 800; font-size: 15px;
}
.moo-brandname { font-weight: 700; font-size: 14px; letter-spacing: -0.3px; }
.moo-gym { font-size: 10px; color: var(--ink-300); letter-spacing: 0.2px; }

.moo-navlabel {
  padding: 0 8px 6px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-400);
}
.moo-nav { display: flex; flex-direction: column; gap: 2px; }
.moo-navitem {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-250);
  transition: background-color .15s, color .15s;
}
.moo-navitem { cursor: default; }
.moo-navitem:hover { background: rgba(255,255,255,.04); }
.moo-navitem[aria-current="page"] { background: rgba(251,215,8,.1); color: var(--brand); font-weight: 600; }
.moo-navitem svg { width: 14px; height: 14px; flex: none; }
.moo-navitem .moo-pill {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,45,120,.15);
  color: var(--danger);
  font-size: 9.5px; font-weight: 700;
}

.moo-sidefoot {
  margin-top: auto;
  display: flex; align-items: center; gap: 9px;
  padding: 9px;
  border: 1px solid var(--ink-650);
  border-radius: 10px;
  background: rgba(24,25,48,.6);
}
.moo-avatar {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex: none;
  border-radius: 8px;
  background: var(--ink-750);
  color: var(--ink-250);
  font-size: 10.5px; font-weight: 700;
}

/* ------------------------------------------------------------------- main */
.moo-main { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px; gap: 12px; overflow: hidden; }

.moo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.moo-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(251,215,8,.2);
  border-radius: 6px;
  background: rgba(251,215,8,.1);
  color: var(--brand);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.moo-h1 { margin: 6px 0 2px; font-size: 21px; font-weight: 800; letter-spacing: -0.7px; }
.moo-h1 span { color: var(--brand); }
.moo-sub { font-size: 11.5px; color: var(--ink-300); }

.moo-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
  transition: filter .15s, transform .1s;
}
.moo-btn:hover { filter: brightness(1.08); }
.moo-btn:active { transform: translateY(1px); }
.moo-btn[disabled] { opacity: .55; cursor: default; }
.moo-btn svg { width: 14px; height: 14px; }
.moo-btn--ghost {
  background: var(--ink-800);
  color: var(--ink-50);
  border: 1px solid var(--ink-650);
}
.moo-btn--ghost:hover { background: var(--ink-750); }

/* ------------------------------------------------------------------- KPIs */
.moo-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.moo-kpi {
  padding: 10px 12px;
  border: 1px solid var(--ink-650);
  border-radius: 12px;
  background: var(--ink-850);
}
.moo-kpi-top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.moo-kpi-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; }
.moo-kpi-ico svg { width: 12px; height: 12px; }
.moo-kpi-label { font-size: 10px; color: var(--ink-300); letter-spacing: .2px; }
.moo-kpi-val { font-size: 22px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.moo-kpi-hint { margin-top: 1px; font-size: 10px; color: var(--ink-400); }
.moo-kpi-val.is-bump { animation: moo-bump .5s ease-out; }
@keyframes moo-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); color: var(--brand); }
  100% { transform: scale(1); }
}

/* ------------------------------------------------------------------ grid */
.moo-cols { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 12px; min-height: 0; flex: 1; }
.moo-card {
  display: flex; flex-direction: column;
  min-height: 0; min-width: 0;
  padding: 12px;
  border: 1px solid var(--ink-650);
  border-radius: 12px;
  background: var(--ink-850);
}
.moo-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.moo-cardtitle { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; }
.moo-cardtitle svg { width: 14px; height: 14px; color: var(--warning); }
.moo-cardnote { font-size: 10.5px; color: var(--ink-300); margin-bottom: 9px; }

/* ------------------------------------------------------- lista en riesgo */
.moo-list { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.moo-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 9px;
  border: 1px solid transparent;
  text-align: left;
  transition: background-color .15s, border-color .15s;
}
.moo-row:hover { background: var(--ink-800); }
.moo-row[aria-selected="true"] { background: rgba(251,215,8,.08); border-color: rgba(251,215,8,.25); }
.moo-row-name { font-size: 12.5px; font-weight: 600; }
.moo-row-why { font-size: 10.5px; color: var(--ink-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moo-row-mid { min-width: 0; flex: 1; }
.moo-score {
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid;
  font-size: 10px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.moo-score[data-tone="danger"] { border-color: rgba(255,45,120,.4); background: rgba(255,45,120,.1); color: var(--danger); }
.moo-score[data-tone="warning"] { border-color: rgba(255,179,0,.4); background: rgba(255,179,0,.1); color: var(--warning); }
.moo-score[data-tone="success"] { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); color: var(--success); }

.moo-row.is-leaving { animation: moo-leave .45s ease-in forwards; }
@keyframes moo-leave {
  to { opacity: 0; transform: translateX(22px); max-height: 0; padding-block: 0; margin-bottom: -2px; }
}
.moo-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 12px;
  border: 1px dashed var(--ink-500);
  border-radius: 10px;
  color: var(--ink-300);
  font-size: 11.5px; text-align: center;
}
.moo-empty svg { width: 18px; height: 18px; color: var(--success); }

/* ---------------------------------------------------------- panel detalle */
.moo-detail { min-width: 0; overflow: hidden; }
.moo-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.moo-detail-avatar {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  background: var(--ink-750);
  font-size: 12px; font-weight: 700; color: var(--ink-250);
}
.moo-detail-name { font-size: 14px; font-weight: 700; letter-spacing: -0.3px; }
.moo-detail-meta { font-size: 10.5px; color: var(--ink-300); }

.moo-ai {
  padding: 7px 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(251,215,8,.2);
  border-radius: 10px;
  background: rgba(251,215,8,.06);
}
.moo-ai-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }
.moo-ai-top svg { width: 12px; height: 12px; }
.moo-ai-text { font-size: 11.5px; line-height: 1.38; color: var(--ink-250); }
.moo-ai-text b { color: var(--ink-50); font-weight: 700; }

.moo-signals { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.moo-sig {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--ink-650);
  border-radius: 999px;
  background: var(--ink-800);
  font-size: 10.5px; color: var(--ink-250);
}
.moo-sig i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-400); font-style: normal; }
.moo-sig[data-tone="danger"] i { background: var(--danger); }
.moo-sig[data-tone="warning"] i { background: var(--warning); }
.moo-sig[data-tone="success"] i { background: var(--success); }

/* ------------------------------------------------------------------ chart */
.moo-charts { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 10px; }
.moo-chartbox {
  display: flex; flex-direction: column;
  padding: 10px;
  border: 1px solid var(--ink-650);
  border-radius: 10px;
  background: var(--ink-800);
  min-width: 0;
}
.moo-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.moo-chart-title { font-size: 10.5px; font-weight: 600; color: var(--ink-250); }
.moo-range { display: flex; gap: 3px; padding: 2px; border-radius: 7px; background: var(--ink-900); }
.moo-range button {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px; font-weight: 600;
  color: var(--ink-300);
  transition: background-color .15s, color .15s;
}
.moo-range button:hover { color: var(--ink-50); }
.moo-range button[aria-pressed="true"] { background: var(--ink-750); color: var(--brand); }
.moo-svg { width: 100%; flex: 1; min-height: 0; display: block; overflow: visible; }

.moo-gaugewrap { align-items: center; justify-content: center; gap: 4px; }
.moo-gauge { position: relative; display: grid; place-items: center; }
.moo-gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
}
.moo-gauge-val { font-size: 27px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; font-variant-numeric: tabular-nums; }
.moo-gauge-cap { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-300); }
.moo-gauge-delta { font-size: 10.5px; font-weight: 600; }

/* Alturas fijas: si los gráficos van a `flex` el panel se desborda. */
.moo-svg--risk { height: 74px; flex: none; }
.moo-svg--att { height: 36px; flex: none; }

.moo-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.moo-actionhint { font-size: 10.5px; color: var(--ink-400); }

/* --------------------------------------------------------------- recálculo */
.moo-demo[data-busy="true"] .moo-row-why,
.moo-demo[data-busy="true"] .moo-ai-text { opacity: .35; }
.moo-shimmer { position: relative; overflow: hidden; }
.moo-shimmer::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(251,215,8,.13), transparent);
  animation: moo-shimmer 1.1s ease-in-out infinite;
}
@keyframes moo-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ------------------------------------------------------------------ toast */
.moo-toast {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translate(-50%, 12px);
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--ink-650);
  border-radius: 10px;
  background: var(--ink-850);
  color: var(--ink-50);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 5;
}
.moo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.moo-toast svg { width: 14px; height: 14px; color: var(--success); }


/* ==========================================================================
   Afordancia de lo que sí responde
   Sin el cartel de "tócalo", lo que invita a hacer clic tiene que ser el
   propio elemento. En reposo llevan un filo de luz arriba —como si la luz
   viniera de arriba— y al pasar por encima aparece un halo cálido de marca.
   Nada de sombras duras: el CRM es flat y esto solo lo insinúa.
   ========================================================================== */
.moo-row,
.moo-btn,
.moo-range button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: background-color .16s ease, border-color .16s ease,
              box-shadow .2s ease, transform .12s ease, filter .15s ease;
}

/* Filas de usuario */
.moo-row:hover {
  border-color: rgba(251, 215, 8, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07),
              0 0 0 1px rgba(251, 215, 8, .12),
              0 8px 20px -10px rgba(251, 215, 8, .3);
}
.moo-row[aria-selected="true"] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08),
              0 0 0 1px rgba(251, 215, 8, .26),
              0 10px 26px -12px rgba(251, 215, 8, .42);
}

/* Botón primario — el halo nace del propio amarillo */
.moo-btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25),
              0 0 0 1px rgba(251, 215, 8, .45),
              0 10px 24px -10px rgba(251, 215, 8, .6);
  transform: translateY(-1px);
}
.moo-btn:active { transform: translateY(0); }

/* Botón secundario */
.moo-btn--ghost:hover {
  border-color: rgba(251, 215, 8, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06),
              0 0 0 1px rgba(251, 215, 8, .16),
              0 8px 20px -10px rgba(251, 215, 8, .34);
}

/* Selector de rango */
.moo-range button:hover {
  background: rgba(251, 215, 8, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07),
              0 0 0 1px rgba(251, 215, 8, .14);
}
.moo-range button[aria-pressed="true"] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08),
              0 0 0 1px rgba(251, 215, 8, .22),
              0 4px 12px -6px rgba(251, 215, 8, .35);
}

/* El foco por teclado usa el mismo halo, un punto más marcado */
.moo-row:focus-visible,
.moo-btn:focus-visible,
.moo-range button:focus-visible {
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08),
              0 0 0 2px rgba(251, 215, 8, .55),
              0 10px 26px -12px rgba(251, 215, 8, .5);
}

@media (prefers-reduced-motion: reduce) {
  .moo-demo *, .moo-demo *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Modo compacto — hueco estrecho (móvil)
   El hueco del carrusel se vuelve casi cuadrado y pequeño. Con el tablero de
   escritorio encogido no se leería nada, así que aquí se reordena: fuera la
   barra lateral, KPIs en 2×2 y la lista de usuarios como tira horizontal
   desplazable. Se conservan la lectura de la IA y los gráficos, que son el
   motivo de la pestaña.
   ========================================================================== */
.moo-demo--crm.moo-demo--compact { grid-template-columns: 1fr; }
.moo-demo--compact .moo-side { display: none; }
.moo-demo--compact .moo-main { padding: 12px; gap: 9px; }

.moo-demo--compact .moo-head { align-items: center; }
.moo-demo--compact .moo-badge { display: none; }
.moo-demo--compact .moo-h1 { margin: 0; font-size: 17px; }
.moo-demo--compact .moo-sub { display: none; }
.moo-demo--compact .moo-btn { padding: 7px 10px; font-size: 11px; }

.moo-demo--compact .moo-kpis { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.moo-demo--compact .moo-kpi { padding: 7px 8px; }
.moo-demo--compact .moo-kpi-top { gap: 5px; margin-bottom: 4px; }
.moo-demo--compact .moo-kpi-ico { width: 18px; height: 18px; border-radius: 5px; }
.moo-demo--compact .moo-kpi-label { font-size: 8.5px; }
.moo-demo--compact .moo-kpi-val { font-size: 17px; }
.moo-demo--compact .moo-kpi-hint { display: none; }

.moo-demo--compact .moo-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 9px; }
.moo-demo--compact .moo-card { padding: 10px; }
.moo-demo--compact .moo-cardnote { display: none; }

/* La lista pasa a tira horizontal: cada usuario es una ficha tocable. */
.moo-demo--compact .moo-list {
  flex-direction: row;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.moo-demo--compact .moo-list::-webkit-scrollbar { display: none; }
.moo-demo--compact .moo-row { flex: 0 0 auto; width: 152px; padding: 7px; }
.moo-demo--compact .moo-row-why { display: none; }
.moo-demo--compact .moo-row-name { font-size: 11.5px; }
.moo-demo--compact .moo-row.is-leaving { animation: moo-leave-x .45s ease-in forwards; }
@keyframes moo-leave-x {
  to { opacity: 0; transform: translateY(-16px); width: 0; padding-inline: 0; margin-right: -6px; }
}

.moo-demo--compact .moo-detail-meta { display: none; }
.moo-demo--compact .moo-ai-text {
  font-size: 10.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.moo-demo--compact .moo-signals { gap: 4px; }
.moo-demo--compact .moo-sig { font-size: 9.5px; padding: 2px 6px; }
/* con dos señales basta: las demás no caben y la lectura de la IA ya las resume */
.moo-demo--compact .moo-sig:nth-child(n+3) { display: none; }
.moo-demo--compact .moo-charts { grid-template-columns: minmax(0, 1fr) 108px; gap: 8px; }
.moo-demo--compact .moo-svg--risk { height: 42px; }
.moo-demo--compact .moo-svg--att { height: 22px; }
.moo-demo--compact .moo-gauge svg { width: 66px; height: 66px; }
.moo-demo--compact .moo-gauge-val { font-size: 21px; }
.moo-demo--compact .moo-actionhint { display: none; }

/* ==========================================================================
   Panel "Retiene" — la app del usuario
   Teléfono a la izquierda, fichas flotantes a la derecha. La app móvil usa
   fondo negro puro (#000) y no el navy del CRM, así que aquí la paleta viene
   de moostreak-app/.../ui/theme/Color.kt: Surface #111, SurfaceVariant #191919,
   Border #2A2A2A, MacroProtein #4FC3F7, MacroCarbs #B6F46C, MacroFat #FF9B61.
   ========================================================================== */
.moo-demo--retain {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 44px;
  padding: 34px 44px 0;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(251, 215, 8, .07), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(79, 195, 247, .07), transparent 60%),
    var(--ink-900);
}

/* ------------------------------------------------------------- teléfono */
.moo-phone-wrap { display: flex; align-items: flex-start; justify-content: center; min-width: 0; }
.moo-phone {
  position: relative;
  display: flex; flex-direction: column;
  width: 296px; height: 622px;
  padding: 10px;
  border: 8px solid #16161c;
  border-radius: 40px;
  background: #000;
  box-shadow: 0 0 0 1px #2a2a2a,
              0 40px 80px -30px rgba(0, 0, 0, .9),
              0 0 60px -20px rgba(251, 215, 8, .18);
}
.moo-phone-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 12px 8px;
  font-size: 10.5px; font-weight: 600; color: #fff;
}
.moo-phone-bar i { font-style: normal; }
.moo-phone-sig { width: 26px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.5); }
.moo-phone-screen {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
  padding: 0 3px;
}
.moo-phone-screen.is-in > * { animation: moo-scr-in .4s ease-out both; }
@keyframes moo-scr-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.moo-phone-tabs {
  display: flex; align-items: center; justify-content: space-around;
  margin-top: 8px; padding: 8px 4px 4px;
  border-top: 1px solid #1e1e1e;
}
.moo-phone-tabs i { color: #a1a1aa; }
.moo-phone-tabs i.is-on { color: var(--brand); }
.moo-phone-tabs svg { width: 17px; height: 17px; }
.moo-phone-home {
  width: 96px; height: 4px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: rgba(255,255,255,.28);
}

/* -------------------------------------------------- pantallas de la app */
.moo-scr-head { display: flex; align-items: center; gap: 9px; }
.moo-scr-av {
  display: grid; place-items: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 10px;
  background: var(--brand); color: #000;
  font-size: 13px; font-weight: 800;
}
.moo-scr-hi { display: flex; flex-direction: column; line-height: 1.2; }
.moo-scr-hi b { font-size: 13px; }
.moo-scr-hi span { font-size: 10.5px; color: rgba(255,255,255,.6); }
.moo-scr-streak {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid rgba(251,215,8,.25);
  border-radius: 999px;
  background: rgba(251,215,8,.1);
  color: var(--brand);
  font-size: 11.5px; font-weight: 800;
}
.moo-scr-streak svg { width: 12px; height: 12px; }

.moo-scr-prog { display: flex; flex-direction: column; gap: 5px; }
.moo-scr-prog > span:first-child {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: rgba(255,255,255,.6);
}
.moo-scr-prog b { color: #fff; }

.moo-bar { display: block; height: 5px; border-radius: 3px; background: #1e1e1e; overflow: hidden; }
.moo-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #b6f46c, #91d43e); }
.moo-bar--lg { height: 7px; }

.moo-scr-list { display: flex; flex-direction: column; gap: 6px; }
.moo-ex {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  background: #111;
}
.moo-ex.is-ok { border-color: rgba(182,244,108,.22); background: rgba(182,244,108,.05); }
.moo-ex-tick {
  display: grid; place-items: center;
  width: 18px; height: 18px; flex: none;
  border: 1.5px solid #333;
  border-radius: 50%;
  color: #000;
}
.moo-ex.is-ok .moo-ex-tick { border-color: #b6f46c; background: #b6f46c; }
.moo-ex-tick svg { width: 11px; height: 11px; stroke-width: 3; }
.moo-ex-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.moo-ex-txt b { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moo-ex-txt span { font-size: 10px; color: rgba(255,255,255,.45); }

.moo-scr-title { font-size: 15px; font-weight: 800; letter-spacing: -.4px; }
.moo-scr-sub {
  margin-top: 2px;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.moo-kcal { position: relative; display: grid; place-items: center; margin: 2px auto 0; }
.moo-ring { width: 112px; height: 112px; }
.moo-kcal-mid {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.moo-kcal-mid b { font-size: 24px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.moo-kcal-mid span { margin-top: 3px; font-size: 9.5px; color: rgba(255,255,255,.6); }
.moo-kcal-sub { text-align: center; font-size: 10px; color: rgba(255,255,255,.45); }

.moo-macros { display: flex; flex-direction: column; gap: 6px; }
.moo-macro { display: flex; flex-direction: column; gap: 4px; }
.moo-macro-top { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.6); }
.moo-macro-top b { color: #fff; }

.moo-meals { display: flex; flex-direction: column; gap: 4px; }
.moo-meal {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px;
  border: 1px solid #1e1e1e; border-radius: 10px; background: #111;
  font-size: 11px;
}
.moo-meal span { color: rgba(255,255,255,.5); }

.moo-clan { display: flex; align-items: center; gap: 10px; }
.moo-clan-logo {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #191919;
  font-size: 20px;
}
.moo-clan-id { display: flex; flex-direction: column; line-height: 1.25; }
.moo-clan-id b { font-size: 14px; }
.moo-clan-id span { font-size: 10.5px; color: rgba(255,255,255,.55); }
.moo-clan-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.moo-clan-stats > span {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 4px;
  border: 1px solid #1e1e1e; border-radius: 10px; background: #111;
}
.moo-clan-stats b { font-size: 14px; font-weight: 800; letter-spacing: -.5px; }
.moo-clan-stats span { font-size: 9px; color: rgba(255,255,255,.45); }

.moo-rank { display: flex; flex-direction: column; gap: 5px; }
.moo-rank-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px;
  border: 1px solid #1e1e1e; border-radius: 10px; background: #111;
  font-size: 11px;
}
.moo-rank-row.is-me { border-color: rgba(251,215,8,.28); background: rgba(251,215,8,.07); }
.moo-rank-p {
  display: grid; place-items: center;
  width: 17px; height: 17px; flex: none;
  border-radius: 5px; background: #1e1e1e;
  font-size: 9.5px; font-weight: 800; color: rgba(255,255,255,.7);
}
.moo-rank-row.is-me .moo-rank-p { background: var(--brand); color: #000; }
.moo-rank-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moo-rank-row > span:last-child { color: rgba(255,255,255,.5); }

/* ---------------------------------------------------- fichas flotantes */
.moo-appside { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 0 18px; }
.moo-ac-kicker {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--brand);
}
.moo-ac-title {
  margin: 7px 0 6px;
  font-size: 26px; font-weight: 800; letter-spacing: -1px; line-height: 1.12;
}
.moo-ac-sub { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--ink-250); max-width: 46ch; }

.moo-appcards { display: flex; flex-direction: column; gap: 11px; width: 100%; max-width: 468px; }
.moo-appcard {
  display: flex; flex-direction: column; gap: 6px;
  padding: 13px 15px;
  border: 1px solid var(--ink-650);
  border-radius: 14px;
  background: rgba(19, 20, 37, .72);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05),
              0 18px 40px -24px rgba(0, 0, 0, .9);
  animation: moo-card-in .45s ease-out both;
}
/* Escalonadas: la de en medio se desplaza para que floten y no formen columna. */
.moo-appcard:nth-child(2) { margin-left: 46px; }
.moo-appcard:nth-child(3) { margin-left: 20px; }
@keyframes moo-card-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.moo-ac-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.moo-ac-head svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.moo-ac-text { font-size: 12px; line-height: 1.45; color: var(--ink-250); }
.moo-ac-stat { display: flex; align-items: baseline; gap: 5px; }
.moo-ac-stat b { font-size: 34px; font-weight: 800; letter-spacing: -1.6px; line-height: 1; }
.moo-ac-stat i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--brand); }
.moo-ac-label { font-size: 12px; font-weight: 600; color: var(--ink-50); }
.moo-ac-foot { font-size: 10.5px; color: var(--ink-400); }

.moo-ac-steps { display: flex; flex-direction: column; gap: 5px; }
.moo-ac-steps span {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--ink-250);
  animation: moo-step-in .4s ease-out both;
}
.moo-ac-steps svg { width: 12px; height: 12px; color: #b6f46c; flex: none; stroke-width: 3; }
@keyframes moo-step-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

.moo-ac-bars { display: flex; align-items: flex-end; gap: 5px; height: 42px; }
.moo-ac-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #b6f46c, #91d43e);
}

.moo-appdots { display: flex; gap: 7px; margin-top: 20px; }
.moo-appdots button {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--ink-650);
  border-radius: 999px;
  background: var(--ink-850);
  font-size: 11.5px; color: var(--ink-250);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .2s;
}
.moo-appdots button i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-400);
  transition: background-color .16s;
}
.moo-appdots button:hover {
  color: var(--ink-50);
  border-color: rgba(251,215,8,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),
              0 0 0 1px rgba(251,215,8,.14),
              0 8px 20px -10px rgba(251,215,8,.3);
}
.moo-appdots button[aria-pressed="true"] {
  color: var(--brand);
  border-color: rgba(251,215,8,.3);
  background: rgba(251,215,8,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),
              0 0 0 1px rgba(251,215,8,.22),
              0 8px 20px -10px rgba(251,215,8,.35);
}
.moo-appdots button[aria-pressed="true"] i { background: var(--brand); }
.moo-appdots button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(251,215,8,.55);
}

/* -------------------------------------------------- compacto (móvil) ---
   El hueco se vuelve casi cuadrado y pequeño: dos columnas dejarían el
   teléfono ilegible. Se apila —teléfono arriba, fichas debajo— y se recorta
   lo secundario de cada pantalla, que en pantalla grande sí cabe. */
.moo-demo--retain.moo-demo--compact {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px 0;
}
.moo-demo--retain.moo-demo--compact .moo-phone {
  width: 250px; height: 398px;
  border-width: 6px; border-radius: 28px; padding: 7px;
}
.moo-demo--retain.moo-demo--compact .moo-phone-screen { gap: 7px; }
.moo-demo--retain.moo-demo--compact .moo-phone-tabs { margin-top: 6px; padding: 6px 4px 2px; }
.moo-demo--retain.moo-demo--compact .moo-phone-home { margin-top: 4px; }

/* Lo que no cabe en 430 px de alto */
.moo-demo--retain.moo-demo--compact .moo-ex:nth-child(n+5),
.moo-demo--retain.moo-demo--compact .moo-scr-next,
.moo-demo--retain.moo-demo--compact .moo-opt,
.moo-demo--retain.moo-demo--compact .moo-kcal-sub,
.moo-demo--retain.moo-demo--compact .moo-meal:nth-child(n+3),
.moo-demo--retain.moo-demo--compact .moo-rank-row:nth-child(n+3) { display: none; }
.moo-demo--retain.moo-demo--compact .moo-ring { width: 82px; height: 82px; }
.moo-demo--retain.moo-demo--compact .moo-kcal-mid b { font-size: 19px; }
.moo-demo--retain.moo-demo--compact .moo-ex { padding: 7px 9px; }
.moo-demo--retain.moo-demo--compact .moo-clan-stats > span { padding: 6px 3px; }

.moo-demo--retain.moo-demo--compact .moo-appside { justify-content: flex-start; padding: 0 0 10px; }
.moo-demo--retain.moo-demo--compact .moo-ac-kicker { font-size: 8.5px; }
.moo-demo--retain.moo-demo--compact .moo-ac-title { font-size: 17px; margin: 4px 0 3px; }
/* Se recorta con max-height y no con -webkit-line-clamp: el display
   -webkit-box lo pisaba una regla de la página y dejaba el párrafo en 0. */
.moo-demo--retain.moo-demo--compact .moo-ac-sub {
  font-size: 11px; line-height: 1.4; margin-bottom: 9px; max-width: none;
  max-height: 2.8em; overflow: hidden;
}
.moo-demo--retain.moo-demo--compact .moo-appcards {
  flex-direction: row; gap: 8px; max-width: none;
}
.moo-demo--retain.moo-demo--compact .moo-appcard {
  flex: 1; margin-left: 0; padding: 9px 10px; gap: 4px;
}
.moo-demo--retain.moo-demo--compact .moo-appcard:nth-child(3) { display: none; }
.moo-demo--retain.moo-demo--compact .moo-ac-stat b { font-size: 22px; }
.moo-demo--retain.moo-demo--compact .moo-ac-text,
.moo-demo--retain.moo-demo--compact .moo-ac-steps span { font-size: 10px; }
.moo-demo--retain.moo-demo--compact .moo-ac-steps span:nth-child(3) { display: none; }
.moo-demo--retain.moo-demo--compact .moo-ac-bars { height: 28px; }
.moo-demo--retain.moo-demo--compact .moo-appdots { margin-top: 6px; }
.moo-demo--retain.moo-demo--compact .moo-appdots button { padding: 5px 9px; font-size: 10.5px; }

/* Pie de la pantalla de rutina — lo que viene después, que en la app engancha. */
.moo-scr-next {
  display: flex; align-items: center; gap: 7px;
  margin-top: auto;
  padding: 9px 10px;
  border: 1px solid rgba(251,215,8,.18);
  border-radius: 10px;
  background: rgba(251,215,8,.06);
  font-size: 10.5px; color: rgba(255,255,255,.6);
}
.moo-scr-next b { color: #fff; }
.moo-scr-next svg { width: 12px; height: 12px; color: var(--brand); flex: none; }
.moo-meal.is-soft { border-style: dashed; opacity: .6; }

/* En pantalla grande el bloque opcional es un bloque normal. */
.moo-opt { display: flex; flex-direction: column; gap: 5px; }

/* Los bloques de texto no deben encogerse: en columnas flex apretadas el
   navegador los aplasta a 0 de alto antes que desbordar, y el párrafo
   desaparecía sin dejar rastro. */
.moo-ac-kicker, .moo-ac-title, .moo-ac-sub, .moo-appcards, .moo-appdots { flex: none; }

/* ==========================================================================
   Panel "Organiza" — del Excel a la base ordenada
   Misma paleta del CRM. A la izquierda la hoja tal cual llega (mayúsculas
   sueltas, teléfonos en cinco formatos, un duplicado); a la derecha la tabla
   de miembros llenándose. Entre medias, los pasos del importador.
   ========================================================================== */
.moo-demo--org {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 26px 0;
}

.moo-org-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.moo-demo--org .moo-ac-title { font-size: 23px; margin: 6px 0 5px; }
.moo-demo--org .moo-ac-sub { font-size: 12.5px; margin: 0; max-width: 62ch; }
.moo-demo--org .moo-btn { flex: none; margin-top: 6px; }

/* Rueda de "importando" — el botón queda ocupado mientras corre. */
.moo-spin {
  width: 13px; height: 13px; flex: none;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: moo-spin .7s linear infinite;
}
@keyframes moo-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ pasos */
.moo-steps { display: flex; align-items: center; gap: 8px; }
.moo-step {
  display: flex; align-items: center; gap: 7px;
  flex: 1;
  padding: 7px 11px;
  border: 1px solid var(--ink-650);
  border-radius: 10px;
  background: var(--ink-850);
  font-size: 11.5px;
  color: var(--ink-300);
  transition: color .25s, border-color .25s, background-color .25s;
}
.moo-step i {
  display: grid; place-items: center;
  width: 17px; height: 17px; flex: none;
  border-radius: 50%;
  background: var(--ink-750);
  font-size: 9.5px; font-weight: 800; font-style: normal;
  color: var(--ink-300);
  transition: background-color .25s, color .25s;
}
.moo-step i svg { width: 10px; height: 10px; stroke-width: 3.2; }
.moo-step[data-state="now"] {
  color: var(--ink-50);
  border-color: rgba(251,215,8,.32);
  background: rgba(251,215,8,.07);
}
.moo-step[data-state="now"] i { background: var(--brand); color: #000; animation: moo-pulse 1.1s ease-in-out infinite; }
.moo-step[data-state="done"] { color: var(--ink-250); border-color: rgba(34,197,94,.28); }
.moo-step[data-state="done"] i { background: var(--success); color: #04250f; }
@keyframes moo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,215,8,.5); }
  60% { box-shadow: 0 0 0 5px rgba(251,215,8,0); }
}

/* ---------------------------------------------------------------- columnas */
.moo-org-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.08fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.moo-org-arrow { display: grid; place-items: center; color: var(--ink-400); }
.moo-org-arrow svg { width: 20px; height: 20px; }
.moo-demo--org .moo-card { padding: 11px; }
.moo-demo--org .moo-cardtitle svg { color: var(--ink-300); }
.moo-sheet-size { font-size: 10px; color: var(--ink-400); }

/* -------------------------------------------------------- hoja de cálculo */
.moo-sheet-wrap { display: flex; flex-direction: column; min-height: 0; margin-top: 8px; font-size: 10.5px; }
.moo-sheet-head, .moo-srow { display: grid; grid-template-columns: 1.25fr 1.5fr 1.1fr .7fr; }
.moo-sheet-head {
  border: 1px solid var(--ink-650);
  border-radius: 7px 7px 0 0;
  background: var(--ink-800);
  font-weight: 700;
  color: var(--ink-300);
}
.moo-sheet-head span {
  padding: 6px 8px;
  border-right: 1px solid var(--ink-650);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .25s, background-color .25s;
}
.moo-sheet-head span:last-child { border-right: 0; }
.moo-sheet-head span.is-mapped { color: var(--brand); background: rgba(251,215,8,.08); }

.moo-sheet-body { border: 1px solid var(--ink-650); border-top: 0; border-radius: 0 0 7px 7px; overflow: hidden; }
.moo-srow {
  position: relative;
  border-bottom: 1px solid var(--ink-700);
  color: var(--ink-250);
  transition: opacity .4s ease, transform .4s ease, background-color .3s;
}
.moo-srow:last-child { border-bottom: 0; }
.moo-srow > span {
  padding: 5px 8px;
  border-right: 1px solid var(--ink-700);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.moo-srow > span:last-of-type { border-right: 0; }
.moo-empty-cell { font-style: italic; color: var(--ink-500); }

/* Fila descartada: el importador la marca y explica por qué. */
.moo-srow.is-bad { background: rgba(255,45,120,.07); color: var(--ink-400); text-decoration: line-through; }
.moo-srow-why {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,45,120,.16);
  color: var(--danger);
  font-size: 8.5px; font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
/* Fila ya trasladada al CRM. */
.moo-srow.is-gone { opacity: .18; transform: translateX(10px); }

.moo-sheet-foot {
  margin-top: 6px;
  text-align: center;
  font-size: 10px;
  color: var(--ink-400);
}

/* ----------------------------------------------------- tabla del CRM */
.moo-crm-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; margin-top: 8px; font-size: 10.5px; }
.moo-crm-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  flex: 1;
  border: 1px dashed var(--ink-500);
  border-radius: 10px;
  color: var(--ink-400);
  text-align: center;
  line-height: 1.5;
}
.moo-crm-empty svg { width: 20px; height: 20px; }
.moo-crm-head, .moo-crow { display: grid; grid-template-columns: 1.3fr 1.5fr 1.1fr .75fr; align-items: center; }
.moo-crm-head {
  padding: 0 0 6px;
  border-bottom: 1px solid var(--ink-650);
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-400);
}
.moo-crm-head span { padding: 0 8px; }
.moo-crm-body { display: flex; flex-direction: column; }
.moo-crow {
  padding: 6px 0;
  border-bottom: 1px solid var(--ink-700);
  color: var(--ink-250);
  animation: moo-crow-in .38s ease-out both;
}
.moo-crow > span { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moo-crow-n { display: flex; align-items: center; gap: 7px; color: var(--ink-50); font-weight: 600; }
.moo-crow-n i {
  display: grid; place-items: center;
  width: 20px; height: 20px; flex: none;
  border-radius: 6px;
  background: var(--ink-750);
  font-size: 8.5px; font-style: normal; font-weight: 700;
  color: var(--ink-250);
}
@keyframes moo-crow-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
.moo-chip {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 9px; font-weight: 700;
}
.moo-chip[data-tone="success"] { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.1); color: var(--success); }
.moo-chip[data-tone="warning"] { border-color: rgba(255,179,0,.35); background: rgba(255,179,0,.1); color: var(--warning); }
.moo-chip[data-tone="danger"] { border-color: rgba(255,45,120,.35); background: rgba(255,45,120,.1); color: var(--danger); }

/* ------------------------------------------------------------------- pie */
.moo-org-foot { display: flex; align-items: center; min-height: 40px; padding-bottom: 14px; }
.moo-org-hint { font-size: 11.5px; color: var(--ink-400); }
.moo-org-maps { display: flex; flex-wrap: wrap; gap: 7px; }
.moo-map {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--ink-650);
  border-radius: 999px;
  background: var(--ink-850);
  font-size: 10.5px;
  animation: moo-map-in .3s ease-out both;
}
.moo-map i { font-style: normal; color: var(--ink-400); }
.moo-map b { color: var(--brand); font-weight: 600; }
.moo-map svg { width: 11px; height: 11px; color: var(--ink-500); }
@keyframes moo-map-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.moo-org-done {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 10px;
  background: rgba(34,197,94,.08);
  font-size: 12px; color: var(--ink-250);
  animation: moo-map-in .35s ease-out both;
}
.moo-org-done b { color: var(--ink-50); }
.moo-org-done svg { width: 14px; height: 14px; color: var(--success); stroke-width: 3; }

/* ------------------------------------------------------ compacto (móvil) */
.moo-demo--org.moo-demo--compact { padding: 14px 14px 0; gap: 9px; }
.moo-demo--org.moo-demo--compact .moo-org-head { flex-direction: column; gap: 8px; }
.moo-demo--org.moo-demo--compact .moo-ac-title { font-size: 17px; margin: 4px 0 3px; }
.moo-demo--org.moo-demo--compact .moo-ac-sub { font-size: 11px; max-height: 2.8em; overflow: hidden; }
.moo-demo--org.moo-demo--compact .moo-btn { margin-top: 0; align-self: flex-start; }
.moo-demo--org.moo-demo--compact .moo-steps { gap: 5px; }
.moo-demo--org.moo-demo--compact .moo-step { padding: 5px 7px; font-size: 9px; gap: 5px; }
.moo-demo--org.moo-demo--compact .moo-step i { width: 14px; height: 14px; font-size: 8px; }
.moo-demo--org.moo-demo--compact .moo-org-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; }
.moo-demo--org.moo-demo--compact .moo-org-arrow { display: none; }
.moo-demo--org.moo-demo--compact .moo-sheet-wrap,
.moo-demo--org.moo-demo--compact .moo-crm-wrap { font-size: 9px; }
/* En el hueco pequeño no caben las 12 filas ni los 10 miembros: se recorta
   la vista, que el contador y el resumen ya dan la cifra real. */
.moo-demo--org.moo-demo--compact .moo-srow:nth-child(n+6),
.moo-demo--org.moo-demo--compact .moo-crow:nth-child(n+6) { display: none; }
.moo-demo--org.moo-demo--compact .moo-crm-wrap,
.moo-demo--org.moo-demo--compact .moo-sheet-wrap { overflow: hidden; }
.moo-demo--org.moo-demo--compact .moo-sheet-head span:nth-child(n+4),
.moo-demo--org.moo-demo--compact .moo-srow > span:nth-child(n+4),
.moo-demo--org.moo-demo--compact .moo-crm-head span:nth-child(n+3),
.moo-demo--org.moo-demo--compact .moo-crow > span:nth-child(n+3) { display: none; }
.moo-demo--org.moo-demo--compact .moo-sheet-head,
.moo-demo--org.moo-demo--compact .moo-srow { grid-template-columns: 1.2fr 1.5fr 1fr; }
.moo-demo--org.moo-demo--compact .moo-crm-head,
.moo-demo--org.moo-demo--compact .moo-crow { grid-template-columns: 1.2fr 1.5fr; }
.moo-demo--org.moo-demo--compact .moo-org-foot { min-height: 30px; padding-bottom: 10px; }
.moo-demo--org.moo-demo--compact .moo-map { font-size: 9px; padding: 3px 7px; }
.moo-demo--org.moo-demo--compact .moo-org-done { font-size: 10px; padding: 5px 9px; }

/* Sin pulsar el botón no pasa nada en esta pestaña, así que mientras está en
   reposo late un halo lento que invita a tocarlo. Se apaga al pasar por
   encima —ahí ya manda el halo de hover— y en cuanto arranca la importación. */
.moo-demo--org .moo-btn[data-invite="true"] {
  animation: moo-invite 2.4s ease-in-out infinite;
}
.moo-demo--org .moo-btn[data-invite="true"]:hover,
.moo-demo--org .moo-btn[data-invite="true"]:focus-visible { animation: none; }
@keyframes moo-invite {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25),
                0 0 0 0 rgba(251, 215, 8, .45),
                0 6px 18px -8px rgba(251, 215, 8, .35);
  }
  55% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25),
                0 0 0 10px rgba(251, 215, 8, 0),
                0 6px 18px -8px rgba(251, 215, 8, .35);
  }
}

/* ==========================================================================
   Panel "Automatiza" — mensajes que salen solos
   Reglas con interruptor a la izquierda; a la derecha la vista previa de
   cómo le llega al usuario y el registro de envíos en vivo.
   ========================================================================== */
.moo-demo--auto { display: flex; flex-direction: column; gap: 13px; padding: 22px 26px 0; }

.moo-auto-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.moo-demo--auto .moo-ac-title { font-size: 23px; margin: 6px 0 5px; }
.moo-demo--auto .moo-ac-sub { font-size: 12.5px; margin: 0; max-width: 60ch; }
.moo-auto-counter {
  display: flex; flex-direction: column; align-items: flex-end;
  flex: none;
  padding: 9px 15px;
  border: 1px solid var(--ink-650);
  border-radius: 12px;
  background: var(--ink-850);
}
.moo-auto-counter b {
  font-size: 26px; font-weight: 800; letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}
.moo-auto-counter span { font-size: 10px; color: var(--ink-300); }

.moo-auto-cols { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 11px; flex: 1; min-height: 0; }
.moo-auto-right { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 11px; min-height: 0; }
.moo-demo--auto .moo-card { padding: 12px; }

/* ------------------------------------------------------------------ reglas */
.moo-rules { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.moo-rule {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: background-color .16s, border-color .16s, box-shadow .2s, opacity .2s;
}
.moo-rule:hover {
  background: var(--ink-800);
  border-color: rgba(251,215,8,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),
              0 0 0 1px rgba(251,215,8,.1),
              0 8px 20px -12px rgba(251,215,8,.3);
}
.moo-rule.is-sel {
  background: rgba(251,215,8,.07);
  border-color: rgba(251,215,8,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),
              0 0 0 1px rgba(251,215,8,.2),
              0 10px 24px -14px rgba(251,215,8,.4);
}
.moo-rule.is-off { opacity: .45; }
.moo-rule-ico {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex: none;
  border-radius: 9px;
  background: var(--ink-800);
  color: var(--brand);
}
.moo-rule.is-off .moo-rule-ico { color: var(--ink-400); }
.moo-rule-ico svg { width: 14px; height: 14px; }
.moo-rule-mid { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.moo-rule-name { font-size: 12.5px; font-weight: 600; }
.moo-rule-seg { font-size: 10.5px; color: var(--ink-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moo-rule-n {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ink-800);
  font-size: 10px; font-weight: 700;
  color: var(--ink-250);
  font-variant-numeric: tabular-nums;
}

/* Interruptor — el mismo gesto que en el CRM: se enciende y se apaga. */
.moo-switch {
  position: relative;
  width: 32px; height: 18px; flex: none;
  border-radius: 999px;
  background: var(--ink-700);
  transition: background-color .2s;
}
.moo-switch i {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink-350);
  transition: transform .2s ease, background-color .2s;
}
.moo-switch[aria-checked="true"] { background: rgba(251,215,8,.35); }
.moo-switch[aria-checked="true"] i { transform: translateX(14px); background: var(--brand); }

/* --------------------------------------------------------- vista previa */
.moo-prev { min-height: 0; }
.moo-prev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.moo-prev-ch { display: flex; gap: 5px; }
.moo-prev-ch i {
  padding: 2px 7px;
  border: 1px solid var(--ink-650);
  border-radius: 999px;
  background: var(--ink-800);
  font-size: 9px; font-style: normal; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  color: var(--ink-250);
}
.moo-prev-body { margin: 10px 0 8px; }

/* Aviso en el móvil */
.moo-push {
  padding: 10px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  background: rgba(17,17,17,.92);
  backdrop-filter: blur(6px);
}
.moo-push-top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: 10px; color: rgba(255,255,255,.55); }
.moo-push-top b { color: #fff; font-size: 10.5px; }
.moo-push-top span { margin-left: auto; }
.moo-push-ico {
  display: grid; place-items: center;
  width: 17px; height: 17px;
  border-radius: 5px;
  background: var(--brand); color: #000;
  font-size: 9px; font-weight: 800;
}
.moo-push-title { font-size: 12.5px; font-weight: 700; }
.moo-push-body { margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: rgba(255,255,255,.6); }

/* Correo */
.moo-mail { border: 1px solid var(--ink-650); border-radius: 12px; background: var(--ink-800); overflow: hidden; }
.moo-mail-top { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--ink-650); }
.moo-mail-av {
  display: grid; place-items: center;
  width: 24px; height: 24px; flex: none;
  border-radius: 7px; background: var(--brand); color: #000;
  font-size: 11px; font-weight: 800;
}
.moo-mail-top span { display: flex; flex-direction: column; line-height: 1.3; }
.moo-mail-top b { font-size: 11.5px; }
.moo-mail-top span span { font-size: 10px; color: var(--ink-400); }
.moo-mail-subj { padding: 9px 12px 3px; font-size: 12.5px; font-weight: 700; }
.moo-mail-txt { padding: 0 12px 9px; font-size: 11.5px; line-height: 1.45; color: var(--ink-250); }
.moo-mail-cta {
  display: inline-block;
  margin: 0 12px 12px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--brand); color: var(--brand-fg);
  font-size: 11px; font-weight: 700;
}
.moo-prev-foot { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-400); }
.moo-prev-foot b { color: var(--ink-250); }
.moo-prev-foot svg { width: 12px; height: 12px; }

/* ------------------------------------------------------------- registro */
.moo-feedcard { min-height: 0; }
.moo-live { display: flex; align-items: center; gap: 5px; font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-400); }
.moo-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: moo-live 1.6s ease-in-out infinite;
}
@keyframes moo-live { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.moo-feed { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; min-height: 0; overflow: hidden; }
.moo-feed-empty {
  display: grid; place-items: center;
  flex: 1;
  border: 1px dashed var(--ink-500);
  border-radius: 10px;
  font-size: 11px; color: var(--ink-400);
  text-align: center;
}
.moo-fitem {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--ink-250);
}
/* Solo entra animado el más nuevo. Si la animación fuera para todos, cada
   repintado los devolvería a opacidad 0 y la lista entera parpadearía. */
.moo-fitem:first-child { animation: moo-feed-in .35s ease-out both; }
.moo-fitem:nth-child(odd) { background: rgba(255,255,255,.02); }
@keyframes moo-feed-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.moo-fdot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--success); }
.moo-fdot[data-st="sending"] { background: var(--warning); animation: moo-live 1s ease-in-out infinite; }
.moo-ftime { font-size: 10px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.moo-fitem b { flex: 1; min-width: 0; color: var(--ink-50); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moo-ftag {
  padding: 1px 7px;
  border: 1px solid var(--ink-650);
  border-radius: 999px;
  background: var(--ink-800);
  font-size: 9.5px;
  white-space: nowrap;
}
.moo-fst { font-size: 9.5px; font-weight: 700; color: var(--success); white-space: nowrap; }
.moo-fst[data-st="sending"] { color: var(--warning); }

/* ------------------------------------------------------ compacto (móvil) */
.moo-demo--auto.moo-demo--compact { padding: 14px 14px 0; gap: 9px; }
.moo-demo--auto.moo-demo--compact .moo-auto-head { gap: 12px; }
.moo-demo--auto.moo-demo--compact .moo-ac-title { font-size: 16px; margin: 4px 0 3px; }
.moo-demo--auto.moo-demo--compact .moo-ac-sub { font-size: 10.5px; max-height: 2.9em; overflow: hidden; }
.moo-demo--auto.moo-demo--compact .moo-auto-counter { padding: 6px 10px; }
.moo-demo--auto.moo-demo--compact .moo-auto-counter b { font-size: 19px; }
.moo-demo--auto.moo-demo--compact .moo-auto-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 8px; }
.moo-demo--auto.moo-demo--compact .moo-auto-right { grid-template-rows: minmax(0, 1fr); }
.moo-demo--auto.moo-demo--compact .moo-prev { display: none; }
.moo-demo--auto.moo-demo--compact .moo-rule { padding: 6px 8px; gap: 8px; }
.moo-demo--auto.moo-demo--compact .moo-rule-ico { width: 22px; height: 22px; border-radius: 7px; }
.moo-demo--auto.moo-demo--compact .moo-rule-name { font-size: 11px; }
.moo-demo--auto.moo-demo--compact .moo-rule-seg { font-size: 9px; }
.moo-demo--auto.moo-demo--compact .moo-rule:nth-child(n+5) { display: none; }
.moo-demo--auto.moo-demo--compact .moo-fitem { font-size: 9.5px; gap: 6px; padding: 5px 6px; }
.moo-demo--auto.moo-demo--compact .moo-ftag { display: none; }
.moo-demo--auto.moo-demo--compact .moo-fitem:nth-child(n+5) { display: none; }

/* Pie de la lista de reglas — recuerda que el listado no es cerrado. */
.moo-rule-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;
  padding: 9px 10px;
  border: 1px dashed var(--ink-500);
  border-radius: 10px;
  font-size: 10.5px;
  color: var(--ink-400);
}
.moo-rule-foot svg { width: 13px; height: 13px; color: var(--brand); flex: none; }
.moo-demo--auto.moo-demo--compact .moo-rule-foot { display: none; }

/* ==========================================================================
   Panel "Compite" — el leaderboard en la pantalla de la sede
   La TV toma el color del gimnasio con la variable --gym, que se cambia al
   pulsar los chips. Es la manera más corta de enseñar la marca blanca: el
   mismo producto, tres marcas distintas.
   ========================================================================== */
.moo-demo--tv { display: flex; flex-direction: column; gap: 14px; padding: 22px 26px 0; }

.moo-tv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; }
.moo-demo--tv .moo-ac-title { font-size: 23px; margin: 6px 0 5px; }
.moo-demo--tv .moo-ac-sub { font-size: 12.5px; margin: 0; max-width: 58ch; }

.moo-tv-gyms { display: flex; flex-direction: column; gap: 6px; flex: none; }
.moo-tv-gym {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--ink-650);
  border-radius: 999px;
  background: var(--ink-850);
  font-size: 11.5px;
  color: var(--ink-250);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: color .16s, border-color .16s, background-color .16s, box-shadow .2s;
}
.moo-tv-gym i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.moo-tv-gym:hover {
  color: var(--ink-50);
  border-color: rgba(251,215,8,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),
              0 8px 20px -12px rgba(251,215,8,.3);
}
.moo-tv-gym[aria-pressed="true"] {
  color: var(--ink-50);
  border-color: rgba(255,255,255,.28);
  background: var(--ink-800);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.06);
}

/* -------------------------------------------------------------- el mueble */
.moo-tvwrap { display: flex; flex-direction: column; align-items: center; flex: 1; min-height: 0; }
.moo-tv {
  width: 100%;
  flex: 1;
  min-height: 0;
  padding: 12px;
  border: 1px solid #24252f;
  border-radius: 16px;
  background: linear-gradient(180deg, #17181f, #0e0f14);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.95),
              0 0 70px -34px color-mix(in srgb, var(--gym) 60%, transparent);
}
.moo-tv-stand {
  width: 120px; height: 7px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #24252f, #14151b);
}
.moo-tv-screen {
  display: flex; flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 9px;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--gym) 12%, transparent), transparent 60%),
    #05060a;
  color: #fff;
  overflow: hidden;
}
.moo-tv-screen.is-in > * { animation: moo-scr-in .4s ease-out both; }

/* ------------------------------------------------------------ cabecera TV */
.moo-tv-head { display: flex; align-items: center; gap: 11px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.moo-tv-logo {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  background: var(--gym);
  color: #06070c;
  font-size: 13px; font-weight: 800;
}
.moo-tv-id { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.moo-tv-id b { font-size: 16px; letter-spacing: -.4px; }
.moo-tv-id span { font-size: 10.5px; color: rgba(255,255,255,.5); }
.moo-tv-when { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.moo-tv-when b { font-size: 11px; color: var(--gym); letter-spacing: .3px; text-transform: uppercase; }
.moo-tv-when span { font-size: 10.5px; color: rgba(255,255,255,.5); }

/* ------------------------------------------------------------------ KPIs */
.moo-tv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 0; }
.moo-tv-kpi {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
}
.moo-tv-kpi-ico {
  display: grid; place-items: center;
  width: 22px; height: 22px; flex: none;
  border-radius: 7px;
  background: color-mix(in srgb, var(--gym) 16%, transparent);
  color: var(--gym);
}
.moo-tv-kpi-ico svg { width: 12px; height: 12px; }
.moo-tv-kpi b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.moo-tv-kpi span span { font-size: 9.5px; color: rgba(255,255,255,.45); }

/* ------------------------------------------------------------------ podio */
.moo-tv-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; flex: 1; min-height: 0; }
.moo-tv-podwrap { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; }
.moo-pod { display: flex; flex-direction: column; align-items: center; text-align: center; }
.moo-pod-av {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size: 12px; font-weight: 800;
}
.moo-pod[data-pos="1"] .moo-pod-av { width: 46px; height: 46px; font-size: 14px; border-color: var(--gym); background: color-mix(in srgb, var(--gym) 18%, transparent); }
.moo-pod-n { margin-top: 5px; font-size: 10.5px; font-weight: 600; line-height: 1.2; }
.moo-pod-p { margin-top: 2px; font-size: 11px; font-weight: 800; color: var(--gym); font-variant-numeric: tabular-nums; }
.moo-pod-base {
  display: grid; place-items: center;
  width: 100%;
  margin-top: 7px;
  border-radius: 7px 7px 0 0;
  background: rgba(255,255,255,.05);
  font-size: 15px; font-weight: 800;
  color: rgba(255,255,255,.4);
}
.moo-pod[data-pos="1"] .moo-pod-base { height: 150px; background: color-mix(in srgb, var(--gym) 22%, transparent); color: var(--gym); }
.moo-pod[data-pos="2"] .moo-pod-base { height: 112px; }
.moo-pod[data-pos="3"] .moo-pod-base { height: 86px; }

/* ---------------------------------------------------------------- ranking */
.moo-tv-list { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-width: 0; }
.moo-tv-row {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  font-size: 11px;
}
.moo-tv-pos { width: 14px; flex: none; text-align: center; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); }
.moo-tv-av {
  display: grid; place-items: center;
  width: 22px; height: 22px; flex: none;
  border-radius: 7px;
  background: rgba(255,255,255,.07);
  font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,.75);
}
.moo-tv-n { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-weight: 600; overflow: hidden; }
.moo-tv-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gym) 16%, transparent);
  color: var(--gym);
  font-size: 8.5px; font-style: normal; font-weight: 700;
  white-space: nowrap;
}
.moo-tv-st { display: flex; align-items: center; gap: 3px; font-size: 10px; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.moo-tv-st svg { width: 10px; height: 10px; color: #ff9b61; }
.moo-tv-p { width: 44px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.moo-tv-d { width: 26px; text-align: right; font-size: 9.5px; font-weight: 700; }
.moo-tv-d[data-d="up"] { color: #22c55e; }
.moo-tv-d[data-d="down"] { color: #ff2d78; }
.moo-tv-d[data-d="flat"] { color: rgba(255,255,255,.3); }

/* -------------------------------------------------------------------- pie */
.moo-tv-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 9px; margin-top: 9px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.moo-tv-foot .moo-live { color: rgba(255,255,255,.4); text-transform: none; letter-spacing: 0; font-size: 10px; }
.moo-tv-mark { font-size: 10px; font-weight: 700; letter-spacing: .4px; color: rgba(255,255,255,.28); }

/* ------------------------------------------------------- compacto (móvil) */
.moo-demo--tv.moo-demo--compact { padding: 14px 14px 0; gap: 9px; }
.moo-demo--tv.moo-demo--compact .moo-tv-top { flex-direction: column; gap: 8px; }
.moo-demo--tv.moo-demo--compact .moo-ac-title { font-size: 16px; margin: 4px 0 3px; }
.moo-demo--tv.moo-demo--compact .moo-ac-sub { font-size: 10.5px; max-height: 2.9em; overflow: hidden; }
.moo-demo--tv.moo-demo--compact .moo-tv-gyms { flex-direction: row; }
.moo-demo--tv.moo-demo--compact .moo-tv-gym { padding: 5px 9px; font-size: 9.5px; }
.moo-demo--tv.moo-demo--compact .moo-tv { padding: 7px; border-radius: 12px; }
.moo-demo--tv.moo-demo--compact .moo-tv-screen { padding: 9px 10px; }
.moo-demo--tv.moo-demo--compact .moo-tv-logo { width: 26px; height: 26px; font-size: 11px; }
.moo-demo--tv.moo-demo--compact .moo-tv-id b { font-size: 13px; }
.moo-demo--tv.moo-demo--compact .moo-tv-kpis { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 7px 0; }
.moo-demo--tv.moo-demo--compact .moo-tv-kpi:nth-child(n+3) { display: none; }
.moo-demo--tv.moo-demo--compact .moo-tv-body { grid-template-columns: minmax(0, 1fr); gap: 9px; }
.moo-demo--tv.moo-demo--compact .moo-pod-base { height: 30px !important; }
.moo-demo--tv.moo-demo--compact .moo-pod[data-pos="1"] .moo-pod-base { height: 42px !important; }
.moo-demo--tv.moo-demo--compact .moo-tv-row:nth-child(n+3) { display: none; }
.moo-demo--tv.moo-demo--compact .moo-tv-badge,
.moo-demo--tv.moo-demo--compact .moo-tv-d { display: none; }

/* El número que acaba de subir se resalta un instante. Es lo único que se
   mueve en el tablero: antes se repintaba entero y parpadeaba. */
.moo-tv-kpi b.is-bumped, .moo-pod-p.is-bumped { animation: moo-tv-bump .55s ease-out; }
@keyframes moo-tv-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.1); filter: brightness(1.35); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Panel suelto — fuera de la portada
   Basta un <div class="moo-solo" data-moo-panel="crm"> y el panel se pinta
   dentro. Las páginas de producto lo usan así.
   ========================================================================== */
.moo-solo {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 682;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-850, #131425);
}
.moo-solo .moo-demo { border-radius: 14px; border-bottom: 1px solid var(--ink-650); }
.moo-solo .moo-demo-root { border-radius: 14px; }

/* En pantallas estrechas el compacto necesita más alto proporcional */
@media (max-width: 700px) {
  .moo-solo { aspect-ratio: 520 / 620; }
}

/* Marco de presentación: el panel dentro de un contenedor con luz de marca */
.moo-frame {
  position: relative;
  padding: 12px;
  border: 1px solid var(--ink-650, #2a2b48);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(251,215,8,.05), rgba(11,12,22,0) 60%), #101120;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.95);
}
