/* Ficha de producto: galería con miniaturas, bloque de compra, ficha técnica, barra fija móvil. */
.prod-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gal { position: sticky; top: calc(var(--nav-h) + var(--cats-h) + 16px); }
.gal-main { position: relative; aspect-ratio: 1 / 1; background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gal-main .bdgs { position: absolute; left: 14px; top: 14px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.gal-slide { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; padding: 0; display: grid; place-items: center; opacity: 0; transition: opacity .45s var(--ease); cursor: zoom-in; }
.gal-slide.on { opacity: 1; position: relative; }
.gal-slide img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gal-main.sin-foto .gal-slide { cursor: default; color: var(--dim); gap: 10px; align-content: center; }
.gal-main.sin-foto .ph-ico { width: 30%; height: 30%; color: #c3cad3; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surf); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
.gal-nav .ic-svg { width: 20px; height: 20px; }
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs button { width: 72px; height: 72px; flex: none; border-radius: var(--r-in); border: 2px solid var(--line); background: var(--tile); padding: 0; overflow: hidden; transition: border-color .25s; }
.gal-thumbs button.on { border-color: var(--accent-2); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.info h1 { font-size: calc(clamp(1.6rem, 3vw, 2.4rem) * var(--display-scale) * var(--k-display)); }
.info .eyebrow { margin-bottom: 10px; }
.info .cod { margin-top: 10px; font-size: 13px; color: var(--dim); }
.info .corta { margin-top: 16px; font-size: 1.02rem; }
.compra { margin-top: 22px; padding: 22px; border-radius: var(--r); background: var(--surf); border: 1px solid var(--line); box-shadow: var(--inset-hi); display: grid; gap: 10px; }
.compra .precio-row.big .precio { font-size: calc(2.1rem * var(--k-precio)); }
.compra .precio-row.big .precio-antes { font-size: 1rem; }
.disp-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.acciones { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 8px; }
.acciones .qty { height: 56px; } .acciones .qty button { width: 48px; } .acciones .qty input { width: 52px; }
.acciones .btn-block { grid-column: 1 / -1; }
.ventajas { margin-top: 20px; }
.ventajas li .ic-svg { color: var(--accent-2); }
.suc { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); }
.suc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; font-size: 14.5px; }
.suc summary::-webkit-details-marker { display: none; }
.suc summary .ic-svg { width: 18px; height: 18px; color: var(--accent-2); }
.suc summary .ic-svg:last-child { margin-left: auto; color: var(--dim); transition: transform .3s var(--ease); }
.suc[open] summary .ic-svg:last-child { transform: rotate(180deg); }
.suc ul { list-style: none; padding: 0 16px 12px; display: grid; gap: 8px; }
.suc li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.suc li small { display: block; color: var(--dim); font-size: 12.5px; }
.share { display: flex; gap: 8px; margin-top: 18px; }

.desc-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.desc-grid h2 { margin-bottom: 16px; }
.ficha-datos { padding: 20px; border-radius: var(--r); background: var(--surf); border: 1px solid var(--line); }
.ficha-datos h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.ficha-datos dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; }
.ficha-datos dt { color: var(--muted); } .ficha-datos dd { margin: 0; font-weight: 600; }
.ficha-datos dd a { color: var(--accent-2); }

/* barra fija (solo móvil) */
.barra-compra { display: none; }
@media (max-width: 960px) {
  .prod-grid { grid-template-columns: 1fr; }
  .gal { position: static; }
  .desc-grid { grid-template-columns: 1fr; }
  .barra-compra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--glass-solid); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
  .barra-compra.show { transform: none; }
  .barra-compra .bc-p { display: flex; align-items: baseline; gap: 8px; }
  .barra-compra .precio { font-size: 1.3rem; }
  .barra-compra .btn { --h: 46px; padding: 0 18px; }
}
@media (max-width: 560px) { .acciones { grid-template-columns: 1fr; } .acciones .qty { width: 100%; justify-content: space-between; } .acciones .qty input { flex: 1; } }

/* visor */
.visor { border: 0; padding: 0; background: rgba(6, 9, 14, .92); width: 100vw; height: 100dvh; max-width: none; max-height: none; display: none; place-items: center; }
.visor[open] { display: grid; }
.visor::backdrop { background: transparent; }
.visor img { max-width: min(96vw, 1200px); max-height: 92dvh; object-fit: contain; border-radius: var(--r-in); background: #fff; padding: 2%; }
.visor .visor-x { position: fixed; top: 16px; right: 16px; color: #fff; border-color: rgba(255, 255, 255, .3); }
.visor .gal-nav { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
