/* =====================================================================
   LEARNDASH (tema LD30)
   Los COLORES de LearnDash los remapea el plugin (emp_skin_recolor_learndash):
   naranja → tinta, verde → tinta, rojo → coral. Este archivo cambia la
   FORMA: listas sin caja, reglas finas, progreso fino, píldoras.
   ===================================================================== */

html.emp-skin .learndash-wrapper {
  color: var(--emp-ink);
}
html.emp-skin .learndash-wrapper :is(h1, h2, h3, h4) {
  color: var(--emp-ink) !important;
}

/* ---- Temario: filas con una regla fina, sin cajas ---- */
html.emp-skin .learndash-wrapper .ld-section-heading {
  background: none !important;
  border: 0 !important;
  padding: 0 0 1rem !important;
}
html.emp-skin .learndash-wrapper .ld-section-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
}
html.emp-skin .learndash-wrapper .ld-item-list .ld-item-list-section-heading {
  margin: 1.75rem 0 0.25rem !important;
}
html.emp-skin .learndash-wrapper .ld-item-list .ld-lesson-section-heading {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  color: var(--emp-ink) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
}
html.emp-skin .learndash-wrapper .ld-item-list .ld-item-list-item {
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--emp-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}
html.emp-skin .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-preview {
  padding: 0.625rem 0 !important;
  min-height: 0 !important;
}
html.emp-skin .learndash-wrapper .ld-item-list .ld-item-list-item :is(.ld-item-name, .ld-item-title) {
  color: var(--emp-ink) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}
html.emp-skin .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name:hover .ld-item-title {
  color: var(--emp-brand) !important;
}

/* Estado de cada lección: aro fino si falta, círculo lleno si está completa */
html.emp-skin .learndash-wrapper .ld-status-icon.ld-status-incomplete {
  background: transparent !important;
  border: 1.5px solid var(--emp-ink) !important;
  box-shadow: none !important;
}
html.emp-skin .learndash-wrapper .ld-status-icon.ld-status-complete {
  background: var(--emp-ink) !important;
  border-color: var(--emp-ink) !important;
  color: var(--emp-white) !important;
}
html.emp-skin .learndash-wrapper .ld-status-icon.ld-status-in-progress {
  border-color: var(--emp-ink) !important;
}

