/* Distribuidora JCB · hoja de estilos única.
   Tokens primero; los componentes solo usan var(--…). Sin build: se sirve tal cual. */

/* Tipografías propias (variables, subconjunto latino; incluye tildes y ñ). Licencia SIL OFL 1.1. */
@font-face {
  font-family: 'Rubik';
  src: url('/fonts/rubik-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/nunito-sans-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Primitivos */
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-400: #fb923c;
  --orange-500: #ea580c; /* naranja de marca */
  --orange-600: #c2410c;
  --orange-700: #9a3412;
  --ink-950: #171717;
  --ink-800: #262626;
  --ink-600: #525252;
  --ink-300: #d4d4d4;
  --ink-200: #e5e5e5;
  --ink-100: #f4f4f5;
  --ink-50: #fafafa;
  --white: #ffffff;
  --green-700: #15803d;
  --red-700: #b91c1c;

  /* Semánticos */
  --color-bg: var(--ink-50);
  --color-surface: var(--white);
  --color-fg: var(--ink-800);
  --color-muted-fg: var(--ink-600);
  --color-border: var(--ink-200);
  --color-border-strong: var(--ink-300);
  --color-tile: var(--ink-100);
  --color-accent: var(--orange-500);
  --color-accent-hover: var(--orange-400);
  --color-on-accent: #000000; /* negro sobre naranja: 5.9:1 */
  --color-accent-text: var(--orange-600);
  --color-inverse: var(--ink-950);
  --color-success: var(--green-700);
  --color-error: var(--red-700);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-heading: 'Rubik', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --shadow-md: 0 6px 16px rgba(0, 0, 0, .08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .18);
  --container: 1280px;
  --gutter: 16px;
  --dur: .2s;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-fg);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--color-accent-text); }
a:hover { color: var(--orange-700); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange-600); outline-offset: 2px; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--color-muted-fg); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--color-accent-text); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur), border-color var(--dur);
}
.btn-accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn-accent:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn-ghost { background: var(--color-surface); color: var(--color-fg); border-color: var(--color-border-strong); }
.btn-ghost:hover { background: var(--color-tile); border-color: var(--ink-800); color: var(--color-fg); }
.btn-dark { background: var(--color-inverse); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.is-added { background: var(--color-success); color: var(--white); }
.count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--color-accent); color: var(--color-on-accent);
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Barra superior y cabecera ---------- */
.topbar { background: var(--color-inverse); color: var(--ink-200); font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--orange-400); font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--orange-100); }
.topbar .topbar-address { display: none; }
@media (min-width: 640px) { .topbar .topbar-address { display: inline; } }

.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 48px; width: auto; }
@media (min-width: 768px) { .logo img { height: 56px; } }
.search { position: relative; order: 3; flex: 1 1 100%; min-width: 0; }
.search .icon { position: absolute; left: 14px; top: 14px; color: var(--color-muted-fg); }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-bg);
}
.search input:focus { background: var(--color-surface); }
.header-actions { margin-left: auto; display: flex; gap: 8px; }
.header-actions .label { display: none; }
@media (min-width: 768px) {
  .search { order: 0; flex: 1 1 360px; }
  .header-actions .label { display: inline; }
}

.catnav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; font-size: 15px; font-weight: 600; scrollbar-width: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--color-fg); text-decoration: none; white-space: nowrap; }
.catnav a:hover { background: var(--color-tile); }
.catnav a[aria-current="page"] { background: var(--orange-50); color: var(--orange-600); }
.catnav .catnav-end { margin-left: auto; }

