/**
 * Estilos para la página de Liderazgo
 */

/* Importar hero liderazgo */
@import "../shared/heroLiderazgo.css";

.liderazgo-page {
  background-color: #f9fafb;
}

.liderazgo-page .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mover filtros dentro de la columna principal */
.liderazgo__main-content {
  min-width: 0; /* Previene overflow en grid */
}

/* ========================================
   FILTROS DE BÚSQUEDA
   ======================================== */

.liderazgo-filters {
  background: #f9fafb;
  border-radius: 16px;
  padding: 40px 32px;
  margin-bottom: 32px;
  border: 1px solid #e5e7eb;
}

.liderazgo-filters__form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.liderazgo-filters__field {
  display: flex;
  flex-direction: column;
}

.liderazgo-filters__label {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

/* Input de búsqueda */
.liderazgo-filters__input-wrapper {
  position: relative;
}

.liderazgo-filters__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
}

.liderazgo-filters__input {
  width: 100%;
  height: 56px;
  padding: 16px 20px 16px 48px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  color: #374151;
  background: #fff;
  transition: all 0.3s ease;
}

.liderazgo-filters__input:focus {
  outline: none;
  border-color: #d1d5db;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.liderazgo-filters__input::placeholder {
  color: #9ca3af;
  font-size: 15px;
}

/* Select */
.liderazgo-filters__select-wrapper {
  position: relative;
}

.liderazgo-filters__select {
  width: 100%;
  height: 56px;
  padding: 16px 44px 16px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
}

.liderazgo-filters__select:focus {
  outline: none;
  border-color: #d1d5db;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.liderazgo-filters__select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #1f2937;
  pointer-events: none;
}

/* Botón de búsqueda */
.liderazgo-filters__button {
  height: 56px;
  padding: 16px 40px;
  background: #991b1b;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.liderazgo-filters__button:hover {
  background: #7f1d1d;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(153, 27, 27, 0.25);
}

.liderazgo-filters__button:active {
  transform: translateY(0);
}

/* Botón de limpiar búsqueda */
.liderazgo-filters__clear-wrapper {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 8px;
}

.liderazgo-filters__clear {
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
}

.liderazgo-filters__clear:hover {
  background: #e5e7eb;
  color: #374151;
}

.liderazgo-filters__clear svg {
  width: 12px;
  height: 12px;
}

/* ========================================
   LAYOUT CON SIDEBAR
   ======================================== */

.liderazgo__content-wrapper {
  display: grid;
  grid-template-columns: 76% 24%;
  gap: 32px;
  padding-top: 40px;
}

/* ========================================
   SIDEBAR DE CONTACTO
   ======================================== */

