/* =========================================================
   ACREDUCA - COURSE / EVENT DETAIL
   ========================================================= */

:root {
  --acreduca-blue: #181e6d;
  --acreduca-blue-dark: #11165d;
  --acreduca-green: #62b832;
  --acreduca-green-dark: #2f7d18;
  --acreduca-orange: #ff7a00;

  --acreduca-text: #111329;
  --acreduca-muted: #5b6175;
  --acreduca-soft: #f7f8fc;
  --acreduca-soft-2: #eef1f7;

  --acreduca-border: rgba(24, 30, 109, 0.10);
  --acreduca-border-strong: rgba(24, 30, 109, 0.16);

  --acreduca-shadow-sm: 0 12px 34px rgba(16, 24, 40, 0.055);
  --acreduca-shadow-md: 0 18px 50px rgba(16, 24, 40, 0.08);
  --acreduca-shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.14);

  --acreduca-radius-md: 1.25rem;
  --acreduca-radius-lg: 1.6rem;
  --acreduca-radius-xl: 2rem;
}

/* =========================================================
   COMPENSACIÓN POR HEADER FIJO
   ========================================================= */

body > main {
  padding-top: 118px;
}

@media (max-width: 991.98px) {
  body > main {
    padding-top: 108px;
  }
}

@media (max-width: 575.98px) {
  body > main {
    padding-top: 106px;
  }
}

/* =========================================================
   BOTONES
   ========================================================= */

.course-detail-section .btn-primary,
.course-detail-hero-section .btn-primary,
.course-detail-summary-section .btn-primary,
.course-detail-content-section .btn-primary {
  background-color: var(--acreduca-blue);
  border-color: var(--acreduca-blue);
  color: #ffffff;
  font-weight: 800;
}

