/* ==========================================================================
   Equipo: Data Lab, Content Lab y Paid Media Lab conectados a Growth Lab (estrella con conectores).
   ========================================================================== */

.stream {
  position: relative;
  margin-top: 24px;
  flex: 1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  -webkit-mask: linear-gradient(#000 65%, transparent);
  mask: linear-gradient(#000 65%, transparent);
}
.ev {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}
@starting-style {
  .ev {
    transform: translateY(-16px);
    opacity: 0;
  }
}
.ev code {
  font:
    500 0.8125rem/1 ui-monospace,
    'SF Mono',
    Menlo,
    Consolas,
    monospace;
  color: var(--panel-ink);
  background: rgba(234, 71, 78, 0.18);
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.deck {
  position: relative;
  width: 150px;
  height: 190px;
  margin: 34px 34px 8px 0;
}
.ad {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 26px -14px rgba(36, 40, 77, 0.55);
  transform-origin: 50% 100%;
  transition:
    transform 560ms var(--ease-out),
    opacity 380ms ease;
}
.ad span {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.9;
}
.a1 {
  background: var(--brand-navy);
  color: #f4f4f6;
}
.a2 {
  background: var(--brand-blue);
  color: #ffffff;
}
.a3 {
  background: #ffffff;
  color: var(--brand-navy);
}
.a4 {
  background: var(--brand-red);
  color: #ffffff;
}
.a1 p {
  padding-top: 18px;
}
.ad[data-p='0'] {
  transform: none;
  z-index: 4;
}
.ad[data-p='1'] {
  transform: translate(10px, -8px) rotate(5deg) scale(0.95);
  z-index: 3;
}
.ad[data-p='2'] {
  transform: translate(20px, -16px) rotate(10deg) scale(0.9);
  z-index: 2;
}
.ad[data-p='3'] {
  transform: translate(28px, -22px) rotate(14deg) scale(0.86);
  z-index: 1;
  opacity: 0.85;
}
.ad.fly {
  transform: translate(-130%, 14px) rotate(-16deg) !important;
  opacity: 0;
}

.alloc {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.al {
  grid-template-columns: 128px minmax(0, 1fr) 40px;
}
.al .nm {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  min-width: 0;
}
.al .bar2 {
  height: 10px;
  border-radius: 99px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--s, 0.5));
  transition:
    transform 900ms var(--ease-io),
    background-color 400ms ease;
}
.al .pc {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}
@media (max-width: 640px) {
  .deck {
    margin: 16px auto 8px;
  }
  .al {
    grid-template-columns: 104px minmax(0, 1fr) 36px;
  }
  .ev {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}
.ev {
  transition:
    transform 460ms var(--ease-out),
    opacity 460ms var(--ease-out);
  background: var(--panel-2);
  border-radius: 12px;
  padding: 10px 12px;
  align-items: center;
  gap: 12px;
  display: grid;
  border: 1px solid var(--panel-line);
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.ctag {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font: 700 0.6875rem/1 var(--f-display);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.tA {
  background: var(--brand-navy);
  color: #f4f4f6;
}
.tC {
  background: #ffffff;
  color: var(--brand-navy);
}
.ev .chn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel-ink);
  color: var(--brand-navy);
}
.ev .chn .si {
  width: 12px;
  height: 12px;
}
.ad .cac {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.9;
}
.ad::before {
  background: rgba(255, 255, 255, 0.18);
}
.a3::before {
  background: rgba(36, 40, 77, 0.08);
}
.ad p {
  font: 700 0.9375rem/1.15 var(--f-display);
  padding-right: 4px;
  letter-spacing: -0.01em;
  padding-top: 24px;
}
.ad em {
  border-radius: 999px;
  color: var(--brand-navy);
  background: #36eaa9;
  font: 600 0.625rem/1 var(--f-display);
  top: 10px;
  position: absolute;
  padding: 4px 7px;
  font-style: normal;
  right: 10px;
  opacity: 0;
  transform: translateY(4px) scale(0.9);
  transition:
    opacity 240ms ease,
    transform 320ms var(--ease-out);
}
.ad.won em {
  opacity: 1;
  transform: none;
}
.al.bump {
  animation: albump 900ms var(--ease-out);
}
.z-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.z-head h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.ad::before {
  display: grid;
  border-radius: 6px;
  font: 700 0.625rem/1 var(--f-display);
  place-items: center;
  height: 20px;
  width: 20px;
  top: 12px;
  left: 12px;
  position: absolute;
  content: attr(data-cr);
}
.al.hot .bar2 {
  background: var(--brand-red);
}
.al-key i {
  width: 18px;
  height: 6px;
  border-radius: 99px;
  background: var(--brand-red);
  flex: none;
}
.al {
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  align-items: center;
  gap: 12px;
  display: grid;
  margin: 0 -6px;
  padding: 4px 6px;
  grid-template-columns: 118px minmax(0, 1fr) 36px;
}
.star {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: 'data hub content' '. media .';
  gap: 56px 72px;
}
.s-data {
  grid-area: data;
}
.s-media {
  grid-area: media;
}
.sat {
  box-shadow: var(--shadow);
}
.sat.hit {
  box-shadow:
    0 0 0 2px var(--brand-red),
    var(--shadow);
}
.sat > p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  margin-top: 10px;
}
.hub {
  box-shadow: 0 30px 60px -30px rgba(36, 40, 77, 0.65);
}
.hub.hit {
  box-shadow:
    0 0 0 3px var(--brand-red),
    0 30px 60px -30px rgba(36, 40, 77, 0.65);
}
.hub-ic {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--panel-2);
  color: var(--brand-red);
  margin-bottom: 6px;
  transition: transform 500ms var(--ease-out);
}
.hub.hit .hub-ic {
  transform: scale(1.12) rotate(-8deg);
}
.hub h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.hub > p {
  color: var(--panel-muted);
  font-size: 0.875rem;
  max-width: 24ch;
}
.hub-read {
  margin: 14px 0 0;
  width: 100%;
  display: grid;
  gap: 8px;
  text-align: left;
}
.hub-read div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 0.8125rem;
}
.hub-read dt {
  color: var(--panel-muted);
}
.hub-read dd {
  margin: 0;
  font: 600 0.8125rem/1.3 var(--f-display);
  text-align: right;
  transition:
    opacity 200ms ease,
    filter 200ms ease;
}
.hub-read dd.swap {
  opacity: 0;
  filter: blur(3px);
}
.spokes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.spokes .sp {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0.9;
}
.spokes .sp-flow {
  fill: none;
  stroke: var(--bg);
  stroke-width: 2;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  animation: flow2 1.6s linear infinite;
}
.spokes .pd {
  fill: #ffffff;
  stroke: var(--brand-red);
  stroke-width: 3;
}

