/* Impresión 3D en la ficha (docs/CONTRATO_AMPLIACION_PRINT3D_PRESENTACION_V1.md §5.2, §5.3, §6.4, §7 y §8).
   Diseño: Browsy tanda 5 (BROWSY_PR3359_ARCHIVO_20261101/tanda5), reglas literales de gen-src.html y base.css
   (.vars, .pills, .sw, .vns, .nsb, .prints/.pgrid/.pt, .set/.slot/.bdg, .snote), con el prefijo p3d- para no
   pisar estilos de la ficha. Tokens de Browsy: --o, --ink, --mut, --b, --bg2. */
.p3d {
  --p3d-o: var(--brand, #EE5A24);
  --p3d-ink: #15161A;
  --p3d-mut: #6B6E78;
  --p3d-b: #E9E9EE;
  --p3d-bg2: #F6F6F8;
  color: var(--p3d-ink);
}
.p3d svg.p3d-i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none }

/* ---- selector de línea y color (Browsy .vars) ---- */
.p3d-vars { display: grid; gap: 10px; margin: 14px 0 0 }
.p3d-vars .p3d-vh { font-size: 12.5px; color: var(--p3d-mut); display: block; margin-bottom: 6px }
.p3d-vars .p3d-vh b { color: var(--p3d-ink); font-weight: 600 }
.p3d-pills { display: flex; flex-wrap: wrap; gap: 6px }
.p3d-pills a { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border: 1px solid var(--p3d-b); border-radius: 99px; color: var(--p3d-ink); text-decoration: none; background: #fff; max-width: 100%; overflow-wrap: anywhere }
.p3d-pills a.on { background: var(--p3d-ink); color: #fff; border-color: var(--p3d-ink) }
.p3d-sw { display: flex; flex-wrap: wrap; gap: 9px }
.p3d-sw button { width: 34px; height: 34px; border-radius: 99px; border: 2px solid #fff; box-shadow: 0 0 0 1px #D3D4DC; padding: 0; position: relative; background: var(--c, #fff); background-size: cover; background-position: center; cursor: pointer; flex: none }
.p3d-sw button.on { box-shadow: 0 0 0 2px var(--p3d-ink) }
.p3d-sw button.ns { opacity: .6 }
.p3d-sw button.ns::after { content: ''; position: absolute; inset: -2px; border-radius: 99px; background: linear-gradient(135deg, transparent 45%, #fff 45%, #fff 49%, #B3261E 49%, #B3261E 53%, #fff 53%, #fff 57%, transparent 57%) }
.p3d-sw button.tr { box-shadow: 0 0 0 1px #D3D4DC, inset 0 0 0 1px #D3D4DC }
.p3d-sw button.on.tr { box-shadow: 0 0 0 2px var(--p3d-ink), inset 0 0 0 1px #D3D4DC }
/* sin muestra oficial: círculo neutro con borde, sin relleno (§4.4) */
.p3d-sw button.none { background: #fff; box-shadow: 0 0 0 1px #9C9EA8 }
.p3d-sw button.none.on { box-shadow: 0 0 0 2px var(--p3d-ink) }
.p3d-sw button:focus-visible { outline: 2px solid var(--p3d-o); outline-offset: 3px }
.p3d-sw[aria-busy="true"] button { cursor: progress }
.p3d-vns { font-size: 12px; color: var(--p3d-mut); margin-top: 8px; line-height: 1.4 }
.p3d-vns b { color: #B3261E; font-weight: 600 }
.p3d-vns b.p3d-ped { color: var(--p3d-ink) }

/* ---- estado «Sin stock hoy» y pedible (Browsy .nsb, .buy.ns) ---- */
.p3d-nsb { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #4A4E59; background: #EEEFF2; border-radius: 99px; padding: 4px 10px; margin: 10px 0 0 }
.p3d-ped-line { font-size: 12.5px; color: var(--p3d-mut); margin-top: 8px; line-height: 1.4 }
.p3d-ns-btn { width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: #C9CBD3; color: #fff; font-weight: 700; font-size: 15px; cursor: not-allowed; margin-bottom: 8px }
.p3d-nsl { font-size: 12.5px; color: var(--p3d-mut); margin: 8px 0 0; line-height: 1.4 }
html[data-p3d-stock="sin_stock"] #pdpStickySummaryCta { background: var(--brand, #EE5A24) }

/* ---- «Impreso con este color» (Browsy v2 .prints/.pgrid/.pt) ---- */
.p3d-prints { grid-column: 1 / -1; margin-top: 14px; padding: 0 14px 14px; min-width: 0 }
.p3d-prints .p3d-ph2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--p3d-mut); margin-bottom: 8px }
.p3d-prints .p3d-ph2 b { color: var(--p3d-ink); font-size: 14px; font-weight: 600 }
.p3d-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px }
.p3d-pt { aspect-ratio: 1; border-radius: 14px; background: var(--p3d-bg2); overflow: hidden; position: relative; min-width: 0 }
.p3d-pt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }

/* ---- setup del filamento y selector de la impresora (Browsy .set/.slot/.bdg/.snote) ---- */
.p3d-sec { padding: 48px 0 }
.p3d-sec .p3d-w { max-width: 1344px; margin: 0 auto; padding: 0 32px }
.p3d-sec h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15 }
.p3d-sec .p3d-lead { color: var(--p3d-mut); font-size: 15px; margin-top: 6px }
.p3d-snote { display: flex; gap: 10px; align-items: start; background: #FFF1DB; color: #7A4A00; border: 1px solid #F3D9A8; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; margin: 16px 0 0; max-width: 760px }
.p3d-snote svg { width: 18px; height: 18px; margin-top: 1px }
.p3d-snote .p3d-enc-none { display: block; margin-top: 4px }
.p3d-snote .p3d-enc-wa { color: inherit; font-weight: 700; text-decoration: underline }
.p3d-mat { margin-top: 26px }
.p3d-mat > h3 { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--p3d-mut); margin-bottom: 10px }
.p3d-set { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; align-items: stretch }
.p3d-mat .p3d-set { margin-top: 0 }
.p3d-slot { border: 1.5px dashed #D3D4DC; border-radius: 16px; padding: 14px; min-height: 250px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--p3d-mut); background: #fff; min-width: 0 }
.p3d-slot.sel { border: 1.5px solid var(--p3d-ink) }
.p3d-slot .p3d-pic { height: 96px; border-radius: 12px; background: var(--p3d-bg2); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; overflow: hidden }
.p3d-slot .p3d-pic img { display: block; height: 96px; width: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 4px }
.p3d-slot .p3d-cat { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere }
.p3d-slot b { color: var(--p3d-ink); font-size: 14px; line-height: 1.3; overflow-wrap: anywhere }
.p3d-slot .p3d-pp { margin-top: auto; color: var(--p3d-ink); font-weight: 600 }
.p3d-slot .p3d-cq { font-size: 12px; color: var(--p3d-mut) }
.p3d-slot .p3d-bnote { font-size: 12px; color: var(--p3d-mut); margin-top: -2px }
.p3d-slot .p3d-why { font-size: 12px; color: var(--p3d-mut) }
.p3d-slot .p3d-sw { gap: 6px }
.p3d-slot .p3d-sw button { width: 24px; height: 24px }
.p3d-bdg { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 9px 3px 7px; line-height: 1.3 }
.p3d-bdg.okc { background: #E6F4EC; color: #17703D }
.p3d-bdg.pre { background: #FDE7E4; color: #B3261E }
.p3d-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px }
.p3d-act button, .p3d-act a { flex: 1 1 auto; min-height: 36px; border-radius: 10px; border: 1px solid var(--p3d-b); background: #fff; font-weight: 600; font-size: 13px; color: var(--p3d-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; cursor: pointer; text-align: center }
.p3d-act .add { background: var(--p3d-ink); color: #fff; border-color: var(--p3d-ink) }
.p3d-act .add[disabled] { opacity: .6; cursor: progress }
.p3d-act .wa { background: var(--p3d-o); color: #fff; border-color: var(--p3d-o) }
.p3d-slot .p3d-ack { font-size: 12px; color: #17703D; display: flex; gap: 5px; align-items: center }
.p3d-sub { margin-top: 18px; background: #15161A; color: #fff; border-radius: 16px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-size: 14px }
.p3d-sub[hidden] { display: none }
.p3d-sub strong { font-size: 18px }
.p3d-sub small { color: #A3A6B0; font-size: 12.5px }

@media (max-width: 1000px) {
  .p3d-set { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 600px) {
  .p3d-sec { padding: 32px 0 }
  .p3d-sec .p3d-w { padding: 0 16px }
  .p3d-sec h2 { font-size: 22px }
  .p3d-set { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-right: -16px; padding-right: 16px }
  .p3d-set > * { flex: 0 0 72%; scroll-snap-align: start }
  /* «Impreso con este color» en el celular: tira horizontal con dos lugares y medio a la vista (§7). */
  .p3d-pgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin-right: -16px; padding-right: 16px; scrollbar-width: none }
  .p3d-pgrid::-webkit-scrollbar { display: none }
  .p3d-pt { flex: 0 0 40%; scroll-snap-align: start }
}