.course-detail-section .btn-primary:hover,
.course-detail-section .btn-primary:focus,
.course-detail-section .btn-primary:active,
.course-detail-hero-section .btn-primary:hover,
.course-detail-hero-section .btn-primary:focus,
.course-detail-hero-section .btn-primary:active,
.course-detail-summary-section .btn-primary:hover,
.course-detail-summary-section .btn-primary:focus,
.course-detail-summary-section .btn-primary:active,
.course-detail-content-section .btn-primary:hover,
.course-detail-content-section .btn-primary:focus,
.course-detail-content-section .btn-primary:active {
  background-color: var(--acreduca-green-dark) !important;
  border-color: var(--acreduca-green-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(47, 125, 24, 0.18) !important;
}

.course-detail-outline-btn,
.course-detail-section .btn-outline-primary,
.course-detail-hero-section .btn-outline-primary,
.course-detail-summary-section .btn-outline-primary,
.course-detail-content-section .btn-outline-primary {
  color: var(--acreduca-blue);
  border-color: rgba(24, 30, 109, 0.24);
  border-width: 2px;
  background-color: transparent;
  font-weight: 800;
}

.course-detail-outline-btn:hover,
.course-detail-section .btn-outline-primary:hover,
.course-detail-hero-section .btn-outline-primary:hover,
.course-detail-summary-section .btn-outline-primary:hover,
.course-detail-content-section .btn-outline-primary:hover {
  color: #ffffff !important;
  background-color: var(--acreduca-blue) !important;
  border-color: var(--acreduca-blue) !important;
}

.course-detail-main-btn,
.course-detail-outline-btn {
  min-width: 185px;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

/* =========================================================
   HERO COURSE DETAIL
   ========================================================= */

.course-detail-hero-section {
  background-color: var(--bs-body-bg);
}

.course-detail-hero-container {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.course-detail-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background-color: rgba(24, 30, 109, 0.08);
  color: var(--acreduca-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.course-detail-hero-title {
  max-width: 760px;
  margin-bottom: 1.2rem;
  color: var(--acreduca-blue);
  font-size: clamp(2rem, 3.35vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.course-detail-hero-subtitle {
  max-width: 720px;
  margin-bottom: 2rem;
  color: var(--acreduca-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.course-detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.course-detail-quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 680px;
}

.course-detail-quick-item {
  padding: 1rem;
  border: 1px solid var(--acreduca-border);
  border-radius: 1.15rem;
  background-color: #ffffff;
  box-shadow: var(--acreduca-shadow-sm);
}

.course-detail-quick-item span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--acreduca-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
}

.course-detail-quick-item strong {
  display: block;
  color: var(--acreduca-blue);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.course-detail-hero-visual {
  position: relative;
  min-height: 500px;
}

.course-detail-hero-image {
  position: relative;
  width: 92%;
  height: 440px;
  margin-left: auto;
  overflow: hidden;
  border-radius: var(--acreduca-radius-xl);
  background-color: #f5f6fa;
  box-shadow: var(--acreduca-shadow-md);
}

.course-detail-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(24, 30, 109, 0.08);
  pointer-events: none;
}

.course-detail-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.course-detail-hero-badge {
  position: absolute;
  left: 0;
  bottom: 2.2rem;
  width: min(390px, 84%);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(24, 30, 109, 0.08);
  border-radius: 1.25rem;
  background-color: #ffffff;
  box-shadow: var(--acreduca-shadow-lg);
}

.course-detail-hero-badge i {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  background-color: rgba(98, 184, 50, 0.12);
  color: var(--acreduca-green-dark);
  font-size: 1.45rem;
}

.course-detail-hero-badge strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--acreduca-blue);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.course-detail-hero-badge span {
  display: block;
  color: var(--acreduca-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

/* =========================================================
   TITULARES COMPARTIDOS
   ========================================================= */

.course-detail-section-title {
  max-width: 850px;
  margin: 0 auto 1rem;
  color: var(--acreduca-blue);
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.course-detail-section-subtitle {
  max-width: 780px;
  margin: 0 auto;
  color: var(--acreduca-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.course-detail-section-text {
  color: var(--acreduca-muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

/* =========================================================
   RESUMEN DEL CURSO
   ========================================================= */

.course-detail-summary-section {
  background-color: #ffffff;
}

.course-detail-summary-card {
  padding: 4rem;
  border: 1px solid var(--acreduca-border);
  border-radius: var(--acreduca-radius-xl);
  background-color: #ffffff;
  box-shadow: var(--acreduca-shadow-md);
}

.course-detail-summary-card .course-detail-section-title {
  margin-left: 0;
  margin-right: 0;
}

.course-detail-mini-card {
  height: 100%;
  padding: 1.45rem;
  border: 1px solid rgba(24, 30, 109, 0.08);
  border-radius: var(--acreduca-radius-md);
  background-color: #f8f9fc;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.course-detail-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 30, 109, 0.16);
  background-color: #ffffff;
  box-shadow: var(--acreduca-shadow-sm);
}

.course-detail-mini-card i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 0.95rem;
  background-color: rgba(98, 184, 50, 0.12);
  color: var(--acreduca-green-dark);
  font-size: 1.35rem;
}

.course-detail-mini-card h3 {
  margin-bottom: 0.6rem;
  color: var(--acreduca-blue);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.course-detail-mini-card p {
  margin-bottom: 0;
  color: var(--acreduca-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* =========================================================
   CONTENIDO DEL CURSO
   ========================================================= */

.course-detail-content-section {
  background-color: var(--acreduca-soft);
}

.course-detail-media-card {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(24, 30, 109, 0.08);
  border-radius: var(--acreduca-radius-xl);
  background-color: #ffffff;
  box-shadow: var(--acreduca-shadow-md);
}

.course-video-card iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.course-detail-video-frame {
  overflow: hidden;
  border-radius: var(--acreduca-radius-lg);
  background-color: #101223;
  box-shadow: var(--acreduca-shadow-sm);
}

.course-detail-external-video {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(24, 30, 109, 0.08);
  border-radius: var(--acreduca-radius-lg);
  background-color: #f8f9fc;
}

.course-detail-external-video h3 {
  margin-bottom: 0.4rem;
  color: var(--acreduca-blue);
  font-size: 1.15rem;
  font-weight: 800;
}

.course-detail-external-video p {
  margin-bottom: 0;
  color: var(--acreduca-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.course-detail-gallery {
  display: grid;
  gap: 1rem;
}

.course-detail-gallery-item {
  overflow: hidden;
  border: 1px solid rgba(24, 30, 109, 0.08);
  border-radius: var(--acreduca-radius-lg);
  background-color: #f5f6fa;
  box-shadow: var(--acreduca-shadow-sm);
}

.course-detail-gallery-item img {
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.course-detail-side-stack {
  display: grid;
  gap: 1rem;
}

.course-detail-info-card,
.course-detail-contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(24, 30, 109, 0.08);
  border-radius: var(--acreduca-radius-lg);
  background-color: #ffffff;
  box-shadow: var(--acreduca-shadow-sm);
}

.course-detail-info-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: rgba(98, 184, 50, 0.12);
  color: var(--acreduca-green-dark);
  font-size: 1.45rem;
}

.course-detail-info-card h3,
.course-detail-contact-card h3 {
  margin-bottom: 0.55rem;
  color: var(--acreduca-blue);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.course-detail-info-card p,
.course-detail-contact-card p {
  margin-bottom: 0;
  color: var(--acreduca-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.course-detail-schedule-list {
  display: grid;
  gap: 0.75rem;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.course-detail-schedule-list li {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(24, 30, 109, 0.08);
  border-radius: 1rem;
  background-color: #f8f9fc;
}

.course-detail-schedule-date {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--acreduca-blue);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.course-detail-schedule-time {
  display: block;
  color: var(--acreduca-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.course-detail-contact-card {
  display: block;
  padding: 2rem;
  border-color: rgba(98, 184, 50, 0.22);
}

.course-detail-contact-card .course-detail-eyebrow {
  background-color: rgba(98, 184, 50, 0.12);
  color: var(--acreduca-green-dark);
}

.course-detail-contact-card p {
  margin-bottom: 1.35rem;
}

/* =========================================================
   INFO PILLS LEGACY
   ========================================================= */

.course-info-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
}

.course-info-pill-blue {
  color: var(--acreduca-blue);
  background-color: rgba(24, 30, 109, 0.10);
  border-color: rgba(24, 30, 109, 0.16);
}

.course-info-pill-green {
  color: var(--acreduca-green-dark);
  background-color: rgba(98, 184, 50, 0.12);
  border-color: rgba(98, 184, 50, 0.18);
}

.course-info-pill-orange {
  color: var(--acreduca-orange);
  background-color: rgba(255, 122, 0, 0.10);
  border-color: rgba(255, 122, 0, 0.18);
}

/* =========================================================
   NEXT START / EVENT DATE LEGACY
   ========================================================= */

.course-next-start,
.event-next-date {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background-color: rgba(98, 184, 50, 0.12);
  border: 1px solid rgba(98, 184, 50, 0.20);
  color: var(--acreduca-blue);
  box-shadow: var(--acreduca-shadow-sm);
}

.course-next-start-icon,
.event-next-date-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background-color: var(--acreduca-green-dark);
  color: #ffffff;
  font-size: 1.1rem;
}

.course-next-start-label,
.event-next-date-label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--acreduca-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-next-start-date,
.event-next-date-value {
  display: block;
  color: var(--acreduca-blue);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.event-next-date-time {
  display: block;
  margin-top: 0.15rem;
  color: rgba(24, 30, 109, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

.course-info-pill-location {
  max-width: 280px;
  white-space: normal;
  line-height: 1.25;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

/* =========================================================
   MODALES
   ========================================================= */

#courseProspectModal .modal-dialog,
#eventProspectModal .modal-dialog,
.generic-prospect-modal .modal-dialog {
  max-width: 900px;
}

#courseProspectModal .modal-content,
#eventProspectModal .modal-content,
.generic-prospect-modal .modal-content {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 1.5rem;
}

#courseProspectModal .modal-body,
#eventProspectModal .modal-body,
.generic-prospect-modal .modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

#courseProspectModal .modal-dialog-scrollable .modal-body,
#eventProspectModal .modal-dialog-scrollable .modal-body,
.generic-prospect-modal .modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 140px);
}

.course-prospect-card {
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
}

.course-prospect-hero {
  position: relative;
  display: block;
  width: 100%;
  height: 70px;
  min-height: 70px;
  overflow: hidden;
  color: #ffffff;
  background-color: var(--acreduca-blue);
  flex: 0 0 auto;
}

#courseProspectModal .course-prospect-hero,
#eventProspectModal .course-prospect-hero,
.generic-prospect-modal .course-prospect-hero {
  width: 100%;
  height: 70px;
  min-height: 70px;
}

.course-prospect-form-wrap {
  position: relative;
  padding: 1rem;
}

@media (min-width: 992px) {
  .course-prospect-form-wrap {
    padding: 2rem;
  }
}

.course-prospect-form-wrap .form-control,
.course-prospect-form-wrap .form-select {
  border-radius: 999px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.course-prospect-form-wrap textarea.form-control {
  min-height: 130px;
  border-radius: 1rem;
  resize: vertical;
}

.course-prospect-helper {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

.course-prospect-svg-divider,
.course-prospect-pattern {
  display: none;
}

/* =========================================================
   INPUT TEL / ITI
   ========================================================= */

.course-prospect-form-wrap .iti,
.generic-prospect-form .iti,
.public-prospect-form .iti {
  width: 100%;
  display: block;
}

.course-prospect-form-wrap .iti input.form-control,
.course-prospect-form-wrap .iti input[type="tel"],
.generic-prospect-form .iti input.form-control,
.generic-prospect-form .iti input[type="tel"],
.public-prospect-form .iti input.form-control,
.public-prospect-form .iti input[type="tel"] {
  width: 100%;
  height: 48px;
  line-height: 1.5;
  padding-left: 92px !important;
}

.course-prospect-form-wrap .iti--separate-dial-code .iti__selected-country,
.generic-prospect-form .iti--separate-dial-code .iti__selected-country,
.public-prospect-form .iti--separate-dial-code .iti__selected-country {
  height: 48px;
  display: flex;
  align-items: center;
  border-radius: 999px 0 0 999px;
}

.course-prospect-form-wrap .iti__selected-country-primary,
.generic-prospect-form .iti__selected-country-primary,
.public-prospect-form .iti__selected-country-primary {
  height: 100%;
  display: flex;
  align-items: center;
}

.course-prospect-form-wrap .iti__country-container,
.generic-prospect-form .iti__country-container,
.public-prospect-form .iti__country-container {
  z-index: 3;
}

.course-prospect-form-wrap .iti__tel-input {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* =========================================================
   MODAL HEADER / CLOSE
   ========================================================= */

#courseProspectModal .modal-header,
#eventProspectModal .modal-header,
.generic-prospect-modal .modal-header {
  display: flex;
  align-items: center;
  width: 100%;
}

#courseProspectModal .modal-title,
#eventProspectModal .modal-title,
.generic-prospect-modal .modal-title {
  margin-bottom: 0;
}

#courseProspectModal .btn-close,
#eventProspectModal .btn-close,
.generic-prospect-modal .btn-close {
  margin-left: auto !important;
  opacity: 1 !important;
  background-size: 0.9rem;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

[data-bs-theme="light"] #courseProspectModal .btn-close,
[data-bs-theme="light"] #eventProspectModal .btn-close,
[data-bs-theme="light"] .generic-prospect-modal .btn-close {
  background-image: var(--bs-btn-close-bg);
  filter: none;
}

[data-bs-theme="dark"] #courseProspectModal .btn-close,
[data-bs-theme="dark"] #eventProspectModal .btn-close,
[data-bs-theme="dark"] .generic-prospect-modal .btn-close {
  background-image: var(--bs-btn-close-bg);
  filter: invert(1) grayscale(100%);
}

/* =========================================================
   MODAL GENÉRICO
   ========================================================= */

.generic-prospect-modal .course-prospect-hero {
  display: none;
}

.generic-prospect-modal .course-prospect-form-wrap {
  padding: 0.85rem 1.5rem 1.5rem;
}

@media (min-width: 992px) {
  .generic-prospect-modal .course-prospect-form-wrap {
    padding: 1rem 2rem 2rem;
  }
}

.generic-prospect-modal .course-prospect-helper {
  margin-bottom: 1rem !important;
}

.contact-separator {
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  font-weight: 600;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
  .course-detail-hero-container {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .course-detail-hero-visual {
    min-height: auto;
  }

  .course-detail-hero-image {
    width: 100%;
    height: 380px;
    margin-left: 0;
  }

  .course-detail-hero-badge {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .course-detail-summary-card {
    padding: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .course-detail-quick-info {
    grid-template-columns: 1fr;
  }

  .course-detail-summary-card {
    padding: 1.5rem;
    border-radius: var(--acreduca-radius-lg);
  }

  .course-detail-media-card {
    padding: 1rem;
    border-radius: var(--acreduca-radius-lg);
  }

  .course-detail-external-video {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-detail-info-card {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .course-detail-hero-title {
    font-size: 2rem;
  }

  .course-detail-section-title {
    font-size: 2rem;
  }

  .course-detail-hero-actions,
  .course-detail-hero-actions .btn,
  .course-detail-contact-card .btn,
  .course-video-card .btn,
  a[href$=".pdf"].btn {
    width: 100%;
  }

  .course-detail-hero-actions .btn {
    justify-content: center;
  }

  .course-detail-hero-image {
    height: 300px;
  }

  .course-next-start,
  .event-next-date {
    width: 100%;
    align-items: flex-start;
  }

  .course-info-pill-location {
    max-width: 190px;
  }
}

/* =========================================================
   DARK MODE
   ========================================================= */

[data-bs-theme="dark"] .course-detail-hero-section,
[data-bs-theme="dark"] .course-detail-summary-section,
[data-bs-theme="dark"] .course-detail-content-section {
  background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .course-detail-hero-title,
[data-bs-theme="dark"] .course-detail-section-title,
[data-bs-theme="dark"] .course-detail-quick-item strong,
[data-bs-theme="dark"] .course-detail-hero-badge strong,
[data-bs-theme="dark"] .course-detail-mini-card h3,
[data-bs-theme="dark"] .course-detail-external-video h3,
[data-bs-theme="dark"] .course-detail-info-card h3,
[data-bs-theme="dark"] .course-detail-contact-card h3,
[data-bs-theme="dark"] .course-detail-schedule-date,
[data-bs-theme="dark"] .course-next-start-date,
[data-bs-theme="dark"] .event-next-date-value {
  color: #ffffff;
}

[data-bs-theme="dark"] .course-detail-hero-subtitle,
[data-bs-theme="dark"] .course-detail-section-subtitle,
[data-bs-theme="dark"] .course-detail-section-text,
[data-bs-theme="dark"] .course-detail-quick-item span,
[data-bs-theme="dark"] .course-detail-hero-badge span,
[data-bs-theme="dark"] .course-detail-mini-card p,
[data-bs-theme="dark"] .course-detail-external-video p,
[data-bs-theme="dark"] .course-detail-info-card p,
[data-bs-theme="dark"] .course-detail-contact-card p,
[data-bs-theme="dark"] .course-detail-schedule-time,
[data-bs-theme="dark"] .event-next-date-time {
  color: rgba(255, 255, 255, 0.72);
}

[data-bs-theme="dark"] .course-detail-eyebrow {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

[data-bs-theme="dark"] .course-detail-quick-item,
[data-bs-theme="dark"] .course-detail-summary-card,
[data-bs-theme="dark"] .course-detail-mini-card,
[data-bs-theme="dark"] .course-detail-media-card,
[data-bs-theme="dark"] .course-detail-gallery-item,
[data-bs-theme="dark"] .course-detail-info-card,
[data-bs-theme="dark"] .course-detail-contact-card,
[data-bs-theme="dark"] .course-detail-hero-badge,
[data-bs-theme="dark"] .course-detail-external-video,
[data-bs-theme="dark"] .course-detail-schedule-list li,
[data-bs-theme="dark"] .course-next-start,
[data-bs-theme="dark"] .event-next-date {
  background-color: var(--bs-card-bg);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .course-detail-mini-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .course-detail-hero-image,
[data-bs-theme="dark"] .course-detail-gallery-item {
  background-color: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .course-info-pill-blue {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .course-info-pill-green {
  color: #b7f3a0;
}

[data-bs-theme="dark"] .course-info-pill-orange {
  color: #ffbd7a;
}

/* =========================================================
   ACREDUCA - DETALLE DE CURSO
   ALINEACIÓN CON FORMACIÓN CONTINUA
   ========================================================= */

.course-detail-hero-section .course-detail-eyebrow {
    color: var(--acreduca-blue);
    background: rgba(24, 30, 109, 0.08);
}

.course-detail-contact-card {
    border: 1px solid rgba(98, 184, 50, 0.22);
    background: var(--bs-body-bg);
}

.course-detail-contact-card h3 {
    font-size: 1.25rem;
    line-height: 1.35;
}

.course-detail-contact-card p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

[data-bs-theme="dark"]
.course-detail-hero-section .course-detail-eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   ACREDUCA - COURSE DETAIL
   MOSTRAR IMAGEN PRINCIPAL COMPLETA
   ========================================================= */

/* Contenedor de la imagen */
.course-detail-hero-section .course-detail-hero-visual {
    position: relative;
    min-height: 0;
}

/* Caja de la imagen */
.course-detail-hero-section .course-detail-hero-image {
    width: 100%;
    height: auto;

    margin-left: 0;

    overflow: hidden;

    border-radius: 24px;

    background: #f5f6fa;

    box-shadow: 0 18px 45px rgba(24, 30, 109, 0.10);
}

/* Imagen sin recortes */
.course-detail-hero-section .course-detail-hero-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
    object-position: center;
}

/* Quitar la capa azul que oscurece la imagen */
.course-detail-hero-section .course-detail-hero-image::after {
    display: none;
}

/* TABLETS */
@media (max-width: 991.98px) {

    .course-detail-hero-section .course-detail-hero-image {
        width: 100%;
        height: auto;
    }

}

/* MÓVILES */
@media (max-width: 575.98px) {

    .course-detail-hero-section .course-detail-hero-image {
        width: 100%;
        height: auto;

        border-radius: 18px;
    }

}
