.publicos {
  background: #f4f3ef;
  padding: 60px 0 52px;
}

.publicos__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 26px;
}

.publicos__title {
  margin: 0;
  max-width: 860px;
}

.publicos__title em {
  color: rgb(0, 116, 88);
}

.publicos__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4a4f4b;
  font-weight: 300;
  max-width: 520px;
}

.publicos__avatar {
  width: 46px;
  height: 46px;
  border-radius: 99px;
  object-fit: cover;
  flex: none;
}

.publicos__node-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.publicos__audience {
  font-size: 11px;
  color: #8a8f8b;
  letter-spacing: 0.01em;
}

.publicos__anchor {
  font-size: 14px;
  color: #0a1714;
  font-weight: 500;
}

.publicos__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.publicos__brand-text {
  font-size: 13px;
  color: #6b716d;
  white-space: nowrap;
}

.publicos__moments {
  padding: 20px 18px 18px;
  text-align: center;
}

.publicos__moments-hint {
  font-size: 11px;
  color: #8a8f8b;
}

.publicos__moments-title {
  margin: 8px 0 16px;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #0a1714;
  line-height: 1.15;
}

.publicos__moment-list {
  display: flex;
  gap: 8px;
  text-align: left;
}

.publicos__moment {
  --mo-sub: #6b716d;
  --mo-fg: #0a1714;
  position: relative;
  isolation: isolate;
  background: #f4f6f5;
  box-shadow: none;
}

.publicos__moment.is-on {
  --mo-sub: rgba(255, 255, 255, 0.65);
  --mo-fg: #ffffff;
}

/* Active moment background: one pill shared across buttons (moved with a FLIP tween). */
.publicos__moment-pill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 12px;
  background: #0a3f31;
  box-shadow: 0 10px 24px -12px rgba(10, 63, 49, 0.6);
}

.publicos__moment-icon {
  display: flex;
}

/* Auto-cycle progress (GSAP, scaleX 0 → 1 over AUTO_CYCLE_S) under the active moment. */
.publicos__moment-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: #8fd3bf;
  transform-origin: 0 50%;
  pointer-events: none;
}

.publicos__moment-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.publicos__moment-time {
  font-size: 11px;
  color: var(--mo-sub);
}

.publicos__moment-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--mo-fg);
}

.publicos__moment-desc-wrap {
  position: relative;
  margin: 14px 2px 0;
}

.publicos__moment-desc {
  margin: 0;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.6;
  color: #4a4f4b;
  font-weight: 300;
  text-align: left;
}

.publicos__cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 52px;
}

.publicos__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #0a1714;
}

.publicos__cta-arrow {
  border: 1px solid rgba(10, 23, 20, 0.3);
}

/* Audiences relevant to the selected day moment get a mint ring. */
.fx-node {
  transition: box-shadow 0.45s ease;
}

.fx-node.is-focus {
  box-shadow:
    0 0 0 2px rgba(143, 211, 191, 0.85),
    0 18px 40px -18px rgba(0, 116, 88, 0.45);
}

/* Narrow phones: the three moment buttons get ~95px each; let long names ("Supermercado") hyphenate
   instead of overflowing the button (html lang="es" drives the hyphenation dictionary). */
@media (max-width: 760px) {
  .publicos__moment {
    padding-left: 8px;
    padding-right: 8px;
  }

  .publicos__moment-name {
    font-size: 12px;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
}
