/* producto.css — Página de cada producto (producto.php). Usa los colores y tipografías del sitio (css/style.css): sigue el modo claro/oscuro. */
.producto{ padding-top:24px; padding-bottom:64px; }
.producto .breadcrumbs{ font-size:14px; color:var(--ink-soft); margin:0 0 18px; }
.producto .breadcrumbs a{ text-decoration:underline; text-underline-offset:3px; }
.producto-grid{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:44px; align-items:start; }

/* galería */
.producto-foto-grande{ position:relative; aspect-ratio:1/1; border-radius:var(--radius-lg); overflow:hidden; background:var(--trad-light); box-shadow:var(--shadow); }
.producto-foto-grande img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transform:scale(1.04); transition:opacity .6s ease, transform 6s ease; }
.producto-foto-grande img.is-on{ opacity:1; transform:scale(1); }
.producto-sin-foto{ position:absolute; inset:0; display:grid; place-items:center; font-size:96px; }
.producto-miniaturas{ display:flex; gap:10px; margin-top:12px; }
.producto-miniaturas button{ flex:0 0 76px; height:76px; padding:0; border:2px solid transparent; border-radius:14px; overflow:hidden; cursor:pointer; background:var(--paper); opacity:.7; transition:opacity .2s, border-color .2s, transform .2s; }
.producto-miniaturas button:hover{ opacity:1; transform:translateY(-2px); }
.producto-miniaturas button.is-on{ opacity:1; border-color:var(--trad); }
.producto-miniaturas img{ width:100%; height:100%; object-fit:cover; }

/* datos */
.producto-info h1{ font-size:clamp(30px,4.2vw,46px); line-height:1.08; margin:4px 0 12px; text-wrap:balance; }
.producto-desc{ font-size:18px; line-height:1.55; color:var(--ink-soft); max-width:56ch; margin:0 0 18px; }
.producto-precios{ width:100%; max-width:460px; border-collapse:collapse; margin:6px 0 4px; }
.producto-precios th, .producto-precios td{ padding:11px 4px; border-bottom:1px dashed var(--line); text-align:left; font-weight:500; }
.producto-precios td{ text-align:right; font-family:var(--font-display); font-size:22px; font-weight:700; color:var(--trad); font-variant-numeric:tabular-nums; }
.producto-nota{ font-size:13px; margin:6px 0 18px; }
.producto-cta{ display:flex; flex-wrap:wrap; gap:12px; margin:4px 0 26px; }

/* compartir */
.producto-compartir{ padding:16px 18px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--paper); }
.producto-compartir-t{ display:block; font-weight:600; margin-bottom:10px; }
.producto-compartir-btns{ display:flex; flex-wrap:wrap; gap:8px; }
.cmp{ display:inline-flex; align-items:center; gap:6px; padding:9px 15px; border-radius:999px; border:1.5px solid var(--line); background:transparent; color:var(--ink); font:inherit; font-size:14px; font-weight:600; cursor:pointer; transition:transform .18s, background .18s, color .18s, border-color .18s; }
.cmp:hover{ transform:translateY(-2px); }
.cmp-wa:hover{ background:#25D366; border-color:#25D366; color:#fff; }
.cmp-fb:hover{ background:#1877F2; border-color:#1877F2; color:#fff; }
.cmp-x:hover{ background:#111; border-color:#111; color:#fff; }
.cmp-pi:hover{ background:#E60023; border-color:#E60023; color:#fff; }
.cmp-tg:hover{ background:#229ED9; border-color:#229ED9; color:#fff; }
.cmp-copiar:hover, .cmp-nativo:hover{ background:var(--ink); border-color:var(--ink); color:var(--paper); }
.cmp:focus-visible, .producto-miniaturas button:focus-visible{ outline:3px solid var(--honey); outline-offset:2px; }
.producto-compartir-ok{ display:block; min-height:20px; margin-top:8px; font-size:13px; color:var(--sano-dark); }

/* video y relacionados */
.producto-video{ margin-top:48px; }
.producto-video h2, .producto-relacionados h2{ font-size:26px; margin:0 0 14px; }
.producto-video video{ width:100%; max-width:760px; border-radius:var(--radius-md); background:#000; box-shadow:var(--shadow); }
.producto-relacionados{ margin-top:52px; }
.producto-rel-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.producto-rel{ display:flex; flex-direction:column; gap:8px; font-weight:600; font-size:15px; line-height:1.25; }
.producto-rel img, .producto-rel-vacio{ width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius-md); background:var(--trad-light); display:grid; place-items:center; font-size:44px; transition:transform .25s; }
.producto-rel:hover img{ transform:scale(1.03); }

@media (max-width:860px){
  .producto-grid{ grid-template-columns:1fr; gap:22px; }
  .producto-miniaturas button{ flex-basis:64px; height:64px; }
}
@media (prefers-reduced-motion:reduce){
  .producto-foto-grande img{ transition:opacity .2s; transform:none; }
  .cmp:hover, .producto-miniaturas button:hover{ transform:none; }
}