@media (max-width: 960px) {
  .star {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'hub' 'data' 'content' 'media';
    gap: 20px;
  }
  .spokes {
    display: none;
  }
}
[data-section="equipo"] .h2 {
  max-width: 30ch !important;
}
[data-section="equipo"] .lede {
  margin-top: 12px;
}
.star {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.78fr) minmax(0, 1.05fr);
  grid-template-areas: 'data hub content' 'data hub media';
  gap: 18px 64px;
  align-items: stretch;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.hub {
  transition: box-shadow 400ms ease;
  gap: 6px;
  align-items: center;
  display: flex;
  text-align: center;
  padding: 28px 24px 22px;
  border-radius: 28px;
  color: var(--panel-ink);
  background: var(--panel);
  z-index: 1;
  position: relative;
  flex-direction: column;
  grid-area: hub;
  align-self: center;
}
.sat {
  transition: box-shadow 300ms ease;
  flex-direction: column;
  display: flex;
  border-radius: var(--r-card);
  background: var(--surface);
  z-index: 1;
  position: relative;
  min-width: 0;
  padding: 18px 20px;
}
.s-data .stream {
  margin-top: 16px;
  min-height: 0;
  flex: 1;
}
.s-content {
  grid-area: content;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.s-content .deck {
  margin: 20px 22px 4px 0;
  width: 112px;
  height: 142px;
}
.s-content .ad {
  padding: 10px;
}
.s-content .ad p {
  font-size: 0.78rem;
  padding-top: 22px;
}
.s-content .ad .cac {
  font-size: 0.625rem;
}
.s-media .alloc {
  gap: 4px;
  margin-top: 10px;
}
.s-media .al {
  padding: 2px 6px;
}
.al-key {
  align-items: center;
  gap: 8px;
  display: flex;
  color: var(--ink-3);
  font-size: 0.75rem;
  margin-top: auto;
  padding-top: 10px;
}

@media (max-width: 960px) {
  .star {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'hub' 'data' 'content' 'media';
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .s-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .s-content .deck {
    margin: 16px auto 6px;
  }
}

.al[hidden] {
  display: none !important;
}
@keyframes albump {
  0% {
    background: transparent;
  }
  25% {
    background: rgba(234, 71, 78, 0.1);
  }
  100% {
    background: transparent;
  }
}
@keyframes flow2 {
  to {
    stroke-dashoffset: -28;
  }
}

/* Boomit v2: resplandor de marca muy tenue para dar profundidad al fondo. */
[data-section='equipo'] {
  background: radial-gradient(45% 40% at 6% 35%, color-mix(in srgb, var(--brand-coral) 6%, transparent), transparent 70%);
}
