/**
 * ==============================================================================
 * CURSO COMENTARIOS — Entel Cursos (WordPress Elementor Plugin) v1.1.0
 * CSS 100% Encapsulado con prefijos únicos (.cc-*) para evitar cualquier
 * conflicto con otros widgets de Elementor, temas de WordPress o frameworks CSS.
 * ==============================================================================
 */

.curso-comentarios-wrapper {
  --cc-accent-primary: #00A0D8;
  --cc-accent-secondary: #1E3888;
  --cc-glow-color: rgba(0, 160, 216, 0.14);
  --cc-bg-dark: #040b1e;

  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.curso-comentarios-wrapper *,
.curso-comentarios-wrapper *::before,
.curso-comentarios-wrapper *::after {
  box-sizing: border-box;
}

/* Modos de Fondo */
.curso-comentarios-wrapper.cc-bg-tech-dark {
  background-color: var(--cc-bg-dark);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(0, 160, 216, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(30, 56, 136, 0.24) 0%, transparent 48%),
    linear-gradient(180deg, #03091a 0%, #061230 50%, #03091a 100%);
  padding: 2.5rem 0;
}

.curso-comentarios-wrapper.cc-bg-transparent {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  padding: 1.5rem 0;
}

.curso-comentarios-wrapper.cc-bg-custom {
  padding: 2rem 0;
}

.curso-comentarios-wrapper .cc-container {
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 640px) {
  .curso-comentarios-wrapper .cc-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ==============================================================================
   ANIMACIONES KEYFRAMES ÚNICAS (Prefijo cc)
   ============================================================================== */
@keyframes ccScrollLeftMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes ccStarBounceWave {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-4px) scale(1.22);
    filter: drop-shadow(0 3px 6px rgba(245, 158, 11, 0.45));
  }
}

@keyframes ccIconPulseFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.14);
  }
}

/* Viewport y Pista del Carrusel */
.curso-comentarios-wrapper .cc-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  perspective: 1200px;
  padding: 1.25rem 0;
}

.curso-comentarios-wrapper .cc-marquee-fade-edges {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.curso-comentarios-wrapper .cc-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  animation-name: ccScrollLeftMarquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

/* Pausar al pasar el cursor o tocar */
.curso-comentarios-wrapper[data-cc-pause="true"] .cc-marquee-viewport:hover .cc-marquee-track,
.curso-comentarios-wrapper[data-cc-pause="true"] .cc-marquee-viewport:active .cc-marquee-track {
  animation-play-state: paused;
}

/* Spotlight interactivo */
.curso-comentarios-wrapper .cc-marquee-track:hover .cc-tech-comment-item {
  opacity: 0.58;
  filter: saturate(0.78);
  transform: scale(0.975);
}

.curso-comentarios-wrapper .cc-marquee-track .cc-tech-comment-item:hover {
  opacity: 1 !important;
  filter: saturate(1.08) !important;
  z-index: 20;
}

/* ==============================================================================
   TARJETA BASE INTERACTIVA 3D
   ============================================================================== */
.curso-comentarios-wrapper .cc-tech-comment-item {
  --cc-mx: 50%;
  --cc-my: 50%;
  --cc-rx: 0deg;
  --cc-ry: 0deg;
  --cc-edge-scale: 1;
  --cc-edge-opacity: 1;
  --cc-edge-ry: 0deg;
  position: relative;
  background-color: #ffffff;
  border-radius: 0;
  border: none;
  transform: perspective(1000px) rotateX(var(--cc-rx)) rotateY(calc(var(--cc-ry) + var(--cc-edge-ry))) scale(var(--cc-edge-scale));
  opacity: var(--cc-edge-opacity);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    filter 0.32s ease;
  cursor: pointer;
  overflow: hidden;
}

.curso-comentarios-wrapper .cc-tech-comment-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--cc-mx) var(--cc-my),
    var(--cc-glow-color) 0%,
    rgba(30, 56, 136, 0.04) 45%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.curso-comentarios-wrapper .cc-tech-comment-item:hover::before {
  opacity: 1;
}

