/* Slide de vídeo: mismo encuadre que las fotos del carrusel. */
.weproductvideo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.page-product .product__images #product-images .weproductvideo-wrap {
  padding: clamp(8px, 1.5vw, 24px);
}

.weproductvideo-poster__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Ligero atenuado para que el distintivo de play tenga contraste suficiente. */
  filter: brightness(0.88);
}

/* Capa decorativa: nunca captura el clic, lo recibe el carrusel (abre Fancybox). */
.weproductvideo-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.weproductvideo-poster__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #EA1E1C;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.2s ease;
}

#product-images:hover .weproductvideo-poster__icon {
  transform: scale(1.06);
}

.weproductvideo-poster__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.weproductvideo-poster__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Miniatura */
.weproductvideo-thumb__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: #f6f6f6;
}

.weproductvideo-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.9);
}

.weproductvideo-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #EA1E1C;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.weproductvideo-thumb__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.weproductvideo-thumb.active .weproductvideo-thumb__inner,
.weproductvideo-thumb[aria-current="true"] .weproductvideo-thumb__inner {
  outline: 2px solid #EA1E1C;
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .weproductvideo-poster__icon {
    transition: none;
  }

  #product-images:hover .weproductvideo-poster__icon {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .weproductvideo-poster__icon {
    width: 56px;
    height: 56px;
  }

  .weproductvideo-poster__icon::before {
    border-width: 10px 0 10px 16px;
  }
}
