﻿/* stylelint-disable */

/* Estilos Detalle Curso */
.curso-detalle-layout {
  background:
    radial-gradient(circle at top left, rgba(15, 32, 67, 0.08), transparent 30%),
    linear-gradient(180deg, #f4f6fb 0%, #ffffff 100%);
  color: #1f2937;
}

.curso-detalle-hero {
  padding: 8.7rem 0 1.5rem;
}

.curso-detalle-hero__inner {
  padding: 1.15rem 0 0.25rem;
}

.curso-detalle-hero__breadcrumb {
  color: #7c8798;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.curso-detalle-hero__title {
  color: #343a40;
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(1.65rem, 2.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.curso-detalle-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #ffffff;
  color: #183153;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(24, 49, 83, 0.12);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.curso-detalle-hero__pill i {
  font-size: 1rem;
  color: #0f2748;
}

.curso-detalle-content-section {
  padding: 0 0 3rem;
}

.curso-detalle-content-card,
.curso-detalle-sidebar-card,
.curso-detalle-sidebar-box,
.curso-detalle-box {
  background: #ffffff;
  border: 1px solid #e6e8ef;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.curso-detalle-content-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.curso-detalle-sidebar-card {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.curso-detalle-sidebar-sections {
  padding: 0 1.15rem 1.15rem;
}

.curso-detalle-sidebar-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e7eaf1;
}

.curso-detalle-sidebar-facts {
  margin-top: 0.85rem;
}

.curso-detalle-sidebar-fact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f3657;
  padding: 0.35rem 0;
}

.curso-detalle-sidebar-fact i {
  color: #0f2748;
  font-size: 1rem;
}

.curso-detalle-sidebar-card .btn-danger {
  background-color: #0f2748;
  border-color: #0f2748;
}

.curso-detalle-sidebar-card .btn-danger:hover,
.curso-detalle-sidebar-card .btn-danger:focus {
  background-color: #0b1d36;
  border-color: #0b1d36;
}

.curso-detalle-sidebar-card .btn-outline-danger {
  color: #0f2748;
  border-color: #0f2748;
}

.curso-detalle-sidebar-card .btn-outline-danger:hover,
.curso-detalle-sidebar-card .btn-outline-danger:focus {
  background-color: #0f2748;
  border-color: #0f2748;
  color: #ffffff;
}

.curso-detalle-sidebar-media {
  background: #eef1f7;
}

