/* Fichas de producto (p/*.html y <idioma>/p/*.html) */
:root {
  --bg: #f1f3f5; --surface: #fff; --ink: #1b2229; --muted: #5b6672; --line: #d9dee3; --accent: #e2591b; --accent-ink: #fff;
  --steel: #22303d; --steel-ink: #e9eef3; --ok: #2c7a4b; --bad: #b3261e; --sale: #d7261e; --hot: #ffc21a;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif; --font-body: "IBM Plex Sans", system-ui, sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12171c; --surface: #1a2128; --ink: #e6eaee; --muted: #9aa6b2; --line: #2c3640; --accent: #f06b2c; --accent-ink: #14100d; --steel: #0b1014; --ok: #5cc48a; --bad: #f2867d; --sale: #ef3b30; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font-body); }
a { color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top { background: var(--steel); color: var(--steel-ink); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 12px; }
.top .brand { color: inherit; text-decoration: none; font: 700 24px var(--font-display); text-transform: uppercase; margin-right: auto; }
.top .langs { display: flex; gap: 8px; font-size: 13px; font-weight: 600; }
.top .langs a { color: var(--steel-ink); opacity: .7; text-decoration: none; }
.top .langs a[aria-current="true"] { opacity: 1; color: var(--hot); }
.top .cart { background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 7px 14px; border-radius: 3px; }
.crumbs { font-size: 13px; color: var(--muted); padding-block: 16px 8px; }
.crumbs a { color: var(--muted); }
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.prod .pic { background: #fff; display: grid; place-items: center; aspect-ratio: 1; max-width: 100%; }
.prod .pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tag { display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: .04em; border: 1px solid var(--line); background: var(--bg); padding: 1px 7px; border-radius: 2px; }
h1 { font: 700 clamp(26px, 3.4vw, 38px)/1.1 var(--font-display); text-transform: uppercase; margin: 10px 0 6px; text-wrap: balance; overflow-wrap: anywhere; }
.ids { font: 12.5px var(--font-mono); color: var(--muted); }
.price { font: 700 40px/1 var(--font-display); margin-top: 18px; font-variant-numeric: tabular-nums; }
.price small { font: 400 13px var(--font-body); color: var(--muted); margin-left: 6px; }
.promo .price { color: var(--sale); }
.was { font-size: 14px; color: var(--muted); margin-top: 4px; }
.was b { color: var(--sale); margin-left: 8px; }
.off { display: inline-block; background: var(--sale); color: #fff; font: 700 18px var(--font-display); padding: 3px 8px; margin-top: 10px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--ok); } .stock.out { color: var(--bad); }
.buy { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.buy input { width: 76px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); font: inherit; }
.buy button { flex: 1; min-width: 200px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 3px; font: 600 16px var(--font-body); padding: 12px 18px; cursor: pointer; }
.buy button:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.ship { margin-top: 16px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ship select { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 5px 8px; max-width: 100%; }
.ship b { font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
section.desc { background: var(--surface); border: 1px solid var(--line); padding: 24px; margin-block: 18px 40px; }
section.desc h2 { font: 700 22px var(--font-display); text-transform: uppercase; margin: 0 0 10px; }
section.desc p { max-width: 75ch; margin: 0 0 10px; }
table.specs { border-collapse: collapse; margin-top: 16px; font-size: 14px; }
table.specs th, table.specs td { border-bottom: 1px solid var(--line); padding: 7px 14px 7px 0; text-align: left; }
table.specs th { color: var(--muted); font-weight: 500; }
footer { color: var(--muted); font-size: 13px; padding-block: 20px 40px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 760px) { .prod { grid-template-columns: 1fr; padding: 16px; } }