.curso-comentarios-wrapper .cc-tech-comment-item:hover .cc-star-svg:nth-child(1) { animation: ccStarBounceWave 0.55s ease forwards 0.00s; }
.curso-comentarios-wrapper .cc-tech-comment-item:hover .cc-star-svg:nth-child(2) { animation: ccStarBounceWave 0.55s ease forwards 0.06s; }
.curso-comentarios-wrapper .cc-tech-comment-item:hover .cc-star-svg:nth-child(3) { animation: ccStarBounceWave 0.55s ease forwards 0.12s; }
.curso-comentarios-wrapper .cc-tech-comment-item:hover .cc-star-svg:nth-child(4) { animation: ccStarBounceWave 0.55s ease forwards 0.18s; }
.curso-comentarios-wrapper .cc-tech-comment-item:hover .cc-star-svg:nth-child(5) { animation: ccStarBounceWave 0.55s ease forwards 0.24s; }

.curso-comentarios-wrapper .cc-tech-comment-item:hover .cc-social-flat-icon,
.curso-comentarios-wrapper .cc-tech-comment-item:hover .cc-quote-flat-cyan,
.curso-comentarios-wrapper .cc-tech-comment-item:hover .cc-quote-flat-navy {
  animation: ccIconPulseFloat 0.9s ease-in-out infinite;
}

/* ==============================================================================
   ESTRELLAS Y REDES SOCIALES OFICIALES
   ============================================================================== */
.curso-comentarios-wrapper .cc-stars-flat {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  position: relative;
  z-index: 2;
}