/* ---- Estado del curso y progreso ---- */
html.emp-skin .learndash-wrapper .ld-course-status {
  background: var(--emp-blush-soft) !important;
  border: 0 !important;
  border-radius: 8px !important;
}
html.emp-skin .learndash-wrapper .ld-status {
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
}
html.emp-skin .learndash-wrapper .ld-progress .ld-progress-bar,
html.emp-skin .course_progress {
  height: 4px !important;
  background: var(--emp-line) !important;
  border-radius: 999px !important;
  overflow: hidden;
  border: 0 !important;
}
html.emp-skin .learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage,
html.emp-skin .course_progress .course_progress_blue {
  background: var(--emp-brand) !important;
  border-radius: 999px !important;
}
html.emp-skin .learndash-wrapper .ld-progress .ld-progress-stats :is(.ld-progress-percentage, .ld-progress-steps) {
  color: var(--emp-muted) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* ---- Pestañas ---- */
html.emp-skin .learndash-wrapper .ld-tabs .ld-tabs-navigation {
  border-bottom: 1px solid var(--emp-line) !important;
}
html.emp-skin .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab {
  color: var(--emp-muted) !important;
  font-weight: 600 !important;
}
html.emp-skin .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active {
  color: var(--emp-ink) !important;
}

/* ---- Lección: migas, acciones, "marcar como completa" ---- */
html.emp-skin .learndash-wrapper .ld-breadcrumbs {
  background: none !important;
  border: 0 !important;
  padding-inline: 0 !important;
}
html.emp-skin .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments :is(span, a) {
  color: var(--emp-muted) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}
html.emp-skin .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments a:hover {
  color: var(--emp-brand) !important;
}
html.emp-skin .learndash-wrapper .ld-content-actions {
  border-top: 1px solid var(--emp-line) !important;
}
html.emp-skin .learndash-wrapper .ld-content-actions :is(.ld-course-step-back, a:not(.ld-button)) {
  color: var(--emp-ink) !important;
  font-weight: 600 !important;
}
html.emp-skin .learndash-wrapper :is(.ld-button, .learndash_mark_complete_button, #learndash_mark_complete_button) {
  background: var(--emp-black) !important;
  border: 1px solid var(--emp-black) !important;
  border-radius: 999px !important;
  color: var(--emp-white) !important;
  font-family: var(--emp-sans) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
html.emp-skin
  .learndash-wrapper
  :is(.ld-button, .learndash_mark_complete_button, #learndash_mark_complete_button):is(:hover, :focus-visible) {
  background: var(--emp-brand) !important;
  border-color: var(--emp-brand) !important;
  color: var(--emp-white) !important;
  opacity: 1 !important;
}
html.emp-skin .learndash-wrapper .ld-button.ld-button-transparent,
html.emp-skin .learndash-wrapper .ld-button.ld-button-reverse {
  background: transparent !important;
  border-color: var(--emp-ink) !important;
  color: var(--emp-ink) !important;
}
html.emp-skin .learndash-wrapper .ld-alert {
  border-radius: 8px !important;
  box-shadow: none !important;
}

/* ---- Lecciones armadas con Elementor (clases propias del sitio) ----
   Página de reproductor: una columna de 960px, el video a lo ancho y el
   texto con medida de lectura. */
html.emp-skin .caja-general-leccion {
  padding: clamp(2rem, 4vw, 3.5rem) var(--emp-gutter) 0 !important;
}
html.emp-skin .caja-general-leccion > .elementor-container {
  max-width: 960px !important;
}
html.emp-skin .caja-general-leccion > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding: 0 !important;
}
html.emp-skin .caja-general-leccion .elementor-widget {
  margin-bottom: 0 !important;
}
/* Cada lección se armó a mano: sin las sangrías sueltas de cada widget,
   todo arranca del mismo borde que el video y la barra de acciones. */
html.emp-skin .caja-general-leccion .elementor-widget > .elementor-widget-container {
  padding-inline: 0 !important;
  margin-inline: 0 !important;
}
html.emp-skin .titulo-leccion {
  margin-bottom: 1.75rem !important;
}
html.emp-skin .titulo-leccion .elementor-heading-title {
  color: var(--emp-ink) !important;
  font-size: clamp(1.75rem, 3vw, 2.75rem) !important;
  letter-spacing: -0.035em !important;
  line-height: 1.05 !important;
}
html.emp-skin .video-leccion {
  margin-bottom: 2.5rem !important;
}
html.emp-skin .video-leccion .elementor-widget-container {
  border-radius: 8px;
  overflow: hidden;
  background: var(--emp-black);
}
html.emp-skin .copy-leccion {
  max-width: 68ch;
  margin-bottom: 2.5rem !important;
}
html.emp-skin .copy-leccion,
html.emp-skin .copy-leccion :is(p, li) {
  color: rgba(28, 27, 26, 0.85) !important;
  font-size: 1.0625rem !important;
  line-height: 1.7 !important;
}
html.emp-skin .copy-leccion a {
  color: var(--emp-ink) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
html.emp-skin .copy-leccion a:hover {
  color: var(--emp-brand) !important;
}

/* Barra de acciones de la lección (LearnDash): mismo ancho que la lección,
   una regla arriba, "Volver al curso" como acción secundaria. */
html.emp-skin .learndash_post_sfwd-lessons > .learndash-wrapper,
html.emp-skin .learndash_post_sfwd-topic > .learndash-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--emp-gutter) var(--emp-section);
}
html.emp-skin .learndash-wrapper .ld-content-actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem !important;
  padding: 1.75rem 0 0 !important;
  border-top: 1px solid var(--emp-line) !important;
}
html.emp-skin .learndash-wrapper .ld-content-actions .ld-content-action {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
html.emp-skin .learndash-wrapper .ld-content-actions .ld-content-action.ld-empty {
  display: none !important;
}
html.emp-skin .learndash-wrapper .ld-content-actions .ld-content-action .ld-course-step-back {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 0.9375rem 1.375rem !important;
  background: transparent !important;
  border: 1px solid var(--emp-line) !important;
  border-radius: 999px !important;
  color: var(--emp-ink) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
html.emp-skin .learndash-wrapper .ld-content-actions .ld-content-action .ld-course-step-back:hover {
  background: var(--emp-ink) !important;
  border-color: var(--emp-ink) !important;
  color: var(--emp-white) !important;
}
html.emp-skin .learndash-wrapper .ld-content-actions :is(.ld-button, .learndash_mark_complete_button) {
  padding: 1rem 1.5rem !important;
  font-size: 0.9375rem !important;
}
html.emp-skin .learndash-wrapper .ld-content-actions .sfwd-mark-complete {
  position: relative;
  display: inline-flex !important;
  width: auto !important;
  margin: 0 !important;
}
/* El ✓ de LearnDash va dentro del botón, a la derecha */
html.emp-skin .learndash-wrapper .ld-content-actions .sfwd-mark-complete .learndash_mark_complete_button {
  margin: 0 !important; /* el Personalizador le suma margen abajo y descentra el ✓ */
  padding-right: 2.75rem !important;
}
html.emp-skin .learndash-wrapper .ld-content-actions .sfwd-mark-complete::after {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  right: 1.125rem !important;
  left: auto !important;
  height: auto !important;
  line-height: 1 !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  color: var(--emp-white) !important;
  pointer-events: none;
}
html.emp-skin .learndash-wrapper .ld-content-actions .ld-course-step-back {
  width: auto !important;
}
html.emp-skin .titulo-complementario-leccion .elementor-heading-title {
  color: var(--emp-ink) !important;
  font-size: 1.5rem !important;
  letter-spacing: -0.02em !important;
}
html.emp-skin .copy-complementario,
html.emp-skin .copy-complementario :is(p, li) {
  color: rgba(28, 27, 26, 0.85) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}
html.emp-skin .copy-complementario a {
  color: var(--emp-ink) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
html.emp-skin .copy-complementario a:hover {
  color: var(--emp-brand) !important;
}

/* ---- Página del curso (plantilla "template_single_course" 1076) ----
   Dos columnas como la landing: a la izquierda la ficha del curso (queda
   fija al scrollear), a la derecha el temario. */
html.emp-skin .elementor-element-eb4194c {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--emp-gutter) var(--emp-section) !important;
}
html.emp-skin .elementor-element-eb4194c > .elementor-container {
  max-width: var(--emp-wrap) !important;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: flex-start;
}
html.emp-skin .elementor-element-ad0ef80 {
  width: 36% !important;
  position: sticky;
  top: 176px;
  align-self: flex-start;
}
html.emp-skin .elementor-element-db6cd14 {
  width: auto !important;
  flex: 1 1 0;
  min-width: 0;
}
html.emp-skin :is(.elementor-element-ad0ef80, .elementor-element-db6cd14) > .elementor-widget-wrap {
  padding: 0 !important;
}
html.emp-skin .elementor-element-3c495fa .elementor-heading-title {
  color: var(--emp-ink) !important;
  font-size: clamp(2rem, 3.4vw, 3rem) !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
}
html.emp-skin .elementor-element-28510da {
  margin: 1.75rem 0 0.75rem !important;
}
html.emp-skin .elementor-element-28510da img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
}
html.emp-skin .elementor-element-43e2daa {
  margin-bottom: 1.5rem !important;
}
html.emp-skin .elementor-element-43e2daa .elementor-heading-title {
  color: var(--emp-muted) !important;
  font-size: 0.875rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
}
/* Docente y redes: una lista con reglas finas */
html.emp-skin .elementor-element-ad0ef80 .elementor-inner-section {
  margin: 0 !important;
  padding: 0.625rem 0 !important;
  border-top: 1px solid var(--emp-line);
}
html.emp-skin .elementor-element-ad0ef80 .elementor-inner-section .elementor-widget-wrap {
  padding: 0 !important;
  align-items: center;
}
html.emp-skin .elementor-element-ad0ef80 .elementor-inner-section .elementor-heading-title,
html.emp-skin .elementor-element-ad0ef80 .elementor-inner-section .elementor-heading-title a {
  color: var(--emp-ink) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
html.emp-skin .elementor-element-ad0ef80 .elementor-inner-section .elementor-heading-title a:hover {
  color: var(--emp-brand) !important;
}
html.emp-skin .elementor-element-b977742 {
  margin-bottom: 0.5rem !important;
}
html.emp-skin .elementor-element-b977742 .elementor-heading-title {
  color: var(--emp-muted) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}
html.emp-skin .elementor-element-3607172 .ld-item-list-section-heading .ld-lesson-section-heading {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem) !important;
  letter-spacing: -0.02em !important;
}
html.emp-skin .elementor-element-3607172 .ld-item-list-item .ld-item-title {
  font-size: 1.0625rem !important;
}
@media (max-width: 767px) {
  html.emp-skin .elementor-element-ad0ef80 {
    width: 100% !important;
    position: static;
  }
}

/* ---- "Mis cursos": grilla de cursos de LearnDash (Course Grid v1) ----
   Mismo lenguaje que las tarjetas de la home: sin caja, foto redondeada,
   alto parejo, y el progreso (fino, coral) arriba del botón. */
html.emp-skin :is(.elementor-element-bde6709, .elementor-element-c3b2c5c, .elementor-element-2365cd5) > .elementor-container {
  max-width: var(--emp-wrap) !important;
}
html.emp-skin :is(.elementor-element-bde6709, .elementor-element-c3b2c5c, .elementor-element-2365cd5) .elementor-widget-wrap {
  padding: 0 !important;
}
html.emp-skin .elementor-element-bde6709 {
  padding: clamp(2.5rem, 5vw, 4rem) var(--emp-gutter) var(--emp-section) !important;
}
html.emp-skin .elementor-element-bc53d83 {
  margin-bottom: 2.5rem !important;
}
html.emp-skin .ld-course-list-items.row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3.5rem 2rem;
  margin: 0 !important;
}
html.emp-skin .ld-course-list-items.row::before,
html.emp-skin .ld-course-list-items.row::after {
  display: none !important;
}
html.emp-skin .ld_course_grid {
  width: auto !important;
  max-width: none !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
html.emp-skin .ld_course_grid .thumbnail.course {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
html.emp-skin .ld_course_grid .thumbnail.course > a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--emp-blush-soft);
}
html.emp-skin .ld_course_grid .thumbnail.course > a img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
  transition: transform 0.6s var(--emp-ease);
}
html.emp-skin .ld_course_grid .thumbnail.course:hover > a img {
  transform: scale(1.04);
}
html.emp-skin .ld_course_grid .ribbon {
  display: none !important;
}
html.emp-skin .ld_course_grid .caption {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 0 0 !important;
}
html.emp-skin .ld_course_grid .caption .entry-title {
  margin: 0 0 0.625rem !important;
  color: var(--emp-ink) !important;
  font-size: 1.375rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  min-height: 0 !important;
}
html.emp-skin .ld_course_grid .caption .entry-content {
  margin-bottom: 1.5rem;
}
html.emp-skin .ld_course_grid .caption .entry-content p {
  margin: 0 !important;
  color: var(--emp-muted) !important;
  font-size: 0.9375rem !important;
  line-height: 1.55 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Progreso arriba del botón, empujado al pie de la tarjeta */
html.emp-skin .ld_course_grid .caption .learndash-wrapper {
  order: 2;
  margin: auto 0 1rem !important;
  padding: 0 !important;
}
html.emp-skin .ld_course_grid .caption .ld_course_grid_button {
  order: 3;
  margin: 0 !important;
}
html.emp-skin .ld_course_grid .ld-progress {
  margin: 0 !important;
  padding: 0 !important;
}
html.emp-skin .ld_course_grid .ld-progress .ld-progress-heading {
  margin-bottom: 0.5rem !important;
}
html.emp-skin .ld_course_grid .ld-progress .ld-progress-stats {
  display: flex;
  justify-content: space-between;
}
html.emp-skin .ld_course_grid .ld-progress-stats :is(.ld-progress-percentage, .ld-progress-steps) {
  color: var(--emp-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
html.emp-skin .ld_course_grid :is(.btn-primary, .btn) {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem !important;
  background: var(--emp-black) !important;
  border: 1px solid var(--emp-black) !important;
  border-radius: 999px !important;
  color: var(--emp-white) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-align: center;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.emp-skin .ld_course_grid :is(.btn-primary, .btn):hover {
  background: var(--emp-brand) !important;
  border-color: var(--emp-brand) !important;
}
