/* Reproductor de las "Experiencias de aventura".

   Copiado tal cual de panaca.co. Vive en el layout porque las tarjetas de
   aventura aparecen en varias paginas (Tarifas, Pasaporte PANACA, Pasaporte
   Campo) y antes cada una llevaba su propia copia. */


.vmodal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 4000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.vmodal.active {
  display: flex;
}

.vmodal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.vmodal__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.vmodal__video-wrap {
  position: relative;
  width: 90vw;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.vmodal__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vmodal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.vmodal__arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.vmodal__arrow--prev {
  left: max(16px, calc(50% - 430px));
}

.vmodal__arrow--next {
  right: max(16px, calc(50% - 430px));
}

.vmodal__info {
  text-align: center;
  margin-top: 1.2rem;
  color: #fff;
}

.vmodal__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vmodal__desc {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 4px;
}

.vmodal__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
}

.vmodal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.vmodal__dot.active {
  background: var(--color-red);
  transform: scale(1.3);
}

.vmodal__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--color-red);
  transition: width 0.3s linear;
  z-index: 5;
}

@@media (max-width: 768px) {
  .vmodal__video-wrap {
    width: 96vw;
    border-radius: 6px;
  }

  .vmodal__arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .vmodal__arrow--prev {
    left: 8px;
  }

  .vmodal__arrow--next {
    right: 8px;
  }

  .vmodal__close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
}
