.iam-slider {
  --iam-navy: #0b1f33;
  position: relative;
  display: flex;
  width: 100%;
  height: 82vh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}

/* Cada columna: por defecto reparto igual (flex-grow:1), la activa se expande.
   La transición es solo sobre flex-grow, así el vídeo interior se re-encuadra
   solo con object-fit:cover, sin necesidad de recalcular nada por JS. */
.iam-panel {
  position: relative;
  flex: 1 1 0%;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: flex-grow 1.15s cubic-bezier(.22, 1, .36, 1);
}
.iam-panel.is-active { flex-grow: 6; }
.iam-panel:not(.is-active) { flex-grow: 1; }

.iam-panel + .iam-panel { border-left: 1px solid rgba(255,255,255,.15); }

.iam-panel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.15s cubic-bezier(.22, 1, .36, 1);
}
.iam-panel.is-active .iam-panel__video { transform: scale(1); }

.iam-panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.65) 100%);
  transition: opacity .5s ease;
}
.iam-panel:not(.is-active) .iam-panel__scrim { opacity: .85; }

/* Contenido (logo, titular, CTA): solo visible/legible en la columna activa */
.iam-panel__content {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 96px;
  z-index: 3;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease .15s, transform .45s ease .15s;
  pointer-events: none;
}
.iam-panel.is-active .iam-panel__content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.iam-panel__logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  display: block;
}

.iam-panel__content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  font-weight: 600;
  max-width: 480px;
  white-space: normal;
}

.iam-panel__description {
  margin: 0 0 22px;
  max-width: 440px;
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
}

.iam-panel__cta-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}
.iam-panel__cta-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  font-size: 1.1rem;
  transition: background .25s ease, border-color .25s ease;
}
.iam-panel__cta-pill {
  padding: 12px 26px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.iam-panel__cta-group:hover .iam-panel__cta-circle,
.iam-panel__cta-group:hover .iam-panel__cta-pill {
  background: var(--iam-hover-bg, #ffffff);
  border-color: var(--iam-hover-bg, #ffffff);
  color: var(--iam-hover-text, #0b1f33);
}

/* Franja inferior con "01. NOMBRE": siempre visible, activa o no */
.iam-panel__label {
  position: absolute;
  left: 24px;
  right: 16px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
  color: #fff;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.iam-panel__label-num { opacity: .75; flex: none; }
.iam-panel__label-text { font-weight: 600; }

@media (max-width: 780px) {
  .iam-slider { flex-direction: column; height: auto; min-height: 0; }
  .iam-panel { flex: none !important; height: 110px; transition: height .6s ease; }
  .iam-panel.is-active { height: 60vh; }
  .iam-panel__content { left: 24px; right: 24px; bottom: 64px; }
  .iam-panel__content h2 { font-size: 1.3rem; }
}