/* ---------- Portada ---------- */
.hero { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 40px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 5fr 7fr; gap: 48px; padding-top: 40px; padding-bottom: 48px; } }
.hero-copy { display: flex; flex-direction: column; gap: 18px; max-width: 540px; }
.hero h1 { font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.01em; }
.hero-lead { font-size: 18px; color: var(--color-muted-fg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--color-border); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; font-size: 14px; color: var(--color-muted-fg); }
.checks li { display: flex; gap: 8px; }
.checks .icon { color: var(--color-accent-text); margin-top: 1px; }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 160px 160px auto; gap: 12px; }
@media (min-width: 768px) { .bento { grid-template-rows: 200px 200px auto; } }
.tile {
  display: flex; flex-direction: column; padding: 16px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  color: var(--color-fg); text-decoration: none;
  transition: box-shadow var(--dur), border-color var(--dur);
}
.tile:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); color: var(--color-fg); }
.tile img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.tile-big { grid-row: span 2; padding: 20px; }
.tile-kicker { font-size: 13px; font-weight: 700; color: var(--color-muted-fg); margin-top: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tile-name { font-family: var(--font-heading); font-weight: 500; font-size: 15px; margin-top: 8px; }
.tile-big .tile-name { font-size: 20px; margin-top: 0; }
/* Mosaico grande que rota: las diapositivas se apilan en la misma celda. */
.rotator { grid-row: span 2; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.rotator > .tile { grid-area: 1 / 1; min-height: 0; border: 0; border-radius: 0; }
.rotator > .tile:hover { box-shadow: none; }
.rot-controls { grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 0 12px 8px; }
.rot-dot { width: 24px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rot-dot::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--color-border-strong); transition: width var(--dur), background-color var(--dur); }
.rot-dot.is-active::before { width: 18px; background: var(--color-accent-text); }
.rot-dot:hover::before { background: var(--ink-600); }
.rot-pause { margin-left: auto; width: 32px; height: 32px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rot-pause:hover { background: var(--color-tile); }
@media (max-width: 639px) { .rot-dot { width: 18px; } }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; background: var(--orange-50); border-color: var(--orange-100); padding: 16px 20px; }
.tile-wide strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.tile-wide .go { font-weight: 700; color: var(--orange-600); white-space: nowrap; }

/* ---------- Catálogo ---------- */
.band { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.section { padding-top: 48px; padding-bottom: 56px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 24px; }
.section-head h2 { font-weight: 600; font-size: 28px; }
.section-head p { margin-top: 4px; font-size: 15px; color: var(--color-muted-fg); }

.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .grid-products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } }

.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  transition: box-shadow var(--dur), border-color var(--dur);
}
.pcard:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.pcard-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-tile); padding: 14px; }
@media (min-width: 640px) { .pcard-media { aspect-ratio: 4 / 3; padding: 20px; } }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px; }
@media (min-width: 640px) { .pcard-body { padding: 16px; } }
.brand { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted-fg); }
.pcard h3 { font-weight: 500; font-size: 15px; line-height: 1.3; }
@media (min-width: 640px) { .pcard h3 { font-size: 17px; } }
.pcard h3 a { color: inherit; text-decoration: none; }
.pcard h3 a:hover { color: var(--color-accent-text); }
.pcard p { font-size: 14px; color: var(--color-muted-fg); display: none; }
@media (min-width: 640px) { .pcard p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.pcard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.pcard-actions .btn { flex: 1; font-size: 15px; padding: 0 10px; }
.pcard-actions .btn-icon { flex: none; display: none; }
@media (min-width: 640px) { .pcard-actions .btn-icon { display: inline-flex; } }

.empty { padding: 48px 16px; text-align: center; color: var(--color-muted-fg); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); }
.empty p + p { margin-top: 12px; }

.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: var(--radius-lg); background: var(--color-inverse); color: var(--ink-200); }
.help h2 { color: var(--white); font-weight: 500; font-size: 24px; }
.help p { margin-top: 6px; max-width: 640px; }

/* ---------- Ficha de producto ---------- */
.crumbs { padding-top: 16px; font-size: 14px; color: var(--color-muted-fg); }
.crumbs a { color: var(--color-muted-fg); }
.pdp { display: grid; gap: 32px; padding-top: 20px; padding-bottom: 48px; align-items: start; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1fr 1fr; gap: 48px; } }
.pdp-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; }
.pdp-media img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { display: flex; flex-direction: column; gap: 20px; }
.pdp-info h1 { font-weight: 600; font-size: clamp(26px, 3vw, 34px); margin-top: 4px; }
.pdp-lead { font-size: 17px; color: var(--color-muted-fg); }
.pdp-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding-top: 20px; border-top: 1px solid var(--color-border); }
.pdp-buy .btn-accent { flex: 1 1 220px; }
.qty { display: inline-flex; height: 48px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface); }
.qty button { width: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--color-tile); }
.qty input, .qty output { width: 52px; border: 0; border-left: 1px solid var(--color-border-strong); border-right: 1px solid var(--color-border-strong); text-align: center; font-weight: 700; display: flex; align-items: center; justify-content: center; background: transparent; }
.qty-sm { height: 40px; }
.qty-sm button { width: 40px; font-size: 18px; }
.qty-sm output { width: 44px; }
.field-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.perks { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.perks li { display: flex; gap: 10px; }
.perks .icon { color: var(--color-accent-text); }
.prose { max-width: 72ch; }
.prose h2 { font-weight: 600; font-size: 24px; margin-bottom: 12px; }
.prose h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--color-accent-text); }

