/* ==========================================================================
   Canales por etapa: barras que crecen con transform (sin layout).
   ========================================================================== */

.acan {
  background: var(--panel);
  color: var(--panel-ink);
}
.acan__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.acan .h2 {
  color: #fff;
}
.acan__lede {
  margin-top: 20px;
  color: var(--panel-muted);
  max-width: 50ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}
.acan__phases {
  display: inline-flex;
  gap: 4px;
  margin-top: 32px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}
.acan__phases button {
  border: 0;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  background: none;
  color: var(--panel-muted);
  font: 600 0.9375rem/1 var(--f-display);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 160ms var(--ease-out);
}
.acan__phases button[aria-selected='true'] {
  background: #fff;
  color: #1b1e3b;
}
.acan__phases button:active {
  transform: scale(0.97);
}
.acan__goal {
  margin-top: 18px;
  max-width: 44ch;
  color: #fff;
  font-weight: 500;
  transition:
    opacity 200ms ease,
    filter 200ms ease;
}
.acan__goal.swap {
  opacity: 0;
  filter: blur(3px);
}
.acan__mix {
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 28px;
  background: var(--panel-2);
  border: 1px solid var(--panel-line);
}
.acan__mix-k {
  font: 600 1rem/1.2 var(--f-display);
  color: #fff;
}
.acan__mix-k span {
  display: block;
  margin-top: 4px;
  font: 400 0.8125rem/1.3 var(--f-body);
  color: var(--panel-muted);
}
.acan__bars {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.acan__bars li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
  color: #fff;
  transition: color 300ms ease;
}
.acan__bars li[data-off='true'] {
  color: #9a9ec0;
}
.acan__bars i {
  position: relative;
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.acan__bars i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--brand-lime);
  transform-origin: left;
  transform: scaleX(var(--w, 0));
  transition: transform 700ms var(--ease-out);
}
.acan__bars li:nth-child(2) i::after {
  transition-delay: 40ms;
}
.acan__bars li:nth-child(3) i::after {
  transition-delay: 80ms;
}
.acan__bars li:nth-child(4) i::after {
  transition-delay: 120ms;
}
.acan__bars li:nth-child(5) i::after {
  transition-delay: 160ms;
}
.acan__bars li:nth-child(6) i::after {
  transition-delay: 200ms;
}
.acan__bars li:nth-child(7) i::after {
  transition-delay: 240ms;
}
.acan__bars li:nth-child(8) i::after {
  transition-delay: 280ms;
}
@media (max-width: 960px) {
  .acan__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .acan__bars li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

.acan__phases {
  max-width: 100%;
  flex-wrap: wrap;
}
@media (max-width: 400px) {
  .acan__phases {
    flex-wrap: nowrap;
  }
  .acan__phases button {
    padding: 9px 11px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
}

/* Channel families (one H3 each) under the mix */
.acan__fams {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: calc(-1 * clamp(0px, 3vw, 40px)) 0 0;
  padding: 0;
  list-style: none;
}
.acan__fams li {
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-line);
}
.acan__fams h3 {
  font-size: 1.0625rem;
  color: #fff;
  text-wrap: balance;
}
.acan__fams p {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--panel-muted);
}
@media (max-width: 960px) {
  .acan__fams {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .acan__fams {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Celular: pestañas de fase con área de toque de 40 px. */
@media (max-width: 760px) {
  .acan__phases button {
    min-height: 40px;
  }
}
