﻿/* stylelint-disable */

/* Estilos Detalle Curso */
.curso-detalle-layout {
  background-color: #f5f5f5;
}

.curso-detalle-imagen-principal {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #ececec;
  margin-bottom: 1.5rem;
}

.curso-detalle-imagen-principal img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.curso-detalle-header {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary) 100%);
  color: white;
  padding: 2rem;
  margin-top: -50px;
  position: relative;
  z-index: 1;
}

.curso-detalle-tabs {
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 2rem;
}

.curso-detalle-tabs .nav-link {
  color: #666;
  border: none;
  font-weight: 600;
  padding-bottom: 1rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.curso-detalle-tabs .nav-link:hover {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
}

.curso-detalle-tabs .nav-link.active {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
  background-color: transparent;
}

.curso-detalle-modulo {
  background: #f9f9f9;
  border-left: 4px solid var(--bs-primary);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.3rem;
}

.curso-detalle-sesion {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.curso-detalle-sesion:last-child {
  border-bottom: none;
}

.curso-detalle-tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.curso-detalle-tag.destacado {
  background-color: var(--bs-primary);
  color: white;
}

.curso-detalle-list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.curso-detalle-list-item:last-child {
  border-bottom: none;
}

.curso-detalle-list-item i {
  color: var(--bs-primary);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.curso-detalle-precio {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
}

.curso-detalle-precio-label {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.curso-detalle-precio-valor {
  font-size: 2rem;
  font-weight: bold;
  color: var(--bs-primary);
  margin-bottom: 1rem;
}

.curso-detalle-precio-regular {
  font-size: 0.875rem;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.curso-detalle-docente {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.curso-detalle-docente-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.curso-detalle-docente-info h6 {
  margin-bottom: 0.25rem;
}

.curso-detalle-docente-info p {
  margin: 0;
  font-size: 0.875rem;
}

.curso-detalle-section-title {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.curso-detalle-section-title i {
  color: var(--bs-primary);
  font-size: 1.5rem;
}

.curso-detalle-box {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.curso-detalle-sidebar-box {
  background: white;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #ececec;
}

.curso-detalle-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.curso-detalle-main-col {
  padding-right: 1rem;
}

.curso-detalle-sidebar-col {
  padding-left: 1rem;
}

@media (min-width: 992px) {
  .curso-detalle-sticky-precio {
    position: sticky;
    top: 130px;
  }
}

@media (max-width: 991.98px) {
  .curso-detalle-main-col,
  .curso-detalle-sidebar-col {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }

  .curso-detalle-sidebar-col {
    margin-top: 0.5rem;
  }

  .curso-detalle-imagen-principal img {
    aspect-ratio: 4 / 3;
  }
}

.course-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.course-error {
  background: #fee;
  border: 1px solid #fcc;
  color: var(--bs-primary);
  padding: 1rem;
  border-radius: 0.5rem;
}

/*Vista main*/

#hero-swiper {
  width: 100%;
  min-height: 550px;
}

#hero-swiper .swiper-slide {
  position: relative;
  min-height: 550px;
  /*  background-position: top;*/
  background-size: cover;
  overflow: hidden;
}

@media (min-width: 1367px) {
  #hero-swiper,
  #hero-swiper .swiper-slide {
    min-height: 550px;
  }
}

@media (min-width: 1023px) and (max-width: 1366px) {
  #hero-swiper,
  #hero-swiper .swiper-slide {
    min-height: clamp(415px, calc(39.5vw + 10.8px), 550px);
  }
}

@media (min-width: 781px) and (max-width: 1024px) {
  #hero-swiper,
  #hero-swiper .swiper-slide {
    min-height: clamp(425px, calc(55.3vw - 6.6px), 560px);
  }
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero-slide__layer {
  position: absolute;
  z-index: 2;
  will-change: transform, opacity;
  max-width: min(92vw, 1920px);
}

.hero-rich-title,
.hero-rich-title p {
  color: var(--bs-black);
  margin: 0;
  text-align: left;
  font-weight: 800;
  line-height: 1.12;
  font-size: clamp(1.65rem, 4.4vw, 4.1rem);
}

.hero-rich-text,
.hero-rich-text p,
.hero-rich-text li {
  color: var(--bs-black);
  margin: 0;
  text-align: left;
  line-height: 1.32;
  font-size: clamp(1rem, calc(0.909rem + 0.455vw), 1.25rem);
}

.hero-rich-text ul,
.hero-rich-text ol {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-rich-title .ql-align-center,
.hero-rich-text .ql-align-center {
  text-align: center;
}
.hero-rich-title .ql-align-right,
.hero-rich-text .ql-align-right {
  text-align: right;
}
.hero-rich-title .ql-align-justify,
.hero-rich-text .ql-align-justify {
  text-align: justify;
}
.hero-rich-title .ql-direction-rtl,
.hero-rich-text .ql-direction-rtl {
  direction: rtl;
  text-align: inherit;
}

.hero-rich-title .ql-size-small,
.hero-rich-text .ql-size-small {
  font-size: 0.8em;
}

.hero-rich-title .ql-size-large,
.hero-rich-text .ql-size-large {
  font-size: 1.25em;
}

.hero-rich-title .ql-size-huge,
.hero-rich-text .ql-size-huge {
  font-size: 1.6em;
}

.hero-rich-title a,
.hero-rich-text a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 780px) {
  #hero-swiper,
  #hero-swiper .swiper-slide {
    min-height: clamp(425px, calc(66.7vw + 40px), 560px);
    block-size: clamp(425px, calc(66.7vw + 40px), 560px);
  }

  #hero-swiper .swiper-button-prev,
  #hero-swiper .swiper-button-next {
    display: none;
  }

  .hero-slide__layer h2 {
    font-size: clamp(1.1rem, 3.9vw, 1.6rem);
    line-height: 1.2;
  }

  .hero-slide__layer p {
    font-size: clamp(0.82rem, 2.8vw, 0.98rem);
    line-height: 1.35;
  }

  .hero-rich-title,
  .hero-rich-title p {
    font-size: clamp(1.1rem, 3.9vw, 1.6rem);
    line-height: 1.2;
  }

  .hero-rich-text,
  .hero-rich-text p,
  .hero-rich-text li {
    font-size: clamp(0.82rem, 2.8vw, 0.98rem);
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  #hero-swiper,
  #hero-swiper .swiper-slide {
    min-height: clamp(200px, calc(33.3vw + 200px), 360px);
    block-size: clamp(200px, calc(33.3vw + 200px), 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero-swiper .swiper-wrapper,
  #hero-swiper .swiper-slide,
  .hero-slide__layer {
    transition: none !important;
    animation: none !important;
  }
}

/* Estilos User-Carousels */

.carousel-editor-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  min-height: clamp(240px, 42vh, 420px);
  border: 1px dashed #d9dee3;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f8f7fa;
  touch-action: none;
}

.carousel-editor-item {
  position: absolute;
  border: 1px solid rgba(105, 108, 255, 0.45);
  border-radius: 0.375rem;
  background: rgba(105, 108, 255, 0.12);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.carousel-editor-item.is-selected {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(105, 108, 255, 0.2);
}

.carousel-editor-item__resize {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--bs-primary);
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  touch-action: none;
}

.carousel-editor-item.is-selected .carousel-editor-item__resize {
  opacity: 1;
  pointer-events: auto;
}

.carousel-editor-item__resize--nw {
  left: -6px;
  top: -6px;
  cursor: nwse-resize;
}
.carousel-editor-item__resize--ne {
  right: -6px;
  top: -6px;
  cursor: nesw-resize;
}
.carousel-editor-item__resize--sw {
  left: -6px;
  bottom: -6px;
  cursor: nesw-resize;
}
.carousel-editor-item__resize--se {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}

.carousel-editor-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-editor-item__content {
  width: 100%;
  height: 100%;
  transform-origin: center center;
}

.carousel-editor-item__content--rich {
  padding: 0.375rem 0.5rem;
  overflow: hidden;
}

.carousel-editor-item__content--rich,
.carousel-editor-item__content--rich * {
  pointer-events: none;
}

.carousel-editor-item__content--button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.45rem;
  pointer-events: none;
}

.carousel-editor-btn-preview {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
  word-break: break-word;
}

.carousel-editor-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3a3a5a;
  padding: 0.25rem 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-editor-item__rich-title,
.carousel-editor-item__rich-title p,
.carousel-editor-item__rich-title h1,
.carousel-editor-item__rich-title h2,
.carousel-editor-item__rich-title h3,
.carousel-editor-item__rich-title h4 {
  margin: 0;
  color: #fff;
  text-align: left;
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.carousel-editor-item__rich-title {
  font-size: clamp(1rem, 1.55vw, 2rem);
}

.carousel-editor-item__rich-text,
.carousel-editor-item__rich-text p,
.carousel-editor-item__rich-text li {
  margin: 0;
  color: #fff;
  text-align: left;
  line-height: 1.32;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.carousel-editor-item__rich-text {
  font-size: clamp(0.8rem, 1.1vw, 1.25rem);
}

.carousel-editor-item__rich-text ul,
.carousel-editor-item__rich-text ol {
  margin: 0;
  padding-left: 1.05rem;
}

.carousel-editor-item__rich-title .ql-align-center,
.carousel-editor-item__rich-text .ql-align-center {
  text-align: center;
}
.carousel-editor-item__rich-title .ql-align-right,
.carousel-editor-item__rich-text .ql-align-right {
  text-align: right;
}
.carousel-editor-item__rich-title .ql-align-justify,
.carousel-editor-item__rich-text .ql-align-justify {
  text-align: justify;
}
.carousel-editor-item__rich-title .ql-direction-rtl,
.carousel-editor-item__rich-text .ql-direction-rtl {
  direction: rtl;
  text-align: inherit;
}

.carousel-editor-item__rich-title .ql-size-small,
.carousel-editor-item__rich-text .ql-size-small {
  font-size: 0.8em;
}

.carousel-editor-item__rich-title .ql-size-large,
.carousel-editor-item__rich-text .ql-size-large {
  font-size: 1.25em;
}

.carousel-editor-item__rich-title .ql-size-huge,
.carousel-editor-item__rich-text .ql-size-huge {
  font-size: 1.6em;
}

.carousel-editor-item__rich-title a,
.carousel-editor-item__rich-text a {
  color: inherit;
  text-decoration: underline;
}

.carousel-template-list .list-group-item.active {
  background: #fee9ea;
  border-color: #fee9ea;
}

.carousel-editor-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.carousel-editor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.05) 55%);
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .carousel-editor-canvas {
    aspect-ratio: 16/9;
    min-height: 220px;
  }
}

@media (max-width: 575.98px) {
  .carousel-editor-canvas {
    aspect-ratio: 4/3;
    min-height: 200px;
  }

  #tablaComponentes {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-editor-item,
  .carousel-editor-item__resize {
    transition: none !important;
    animation: none !important;
  }
}

.carousel-editor-zoom-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8f7fa;
  border-radius: 0.375rem;
  border: 1px solid #e9ecef;
}