/* ---------- Blog ---------- */
.page-head { padding-top: 40px; padding-bottom: 24px; }
.page-head h1 { font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); }
.page-head p { margin-top: 8px; font-size: 18px; color: var(--color-muted-fg); max-width: 640px; }
.grid-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; padding-bottom: 56px; }
.post { display: flex; flex-direction: column; overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-fg); text-decoration: none; transition: box-shadow var(--dur), border-color var(--dur); }
.post:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); color: var(--color-fg); }
.post img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--color-tile); }
.post-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.post time { font-size: 14px; color: var(--color-muted-fg); }
.post h2 { font-weight: 500; font-size: 19px; }
.post p { font-size: 15px; color: var(--color-muted-fg); }
.article { max-width: 760px; padding-top: 24px; padding-bottom: 56px; }
.article h1 { font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); margin: 8px 0 16px; }
.article-lead { font-size: 20px; color: var(--color-muted-fg); margin-bottom: 24px; }
.article-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 32px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-tile); }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); }

/* ---------- Pie ---------- */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); color: var(--color-muted-fg); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--color-fg); margin-bottom: 6px; }
.footer-grid img { height: 48px; width: auto; }
.footer-legal { border-top: 1px solid var(--color-border); padding-top: 16px; padding-bottom: 96px; font-size: 14px; }
@media (min-width: 768px) { .footer-legal { padding-bottom: 16px; } }

/* ---------- Barra fija en celular ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--color-surface); border-top: 1px solid var(--color-border); }
.mobile-bar .btn-accent { flex: 1; }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Panel de cotización (dialog nativo) ---------- */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(100vw, 480px); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: var(--color-surface); color: var(--color-fg);
  box-shadow: var(--shadow-lg);
}
.drawer::backdrop { background: rgba(23, 23, 23, .55); }
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .25s ease-out; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); border-bottom: 1px solid var(--color-border); }
.drawer-head h2 { font-weight: 600; font-size: 22px; }
.drawer-head h2 span { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--color-muted-fg); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px var(--gutter) 16px; }
.drawer-foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 8px; }
.drawer-foot p { text-align: center; font-size: 14px; color: var(--color-muted-fg); }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--color-muted-fg); }
.icon-btn:hover { background: var(--color-tile); color: var(--color-fg); }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.cart-thumb { width: 72px; height: 72px; flex: none; background: var(--color-tile); border-radius: var(--radius-sm); padding: 8px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-info-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; line-height: 1.3; }
.cart-empty { margin: 32px 0; text-align: center; color: var(--color-muted-fg); }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-surface); }
.input:focus { border-color: var(--orange-600); }
textarea.input { resize: vertical; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; margin: 0; padding: 0; }
.choice { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); cursor: pointer; font-size: 15px; }
.choice:has(input:checked) { border: 2px solid var(--orange-600); background: var(--orange-50); }
.choice input { accent-color: var(--orange-600); }
.hint { font-size: 14px; color: var(--color-muted-fg); font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; }
.alert-error { background: #fef2f2; color: var(--color-error); border: 1px solid #fecaca; }
.success { text-align: center; padding: 40px 8px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.success .icon { width: 48px; height: 48px; color: var(--color-success); }
.success h3 { font-size: 22px; font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { text-align: center; max-width: 560px; padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.notfound .code { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--color-accent-text); }
.notfound h1 { font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); }
.notfound p { font-size: 18px; color: var(--color-muted-fg); }

/* ---------- Skeleton de carga (imágenes) ----------
   Solo con JS activo (clase .js en <html>): sin JS las imágenes se ven normal. */
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.js img.skel:not(.is-loaded) {
  background: linear-gradient(90deg, var(--ink-100) 30%, var(--ink-200) 50%, var(--ink-100) 70%) 0 0 / 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: var(--radius-sm);
  color: transparent; /* oculta el texto alt mientras carga */
}
.js img.skel.is-loaded { animation: fade-in .3s ease-out; }

/* ---------- Aviso de sitio de prueba ---------- */
.staging-bar { background: var(--orange-100); color: var(--orange-700); font-size: 14px; font-weight: 700; text-align: center; padding: 6px var(--gutter); }
.staging-bar a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
