/**
 * Flyers de eventos: imágenes informativas; no recortar texto (usar contain, no cover).
 */
.event-flyer {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: top center;
  background: #f8f9fa;
  border-radius: 16px;
}

.service-card-top .event-flyer {
  height: 280px;
  border-radius: 12px;
}

.event-flyer-wrap {
  width: 100%;
  min-height: 200px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
}

.event-detail-flyer {
  max-width: 100%;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: top center;
  background: #f8f9fa;
  border-radius: 16px;
}

.event-card-portal {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.15rem 0.75rem rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.event-card-portal .event-flyer {
  height: 280px;
  border-radius: 0 0 0 0;
}

.event-card-portal .event-flyer-wrap {
  border-radius: 0;
  min-height: 280px;
  max-height: 320px;
}

/* --- Detalle público evento/curso: hero en 3 columnas, cuerpo debajo --- */
.course-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr) minmax(0, 320px);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.course-detail-hero-main {
  min-width: 0;
}

.course-detail-hero-image-wrap {
  min-width: 0;
}

.course-main-image {
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-height: 520px;
  height: auto;
}

.course-detail-flyer-placeholder {
  min-height: 200px;
}

.course-sidebar-card {
  align-self: start;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.course-detail-body {
  margin-top: 0;
}

.course-detail-body .card:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .course-detail-hero {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .course-sidebar-card {
    position: static;
  }

  .course-main-image {
    max-width: 100%;
    max-height: none;
  }
}