.carousel-editor-zoom-wrap label {
  margin-bottom: 0;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.carousel-editor-zoom-slider {
  flex: 1;
  min-width: 120px;
}

.carousel-editor-zoom-value {
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  color: var(--bs-primary);
  font-size: 0.875rem;
}

.carousel-editor-canvas-wrapper {
  position: relative;
  overflow: auto;
  max-height: 800px;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  background: #fff;
}

.carousel-editor-workspace {
  position: relative;
  display: inline-block;
  min-width: 100%;
  padding-left: 28px;
  padding-top: 28px;
}

.carousel-editor-ruler-x,
.carousel-editor-ruler-y {
  position: absolute;
  z-index: 4;
  background: #f2f4f7;
  color: #566071;
  font-size: 0.68rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.carousel-editor-ruler-x {
  left: 28px;
  top: 0;
  right: auto;
  height: 28px;
  border-bottom: 1px solid #d9dee3;
}

.carousel-editor-ruler-y {
  left: 0;
  top: 28px;
  bottom: auto;
  width: 28px;
  border-right: 1px solid #d9dee3;
}

.carousel-editor-origin {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: 0.63rem;
  font-weight: 700;
  color: #3f4754;
  background: #e9edf4;
  border-right: 1px solid #d9dee3;
  border-bottom: 1px solid #d9dee3;
}

.carousel-editor-ruler-tick {
  position: absolute;
  background: #8f97a3;
}

.carousel-editor-ruler-label {
  position: absolute;
  transform: translateX(-50%);
}

.carousel-editor-ruler-y .carousel-editor-ruler-label {
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.carousel-editor-canvas-frame {
  position: relative;
  border: 1px solid #adb5bd;
  border-radius: 0.5rem;
  overflow: hidden;
}

.carousel-editor-preset-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-editor-preset-wrap .form-select {
  min-width: 190px;
}

.carousel-editor-mode-wrap {
  display: flex;
  align-items: center;
}

#carouselEditorLayout.is-portada #carouselTemplateColumn {
  display: none;
}

#carouselEditorLayout.is-portada #carouselWorkColumn {
  flex: 0 0 100%;
  max-width: 100%;
}

#carouselEditorLayout.is-portada .carousel-editor-canvas-wrapper {
  max-height: none;
}

#carouselEditorLayout.is-portada #carouselEditorCanvas {
  min-height: clamp(340px, 58vh, 760px);
}

#carouselEditorLayout.is-portada #carouselComponentesBlock,
#carouselEditorLayout.is-portada #carouselPropiedadesCard {
  width: 100%;
}

.carousel-editor-canvas-inner {
  transform-origin: top left;
  transition: transform 0.2s ease;
  display: inline-block;
  width: 100%;
}

.comp-rich-toolbar {
  border: 1px solid #d9dee3;
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  background: #2c2c2c;
}

.comp-rich-editor {
  border: 1px solid #d9dee3;
  border-radius: 0 0 0.5rem 0.5rem;
  min-height: 120px;
  background: #fff;
}

.comp-rich-editor .ql-editor {
  min-height: 120px;
}
