@charset "UTF-8";
/****************************************************
 * CAPITAL BLOCKS – YOUTUBE CAROUSEL
 ****************************************************/
/* Contenedor general */
.cbc-youtube-carousel {
  background: #fff;
  padding: 2em 0;
  display: block;
}

/* Contenedor interno */
.cbc-youtube-carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 2rem;
  width: 100%;
}

/* Subtítulo */
.cbc-subtitle-youtube {
  position: relative;
  display: inline-block;
  background-color: #753DE0;
  color: #FFFFFF;
  padding: 12px 20px;
  font-weight: bold;
}

/* cuadrado superior */
.cbc-subtitle-youtube::after {
  content: "";
  position: absolute;
  top: -17px;
  right: -17px;
  width: 17px;
  height: 17px;
  background-color: #EE8633;
}

/* Swiper */
.cbc-youtube-carousel .swiper {
  width: 100%;
  overflow: hidden;
}

/* Swiper wrapper y slides */
.cbc-youtube-carousel .swiper-wrapper {
  align-items: stretch;
}

.cbc-youtube-carousel .swiper-slide {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* === Contenedor de video (altura uniforme) === */
.cbc-video-embed {
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 exacto */
  position: relative;
  overflow: hidden;
  background: #000;
}

.cbc-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Descripción bajo el video */
.cbc-video-description {
  color: #606060;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  text-align: center;
  max-width: 80%;
  line-height: 1.4;
  opacity: 0.9;
  min-height: 2.8em; /* mantiene altura uniforme del texto */
  overflow: hidden;
}

.cbc-video-description strong {
  font-weight: 700;
}

/* Flechas */
.cbc-youtube-carousel .swiper-button-prev.btn-flecha,
.cbc-youtube-carousel .swiper-button-next.btn-flecha {
  background-color: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  top: calc(60% - 16px);
  transform: translateY(-50%);
  z-index: 5;
}

.cbc-youtube-carousel .swiper-button-prev.btn-flecha::after,
.cbc-youtube-carousel .swiper-button-next.btn-flecha::after {
  display: none;
}

.cbc-youtube-carousel .swiper-button-prev.btn-flecha {
  left: -2em;
  background-image: url(../images/left_orange_arrow.png);
}

.cbc-youtube-carousel .swiper-button-next.btn-flecha {
  right: -2em;
  background-image: url(../images/right_orange_arrow.png);
}

/* Paginación */
.cbc-youtube-carousel .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.4;
}

.cbc-youtube-carousel .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .cbc-subtitle-youtube {
    font-size: 1.5rem;
  }
  .cbc-video-description {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .cbc-youtube-carousel .swiper-button-prev.btn-flecha {
    left: 0;
  }
  .cbc-youtube-carousel .swiper-button-next.btn-flecha {
    right: 0;
  }
}