.curso-comentarios-wrapper .cc-star-svg {
  width: 0.98rem;
  height: 0.98rem;
  color: #f59e0b;
  fill: #fbbf24;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.curso-comentarios-wrapper .cc-social-flat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.curso-comentarios-wrapper .cc-social-whatsapp { color: #25D366; }
.curso-comentarios-wrapper .cc-social-facebook { color: #1877F2; }
.curso-comentarios-wrapper .cc-social-instagram { color: #E1306C; }
.curso-comentarios-wrapper .cc-social-tiktok {
  color: #0f172a;
  filter: drop-shadow(-1.5px -1px 0px #25F4EE) drop-shadow(1.5px 1px 0px #FE2C55);
}

.curso-comentarios-wrapper .cc-quote-flat-cyan {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--cc-accent-primary);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.curso-comentarios-wrapper .cc-quote-flat-navy {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--cc-accent-secondary);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Tamaños de íconos encapsulados */
.curso-comentarios-wrapper .cc-icon-sm { width: 1rem; height: 1rem; }
.curso-comentarios-wrapper .cc-icon-md { width: 1.25rem; height: 1.25rem; }
.curso-comentarios-wrapper .cc-icon-lg { width: 1.5rem; height: 1.5rem; }
.curso-comentarios-wrapper .cc-fill-current { fill: currentColor; }

/* Tipografía de Comentario */
.curso-comentarios-wrapper .cc-comment-copy {
  color: #0f2557;
  font-size: 0.84rem;
  line-height: 1.58;
  font-weight: 500;
  margin: 0;
  position: relative;
  z-index: 2;
  transition: color 0.25s ease;
}

.curso-comentarios-wrapper .cc-tech-comment-item:hover .cc-comment-copy {
  color: #061539;
}

@media (min-width: 640px) {
  .curso-comentarios-wrapper .cc-comment-copy {
    font-size: 0.89rem;
    line-height: 1.62;
  }
}

@media (min-width: 1024px) {
  .curso-comentarios-wrapper .cc-comment-copy {
    font-size: 0.925rem;
  }
}

/* ==============================================================================
   ESTILO 1: CINTA AERODINÁMICA DIAGONAL CON BARRIDO DE LUZ
   ============================================================================== */
.curso-comentarios-wrapper .cc-style1-track {
  gap: 0.95rem;
}

.curso-comentarios-wrapper .cc-style1-item {
  width: 285px;
  flex: 0 0 285px;
  padding: 1.35rem 1.65rem;
  background-color: #ffffff;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  border-top: 4px solid var(--cc-accent-primary);
  border-bottom: 3px solid var(--cc-accent-secondary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.curso-comentarios-wrapper .cc-style1-item:nth-child(even) {
  border-top-color: var(--cc-accent-secondary);
  border-bottom-color: var(--cc-accent-primary);
}

.curso-comentarios-wrapper .cc-style1-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(0, 160, 216, 0.14) 45%,
    rgba(56, 189, 248, 0.26) 50%,
    transparent 100%
  );
  transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}

.curso-comentarios-wrapper .cc-style1-item:hover {
  transform: perspective(1000px) rotateX(var(--cc-rx)) rotateY(var(--cc-ry)) translateY(-6px) scale(1.035) !important;
  border-top-color: #38bdf8;
}

.curso-comentarios-wrapper .cc-style1-item:hover .cc-style1-shimmer {
  left: 140%;
}

.curso-comentarios-wrapper .cc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .curso-comentarios-wrapper .cc-style1-item {
    width: 345px;
    flex: 0 0 345px;
    padding: 1.45rem 1.85rem;
  }
}

@media (min-width: 1024px) {
  .curso-comentarios-wrapper .cc-style1-item {
    width: 395px;
    flex: 0 0 395px;
    padding: 1.55rem 2rem;
  }
}

/* ==============================================================================
   ESTILO 2: ARQUITECTURA MODULAR CON FRANJA LATERAL UNIFORME
   ============================================================================== */
.curso-comentarios-wrapper .cc-style2-track {
  gap: 1.35rem;
}

.curso-comentarios-wrapper .cc-style2-item {
  width: 300px;
  flex: 0 0 300px;
  background-color: #ffffff;
  display: grid;
  grid-template-columns: 68px 1fr;
  box-shadow: 0 16px 34px -10px rgba(2, 10, 32, 0.65);
}

.curso-comentarios-wrapper .cc-style2-uniform-side {
  position: relative;
  background-color: #eef8ff;
  border-left: 4px solid var(--cc-accent-primary);
  border-right: 1px solid #cfeefb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 0.35rem;
  transition: background-color 0.3s ease, border-left-color 0.3s ease;
}

.curso-comentarios-wrapper .cc-style2-item:nth-child(even) .cc-style2-uniform-side {
  border-left-color: var(--cc-accent-secondary);
}

.curso-comentarios-wrapper .cc-style2-item:hover .cc-style2-uniform-side {
  background-color: #e2f3fe;
  border-left-color: var(--cc-accent-primary);
}

.curso-comentarios-wrapper .cc-score-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  color: var(--cc-accent-secondary);
  letter-spacing: 0.05em;
  display: inline-block;
  line-height: 1;
}

.curso-comentarios-wrapper .cc-style2-body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background-color: #ffffff;
}

.curso-comentarios-wrapper .cc-body-header {
  margin-bottom: 0.5rem;
}

.curso-comentarios-wrapper .cc-style2-body::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0%;
  background-color: var(--cc-accent-primary);
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.curso-comentarios-wrapper .cc-style2-item:hover {
  transform: perspective(1000px) rotateX(var(--cc-rx)) rotateY(var(--cc-ry)) translateY(-6px) scale(1.035) !important;
  box-shadow: 0 24px 48px -12px rgba(0, 160, 216, 0.45);
}

.curso-comentarios-wrapper .cc-style2-item:hover .cc-style2-body::after {
  height: 100%;
}

@media (min-width: 640px) {
  .curso-comentarios-wrapper .cc-style2-item {
    width: 365px;
    flex: 0 0 365px;
    grid-template-columns: 74px 1fr;
  }
  .curso-comentarios-wrapper .cc-style2-body {
    padding: 1.3rem 1.45rem;
  }
}

@media (min-width: 1024px) {
  .curso-comentarios-wrapper .cc-style2-item {
    width: 415px;
    flex: 0 0 415px;
    grid-template-columns: 80px 1fr;
  }
  .curso-comentarios-wrapper .cc-style2-body {
    padding: 1.4rem 1.6rem;
  }
}
