/*==============================
  Sección Principal
==============================*/
#banvi {
    text-align: center;
    background: linear-gradient(135deg, #1b4332, #081c15);
    padding: 5px;
    color: #e9f5db;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 25px;
  }
  #banvi h3{
    font-size: 32px;
    max-width: 600px;
    text-align: left;
  }
  
  /*==============================
    Carrusel: Envolvente y Contenedores
  ==============================*/
  #carrousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: auto;
  }
  
  #carrousel-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #carrousel {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease-in-out;
    width: 100%;
  }
  
  /*==============================
    Slides y Videos
  ==============================*/
  .video-slide {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
  }
  
  .video {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    object-fit: cover;
  }
  
  /* Ocultar controles nativos (Chrome, Safari) */
  .video::-webkit-media-controls {
    display: none !important;
  }
  
  /* Títulos e Información del Video */
  .video-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
  }
  
  .video-location {
    font-size: 1em;
    color: #cce3de;
  }
  
  /*==============================
    Controles Personalizados
  ==============================*/
  #controlbut {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 20px;

  }
  #playPause{
    width: 75px;
    height: 75px;
    border: solid 2px white;
    background: linear-gradient(135deg, #0dc4ff, #a100ff);
    box-shadow: 0 0 10px rgba(158, 255, 2, 0.892);
    position: relative;
  }
  #prevVideo, #nextVideo, #muteToggle{
    width: 55px;
    height: 55px;
    border: none;
    background: #40916c;
    
  }
  #prevVideo, #nextVideo, #muteToggle, #playPause{
    
    color: white;
    font-size: 1.5em;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    
  }
  
  #controlbut button:hover {
    background: #52b788;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(82, 183, 136, 0.9);
  }
  
  #controlbut button i {
    font-size: 1.2em;
  }

  
  /* Estado del botón mute */
  #muteToggle.muted {
    background: #d62828 !important;
    box-shadow: 0 0 15px rgba(214, 40, 40, 0.9);
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    #controlbut button {
      width: 45px;
      height: 45px;
      font-size: 1.2em;
    }
    #carrousel-container{
      width: 90%;
    }
    .video-slide {
      min-width: 95%;
    
  }
}
  
  /*==============================
    Botón CTA
  ==============================*/
  .cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #52b788, #40916c);
    color: #fff;
    padding: 14px 22px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(82, 183, 136, 0.6);
    transition: 0.3s ease-in-out;
    font-weight: bold;
    margin-top: 20px;
  }
  
  .cta-button:hover {
    background: #40916c;
    box-shadow: 0 0 18px rgba(82, 183, 136, 0.9);
    transform: scale(1.08);
  }
  
  /*==============================
    Barra de Progreso
  ==============================*/
 /* Contenedor de la barra de progreso */
#progressContainer {
    position: relative; /* Permite posicionar el handle de forma absoluta */
    width: 100%;
    max-width: 600px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 15px auto;
    border-radius: 4px;
    overflow: visible; /* Cambiado de hidden a visible para mostrar el handle completo */
  }
  
  /* Barra de progreso */
  #progressBar {
    height: 100%;
    width: 0%;
    background-color: #52b788;
    transition: width 0.05s linear;
  }
  
  /* Handle (círculo) de la barra de progreso */
  #progressHandle {
    position: absolute;
    top: 50%;
    left: 0%; /* Posición inicial */
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #52b788;
    cursor: pointer;
    z-index: 10; /* Asegura que se muestre sobre la barra */
  }
  
  