/* DAKOT STUDIO · Visor 3D (GLB · STL · 3MF) · fondo negro con dorado difuminado, igual que la prueba */

.dk-viewer {
  width: 100%;
  min-width: 0;
}

.dk-viewer__frame {
  position: relative;
  width: 100%;
  height: min(52vh, 460px);
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 42%, #6b5128 0%, #302315 28%, #100e0b 58%, #050505 82%);
}

.dk-viewer__stage {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
}

.dk-viewer__stage model-viewer,
.dk-viewer__canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.dk-viewer__stage model-viewer {
  --poster-color: transparent;
  background: transparent;
}

.dk-viewer__status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #d5b875;
  font-size: 0.95rem;
  pointer-events: none;
}

.dk-viewer__status[hidden] {
  display: none;
}

.dk-viewer__status.is-error {
  color: #f0d9a0;
}

.dk-viewer__toolbar {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.dk-viewer__btn {
  padding: 0.35rem 0.7rem;
  border: 1px solid #c9a24b;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dk-viewer__btn:hover,
.dk-viewer__btn[aria-pressed="true"] {
  background: #c9a24b;
  color: #111;
}

.dk-viewer__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.dk-viewer__btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.dk-viewer__hint {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #c1b49b;
}

@media (max-width: 640px) {
  .dk-viewer__frame {
    height: 46vh;
    min-height: 260px;
  }
}

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

/* Tarjeta del catálogo: modelos 3D */
.product-card-image__badge {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(201, 162, 75, 0.6);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.78);
  color: #e7cf8f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.product-card-image--model {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 42%, #6b5128 0%, #302315 28%, #100e0b 58%, #050505 82%);
  color: #d5b875;
  font-size: 2.6rem;
}