.curso-detalle-sidebar-media img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.curso-detalle-tabs {
  gap: 0.5rem;
  padding: 1.1rem 1.1rem 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.curso-detalle-tabs .nav-item {
  margin-bottom: 0;
}

.curso-detalle-tabs .btn {
  --bs-btn-border-color: var(--bs-secondary);
}

.curso-detalle-tabs .nav-link:hover {
  color: #0f2748;
  border-color: #d2d7e3;
  transform: translateY(-1px);
}

.curso-detalle-tabs .nav-link.active {
  color: #ffffff;
  border-color: #0f2748;
  background: #0f2748;
  box-shadow: 0 12px 20px rgba(15, 39, 72, 0.18);
}

.curso-detalle-content-card .tab-content {
  padding: 1.1rem;
}

.curso-detalle-box {
  border-radius: 0.95rem;
  padding: 1.35rem;
  margin-bottom: 1rem;
  box-shadow: none;
}

.curso-detalle-sidebar-box {
  border-radius: 0.95rem;
  padding: 1.2rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: none;
}

.curso-detalle-precio {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 1.15rem;
}

.curso-detalle-precio-label {
  font-size: 0.78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.curso-detalle-precio-valor {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1;
  font-weight: 800;
  color: #0f2748;
  margin-bottom: 0.6rem;
}

.curso-detalle-precio-regular {
  font-size: 0.88rem;
  color: #8a94a6;
  text-decoration: line-through;
  margin-bottom: 1rem;
}

.curso-detalle-sidebar-title,
.curso-detalle-section-title {
  font-family: 'Urbanist', sans-serif;
}

.curso-detalle-sidebar-title {
  font-size: 1rem;
  font-weight: 800;
  color: #12263a;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.curso-detalle-section-title {
  font-weight: 800;
  color: #12263a;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.curso-detalle-section-title i {
  color: #0f2748;
  font-size: 1.2rem;
}

.curso-detalle-docente {
  align-items: flex-start;
  padding: 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
}

.curso-detalle-docente-img {
  width: 88px;
  height: 88px;
  border-radius: 1rem;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e7eaf1;
}

.curso-detalle-docente-info h6 {
  font-size: 1rem;
}

.curso-detalle-docente-info p {
  line-height: 1.6;
}

.curso-detalle-modulo {
  background: #f8fafc;
  border-left: 4px solid #0f2748;
  padding: 1rem 1rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
}

.curso-detalle-sesion {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.curso-detalle-list-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid #eef1f5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.curso-detalle-list-item i {
  color: #0f2748;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.curso-detalle-tag {
  display: inline-flex;
  align-items: center;
  background-color: #f1f4f9;
  color: #334155;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e4e8f0;
}

.curso-detalle-tag.destacado {
  background-color: #0f2748;
  color: #ffffff;
  border-color: #0f2748;
}

.curso-detalle-main-col {
  padding-right: 1rem;
}

.curso-detalle-sidebar-col {
  padding-left: 1rem;
}

.course-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.course-error {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 1rem;
  border-radius: 0.5rem;
}

@media (min-width: 992px) {
  .curso-detalle-sticky-precio {
    position: sticky;
    top: 90px;
  }

  .curso-detalle-sidebar-col {
    margin-top: -6rem;
  }
}

@media (max-width: 992px) {
  .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.25rem;
  }

  .curso-detalle-hero {
    padding-top: 5.2rem;
  }

  .curso-detalle-sidebar-sections {
    padding: 0 1rem 1rem;
  }

  .curso-detalle-hero__title {
    font-size: clamp(1.45rem, 5vw, 2rem);
  }

  .curso-detalle-content-card .tab-content {
    padding: 0.95rem;
  }
}

/*Vista main*/

/*nuevos mains*/
#hero-swiper-prev,
#hero-swiper-next,
#hero-swiper-pagination {
  display: none !important;
}

#cursos-populares-list .popular-course-card {
  background: #fff;
  border: 1px solid #d7dce6;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#cursos-populares-list .popular-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.65rem 1.4rem rgba(17, 37, 72, 0.14);
}

#cursos-populares-list .popular-course-front {
  min-height: 100%;
  background: #fff;
}

#cursos-populares-list .popular-course-image {
  height: 210px;
  object-fit: cover;
  display: block;
}

#cursos-populares-list .popular-course-top-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border-radius: 0.35rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
}

#cursos-populares-list .popular-course-body {
  padding: 1.7rem 1.9rem 1.85rem;
}

#cursos-populares-list .popular-course-badge {
  display: inline-block;
  background: #e1e4ed;
  color: #1f2a44;
  font-weight: 500;
  border-radius: 0.45rem;
  padding: 0.35rem 0.9rem;
  width: fit-content;
}

#cursos-populares-list .popular-course-price-wrap {
  display: flex;
  align-items: center;
  line-height: 1;
}

#cursos-populares-list .popular-course-price-old {
  color: #e0614c;
  text-decoration: line-through;
  opacity: 0.9;
}

#cursos-populares-list .popular-course-price-new {
  color: #041a46;
  font-weight: 800;
}

#cursos-populares-list .popular-course-title {
  color: #071736;
  line-height: 1.2;
  letter-spacing: 0;
}

#cursos-populares-list .popular-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  color: #2f4a6d;
}

#cursos-populares-list .popular-course-meta i {
  color: #0690ff;
  margin-right: 0.35rem;
  vertical-align: -0.12em;
}

#cursos-populares-list .popular-course-description {
  color: #485a76;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 5.9rem;
}

#cursos-populares-list .popular-course-cta {
  background: #0b2355;
  border: 0;
  color: #fff;
  font-weight: 700;
  border-radius: 0.7rem;
  padding: 0.8rem 1.15rem;
  width: auto;
  display: inline-block;
  text-decoration: none;
}