.liderazgo-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.liderazgo-contact {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.liderazgo-contact__title {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 32px;
  line-height: 1.2;
}

.liderazgo-contact__profile {
  display: flex;
  gap: 0;
  /* margin-bottom: 32px; */
  align-items: flex-start;
}

.liderazgo-contact__photo {
  flex-shrink: 0;
  margin-bottom: 20px;
}

.liderazgo-contact__photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.liderazgo-contact__info {
  display: flex;
  flex-direction: column;
}

.liderazgo-contact__name {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
  line-height: 1.3;
}

.liderazgo-contact__role {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.liderazgo-contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.liderazgo-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  text-decoration: none;
  color: #4b5563;
  transition: color 0.3s ease;
}

.liderazgo-contact__item:hover {
  color: #991b1b;
}

.liderazgo-contact__icon {
  flex-shrink: 0;
  color: #991b1b;
  margin-top: 2px;
}

.liderazgo-contact__item span {
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.liderazgo-contact__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: #991b1b;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.liderazgo-contact__button:hover {
  background: #7f1d1d;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(153, 27, 27, 0.25);
}

.liderazgo-contact__button svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   SECCIÓN DE CURSOS
   ======================================== */

.liderazgo__courses {
  padding: 0;
}

.liderazgo__courses-header {
  margin-bottom: 32px;
}

.liderazgo__courses-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.liderazgo__courses-subtitle {
  font-size: 16px;
  color: #6b7280;
  font-weight: 400;
  margin: 0;
}

/* Sección de Introducción */
.liderazgo__intro {
  padding: 40px 0;
  background-color: #fff;
  margin-bottom: 40px;
}

.liderazgo__intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.liderazgo__page-content {
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

/* Sección de Cursos */
.liderazgo__courses {
  /* padding: 40px 0 60px; */
}

.liderazgo__courses-header {
  text-align: center;
  margin-bottom: 40px;
}

.liderazgo__courses-title {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.liderazgo__courses-subtitle {
  font-size: 18px;
  color: #6b7280;
  font-weight: 400;
}

/* Grid de Cursos */
.liderazgo__courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

/* Contenedor de modales (oculto por defecto, solo estructura) */
.liderazgo__modals-container {
  display: none;
}

/* Mensaje de no resultados */
.liderazgo__no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 16px;
  font-family: var(--font-primary);
  margin-top: 40px;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #d1d5db;
}

/* Tarjeta de Curso */
.liderazgo__course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.liderazgo__course-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

/* Imagen del Curso */
.liderazgo__course-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e5e7eb;
}

.liderazgo__course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.liderazgo__course-card:hover .liderazgo__course-image img {
  transform: scale(1.08);
}

.liderazgo__course-status {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.liderazgo__course-status--completado {
  background: rgba(220, 252, 231, 0.95);
  color: #166534;
}

.liderazgo__course-status--en-curso {
  background: rgba(254, 243, 199, 0.95);
  color: #92400e;
}

.liderazgo__course-status--pendiente {
  background: rgba(224, 231, 255, 0.95);
  color: #3730a3;
}

/* Contenido del Curso */
.liderazgo__course-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.liderazgo__course-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}

.liderazgo__course-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botón del curso */
.liderazgo__course-button,
.liderazgo__toggle-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: #1f2937;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}

.liderazgo__course-button:hover,
.liderazgo__toggle-details:hover {
  background: #111827;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 41, 55, 0.3);
}

/* Estado activo del botón */
.liderazgo__toggle-details.active {
  background: var(--color-primary);
  color: white;
}

.liderazgo__toggle-details.active:hover {
  background: var(--color-primary-dark);
}

/* Componente expandible del curso */
.liderazgo__course-details {
  display: none;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  animation: slideDown 0.3s ease-out;
}

.liderazgo__course-details.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.liderazgo__course-details-content {
  padding: 24px;
}

.liderazgo__course-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.liderazgo__course-details-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.liderazgo__course-details-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: #6b7280;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.liderazgo__course-details-close:hover {
  background: #e5e7eb;
  color: var(--color-primary);
}

