/* «Agentes que son alguien»: a horizontal track pinned while scrolling, then the three formats. */
.team {
  padding-top: 150px;
}
.team-sticky {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
}
.team-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px);
  align-items: end;
  gap: 48px;
}
.team-head h2 {
  margin-top: 18px;
}
.team-head > p {
  color: var(--color-text-muted);
  font-size: 17px;
}
.team-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.team-viewport::-webkit-scrollbar {
  display: none;
}
.team-track {
  display: flex;
  gap: 24px;
  width: max-content;
  margin: 0;
  padding: 8px max(64px, calc((100vw - 1312px) / 2)) 32px;
  list-style: none;
}
@media (min-width: 721px) {
  .motion .team {
    height: calc(100vh + var(--distance, 0px));
    padding-top: 0;
  }
  .motion .team-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    padding-top: 56px;
  }
  .motion .team-viewport {
    overflow: clip;
    scroll-snap-type: none;
  }
  .motion .team-track {
    transform: translate3d(calc(var(--p, 0) * var(--distance, 0px) * -1), 0, 0);
    will-change: transform;
  }
}

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 360px;
  min-height: 460px;
  padding: 26px 28px;
  scroll-snap-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(var(--tone-soft) 0 112px, var(--color-surface) 112px);
  transition:
    transform 400ms var(--ease-out),
    box-shadow 400ms var(--ease-out);
}
.agent-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: 0 30px 60px -30px rgba(25, 28, 26, 0.38);
}
.agent-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}
.agent-top .face i {
  border-color: var(--tone-soft);
}
.agent-state {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--tone-ink);
  font-size: 12px;
  font-weight: 600;
}
.agent-card h3 {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.agent-alias {
  margin-top: -4px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.agent-quote {
  margin: 6px 0 4px;
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.32;
}
.agent-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.agent-traits li {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: 12px;
  font-weight: 600;
}
.agent-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-muted);
}
.agent-nets {
  display: flex;
  align-items: center;
  gap: 8px;
}
.agent-nets img[alt="IguanaGift"] {
  border-radius: 5px;
}
.agent-card--new {
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  border-style: dashed;
  border-color: var(--color-border-strong);
  background: transparent;
}
.agent-card--new p {
  color: var(--color-text-muted);
}
.agent-new-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-on-brand);
  font-size: 32px;
  font-weight: 300;
}
.agent-card--new .text-link {
  color: var(--color-brand);
}

.team-hint {
  display: none;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.team-bar {
  width: 160px;
  height: 2px;
  background: var(--color-border);
}
.team-bar i {
  display: block;
  height: 100%;
  background: var(--color-brand);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
@media (min-width: 721px) {
  .motion .team-hint {
    display: flex;
  }
}

/* Formats: tabs with a dark preview and an editorial explanation. */
.formats {
  padding: 170px 0 150px;
}
.formats-heading {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  align-items: end;
  gap: 18px 48px;
  margin-bottom: 52px;
}
.formats-heading .eyebrow {
  grid-column: 1 / -1;
}
.formats-heading > p {
  color: var(--color-text-muted);
  font-size: 17px;
}
.format-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 28px;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}
.format-tabs button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  transition:
    background 240ms,
    color 240ms;
}
.format-tabs button:hover {
  background: var(--color-surface-soft);
}
.format-tabs [aria-selected="true"],
.format-tabs [aria-selected="true"]:hover {
  background: var(--flow-ink);
  color: var(--flow-paper);
}
.format-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.format-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  background: var(--color-stage);
  color: var(--stage-text);
}
.format-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.format-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(25, 28, 26, 0.7);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.format-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  padding: 80px 28px 26px;
  background: linear-gradient(transparent, rgba(18, 20, 18, 0.86));
  font-size: 15px;
}
.format-overlay b {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 500;
}
.format-visual--versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px;
}
.versus-item {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 2px;
  overflow: hidden;
  padding-bottom: 14px;
  border-radius: 16px;
  background: var(--color-stage-surface);
}
.versus-item img {
  min-height: 0;
  margin-bottom: 10px;
  object-position: 72% 55%;
}
.versus-item--alt img {
  object-position: 25% 75%;
}
.versus-item b,
.versus-item small {
  padding-inline: 16px;
}
.versus-item b {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
}
.versus-item small {
  color: var(--stage-muted);
}
.versus-badge {
  position: absolute;
  top: 42%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 5px solid var(--color-stage);
  border-radius: 50%;
  background: var(--color-brand);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  translate: -50% -50%;
}
.format-visual--ranking {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
}
.rank-row {
  display: grid;
  grid-template-columns: 52px 72px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 18px 12px 14px;
  border-radius: 16px;
  background: var(--color-stage-surface);
}
.rank-row b {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  color: #f2967d;
  text-align: center;
}
.rank-row img {
  height: 64px;
  border-radius: 10px;
  object-position: 72% 55%;
}
.rank-row:nth-child(2) img {
  object-position: 0 100%;
}
.rank-row:nth-child(3) img {
  object-position: 25% 75%;
}
.rank-row > span {
  display: grid;
  font-family: var(--font-heading);
  font-size: 20px;
}
.rank-row small {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--stage-muted);
}
.format-copy {
  display: grid;
  gap: 16px;
}
.format-copy h3 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.format-copy p {
  color: var(--color-text-muted);
}
.example-label {
  font-size: 12px;
  font-style: italic;
  color: var(--color-text-subtle);
}
.motion .format-panel:not([hidden]) .format-visual {
  animation: card-in 700ms var(--ease-out) both;
}
.motion .format-panel:not([hidden]) .format-copy {
  animation: fade-up 700ms 100ms var(--ease-out) both;
}
.motion .format-panel:not([hidden]) .rank-row {
  animation: fade-up 600ms var(--ease-out) both;
}
.motion .format-panel:not([hidden]) .rank-row:nth-child(2) {
  animation-delay: 120ms;
}
.motion .format-panel:not([hidden]) .rank-row:nth-child(3) {
  animation-delay: 240ms;
}
.motion .format-panel:not([hidden]) .versus-badge {
  animation: pop 600ms 300ms var(--ease-spring) both;
}
