/* ==========================================================================
   snw-curso-hero · Hero de la ficha (origen: curso-resonancia-magnetica.html → .course-hero)
   ========================================================================== */
.snw.snw-curso-hero {
  background-image: var(--snw-gradient-hero);
}

.snw-curso-hero .snw-curso-hero__inner {
  display: flex;
  align-items: center;
  gap: var(--snw-space-64);
  padding-block: 80px;
}

.snw-curso-hero .snw-curso-hero__info {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--snw-space-24);
  min-width: 0;
  padding-top: 16px;
}

.snw-curso-hero .snw-curso-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.snw-curso-hero .snw-curso-hero__title {
  color: var(--snw-color-text-on-dark);
}

.snw-curso-hero .snw-curso-hero__lead {
  color: var(--snw-color-text-on-dark-muted);
}

/* Datos rápidos */
.snw-curso-hero .snw-curso-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin: 0;
}

.snw-curso-hero .snw-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--snw-on-dark-border);
  border-radius: var(--snw-radius-md);
  background: var(--snw-on-dark-fill);
}

.snw-curso-hero .snw-fact__text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.snw-curso-hero .snw-fact dt {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--snw-color-text-on-dark-muted);
}

.snw-curso-hero .snw-fact dd {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--snw-color-text-on-dark);
}

/* Director */
.snw-curso-hero .snw-curso-hero__director {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--snw-on-dark-border);
  color: var(--snw-color-text-on-dark);
}

.snw-curso-hero .snw-curso-hero__avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--snw-radius-pill);
  background: var(--snw-color-brand-accent);
  color: var(--snw-color-text-on-dark);
}

.snw-curso-hero .snw-curso-hero__role {
  color: var(--snw-color-text-on-dark-muted);
}

/* Tarjeta de inscripción */
.snw-curso-hero .snw-enroll-card {
  display: flex;
  flex: 0 0 416px;
  flex-direction: column;
  border-radius: var(--snw-radius-lg);
  background: var(--snw-surface-background);
  box-shadow: var(--snw-shadow-enroll);
  overflow: hidden;
}

.snw-curso-hero .snw-enroll-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.snw-curso-hero .snw-enroll-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--snw-space-24);
  padding: var(--snw-space-32);
}

.snw-curso-hero .snw-enroll-card__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snw-curso-hero .snw-enroll-card__label {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 2.64px;
  text-transform: uppercase;
  color: var(--snw-color-text-muted);
}

.snw-curso-hero .snw-enroll-card__amount {
  white-space: nowrap;
}

.snw-curso-hero .snw-enroll-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.snw-curso-hero .snw-enroll-card__actions form.cart {
  margin: 0 !important;
  display: flex;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .snw-curso-hero .snw-curso-hero__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .snw-curso-hero .snw-enroll-card {
    flex-basis: auto;
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .snw-curso-hero .snw-curso-hero__inner {
    padding-block: 56px;
  }

  .snw-curso-hero .snw-enroll-card__body {
    padding: var(--snw-space-24);
  }
}
