.trayectoria-hero {
  background: #fff;
  padding: 0;
  height: 40rem;
  position: relative;
  padding-top: 8rem;
}

.trayectoria-hero .container {
  height: 100%;
}

.trayectoria-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 4rem;
  align-items: center;
  height: 100%;
}

.trayectoria-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* no mostrar desbordes del ring */
}

.trayectoria-visual {
  position: relative;
  width: min(62rem, 100%);
  aspect-ratio: 56/34;
  height: auto;
  border-radius: 2.2rem;
  overflow: hidden;
  /* no cortar pills: dentro del panel, y el texto se adapta */
}

.pills-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.trayectoria-glow {
  position: absolute;
  inset: -40%;
  z-index: 1;
  background: linear-gradient(to left,
      rgba(69, 0, 168, .25) 0%,
      rgba(69, 0, 168, .18) 25%,
      rgba(69, 0, 168, 0) 50%,
      rgba(69, 0, 168, 0) 70%,
      rgba(69, 0, 168, 0) 100%);
  filter: blur(18px);
}

.trayectoria-icon {
  position: absolute;
  right: 6.1%;
  top: 27.1%;
  z-index: 3;
}

.trayectoria-icon img {
  width: clamp(14rem, 32vw, 22rem);
  height: auto;
  display: block;
  opacity: .45;
  filter: drop-shadow(0 10px 25px rgba(69, 0, 168, .15));
}

.pill {
  position: absolute;

  /* 🔥 si el pill se estrecha, el texto también baja */
  font-size: clamp(1.2rem, 1.05vw, 1.7rem);

  padding: clamp(.75rem, 1.7vw, 1.2rem) clamp(1.2rem, 3vw, 2.2rem);
  border-radius: 999px;
  background: rgba(69, 0, 168, .10);
  color: #4500A8;
  font-weight: 800;
  line-height: 1.08;

  max-width: calc(100% - 2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  box-shadow: 0 10px 25px rgba(69, 0, 168, .10);
  border: 1px solid rgba(69, 0, 168, .12);

  transition:
    top 1.15s cubic-bezier(.22, .78, .18, 1),
    left 1.15s cubic-bezier(.22, .78, .18, 1),
    right 1.15s cubic-bezier(.22, .78, .18, 1),
    bottom 1.15s cubic-bezier(.22, .78, .18, 1),
    transform 1.15s cubic-bezier(.22, .78, .18, 1),
    opacity .6s ease;
  will-change: top, left, right, bottom, transform;
}

.pill--top {
  top: 9.4%;
  right: 10.7%;
  left: auto;
  bottom: auto;
  opacity: .95;
}

.pill--mid {
  top: 38.8%;
  left: 11.6%;
  right: auto;
  bottom: auto;
  opacity: 1;
}

.pill--bottom {
  bottom: 10%;
  left: 26.8%;
  top: auto;
  right: auto;
  opacity: .95;
}

.pill.is-mid {
  transform: scale(1);
  opacity: 1;
}

.pill.is-side {
  transform: scale(.86);
  opacity: .95;
}

/* ✅ MÓVIL: todo centrado y pills en columna (uno debajo del otro) */
@media (max-width:1138px) {

.trayectoria-right{
  display: none;
}
  .trayectoria-hero {
    padding: 8rem 0 5rem;
    height: 35rem;
  }

  .trayectoria-grid {
    grid-template-columns: 1fr;
    /* ✅ ahora sí: col */
    gap: 3rem;
    text-align: center;
  }

  .trayectoria-left {
    margin: 0 auto;
    max-width: 62rem;
  }

  .trayectoria-right {
    justify-content: center;
    overflow: hidden;
  }

  .trayectoria-visual {
    width: 100%;
    border-radius: 1.8rem;
    aspect-ratio: 56/40;
  }

  .trayectoria-icon {
    right: 50%;
    top: 24%;
    transform: translateX(50%);
  }

  .trayectoria-icon img {
    width: clamp(11rem, 44vw, 15rem);
  }

  /* pills como columna centrada */
  .pill {
    position: static;
    display: block;
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;

    white-space: normal;
    overflow: visible;
    text-overflow: clip;

    font-size: clamp(1.15rem, 3.3vw, 1.35rem);
    padding: .95rem 1.2rem;

    transform: none !important;
    opacity: 1;
  }

  .pills-layer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
    padding: 1.4rem;
  }

  .pill--top,
  .pill--mid,
  .pill--bottom {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
}