#cursos-populares-list .popular-course-cta:hover {
  background: #091a3f;
  color: #fff;
}

#cursos-populares-list .popular-course-hover-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(244, 246, 252, 0.98);
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  pointer-events: none;
  height: 100%;
  overflow: auto;
  z-index: 2;
}

#cursos-populares-list .popular-course-card:hover .popular-course-hover-panel,
#cursos-populares-list .popular-course-card:focus-within .popular-course-hover-panel {
  opacity: 1;
  transform: translateY(0%);
  pointer-events: auto;
}

#cursos-populares-list .popular-course-lead {
  color: #2f4a6d;
  letter-spacing: 0.02em;
}

@media (max-width: 767.98px) {
  #cursos-populares-list .popular-course-image {
    height: 188px;
  }

  #cursos-populares-list .popular-course-body {
    padding: 1.25rem 1.25rem 1.35rem;
  }

  #cursos-populares-list .popular-course-description {
    min-height: 4.3rem;
  }

  #cursos-populares-list .popular-course-hover-panel {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: #fff;
    border-top: 1px solid #e6e8ef;
  }
}

.benefits-card-hover {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.benefits-card-hover:hover {
  background-color: var(--bs-secondary) !important;
  color: white !important;
}

.benefits-card-hover:hover h4,
.benefits-card-hover:hover p {
  color: white !important;
}

.profile-reveal-up {
  animation: profile-reveal-up 2s cubic-bezier(0.215, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

@keyframes profile-reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-reveal-up {
    animation: none;
  }
}

.resena-card {
  background: #f2f4f8;
  overflow: visible;
  margin-top: 2.8rem;
}

.resena-avatar {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 4px solid #edf1f6;
  box-shadow: 0 0 0 3px #fff;
}

.resena-name {
  color: #1f252c;
  line-height: 1.1;
  font-weight: 800;
}

.resena-profesion {
  color: #606872;
  line-height: 1.2;
  font-style: italic;
  font-weight: 600;
}

.resena-divider {
  height: 2px;
  width: 100%;
  background: #8fb3da;
}

.resena-text {
  color: #222831;
  line-height: 1.45;
  font-weight: 700;
}

.resena-quote-mark {
  color: #ff7a00;
  font-weight: 900;
  line-height: 0;
  vertical-align: middle;
}

.resena-stars {
  color: #1f4e79;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.22rem;
  line-height: 1;
}

.benefits-accordion {
  display: flex;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  border-top: 1px solid #d6dce7;
  border-bottom: 1px solid #d6dce7;
}

.benefit-pane {
  flex: 1 1 0;
  min-width: 0;
  transition:
    flex-basis 0.45s ease,
    flex-grow 0.45s ease;
  border-right: 1px solid #d6dce7;
  position: relative;
  overflow: hidden;
}

.benefit-pane:last-child {
  border-right: 0;
}

.benefit-pane--dark {
  background: #1f4d7a;
  color: #fff;
}

.benefit-pane--light {
  background: #d6d8df;
  color: #1f4d7a;
}

.benefit-pane.is-expanded {
  flex: 1 1 0;
  z-index: 3;
}

.benefit-pane.is-compact {
  flex: 0 1 0;
  cursor: pointer;
}

.benefit-pane__summary {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.85rem 1.25rem;
  position: relative;
  z-index: 1;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

.benefit-pane__title {
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 1.3rem + 1.8vw, 3.2rem);
}

.benefit-expand-btn,
.benefit-collapse-btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.7rem 1.45rem;
  width: fit-content;
  text-decoration: none;
  border: 2px solid currentColor;
  background: transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.benefit-pane--dark .benefit-expand-btn,
.benefit-pane--dark .benefit-collapse-btn {
  color: #fff;
}

.benefit-pane--light .benefit-expand-btn,
.benefit-pane--light .benefit-collapse-btn {
  color: #1f4d7a;
}

.benefit-pane__summary .benefit-expand-btn {
  margin-top: inherit;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.benefits-accordion.has-expanded .benefit-pane__summary .benefit-expand-btn,
.benefits-accordion.has-expanded .benefit-pane__summary .benefit-pane__title {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.benefit-pane__detail {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 1.5rem;
  padding: 1.5rem 2rem 2rem;
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.benefit-pane.is-expanded .benefit-pane__detail {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.benefit-pane.is-compact .benefit-pane__summary {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}

.benefit-pane.is-compact .benefit-pane__detail {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.benefit-pane.is-compact .benefit-pane__visual {
  display: none;
}

.benefit-pane:not(.is-expanded) .benefit-pane__summary .benefit-pane__description {
  display: none;
}

.benefit-pane__description {
  line-height: 1.5;
  max-width: 48ch;
  margin-bottom: 1.4rem;
  opacity: 0.98;
}

.benefit-pane__visual {
  object-position: right center;
  object-fit: cover;
  min-height: 450px;
  border-radius: 1.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  overflow: hidden;
  padding: 0.25rem;
  margin-block-end: -2.25rem;
}

.benefit-pane__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

@media (max-width: 1399.98px) {
  .benefit-pane.is-expanded {
    flex: 5 1 0;
  }

  .benefit-pane__description {
    font-size: 1.15rem;
  }
}

@media (max-width: 992px) {
  .benefit-expand-btn,
  .benefit-collapse-btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.7rem 1.45rem;
    width: fit-content;
    text-decoration: none;
    border: 2px solid currentColor;
    background: transparent;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .benefits-accordion {
    flex-direction: column;
    min-height: 0;
  }

  .benefit-pane {
    border-right: 0;
    border-bottom: 1px solid #d6dce7;
  }

  .benefit-pane:last-child {
    border-bottom: 0;
  }

  .benefit-pane,
  .benefit-pane.is-expanded {
    flex: 1 1 auto;
  }

  .benefit-pane.is-compact {
    flex: 0.5 1 1rem;
  }

  .benefit-pane__summary {
    min-height: 250px;
  }

  .benefit-pane__detail {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .benefit-pane__visual {
    width: 100%;
    flex-basis: auto;
    height: 170px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
/*nuevos end*/

#hero-swiper {
  width: 100%;
  min-height: 800px;
}

#hero-swiper .swiper-slide {
  position: relative;
  min-height: 800px;
  background-position: top;
  background-size: cover;
  overflow: hidden;
}

@media (min-width: 1441px) {
  #hero-swiper,
  #hero-swiper .swiper-slide {
    min-height: 800px;
  }
}

@media (min-width: 1281px) and (max-width: 1440px) {
  #hero-swiper,
  #hero-swiper .swiper-slide {
    min-height: clamp(600px, calc(125vw - 1000px), 800px);
  }
}

@media (min-width: 993px) and (max-width: 1280px) {
  #hero-swiper,
  #hero-swiper .swiper-slide {
    min-height: clamp(425px, calc(60.76vw - 177.1px), 600px);
  }
}

.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, 1919px);*/
}

.hero-rich-title,
.hero-rich-title p {
  color: #fff;
  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: #fff;
  margin: 0;
  text-align: left;
  line-height: 1.32;
  font-size: clamp(1rem, 2.1vw, 2rem);
}

.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: 992px) {
  #hero-swiper,
  #hero-swiper .swiper-slide {
    min-height: clamp(360px, calc(48.2vw + 82.4px), 560px);
    block-size: clamp(360px, calc(48.2vw + 82.4px), 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: 575px) {
  #hero-swiper,
  #hero-swiper .swiper-slide {
    min-height: clamp(200px, calc(27.8vw + 200px), 360px);
    block-size: clamp(200px, calc(27.8vw + 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: #696cff;
  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: #696cff;
  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__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3a3a5a;
  padding: 0.25rem 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-template-list .list-group-item.active {
  background: #696cff;
  border-color: #696cff;
}

.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: 992px) {
  .carousel-editor-canvas {
    aspect-ratio: 16/9;
    min-height: 220px;
  }
}

@media (max-width: 575px) {
  .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: #696cff;
  font-size: 0.875rem;
}

.carousel-editor-canvas-wrapper {
  position: relative;
  overflow: auto;
  max-height: 500px;
  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;
}