.liderazgo__course-details-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Video del curso */
.liderazgo__course-video {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.liderazgo__course-video-container {
  position: relative;
  aspect-ratio: 16/9;
  background: #1e293b;
}

.liderazgo__course-video-container iframe,
.liderazgo__course-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.liderazgo__course-video-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.liderazgo__course-video-play {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.liderazgo__course-video-play:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.liderazgo__course-video-play svg {
  color: white;
  margin-left: 4px;
}

.liderazgo__course-video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.liderazgo__course-video-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* Información del curso */
.liderazgo__course-info {
  display: grid;
  gap: 24px;
}

.liderazgo__course-description {
  color: #4b5563;
  line-height: 1.6;
}

/* Descargas */
.liderazgo__course-downloads {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

.liderazgo__course-downloads-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.liderazgo__course-downloads-title svg {
  color: var(--color-primary);
}

.liderazgo__course-downloads-list {
  display: grid;
  gap: 12px;
}

.liderazgo__course-download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.liderazgo__course-download-item:hover {
  background: #e0f2fe;
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.liderazgo__course-download-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.liderazgo__course-download-name {
  color: #374151;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Botón constancia */
.liderazgo__course-certificate {
  background: white;
  border-radius: 12px;
  /* padding: 20px; */
  border: 1px solid #e5e7eb;
  text-align: center;
}

.liderazgo__course-certificate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #DC2626;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.liderazgo__course-certificate-btn img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.liderazgo__course-certificate-btn:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}/* Sección independiente de detalles del curso */

/* Sección independiente de detalles del curso */
.liderazgo__course-detail-section {
  margin-top: 48px;
  padding: 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  animation: slideInUp 0.4s ease-out;
}

/* Clase de emergencia para forzar visibilidad */
.liderazgo__course-detail-section.force-visible {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1000 !important;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.liderazgo__course-detail-container {
  max-width: 100%;
}

.liderazgo__course-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 10px;
  /* border-bottom: 2px solid #E5E7EB; */
}

  .liderazgo__course-title {
    font-size: 18px;
  }
}

/* ========================================
   BLOQUE DE DETALLES DEL CURSO
   ======================================== */

.liderazgo__course-detail {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  margin-top: 32px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.3s ease;
  position: relative;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.liderazgo__course-detail-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.liderazgo__course-detail-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.liderazgo__course-detail-close:hover {
  color: #1f2937;
  background: #f9fafb;
  border-color: #d1d5db;
  transform: scale(1.05);
}

/* Grid layout: video izquierda, info derecha */
.liderazgo__course-detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
  padding: 45px 20px;
  border: 1px solid #F3F4F6;
  border-radius: 16px;
  box-shadow: 0px 1px 2px 0px #0000000D;
  background: #ffffff;
}

/* Columna de video */
.liderazgo__course-detail-video {
  position: sticky;
  top: 20px;
}

.liderazgo__course-video-wrapper {
  background: #2d3748;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%; /* Aspecto 16:9 */
  height: 0;
}

.liderazgo__course-video-wrapper iframe,
.liderazgo__course-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.liderazgo__course-video-wrapper p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  margin: 0;
}

/* Columna de información */
.liderazgo__course-detail-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.liderazgo__course-detail-title {
  margin: 20px 0 0 0;
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.liderazgo__course-detail-description {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  white-space: pre-line;
}

/* Documentos descargables */
.liderazgo__course-downloads {
  margin-top: 8px;
}

.liderazgo__course-downloads-title {
  margin: 0 0 16px 0;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.liderazgo__course-downloads-title svg {
  flex-shrink: 0;
}

.liderazgo__course-downloads-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.liderazgo__course-download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.liderazgo__course-download-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateX(4px);
}

.liderazgo__course-download-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.liderazgo__course-download-name {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  flex: 1;
}

/* Botón de certificado */
.liderazgo__course-certificate {
  margin-top: 8px;
}

.liderazgo__course-certificate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: #b91c1c;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.liderazgo__course-certificate-btn:hover {
  background: #991b1b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
}

.liderazgo__course-certificate-btn svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 968px) {
  .liderazgo__course-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .liderazgo__course-detail-video {
    position: static;
  }
}

@media (max-width: 768px) {
  .liderazgo__course-detail {
    padding: 30px 20px;
    margin-top: 24px;
  }

  .liderazgo__course-detail-title {
    font-size: 24px;
  }

  .liderazgo__course-detail-grid {
    gap: 24px;
  }

  .liderazgo__course-certificate-btn {
    font-size: 14px;
    padding: 14px 20px;
  }
}
.liderazgo__course-detail-close {
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  color: #6b7280;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.liderazgo__course-detail-close:hover {
  background: #e5e7eb;
  color: var(--color-primary);
  transform: rotate(90deg);
}

.liderazgo__course-detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Video en la sección independiente */
.liderazgo__course-detail-video {
  position: relative;
}

.liderazgo__course-detail-video .liderazgo__course-video-container {
  position: relative;
  aspect-ratio: 16/9;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Información lateral en la sección independiente */
.liderazgo__course-detail-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.liderazgo__course-detail-description {
  /* background: #f8fafc; */
  /* padding: 24px; */
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
}

.liderazgo__course-detail-description p {
  color: #4b5563;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Downloads en la sección independiente */
.liderazgo__course-detail-downloads {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Reutilizar estilos de downloads para la sección independiente */
.liderazgo__course-detail-downloads .liderazgo__course-downloads-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.liderazgo__course-detail-downloads .liderazgo__course-downloads-title img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.liderazgo__course-detail-downloads .liderazgo__course-downloads-list {
  display: grid;
  gap: 12px;
}

.liderazgo__course-detail-downloads .liderazgo__course-download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #E5E7EB;
}

.liderazgo__course-detail-downloads .liderazgo__course-download-item:hover {
  background: #E0F2FE;
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.liderazgo__course-detail-downloads .liderazgo__course-download-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.liderazgo__course-detail-downloads .liderazgo__course-download-icon img {
  width: 24px;
  height: 24px;
}

.liderazgo__course-detail-downloads .liderazgo__course-download-name {
  color: #374151;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Constancia en la sección independiente */
.liderazgo__course-detail-certificate {
  /* background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%); */
  border-radius: 12px;
  /* padding: 24px; */
  /* border: 1px solid #fca5a5; */
  text-align: center;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

/* Responsive para la sección independiente */
@media (max-width: 1024px) {
  .liderazgo__course-detail-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .liderazgo__course-detail-section {
    margin-top: 32px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .liderazgo__course-detail-section {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
  }

  .liderazgo__course-detail-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .liderazgo__course-detail-title {
    font-size: 1.4rem;
  }

  .liderazgo__course-detail-close {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .liderazgo__course-detail-body {
    gap: 24px;
  }

  .liderazgo__course-detail-description {
    padding: 20px;
  }

  .liderazgo__course-detail-downloads,
  .liderazgo__course-detail-certificate {
    padding: 20px;
  }
}

/* Responsive del componente expandible original (ahora no usado) */
@media (min-width: 768px) {
  .liderazgo__course-details-body {
    grid-template-columns: 2fr 1fr;
    gap: 32px;
  }

  .liderazgo__course-video {
    grid-column: 1;
  }

  .liderazgo__course-info {
    grid-column: 2;
  }
}

/* Responsive para mobile */
@media (max-width: 767px) {
  .liderazgo__course-details-content {
    padding: 16px;
  }

  .liderazgo__course-details-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .liderazgo__course-details-title {
    font-size: 1rem;
  }

  .liderazgo__course-details-body {
    gap: 16px;
  }

  .liderazgo__course-downloads {
    padding: 16px;
  }

  .liderazgo__course-certificate {
    padding: 16px;
  }
}

/* Sin cursos */
.liderazgo__no-courses {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.liderazgo__no-courses p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .liderazgo__content-wrapper {
    grid-template-columns: 76% 24%;
  }

  .liderazgo__courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .liderazgo__content-wrapper {
    grid-template-columns: 1fr;
  }

  .liderazgo-sidebar {
    position: relative;
    top: 0;
  }

  .liderazgo-filters__form {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .liderazgo-filters__field:first-child {
    grid-column: 1 / -1;
  }

  .liderazgo-filters__field--button {
    grid-column: 1 / -1;
  }

  .liderazgo__courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .liderazgo-filters {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .liderazgo-filters__form {
    grid-template-columns: 1fr;
  }

  .liderazgo-filters__field:first-child {
    grid-column: 1;
  }

  .liderazgo-filters__field--button {
    grid-column: 1;
  }

  .liderazgo-filters__input,
  .liderazgo-filters__select,
  .liderazgo-filters__button {
    height: 48px;
  }

  .liderazgo-filters__label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .liderazgo-contact {
    padding: 24px 20px;
  }

  .liderazgo-contact__profile {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .liderazgo__courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .liderazgo__courses-title {
    font-size: 24px;
  }

  .liderazgo__courses-subtitle {
    font-size: 14px;
  }

  .liderazgo__course-image {
    height: 180px;
  }

  .liderazgo__course-content {
    padding: 20px;
  }

  .liderazgo__course-title {
    font-size: 18px;
  }
}
