/* --- Modal: video vertical 9:16 a pantalla completa dentro del modal --- */
:root {
    --accent: #135aff;
    --accent-dark: #0f49d6;
  }
#videoModal .modal-dialog {
  width: fit-content;
  max-width: 92vw;
  margin: 1.75rem auto;
}

#videoModal .modal-content {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

#videoModal .video-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  height: min(85vh, 720px);
  width: auto;
  max-width: 92vw;
  background: #000;
}

#videoModal video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Botón de minimizar superpuesto sobre el video */
#minimizeBtn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

#minimizeBtn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* Contenido HTML superpuesto sobre el video, abajo, con degradé para que se lea bien */
#videoModal .overlay-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 3rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%);
}

#videoModal .offer-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

#videoModal .offer-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

#videoModal .offer-copy {
  color: #e8e8e8;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

#videoModal .btn-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
}

#videoModal .cart-icon {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* Botón de sonido, superpuesto arriba a la izquierda del video */
#soundToggle {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
  }
  
  #soundToggle svg {
    width: 17px;
    height: 17px;
    fill: #fff;
  }
  
  #soundToggle .icon-unmuted { display: none; }
  #soundToggle.is-unmuted .icon-muted { display: none; }
  #soundToggle.is-unmuted .icon-unmuted { display: block; }

/* --- Burbuja flotante para reabrir --- */
#reopenBubble {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1080;
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.1rem 0.65rem 0.65rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#reopenBubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

#reopenBubble .icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#reopenBubble .icon-circle svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

#reopenBubble span.label {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  #reopenBubble { transition: none; }
}