/* v0.67 — Corrección estética del hero principal y altura real del banner recomendado. */

@media (min-width: 980px) {
  .page-events .editorial-feature-events {
    position: relative;
    display: block;
    min-height: 385px;
    overflow: hidden;
    padding: 1.35rem;
    background: #fff;
  }

  .page-events .editorial-feature-events::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      #fff 0%,
      #fff 47%,
      rgba(255,255,255,.94) 55%,
      rgba(255,255,255,.62) 64%,
      rgba(255,255,255,.22) 73%,
      rgba(255,255,255,0) 86%
    );
  }

  .page-events .editorial-feature-events .editorial-feature-copy {
    position: relative;
    z-index: 2;
    width: min(62%, 690px);
    min-height: 335px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: .08rem 0 0;
  }

  .page-events .editorial-feature-events .editorial-feature-copy > p:not(.eyebrow) {
    max-width: 620px;
  }

  .page-events .editorial-feature-events .editorial-feature-media {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 auto;
    width: min(43%, 392px);
    min-width: 360px;
    height: 100%;
    overflow: hidden;
    border-radius: 0 26px 26px 0;
  }

  .page-events .editorial-feature-events .editorial-feature-media::before {
    display: none;
  }

  .page-events .editorial-feature-events .editorial-feature-media img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0 26px 26px 0;
    object-fit: cover;
    object-position: right center;
    transform: scale(1.08);
    transform-origin: right center;
  }

  .page-events .editorial-feature-events .button {
    width: auto !important;
    min-width: 0;
    max-width: 218px;
    align-self: flex-start;
    margin-top: auto;
    padding: .66rem 1rem;
    border-radius: 13px;
    font-size: .86rem;
    line-height: 1;
  }

  /* Card recomendada: ahora sí crece verticalmente como el alto marcado. */
  .page-events .agenda-side-panel-event {
    min-height: 585px !important;
    height: auto !important;
    aspect-ratio: auto !important;
  }

  .page-events .agenda-side-panel-event .agenda-side-panel-copy {
    min-height: 585px;
  }
}

.page-events .agenda-side-panel-event .agenda-side-panel-body,
.page-detail .event-detail-recommended-card .agenda-side-panel-body,
.page-profile-detail .compact-recommended-card .agenda-side-panel-body,
.page-tenencia-detail .tenencia-recommended-card .agenda-side-panel-body {
  margin-top: auto;
}

@media (max-width: 979px) {
  .page-events .editorial-feature-events .editorial-feature-media img {
    object-position: right center;
  }

  .page-events .editorial-feature-events .button {
    width: auto !important;
    max-width: 230px;
  }
}
