/* SquaredOps Tienda - estilos de la tienda pública (mobile-first). Sin dependencias ni fuentes externas. */
:root {
  color-scheme: light;
  --accent: #a8452a;
  --accent-ink: #ffffff;
  --accent-text-l: #a8452a;
  --accent-text-d: #e9967a;
  --accent-text: var(--accent-text-l);
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f4f0ea;
  --ink: #1c1917;
  --muted: #645d56;
  --line: #e7e1d8;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--bg));
  --shadow-sm: 0 1px 2px rgb(28 25 23 / .06), 0 1px 1px rgb(28 25 23 / .04);
  --shadow-md: 0 8px 24px -8px rgb(28 25 23 / .18), 0 2px 6px rgb(28 25 23 / .06);
  --shadow-lg: 0 24px 60px -20px rgb(28 25 23 / .35);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 16px;
  --header-h: 64px;
}
:root[data-fonts="editorial"] { --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent-text: var(--accent-text-d);
  --bg: #131110; --surface: #1c1917; --surface-2: #24201d; --ink: #f5f1ec; --muted: #b0a79d; --line: #34302b;
  --accent-soft: color-mix(in srgb, var(--accent) 22%, var(--bg));
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 10px 28px -8px rgb(0 0 0 / .6);
  --shadow-lg: 0 28px 70px -20px rgb(0 0 0 / .8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --accent-text: var(--accent-text-d);
    --bg: #131110; --surface: #1c1917; --surface-2: #24201d; --ink: #f5f1ec; --muted: #b0a79d; --line: #34302b;
    --accent-soft: color-mix(in srgb, var(--accent) 22%, var(--bg));
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 10px 28px -8px rgb(0 0 0 / .6);
    --shadow-lg: 0 28px 70px -20px rgb(0 0 0 / .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---- Barra superior ---- */
.topstrip { background: var(--ink); color: var(--bg); font-size: 13px; }
.topstrip .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 36px; padding-block: 6px; text-align: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; flex: none; box-shadow: 0 0 0 0 rgb(62 207 142 / .6); animation: pulse 2.4s infinite; }
.dot.off { background: #f59e0b; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(62 207 142 / 0); } 100% { box-shadow: 0 0 0 0 rgb(62 207 142 / 0); } }

/* ---- Cabecera ---- */
.header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 18px/1 var(--font-display); flex: none; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font: 650 18px/1.1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px 0 42px; transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 999px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; transition: background .2s, transform .2s var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-btn { background: var(--ink); color: var(--bg); }
.cart-btn:hover { background: var(--ink); filter: brightness(1.12); }
.badge-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 11px/20px var(--font-body); text-align: center; border: 2px solid var(--bg); }
.badge-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---- Hero ---- */
.hero { padding: 28px 0 8px; overflow-x: clip; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.1rem, 7.4vw, 3.9rem); margin-top: 14px; font-weight: 700; }
.hero p.lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; text-align: center; line-height: 1.25; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: #128c4a; color: #fff; }
.btn-wa:hover { filter: brightness(1.1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; filter: none; }
.btn-block { width: 100%; }
.hero-art { display: none; position: relative; height: 420px; }
.hero-art figure { position: absolute; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--surface); }
.hero-art figure:nth-child(1) { width: 56%; aspect-ratio: 4/5; left: 4%; top: 4%; rotate: -4deg; animation: floatA 7s ease-in-out infinite; }
.hero-art figure:nth-child(2) { width: 46%; aspect-ratio: 4/5; right: 4%; top: 18%; rotate: 5deg; animation: floatB 8s ease-in-out infinite; }
.hero-art figure:nth-child(3) { width: 36%; aspect-ratio: 4/5; left: 34%; bottom: 0; rotate: 1deg; animation: floatA 9s ease-in-out infinite reverse; }
@keyframes floatA { 50% { translate: 0 -8px; } }
@keyframes floatB { 50% { translate: 0 8px; } }

/* ---- Catálogo ---- */
.catalog { padding: 28px 0 56px; }
.catalog-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: end; }
.catalog-head h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gutter) 6px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 550; font-size: 14.5px; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--accent-text); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { opacity: .6; margin-left: 4px; font-weight: 500; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 18px; color: var(--muted); font-size: 14px; }
.select { height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 14px; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; list-style: none; margin: 0; padding: 0; }
.card { position: relative; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); isolation: isolate; box-shadow: var(--shadow-sm); }
.card-media > svg, .card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .3s; }
.card:hover .card-media > svg, .card:hover .card-media > img { transform: scale(1.05); }
.card.is-out .card-media > svg, .card.is-out .card-media > img { filter: grayscale(.7) opacity(.7); }
.tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tag.new { background: var(--accent); color: var(--accent-ink); }
.tag.out { background: var(--ink); color: var(--bg); }
.tag.sale { background: #b42318; color: #fff; left: auto; right: 10px; }
.quick { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-md); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s, color .2s; }
.quick:hover { background: var(--accent); color: var(--accent-ink); }
.quick:active { transform: scale(.9); }
.quick svg { width: 20px; height: 20px; }
.card-body { padding: 12px 2px 0; }
.card-cat { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.card-name { font: 600 16px/1.3 var(--font-body); margin: 2px 0 4px; }
.card-name a { color: var(--ink); text-decoration: none; }
.card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-media .quick { z-index: 3; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price s { color: var(--muted); font-weight: 450; margin-left: 6px; font-size: .9em; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); grid-column: 1 / -1; }
.empty strong { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: 6px; }

/* ---- Producto ---- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); padding: 18px 0 12px; }
.crumbs a { color: var(--muted); }
.product { display: grid; gap: 24px; padding-bottom: 40px; }
.gallery { display: grid; gap: 10px; }
.gallery-main { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-sm); position: relative; }
.gallery-main > svg { width: 100%; height: 100%; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; scale: 1.02; } }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); transition: border-color .2s, transform .2s var(--ease); }
.thumb[aria-current="true"] { border-color: var(--accent-text); }
.thumb:hover { transform: translateY(-2px); }
.thumb svg { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); margin-top: 10px; }
.info .price-lg { font-size: 1.6rem; margin-top: 10px; display: flex; align-items: baseline; gap: 10px; }
.info .price-lg s { font-size: 1.05rem; }
.info .desc { color: var(--muted); margin-top: 14px; max-width: 58ch; }
.opt { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.opt legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 10px; }
.opt legend span { color: var(--muted); font-weight: 450; margin-left: 6px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-row label { display: inline-flex; align-items: center; gap: 8px; min-width: 48px; min-height: 44px; padding: 0 16px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 550; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.opt-row label:hover { border-color: var(--accent-text); }
.opt-row input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }
.opt-row input:focus-visible + label { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.opt-row input:disabled + label { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .2); flex: none; }
.buy { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); height: 46px; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; font-size: 20px; line-height: 1; }
.qty button:hover:not([disabled]) { background: var(--surface-2); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.buy .btn-primary { flex: 1 1 150px; }
.stock-note { margin: 12px 0 14px; font-size: 14px; color: var(--muted); min-height: 22px; }
.stock-note.warn { color: #b45309; }
:root[data-theme="dark"] .stock-note.warn { color: #fbbf24; }
.accordion { margin-top: 26px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 22px; color: var(--muted); transition: rotate .25s var(--ease); }
.accordion details[open] summary::after { rotate: 45deg; }
.accordion .acc-body { padding: 0 0 18px; color: var(--muted); }
.related { padding: 8px 0 56px; }
.related h2 { font-size: 1.4rem; margin-bottom: 16px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.sticky-buy .price { font-size: 1.1rem; }
body.has-sticky { padding-bottom: 76px; }

/* ---- Cajones y diálogos ---- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); max-width: none; max-height: none; }
dialog::backdrop { background: rgb(12 10 9 / .55); backdrop-filter: blur(3px); animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); height: 100dvh; box-shadow: var(--shadow-lg); display: none; flex-direction: column; animation: slideIn .38s var(--ease) both; }
.drawer[open] { display: flex; }
.drawer.closing { animation: slideOut .24s ease-in both; }
.drawer.closing::backdrop { animation: fadeOut .24s ease-in both; }
@keyframes slideIn { from { translate: 100% 0; } }
@keyframes slideOut { to { translate: 100% 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.25rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 16px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: rise .4s var(--ease) both; }
.line-img { width: 68px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.line-name { font-weight: 600; line-height: 1.3; }
.line-var { font-size: 13.5px; color: var(--muted); }
.line .qty { height: 36px; margin-top: 8px; }
.line .qty button { width: 34px; height: 34px; font-size: 18px; }
.line-side { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 11px 14px; min-height: 46px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.field .err { color: #b42318; font-size: 13px; min-height: 0; }
:root[data-theme="dark"] .field .err { color: #f97066; }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.sum strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.fine { font-size: 12.5px; color: var(--muted); }
.preview { font-size: 13px; }
.preview summary { cursor: pointer; color: var(--accent-text); font-weight: 600; }
.preview pre { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 180px; overflow: auto; }
.notice { font-size: 13.5px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 18%, var(--surface)); border: 1px solid color-mix(in srgb, #f59e0b 40%, var(--line)); }
.cart-empty { text-align: center; padding: 56px 12px; color: var(--muted); }
.cart-empty svg { width: 56px; height: 56px; margin: 0 auto 12px; opacity: .5; }
.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-md); font-size: 14.5px; font-weight: 550; animation: toastIn .4s var(--ease) both; max-width: calc(100vw - 32px); }
.toast.out { animation: toastOut .3s ease-in both; }
@keyframes toastIn { from { opacity: 0; translate: -50% 16px; } }
@keyframes toastOut { to { opacity: 0; translate: -50% 10px; } }
body.has-sticky .toast { bottom: 90px; }

/* ---- Pie ---- */
.footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; gap: 24px; padding: 36px 0 26px; }
.footer h3 { font: 650 15px/1.2 var(--font-body); margin-bottom: 10px; letter-spacing: 0; }
.footer p, .footer li { color: var(--muted); font-size: 14.5px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.made { display: inline-flex; gap: 6px; align-items: center; }
.made a { font-weight: 650; color: var(--ink); }

/* ---- Pantallas grandes ---- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .hero { padding: 56px 0 24px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-art { display: block; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 20px); grid-template-columns: 88px 1fr; align-items: start; }
  .gallery-main { grid-column: 2; grid-row: 1; }
  .thumbs { grid-column: 1; grid-row: 1; grid-template-columns: 1fr; align-content: start; }
  .quick { opacity: 0; translate: 0 8px; }
  .card:hover .quick, .quick:focus-visible { opacity: 1; translate: 0 0; }
  .quick { transition: opacity .25s, translate .3s var(--ease), background .2s, color .2s; }
  .sticky-buy { display: none; }
  body.has-sticky { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .header .wrap { gap: 28px; }
}
@media (max-width: 899px) {
  .brand-name { font-size: 16px; }
  .search { max-width: none; }
  .header .wrap { grid-template-columns: auto 1fr auto; gap: 8px; }
  .quick { width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}
@media (max-height: 780px) {
  .drawer { overflow-y: auto; }
  .drawer-head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
  .drawer-body { flex: none; overflow: visible; }
}
@media (hover: none) { .quick { opacity: 1 !important; translate: 0 0 !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .dot { animation: none; }
  .card, .line, .gallery-main > svg { animation: none !important; }
}
html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }
@media print { .header, .topstrip, .drawer, .sticky-buy, .toast { display: none !important; } }

/* ---- Añadidos de la versión real (imágenes subidas y reserva sin foto) ---- */
.card-media > img, .gallery-main > img, .hero-art figure > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main > img { animation: fade .45s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; font: 700 clamp(2rem, 8vw, 4.5rem)/1 var(--font-display); color: var(--accent-text); background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.line-img .ph { font-size: 1.5rem; }
.thumb .ph { font-size: 1.25rem; }
.cat-head { padding: 8px 0 4px; }
.cat-head h1 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); }
.cat-head p { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.card[hidden] { display: none; }
.noscript-note { padding: 12px 0; color: var(--muted); }
a.chip { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
a.chip[aria-pressed="true"] { color: var(--bg); }
.chips a.chip:hover { color: inherit; }
.chips a.chip[aria-pressed="true"]:hover { color: var(--bg); }
.card-media > img, .gallery-main > img, .thumb img, .line-img img, .hero-art figure > img { color: transparent; background: var(--surface-2); }


/* ---- Pedido guardado (checkout) y seguimiento ---- */
.chk-form { display: grid; gap: 12px; padding: 14px 4px 6px; border-top: 1px solid var(--line); margin-top: 8px; }
.drawer-foot.checkout { gap: 8px; }
.drawer-foot.checkout .fine { margin: 0; }
.field .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.fine.ok { color: #067647; font-weight: 600; } .fine.bad { color: #b42318; font-weight: 600; }
:root[data-theme="dark"] .fine.ok { color: #47cd89; } :root[data-theme="dark"] .fine.bad { color: #f97066; }
.chk-sum { display: grid; gap: 6px; padding: 10px 0; border-top: 1px dashed var(--line); transition: opacity .15s; }
.chk-sum.busy { opacity: .55; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sum-row.disc { color: #067647; } :root[data-theme="dark"] .sum-row.disc { color: #47cd89; }
fieldset.ship { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
fieldset.ship legend { font-size: 13.5px; font-weight: 600; padding: 0 6px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent-text); background: var(--accent-soft); }
.opt small { color: var(--muted); } .opt .cost { font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-accent[disabled] { opacity: .5; cursor: not-allowed; }
.order-done { text-align: center; padding: 28px 8px; display: grid; gap: 6px; justify-items: center; }
.order-done svg { width: 64px; height: 64px; color: #067647; }
.order-code { font: 800 clamp(26px, 8vw, 40px)/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; padding: 8px 14px; background: var(--surface-2); border-radius: 12px; border: 1px dashed var(--line); user-select: all; }
.track { padding-block: 28px 60px; max-width: 720px; }
.track h1 { margin-bottom: 18px; }
.track-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow-sm); }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.track-status { font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.steps { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; font-size: 12.5px; color: var(--muted); }
.steps li { display: grid; gap: 6px; justify-items: center; }
.steps .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.steps li.done .dot { background: var(--accent); } .steps li.now .dot { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); } .steps li.now { color: var(--ink); font-weight: 700; }
.track-h { font-size: 1.05rem; margin-top: 6px; }
.track-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.track-lines li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.track-form { display: grid; gap: 14px; max-width: 420px; }
.muted { color: var(--muted); }
@media (max-width: 520px) { .steps { font-size: 11px; } }


/* ---- Páginas propias ---- */
.page { padding-block: 28px 64px; max-width: 760px; }
.page h1 { margin-bottom: 18px; }
.pg-h { margin: 26px 0 8px; } h2.pg-h { font-size: 1.5rem; } h3.pg-h { font-size: 1.15rem; }
.pg-text p { margin: 0 0 12px; } .pg-text a, .page a:not(.btn) { color: var(--accent-text); }
.pg-list { margin: 8px 0 14px; padding-left: 1.3em; display: grid; gap: 4px; }
.pg-faq { display: grid; gap: 8px; margin: 12px 0; }
.pg-faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 12px 16px; }
.pg-faq summary { cursor: pointer; font-weight: 650; }
.pg-faq details[open] summary { margin-bottom: 8px; }
.pg-fig { margin: 18px 0; } .pg-fig img { width: 100%; height: auto; border-radius: var(--r-md); display: block; } .pg-fig figcaption { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.pg-btn { margin: 16px 0; } .pg-hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---- Temas de la tienda (data-skin en <html>). El acento y el modo claro/oscuro siguen funcionando en todos. ---- */
:root[data-skin="minimal"] { --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f4f5; --ink: #0a0a0a; --muted: #5f6368; --line: #e4e4e7; --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --shadow-sm: none; --shadow-md: 0 1px 2px rgb(0 0 0 / .08); --shadow-lg: 0 10px 30px -12px rgb(0 0 0 / .25); }
:root[data-skin="minimal"] .btn, :root[data-skin="minimal"] .chip, :root[data-skin="minimal"] .select, :root[data-skin="minimal"] .search input { border-radius: 6px; }
:root[data-skin="minimal"] .card-media { box-shadow: none; border: 1px solid var(--line); }
:root[data-skin="minimal"] h1, :root[data-skin="minimal"] h2, :root[data-skin="minimal"] h3 { letter-spacing: -.035em; font-weight: 700; }
:root[data-skin="minimal"] .topstrip { background: transparent; color: var(--muted); border-bottom: 1px solid var(--line); }

:root[data-skin="noche"] { --bg: #0f0e0d; --surface: #191715; --surface-2: #221f1c; --ink: #f5f1ec; --muted: #b0a79d; --line: #34302b; --accent-text: var(--accent-text-d); --shadow-sm: 0 1px 2px rgb(0 0 0 / .5); --shadow-md: 0 10px 28px -8px rgb(0 0 0 / .65); --shadow-lg: 0 28px 70px -20px rgb(0 0 0 / .85); }
:root[data-skin="noche"] .topstrip { background: var(--accent); color: var(--accent-ink); }
:root[data-skin="noche"][data-theme="light"] { --bg: #faf8f5; --surface: #ffffff; --surface-2: #f4f0ea; --ink: #1c1917; --muted: #645d56; --line: #e7e1d8; --accent-text: var(--accent-text-l); }

:root[data-skin="vivo"] { --bg: color-mix(in srgb, var(--accent) 7%, #ffffff); --surface: #ffffff; --surface-2: color-mix(in srgb, var(--accent) 12%, #ffffff); --line: color-mix(in srgb, var(--accent) 22%, #ffffff); --r-sm: 14px; --r-md: 24px; --r-lg: 32px; --shadow-sm: 0 4px 14px -6px color-mix(in srgb, var(--accent) 45%, transparent); --shadow-md: 0 14px 34px -12px color-mix(in srgb, var(--accent) 55%, transparent); }
:root[data-skin="vivo"] .btn-primary, :root[data-skin="vivo"] .btn-accent { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #ffb300)); }
:root[data-skin="vivo"] .card-media { border: 3px solid var(--surface); }
:root[data-skin="vivo"] h1, :root[data-skin="vivo"] h2 { font-weight: 800; }
:root[data-skin="vivo"] .topstrip { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #ffb300)); color: var(--accent-ink); }
:root[data-skin="vivo"][data-theme="dark"] { --bg: color-mix(in srgb, var(--accent) 14%, #12100f); --surface: color-mix(in srgb, var(--accent) 10%, #1c1917); --surface-2: color-mix(in srgb, var(--accent) 18%, #1c1917); --line: color-mix(in srgb, var(--accent) 28%, #2a2623); }

:root[data-skin="editorial"] { --bg: #f4eee2; --surface: #fffdf8; --surface-2: #ece4d3; --ink: #2a2218; --muted: #6c6252; --line: #d6ccb6; --r-sm: 0; --r-md: 2px; --r-lg: 4px; --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; --shadow-sm: none; --shadow-md: 0 2px 0 rgb(42 34 24 / .12); }
:root[data-skin="editorial"] .btn, :root[data-skin="editorial"] .chip, :root[data-skin="editorial"] .select, :root[data-skin="editorial"] .search input { border-radius: 2px; }
:root[data-skin="editorial"] .card-media { border: 1px solid var(--line); box-shadow: none; }
:root[data-skin="editorial"] h1, :root[data-skin="editorial"] h2, :root[data-skin="editorial"] h3 { font-weight: 600; letter-spacing: -.01em; }
:root[data-skin="editorial"] .topstrip { background: var(--ink); letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
:root[data-skin="editorial"][data-theme="dark"] { --bg: #17130d; --surface: #201a12; --surface-2: #2a2218; --ink: #f1e9d8; --muted: #b3a688; --line: #3b3222; }
