.ngon3d-calc [hidden] {
  display: none !important;
}

.ngon3d-calc {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid #e3e5ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-size: 15px;
  color: #1c1f26;
}

.ngon3d-calc-titulo {
  margin: 0 0 18px;
  font-size: 20px;
  text-align: center;
}

.ngon3d-campo {
  margin-bottom: 14px;
}

.ngon3d-campo > label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.ngon3d-campo select,
.ngon3d-campo input[type='number'] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d5d8de;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
}

.ngon3d-toggle {
  display: flex;
  gap: 8px;
}

.ngon3d-tec {
  flex: 1;
  padding: 10px;
  border: 1px solid #d5d8de;
  border-radius: 8px;
  background: #f5f6f8;
  font-size: 14px;
  cursor: pointer;
}

.ngon3d-tec.activa {
  background: #f5c518;
  border-color: #d4a80f;
  font-weight: 700;
}

.ngon3d-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  margin-bottom: 4px;
  cursor: pointer;
}

.ngon3d-check input {
  margin: 0;
}

.ngon3d-avanzado {
  padding: 12px;
  background: #f5f6f8;
  border-radius: 8px;
  margin-bottom: 14px;
}

.ngon3d-resultado {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #d5d8de;
  text-align: center;
}

.ngon3d-precio {
  font-size: 26px;
  font-weight: 800;
}

.ngon3d-desglose {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.ngon3d-aviso {
  font-size: 12px;
  color: #6b7280;
  margin: 10px 0 0;
}

.ngon3d-wa {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 22px;
  background: #25d366;
  color: #fff !important;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 15px;
}

.ngon3d-wa:hover {
  background: #1fb857;
}

/* ---- Visor 3D ---- */

.ngon3d-dropzone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  padding: 22px 14px;
  border: 2px dashed #d4a80f;
  border-radius: 10px;
  background: #fffbea;
  cursor: pointer;
  margin-bottom: 14px;
  font-size: 13px;
  color: #6b7280;
}

.ngon3d-dropzone strong {
  color: #1c1f26;
  font-size: 15px;
}

.ngon3d-dropzone.arrastrando {
  background: #fff3c4;
  border-color: #b8920d;
}

.ngon3d-error {
  background: #fdecec;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.ngon3d-visor-wrap {
  margin-bottom: 12px;
}

.ngon3d-visor {
  width: 100%;
  height: 320px;
  border: 1px solid #e3e5ea;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(#fafbfc, #eef0f3);
  touch-action: none;
}

.ngon3d-visor canvas {
  display: block;
}

.ngon3d-visor-ayuda {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin: 6px 0 0;
}

.ngon3d-modelo-info {
  margin-bottom: 14px;
  padding: 12px;
  background: #f5f6f8;
  border-radius: 10px;
}

.ngon3d-modelo-info > label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.ngon3d-dims {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ngon3d-dims span {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  gap: 3px;
}

.ngon3d-dims input {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #d5d8de;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.ngon3d-quitar {
  margin-top: 10px;
  background: none;
  border: 1px solid #d5d8de;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
}

.ngon3d-quitar:hover {
  color: #dc2626;
  border-color: #dc2626;
}

/* ---- Galería 3D ---- */

.ngon3d-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 10px 0;
}

.ngon3d-gal-item {
  background: #fff;
  border: 1px solid #e3e5ea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.ngon3d-gal-canvas {
  position: relative;
  height: 280px;
  background: linear-gradient(#fafbfc, #e9ebef);
  touch-action: pan-y;
}

.ngon3d-gal-canvas canvas {
  display: block;
  cursor: grab;
}

.ngon3d-gal-canvas canvas:active {
  cursor: grabbing;
}

.ngon3d-gal-cargando {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  font-size: 13px;
}

.ngon3d-gal-canvas.cargado .ngon3d-gal-cargando,
.ngon3d-gal-canvas.error .ngon3d-gal-cargando {
  display: none;
}

.ngon3d-gal-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 13px;
}

.ngon3d-gal-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ngon3d-gal-zoom button {
  width: 32px;
  height: 32px;
  border: 1px solid #d5d8de;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #1c1f26;
}

.ngon3d-gal-zoom button:hover {
  background: #f5c518;
  border-color: #d4a80f;
}

.ngon3d-gal-titulo {
  margin: 12px 16px 4px;
  font-size: 17px;
}

.ngon3d-gal-desc {
  margin: 0 16px 14px;
  font-size: 13.5px;
  color: #6b7280;
}

.ngon3d-gal-ayuda {
  text-align: center;
  font-size: 13px;
  color: #9aa0a6;
  margin-top: 14px;
}

@media (max-width: 480px) {
  .ngon3d-calc {
    padding: 16px;
  }

  .ngon3d-dims {
    grid-template-columns: repeat(2, 1fr);
  }

  .ngon3d-visor {
    height: 260px;
  }

  .ngon3d-galeria {
    grid-template-columns: 1fr;
  }
}
