﻿/* Background pattern and page styling */


body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background-color: #f0f7ff !important;
  background-size: 500px 500px;
  z-index: -1;
}


.seccion-video-slider .titulo-2 {
  font-size: 35px;
}


.slider-nav .Next {
  right: 0;
}

.seccion-video-slider h3 {
  font-size: 22px;
}

.seccion-video-slider p {
  font-size: 18px;
}

.seccion-video-slider {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 0 30px;
  
}

.seccion-video-slider .row-slider{
  padding-top:80px;
  padding-bottom:80px;
}


.slider-wrapper {
  margin-bottom: 30px;
  position: relative;
  padding: 0 50px;
  /* Add padding for the outside arrows */
}

/* Slider container styling */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin: 0 auto;
  background-color: #000;
}

@media (min-width: 768px) {
  .slider-container {
    height: 400px;
  }
}

@media (min-width: 992px) {
  .slider-container {
    height: 500px;
  }
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

/* Slide styling */
.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.slide-content {
  z-index: 2;
  max-width: 80%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
}

/* YouTube slide specific styles */
.youtube-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background-color: #000;
}

.youtube-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 70%);
  z-index: 1;
  pointer-events: none;
}

.youtube-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.youtube-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-content {
  z-index: 2;
  max-width: 80%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  pointer-events: none;
  color: #fff;
}

/* Play button styling */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
}

.play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid #fff;
  margin-left: 5px;
}

/* Navigation controls - now outside the slider */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.slider-nav button {
  background-color: transparent;
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #666;
  transition: color 0.3s;
  outline: none;
  position: absolute;
  top: 0;
  pointer-events: auto;
}

.slider-nav button:hover {
  color: #999;
}

.slider-nav button#prev-btn {
  left: 0;
}

.slider-nav button#next-btn {
  right: 0;
}

/* Pagination styling */
.slider-pagination {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.pagination {
  margin: 0;
  background-color: transparent;
}

.pagination>li>a {
  border: none;
  background-color: transparent;
  color: #333;
  font-weight: bold;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-align: center;
  padding: 2px 7px;
  margin: 0 5px;
  line-height: 24px;
}

.pagination>li>a {
  border: 1px solid #032169;
}

/* Special styling for first and last pagination items */
.pagination>li:first-child>a,
.pagination>li:last-child>a {
  border-radius: 50%;
}

.pagination>li:first-child.active>a,
.pagination>li:last-child.active>a {
  border-radius: 50%;
  background-color: #2c5aa0;
}

.pagination>li:first-child>a:hover,
.pagination>li:last-child>a:hover {
  border-radius: 50%;
  background-color: rgba(44, 90, 160, 0.2);
}

.pagination>li.active>a {
  background-color: #2c5aa0;
  color: #fff;
  border: 0;
}

.pagination>li>a:hover,
.pagination>li>a:focus {
  background-color: rgba(44, 90, 160, 0.2);
  color: #333;
}

.pagination>li.active>a:hover,
.pagination>li.active>a:focus {
  background-color: #2c5aa0;
  color: #fff;
}


 @media(min-width:1200px) {
  .seccion-video-slider {
    background-color: #f0f7ff !important;
  }
}

@media(max-width:1199px){
  .seccion-video-slider{
    background-color: #f0f7ff !important;
  }
}

@media(max-width: 991px){
  .seccion-video-slider{
    background-color: #f0f7ff !important;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
   .seccion-video-slider{
    background-color: #f0f7ff !important;
}  

.seccion-video-slider{
  padding: 0 12px !important;
}
  .slider-container {
    height: 300px;
  }

  .slider-wrapper {
    padding: 0 30px;
    /* Smaller padding for mobile */
  }

  .slide h2,
  .youtube-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .slide p,
  .youtube-content p {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-button::after {
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid #fff;
  }

  .slider-nav button {
    width: 30px;
    height: 30px;
    font-size: 30px;
  }
}