/* ==========================================================
   video-section.css
   Estilos EXCLUSIVOS para la sección "Video Section" de
   index.html (clase raíz: .video-section).

   Todo aquí está anidado bajo .video-section para que
   NUNCA afecte el resto de la página. Sustituye por completo
   a bootstrap.min.css + style.css (del template Specer) que
   antes se cargaban de forma global y rompían el diseño
   custom del resto del sitio.

   Requiere seguir cargando css/owl.carousel.min.css (el
   carrusel), ya que sus clases (.owl-*) están bien
   encapsuladas y no chocan con nada más.
   ========================================================== */

/* Grid mínimo (reemplaza .container/.row/.col-lg-*, pero
   SOLO dentro de .video-section) */
.video-section {
  margin-bottom: 70px;
  box-sizing: border-box;
}

.video-section *,
.video-section *::before,
.video-section *::after {
  box-sizing: border-box;
}

.video-section .container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.video-section .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.video-section .col-lg-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.video-section .col-lg-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 991px) {
  .video-section .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575px) {
  .video-section .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Título de la sección */
.video-section .section-title {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 30px;
}

.video-section .section-title:before {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 70px;
  background: #dd1515;
  content: "";
  z-index: 1;
}

.video-section .section-title:after {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: #f2f2f2;
  content: "";
}

.video-section .section-title h3 {
  font-size: 28px;
  color: #151618;
  font-weight: 300;
  margin: 0;
  font-family: "Roboto", sans-serif;
}

.video-section .section-title h3 span {
  font-weight: 700;
}

/* Imagen de fondo vía data-setbg (aplicada por main.js) */
.video-section .set-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

/* Carrusel de video */
.video-section .video-slider.owl-carousel {
  margin-right: 0;
}

.video-section .video-slider.owl-carousel .col-lg-3 {
  max-width: 100%;
}

.video-section .video-slider.owl-carousel .owl-nav {
  position: absolute;
  right: 15px;
  top: -78px;
}

.video-section .video-slider.owl-carousel .owl-nav button {
  font-size: 20px;
  color: #636363;
  width: 30px;
  height: 30px;
  border: 1px solid #d5d5d5;
  line-height: 30px;
  text-align: center;
  transition: all 0.3s;
  margin-right: 10px;
  background: transparent;
}

.video-section .video-slider.owl-carousel .owl-nav button:last-child {
  margin-right: 0;
}

.video-section .video-slider.owl-carousel .owl-nav button:hover {
  background: #dd1515;
  color: #ffffff;
  border-color: #dd1515;
}

/* Flechas del carrusel: CSS puro (sin depender de ningún
   archivo de fuente/ícono externo, así nunca se ven "rotas") */
.video-section .owl-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-style: solid;
  border-width: 2px 2px 0 0;
  border-color: currentColor;
  vertical-align: middle;
}

.video-section .owl-arrow-left {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.video-section .owl-arrow-right {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* Tarjeta de cada video */
.video-section .video-item {
  height: 200px;
  position: relative;
}

.video-section .video-item:hover .play-btn {
  opacity: 1;
  visibility: visible;
}

.video-section .video-item .vi-title {
  position: absolute;
  left: 0;
  top: 15px;
  width: 100%;
  padding: 0 20px;
}

.video-section .video-item .vi-title a {
  text-decoration: none;
}

.video-section .video-item .vi-title h5 {
  color: #ffffff;
  font-weight: 500;
  line-height: 26px;
  margin: 0;
  font-size: 18px;
  font-family: "Roboto", sans-serif;
}

.video-section .video-item .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-20px, -20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.video-section .video-item .vi-time {
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 1px;
  display: inline-block;
  background: rgba(0, 0, 0, 0.7);
  padding: 3px 10px;
  position: absolute;
  right: 0;
  bottom: 0;
}

@media only screen and (max-width: 767px) {
  .video-section .video-item {
    height: 300px;
  }
}
