/* =========================================================
   GABY ZAPATILLAS — hoja de estilos única
   Tokens → base → layout → componentes → páginas
   ========================================================= */

:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #efeeea;
  --ink: #111111;
  --ink-2: #34332f;
  --muted: #6b6a65;
  --line: #e2e1dc;
  --line-2: #d3d2cc;
  --accent: #ff5a1f;
  --accent-ink: #b93c0c;      /* naranja oscuro para texto sobre claro (AA) */
  --accent-soft: #fff0e8;
  --ok: #157a3c;
  --ok-soft: #e8f5ec;
  --err: #b42318;
  --err-soft: #fdecea;
  --warn: #92400e;
  --warn-soft: #fef6e7;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-d: 'Archivo', 'Inter', system-ui, sans-serif;

  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --r-xs: 7px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05);
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 12px 32px -16px rgba(17, 17, 17, .18);
  --shadow-lg: 0 24px 60px -20px rgba(17, 17, 17, .28);

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 900px) { :root { --header-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.05; letter-spacing: -.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.display { font-size: clamp(40px, 7.4vw, 104px); line-height: .94; letter-spacing: -.035em; }
.h2 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1; }
.h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -.015em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.5; max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
.accent-text { color: var(--accent-ink); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font: 600 15px/1 var(--font); letter-spacing: .01em; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(17,17,17,.45); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: #ff6a33; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--ink); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--wa { --btn-bg: #1faa53; --btn-fg: #fff; --btn-bd: #1faa53; }
.btn--wa:hover { --btn-bg: #1a9649; }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }

.link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .25s var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1.5px; }
.link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover .icon { transform: translateX(3px); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px; color: var(--ink);
  transition: background-color .18s var(--ease), transform .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Aviso de demostración ---------- */
.demo-bar {
  background: var(--ink); color: #e9e8e4; font-size: 13px; text-align: center;
  padding: 8px var(--gutter); line-height: 1.35;
}
.demo-bar strong { color: #fff; font-weight: 600; }
.demo-bar a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 244, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 246, 244, .94); }
#site-header-slot { min-height: var(--header-h); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 38px; height: 38px; flex: none; display: block; overflow: visible; }
.logo-mark .lm-bg { fill: var(--logo-bg, var(--ink)); }
.logo-mark .lm-shoe { fill: var(--logo-fg, #fff); }
.logo-mark .lm-line { fill: none; stroke: var(--logo-bg, var(--ink)); stroke-width: 1.7; stroke-linecap: round; }
.logo-mark .lm-sole { fill: var(--accent); }
.logo-mark .lm-speed { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.logo-mark .lm-shoe-g { transform-box: fill-box; transform-origin: 20% 100%; }
.logo-word { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.logo-word b { font: 800 21px/.9 var(--font-d); letter-spacing: -.035em; color: var(--logo-word, var(--ink)); }
.logo-word small { font: 600 9.5px/1 var(--font); letter-spacing: .34em; text-transform: uppercase; color: var(--logo-sub, var(--muted)); margin-right: -.34em; }
@media (prefers-reduced-motion: no-preference) {
  .logo-mark .lm-shoe-g, .logo-mark .lm-speed { transition: transform .35s var(--ease), opacity .35s var(--ease); }
  .logo:hover .lm-shoe-g { transform: translate(1.5px, -1.5px) rotate(-5deg); }
  .logo:hover .lm-speed { opacity: 1; transform: translateX(-1px); }
}

.main-nav { display: none; }
.main-nav a {
  position: relative; padding: 8px 2px; font-weight: 500; font-size: 15px; color: var(--ink-2);
  transition: color .15s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a.nav-wholesale { color: var(--accent-ink); font-weight: 600; }
.main-nav a.nav-wholesale::after { background: var(--accent); }

.header-search { display: none; flex: 1; max-width: 380px; margin-left: auto; position: relative; }
.header-search input {
  width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); padding: 0 16px 0 42px; font-size: 15px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.header-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,.06); }
.header-search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--ink);
  font: 700 11px/19px var(--font); text-align: center; font-variant-numeric: tabular-nums;
  transform: scale(1); transition: transform .25s var(--ease-out);
}
.cart-count[data-empty="true"] { transform: scale(0); }
.cart-count.bump { animation: bump .4s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

@media (min-width: 960px) {
  .main-nav { display: flex; gap: 26px; margin-left: 36px; }
  .header-search { display: block; }
  .header-actions { margin-left: 8px; }
  .menu-toggle, .search-toggle { display: none !important; }
}

/* buscador móvil desplegable */
.mobile-search { padding: 0 var(--gutter) 12px; }
.mobile-search .header-search { display: block; max-width: none; margin: 0; }
@media (min-width: 960px) { .mobile-search { display: none !important; } }

/* menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(17,17,17,.35);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--bg);
  padding: 16px 20px 28px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s var(--ease-out);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open .mobile-menu-panel { transform: none; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font: 700 22px/1.1 var(--font-d); letter-spacing: -.02em;
}
.mobile-menu nav a[aria-current="page"] { color: var(--accent-ink); }
.mobile-menu nav a .icon { color: var(--muted); }
.mobile-menu-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: #f3f2ee; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div { display: grid; gap: 14px; }
.section-head p { max-width: 52ch; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(16px, 2.4vw, 28px) 0 0; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(12px, 3vw, 40px) clamp(8px, 2vw, 24px); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; min-height: min(calc(100svh - var(--header-h) - 56px), 760px); }
}
.hero-copy { display: grid; gap: 22px; align-content: center; }
.hero-show {
  position: relative; display: block; background: var(--surface-2); border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
@media (max-width: 899px) { .hero-show { aspect-ratio: 5 / 4; } }
.hero-show img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
a.hero-show:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
a.hero-show:hover img { transform: scale(1.03); }
.hero-show-label {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(255,255,255,.94); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.hero-show-label strong { display: block; font: 700 16px/1.2 var(--font-d); }
.hero-show-label span { font-size: 13px; color: var(--muted); }
.hero-show-label .icon { flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 17px; height: 17px; color: var(--accent); }

[data-enter] > * { animation: enter .9s var(--ease-out) both; }
[data-enter] > *:nth-child(2) { animation-delay: .08s; }
[data-enter] > *:nth-child(3) { animation-delay: .16s; }
[data-enter] > *:nth-child(4) { animation-delay: .24s; }
[data-enter] > *:nth-child(5) { animation-delay: .32s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Franja de modalidades (home) ---------- */
.modes-strip { display: grid; gap: 12px; }
@media (min-width: 800px) { .modes-strip { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.mode-tile {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px 24px; display: grid; gap: 10px; align-content: start;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
a.mode-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.mode-tile-num { font: 800 clamp(44px, 5vw, 64px)/0.9 var(--font-d); letter-spacing: -.04em; }
.mode-tile-num small { font-size: .38em; letter-spacing: -.01em; margin-left: 4px; color: var(--muted); font-weight: 700; }
.mode-tile h3 { font-size: 19px; letter-spacing: -.01em; }
.mode-tile p { color: var(--muted); font-size: 15px; }
.mode-tile .tag { position: absolute; top: 22px; right: 20px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font: 600 12px/1 var(--font); letter-spacing: .02em; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.tag--accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag--ink { background: var(--ink); color: #fff; }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--err { background: var(--err-soft); color: var(--err); }
.tag--demo { background: rgba(255,255,255,.92); color: var(--ink-2); border: 1px dashed var(--line-2); }

/* ---------- Grilla y tarjetas de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; } }
@media (min-width: 1200px) { .product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.p-card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.p-card-media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--surface-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.p-card:hover .p-card-media { transform: translateY(-2px); box-shadow: var(--shadow); }
.p-card:hover .p-card-media img { transform: scale(1.03); }
.p-card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.p-card-badges .tag { height: 24px; font-size: 11.5px; }
.p-card-body { display: grid; gap: 6px; }
.p-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.p-card-name { font: 700 17px/1.2 var(--font-d); letter-spacing: -.01em; }
.p-card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.p-card-code { font-size: 12px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-card-desc { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-price { font: 700 18px/1.1 var(--font); font-variant-numeric: tabular-nums; }
.p-card-price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.p-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; font-size: 13px; color: var(--muted); }
.p-card-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.p-card-sizes span { min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--line); font-size: 11.5px; line-height: 20px; text-align: center; color: var(--ink-2); background: var(--surface); }
.p-card-sizes span.off { color: #b3b2ad; text-decoration: line-through; background: transparent; }
.p-card-cta { position: relative; z-index: 2; margin-top: 4px; }
.p-card-cta .btn { width: 100%; min-height: 42px; font-size: 14px; }
@media (max-width: 480px) {
  .p-card-name { font-size: 15px; }
  .p-card-desc { display: none; }
  .p-card-top { flex-direction: column; gap: 2px; }
  .p-card-price { font-size: 16px; }
}

.swatches { display: inline-flex; gap: 4px; align-items: center; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(17,17,17,.18); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

/* esqueleto de carga */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, #f4f3ef 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }
.p-card--skeleton .p-card-media { animation: shimmer 1.4s infinite linear; background: linear-gradient(90deg, var(--surface-2) 0%, #f4f3ef 50%, var(--surface-2) 100%); background-size: 200% 100%; }
.p-card--skeleton .line { height: 14px; }

/* ---------- Bandas ---------- */
.band {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: #f3f2ee;
  display: grid; isolation: isolate;
}
@media (min-width: 900px) { .band { grid-template-columns: 1.05fr 1fr; min-height: 560px; } }
.band-type {
  display: grid; place-content: center; padding: clamp(28px, 5vw, 64px); gap: 4px;
  font: 800 clamp(96px, 16vw, 240px)/.85 var(--font-d); letter-spacing: -.05em; color: #f3f2ee;
  border-top: 1px solid #2a2a27;
}
.band-type span { color: var(--accent); }
@media (min-width: 900px) { .band-type { border-top: 0; border-left: 1px solid #2a2a27; } }
.band-body { padding: clamp(28px, 5vw, 64px); display: grid; gap: 22px; align-content: center; }
.band-body .eyebrow { color: #a9a8a2; }
.band-body .lead { color: #cfcec8; }
.band-list { list-style: none; display: grid; gap: 14px; }
.band-list li { display: flex; gap: 12px; align-items: flex-start; color: #e4e3de; }
.band-list .icon { color: var(--accent); margin-top: 2px; }

/* ---------- Visita / contacto ---------- */
.visit { display: grid; gap: 16px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1.3fr 1fr; gap: 20px; } }
.visit-type { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); display: grid; gap: 26px; align-content: space-between; }
.visit-city { font: 800 clamp(48px, 9vw, 128px)/.88 var(--font-d); letter-spacing: -.045em; }
.visit-city span { display: block; color: var(--accent); }
.info-list { list-style: none; display: grid; gap: 0; }
.info-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .icon { color: var(--ink); margin-top: 2px; }
.info-list strong { display: block; font-weight: 600; margin-bottom: 2px; }
.info-list span { color: var(--muted); font-size: 15px; }
.visit-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 22px; align-content: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c8c2; margin-top: clamp(48px, 8vw, 96px); }
.footer-top { display: grid; gap: 36px; padding-block: clamp(48px, 7vw, 80px) 36px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand { display: grid; gap: 18px; align-content: start; max-width: 360px; }
.footer-brand .logo { --logo-bg: #fff; --logo-fg: var(--ink); --logo-word: #fff; --logo-sub: #8f8e88; }
.site-footer h3 { font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #8f8e88; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #e7e6e1; transition: color .15s var(--ease); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #2a2a27; padding-block: 20px 28px; display: grid; gap: 8px; font-size: 12.5px; color: #8f8e88; }
@media (min-width: 900px) { .footer-bottom { grid-template-columns: auto 1fr; gap: 24px; } .footer-bottom > :last-child { text-align: right; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #1faa53; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(31,170,83,.55), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.03); }
.wa-float:active { transform: scale(.95); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float-label {
  position: absolute; right: 70px; white-space: nowrap; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 8px;
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { opacity: 1; transform: none; }
body.has-sticky-bar .wa-float { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px); }
@media (min-width: 900px) { body.has-sticky-bar .wa-float { bottom: max(24px, env(safe-area-inset-bottom)); } .wa-float { right: 24px; bottom: 24px; } }

/* ---------- Toast ---------- */
.toast-region { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(calc(100vw - 32px), 440px); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14.5px;
  animation: toast-in .35s var(--ease-out) both;
}
.toast.out { animation: toast-out .25s var(--ease) both; }
.toast .icon { color: var(--accent); }
.toast--error .icon { color: #ff8a80; }
.toast a { margin-left: auto; color: var(--accent); font-weight: 600; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Diálogo ---------- */
dialog.modal {
  border: 0; padding: 0; border-radius: var(--r-lg); width: min(calc(100vw - 32px), 480px);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
dialog.modal::backdrop { background: rgba(17,17,17,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: modal-in .3s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-body { padding: 28px 26px 22px; display: grid; gap: 14px; }
.modal-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.modal-body h2 { font-size: 22px; letter-spacing: -.015em; }
.modal-body p { color: var(--ink-2); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 26px 26px; }
.modal-actions .btn { flex: 1 1 auto; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 7px; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); background: var(--surface); font-size: 16px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,.06); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--err); }
.field-error { font-size: 13px; color: var(--err); display: none; align-items: center; gap: 6px; }
.field.has-error .field-error { display: flex; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: 15px; cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; padding: 6px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }

/* ---------- Avisos ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); font-size: 14.5px; line-height: 1.45; background: var(--surface-2); color: var(--ink-2); }
.notice .icon { margin-top: 1px; }
.notice--error { background: var(--err-soft); color: var(--err); }
.notice--ok { background: var(--ok-soft); color: var(--ok); }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--accent { background: var(--accent-soft); color: var(--accent-ink); }
.notice ul { padding-left: 18px; display: grid; gap: 4px; margin-top: 4px; }
.notice strong { font-weight: 600; }

/* ---------- Empty / error states ---------- */
.state {
  display: grid; justify-items: center; text-align: center; gap: 16px; padding: clamp(48px, 8vw, 96px) 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.state-icon { width: 72px; height: 72px; border-radius: 22px; background: var(--surface-2); display: grid; place-items: center; }
.state-icon .icon { width: 32px; height: 32px; }
.state h2, .state h1 { font-size: clamp(24px, 3vw, 34px); }
.state p { color: var(--muted); max-width: 46ch; }
.state .hero-actions { justify-content: center; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(38px, 6.4vw, 84px); line-height: .95; letter-spacing: -.035em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); align-items: center; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb .icon { width: 14px; height: 14px; }

/* ---------- Catálogo ---------- */
.catalog { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 272px minmax(0, 1fr); gap: 40px; } }
.filters { display: none; }
@media (min-width: 1024px) { .filters { display: grid; position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 4px; } }
.filters-inner { display: grid; gap: 4px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 18px 0; display: grid; gap: 12px; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font: 600 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.size-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.size-chip {
  position: relative; display: grid; place-items: center; height: 42px; border-radius: var(--r-xs);
  border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.size-chip input { position: absolute; opacity: 0; pointer-events: none; }
.size-chip:hover { border-color: var(--ink); }
.size-chip:has(input:checked), .size-chip[aria-pressed="true"], .size-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.size-chip:has(input:disabled), .size-chip[disabled] { color: #b8b7b1; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(17,17,17,.04) 6px 7px), var(--surface); border-color: var(--line); cursor: not-allowed; text-decoration: line-through; }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-inputs .input { min-height: 42px; padding: 8px 10px; font-size: 15px; }
.catalog-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.catalog-bar .count { font-size: 14.5px; color: var(--muted); }
.catalog-bar-actions { display: flex; gap: 8px; align-items: center; flex: 1; justify-content: flex-end; }
.catalog-bar .select { min-height: 42px; width: auto; padding-top: 8px; padding-bottom: 8px; font-size: 14.5px; }
.filters-btn { display: inline-flex; }
@media (min-width: 1024px) { .filters-btn { display: none; } }
.catalog-search { position: relative; margin-bottom: 14px; }
.catalog-search .input { padding-left: 44px; border-radius: 999px; }
.catalog-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.active-filters:empty { display: none; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13.5px; transition: border-color .15s var(--ease); }
.chip-x:hover { border-color: var(--ink); }
.chip-x .icon { width: 14px; height: 14px; }

/* filtros en móvil: hoja inferior */
.sheet { position: fixed; inset: 0; z-index: 95; background: rgba(17,17,17,.4); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.sheet.is-open { opacity: 1; pointer-events: auto; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; background: var(--bg);
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .34s var(--ease-out);
}
.sheet.is-open .sheet-panel { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px 20px; }
.sheet-head h2 { font-size: 20px; }
.sheet-body { overflow-y: auto; padding: 0 20px 16px; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; padding: 14px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.sheet-foot .btn { flex: 1; }

/* ---------- Producto ---------- */
.pdp { display: grid; gap: 28px; padding-top: 8px; }
@media (min-width: 980px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.gallery { display: grid; gap: 10px; }
@media (min-width: 980px) { .gallery { position: sticky; top: calc(var(--header-h) + 20px); grid-template-columns: 76px minmax(0, 1fr); gap: 14px; } .gallery-thumbs { order: -1; flex-direction: column; } }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s var(--ease), transform .5s var(--ease-out); }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-main.is-zoomed { cursor: zoom-out; }
.gallery-main.is-zoomed img { transform: scale(1.8); }
.gallery-main .p-card-badges { top: 14px; left: 14px; }
.gallery-nav { position: absolute; inset: auto 12px 12px auto; display: flex; gap: 6px; z-index: 2; }
.gallery-nav button { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease); }
.gallery-nav button:hover { transform: translateY(-1px); }
.gallery-nav button:active { transform: scale(.94); }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button { flex: none; width: 68px; aspect-ratio: 4 / 5; border-radius: var(--r-xs); overflow: hidden; border: 2px solid transparent; background: var(--surface-2); transition: border-color .15s var(--ease), opacity .15s var(--ease); opacity: .72; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { display: grid; gap: 26px; }
.pdp-head { display: grid; gap: 12px; }
.pdp-head h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: .98; letter-spacing: -.03em; }
.pdp-code { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.pdp-code strong { color: var(--ink); font-weight: 600; letter-spacing: .03em; }
.pdp-desc { color: var(--ink-2); font-size: 16.5px; max-width: 60ch; }
.pdp-block { display: grid; gap: 12px; }
.pdp-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pdp-block-head h2 { font: 600 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.pdp-block-head span { font-size: 14px; color: var(--muted); }
.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: 14.5px;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.color-opt:hover { border-color: var(--ink); }
.color-opt:active { transform: scale(.97); }
.color-opt[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.color-opt .swatch-dot { width: 26px; height: 26px; }
.color-opt.is-out { color: var(--muted); }

/* selector de modalidad */
.mode-picker { display: grid; gap: 10px; }
.mode-card {
  position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 14px; align-items: start;
  padding: 18px 18px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--surface);
  text-align: left; width: 100%; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.mode-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.mode-card:active { transform: scale(.995); }
.mode-card[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow); }
.mode-radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); margin-top: 2px; display: grid; place-items: center; transition: border-color .15s var(--ease); }
.mode-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .2s var(--ease-out); }
.mode-card[aria-checked="true"] .mode-radio { border-color: var(--ink); }
.mode-card[aria-checked="true"] .mode-radio::after { transform: scale(1); }
.mode-title { font: 700 17px/1.2 var(--font-d); letter-spacing: -.01em; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mode-min { font-size: 13.5px; color: var(--muted); grid-column: 2; }
.mode-price { text-align: right; font: 700 18px/1.15 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mode-price small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.mode-rules { grid-column: 2 / -1; display: none; list-style: none; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.mode-rules li { display: flex; gap: 8px; align-items: flex-start; }
.mode-rules .icon { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }
.mode-card[aria-checked="true"] .mode-rules { display: grid; }
.mode-saving { font-size: 12px; font-weight: 600; color: var(--ok); }
@media (max-width: 420px) { .mode-card { grid-template-columns: 22px 1fr; } .mode-price { grid-column: 2; text-align: left; margin-top: 6px; } .mode-price small { display: inline; margin-left: 4px; } }

/* constructor */
.builder { display: grid; gap: 18px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.size-grid .size-chip { height: 48px; font-size: 15px; }
.curve-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.curve-cell { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.curve-cell.has-qty { border-color: var(--ink); background: var(--surface); }
.curve-cell.is-out { opacity: .5; }
.curve-cell-top { display: flex; justify-content: space-between; align-items: baseline; }
.curve-cell-top strong { font: 700 17px/1 var(--font); font-variant-numeric: tabular-nums; }
.curve-cell-top span { font-size: 11.5px; color: var(--muted); }
.stepper { display: inline-grid; grid-template-columns: 38px minmax(34px, auto) 38px; align-items: center; height: 40px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); overflow: hidden; }
.stepper button { height: 100%; display: grid; place-items: center; transition: background-color .15s var(--ease); }
.stepper button:hover:not(:disabled) { background: var(--surface-2); }
.stepper button:active:not(:disabled) { background: var(--line); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper button .icon { width: 16px; height: 16px; }
.stepper output, .stepper input { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; border: 0; background: none; width: 100%; padding: 0; font-size: 15px; }
.stepper--lg { height: 48px; grid-template-columns: 46px 52px 46px; }
.curve-cell .stepper { width: 100%; grid-template-columns: 34px 1fr 34px; height: 36px; }

.progress { display: grid; gap: 8px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.progress-top strong { font-variant-numeric: tabular-nums; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width .4s var(--ease-out), background-color .2s var(--ease); }
.progress.is-complete .progress-bar span { background: var(--ok); }
.progress.is-over .progress-bar span { background: var(--err); }

.estimate { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.estimate-label { font-size: 14px; color: var(--muted); }
.estimate-label strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.estimate-total { font: 800 clamp(26px, 3vw, 34px)/1 var(--font-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right; }
.estimate-total small { display: block; font: 500 12.5px/1.3 var(--font); color: var(--muted); letter-spacing: 0; margin-top: 4px; }

.pdp-actions { display: grid; gap: 10px; }
.pdp-assure { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pdp-assure details { border-bottom: 1px solid var(--line); }
.pdp-assure summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 0; cursor: pointer; font-weight: 600; }
.pdp-assure summary::-webkit-details-marker { display: none; }
.pdp-assure summary .icon:last-child { margin-left: auto; transition: transform .25s var(--ease); color: var(--muted); }
.pdp-assure details[open] summary .icon:last-child { transform: rotate(180deg); }
.pdp-assure .details-body { padding: 0 0 18px 32px; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; }
.pdp-assure .details-body ul { padding-left: 18px; display: grid; gap: 6px; }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .3s var(--ease-out);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy-info { min-width: 0; flex: 1; }
.sticky-buy-info strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-info span { font-size: 13px; color: var(--muted); }
@media (min-width: 980px) { .sticky-buy { display: none; } }

/* ---------- Carrito ---------- */
.cart-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; } }
.cart-mode { display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg button { min-height: 42px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); padding: 0 8px; line-height: 1.1; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
@media (max-width: 420px) { .seg button { font-size: 12.5px; } }
.cart-items { list-style: none; display: grid; gap: 12px; }
.cart-item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px 16px; padding: 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
@media (min-width: 640px) { .cart-item { grid-template-columns: 120px minmax(0, 1fr); padding: 16px; } }
.cart-item.is-removing { opacity: 0; transform: translateX(-12px); }
.cart-item-media { aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.cart-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cart-item-name { font: 700 17px/1.2 var(--font-d); letter-spacing: -.01em; }
.cart-item-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-item-code { font-size: 12.5px; color: var(--muted); }
.cart-item-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-item-opts .select { min-height: 40px; width: auto; min-width: 104px; padding: 6px 36px 6px 12px; font-size: 14.5px; border-radius: 999px; background-position: right 10px center; }
.cart-item-opts label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.cart-item-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.cart-item-price { text-align: right; font-variant-numeric: tabular-nums; }
.cart-item-price strong { display: block; font-size: 17px; }
.cart-item-price span { font-size: 13px; color: var(--muted); }
.cart-item-warn { font-size: 13px; color: var(--err); display: flex; gap: 6px; align-items: center; }
.remove-btn { color: var(--muted); width: 38px; height: 38px; }
.remove-btn:hover { color: var(--err); background: var(--err-soft); }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); display: grid; gap: 18px; }
@media (min-width: 1024px) { .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary h2 { font-size: 22px; }
.summary-rows { display: grid; gap: 10px; font-size: 15px; }
.summary-rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary-rows dt { color: var(--muted); }
.summary-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); }
.summary-total span { font-weight: 600; }
.summary-total strong { font: 800 30px/1 var(--font-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.checkout-form { display: grid; gap: 16px; }
.checkout-form h3 { font-size: 18px; letter-spacing: -.01em; }
.sent-panel { display: grid; gap: 12px; padding: 18px; border-radius: var(--r); background: var(--ok-soft); color: #0f5129; }
.sent-panel h3 { font-size: 18px; color: var(--ok); display: flex; gap: 8px; align-items: center; }
.sent-panel .hero-actions { margin: 0; }
.preview-msg { white-space: pre-wrap; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; max-height: 280px; overflow: auto; color: var(--ink-2); }

/* ---------- Mayoristas / tablas / FAQ ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 700 18px/1.2 var(--font-d); letter-spacing: -.01em; background: var(--surface); }
.compare thead th small { display: block; font: 500 13px/1.3 var(--font); color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.compare tbody th { font-weight: 600; color: var(--ink-2); width: 26%; background: #fbfbfa; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .hl { background: var(--accent-soft); }
.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.compare-wrap .compare { min-width: 680px; }
.steps { display: grid; gap: 12px; counter-reset: step; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 800 34px/1 var(--font-d); letter-spacing: -.03em; color: var(--accent); }
.steps h3 { font-size: 18px; letter-spacing: -.01em; }
.steps p { color: var(--muted); font-size: 15px; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font: 700 clamp(17px, 1.6vw, 20px)/1.3 var(--font-d); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: transform .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.faq summary:hover .plus { border-color: var(--ink); }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq .faq-body { padding: 0 0 24px; color: var(--ink-2); max-width: 72ch; display: grid; gap: 10px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1.4fr; gap: 64px; } .two-col > :first-child { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; } }
.cards-3 { display: grid; gap: 12px; }
@media (min-width: 800px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; }
.info-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.info-card h3 { font-size: 19px; letter-spacing: -.01em; }
.info-card p, .info-card li { color: var(--muted); font-size: 15px; }
.info-card ul { padding-left: 18px; display: grid; gap: 6px; }


.catalog-main { display: grid; gap: 16px; min-width: 0; }
.filters-form { display: grid; gap: 24px; }
.filters-count { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--accent); color:#fff; font-size:12px; font-weight:700; }
.filters-count:empty { display:none; }
.check small { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* ---------- Animación al entrar en pantalla ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (hover: none) {
  .btn:hover, .p-card:hover .p-card-media, a.mode-tile:hover, .mode-card:hover { transform: none; box-shadow: none; }
  .p-card:hover .p-card-media img { transform: none; }
}

@media print {
  .site-header, .site-footer, .wa-float, .demo-bar, .sticky-buy { display: none !important; }
}

/* Errores del resumen del carrito */
.summary-errors{color:#B42318;background:#FEF3F2;border-radius:10px;padding:.75rem .9rem;margin:0 0 1rem;font-size:.9rem}
.summary-errors li{display:flex;gap:.5rem;align-items:flex-start}
.summary-errors svg{flex:none;margin-top:.15em}

/* ---------- Admin ---------- */
.adm-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md, 12px); background: #fff; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.adm-notice svg { flex: none; color: var(--accent); margin-top: 2px; }
.adm-notice strong { color: var(--ink); }
.adm-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.adm-status { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.adm-status.is-dirty { color: var(--accent); font-weight: 600; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-import { position: relative; overflow: hidden; cursor: pointer; }
.adm-import input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .adm-layout { grid-template-columns: 280px minmax(0, 1fr); } .adm-list { position: sticky; top: calc(var(--header-h, 64px) + 16px); max-height: calc(100vh - var(--header-h, 64px) - 32px); overflow: auto; } }
.adm-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg, 16px); padding: 8px; }
.adm-list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 8px 12px; font-weight: 700; }
.adm-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px; border-radius: 10px; border: 1px solid transparent; background: none; font: inherit; color: inherit; cursor: pointer; transition: background .15s var(--ease, ease), border-color .15s; }
.adm-item:hover { background: var(--bg); }
.adm-item.is-active { background: #fff4ef; border-color: var(--accent); }
.adm-item img, .adm-item .adm-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg); }
.adm-item small { display: block; color: var(--muted); font-size: 12px; }
.adm-editor { min-width: 0; }
.adm-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg, 16px); padding: 20px; display: grid; gap: 20px; }
@media (min-width: 640px) { .adm-form { padding: 28px; } }
.adm-form-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.adm-form-head h2 { margin: 0; font: 800 22px/1.1 var(--font-d); }
.adm-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.adm-form legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.adm-checks { display: flex; flex-wrap: wrap; gap: 18px; }
.adm-checks label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.adm-checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.adm-settings { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px 18px; margin-bottom: 20px; }
.adm-settings summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; list-style: none; }
.adm-settings summary::-webkit-details-marker { display: none; }
.adm-settings summary h2 { margin: 0; font: 800 18px/1.2 var(--font-d); }
.adm-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.adm-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; cursor: pointer; }
.adm-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.adm-prices { display: grid; gap: 12px; }
@media (min-width: 640px) { .adm-prices { grid-template-columns: repeat(3, 1fr); } }
.adm-money { position: relative; }
.adm-money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.adm-money .input { padding-left: 26px; }
.adm-colors { display: grid; gap: 8px; }
.adm-color { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.adm-color input[type="color"] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.adm-stock-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
table.adm-stock { border-collapse: collapse; width: 100%; font-size: 14px; }
.adm-stock th, .adm-stock td { padding: 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.adm-stock th:first-child, .adm-stock td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.adm-stock input { width: 56px; padding: 6px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.adm-stock input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.adm-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); vertical-align: middle; margin-right: 6px; }
.adm-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.adm-img { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.adm-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-img-actions { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 4px; justify-content: flex-end; }
.adm-img-actions button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.adm-img-actions button:hover { background: #fff; color: var(--accent); }
.adm-drop { display: grid; place-items: center; gap: 6px; text-align: center; padding: 24px 16px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.adm-drop:hover, .adm-drop.is-over { border-color: var(--accent); background: #fff4ef; color: var(--ink); }
.adm-danger { color: #c62828 !important; }
.adm-danger:hover { border-color: #c62828 !important; }

/* ---------- Panel: celular y pestañas ---------- */
body.adm-locked { overflow: hidden; }
.adm-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.adm-gate-card { width: 100%; max-width: 380px; display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.adm-gate-card input { width: 100%; min-height: 48px; }
.adm-gate-msg { min-height: 1.2em; color: var(--muted); font-size: 14px; }
.adm-gate-msg.is-error { color: #c62828; }
.adm-tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.adm-tabs button[aria-current="true"], .adm-tabs button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-panel] { padding-bottom: 96px; }
[data-panel][hidden] { display: none !important; }
.adm-pill { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.18); white-space: nowrap; }
.adm-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.adm-pill[data-state="dirty"]::before, .adm-pill[data-state="saving"]::before { background: #f5a623; }
.adm-pill[data-state="saved"]::before { background: #f5a623; }
.adm-pill[data-state="live"]::before { background: #2fbf71; }
.adm-pill[data-state="error"] { background: #c62828; color: #fff; }
.adm-card { display: grid; gap: 14px; padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.adm-card label { display: grid; gap: 6px; font-weight: 600; }
.adm-card input, .adm-card textarea, .adm-card select { width: 100%; min-height: 44px; }
.adm-cats { display: grid; gap: 8px; }
.adm-cat { display: flex; gap: 8px; align-items: center; }
.adm-cat input { flex: 1; min-height: 44px; }
.adm-cat button { min-width: 44px; min-height: 44px; }
.adm-cat-n { min-width: 2.5em; color: var(--muted); font-size: 13px; }
.adm-cat-add { display: flex; gap: 8px; }
.adm-cat-add input { flex: 1; min-height: 44px; }
.adm-fill { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.adm-fill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-more { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 14px; }
.adm-more > summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.adm-more[open] { padding-bottom: 14px; }
.adm-img { position: relative; }
.adm-img-tag { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.adm-drop { min-height: 120px; }
.adm-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.adm-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
@media (min-width: 900px) { .adm-back { display: none; } }
@media (max-width: 899px) {
  .adm-layout { grid-template-columns: 1fr !important; }
  .adm-layout.is-editing .adm-list { display: none; }
  .adm-layout:not(.is-editing) .adm-editor { display: none; }
  #admin-root input, #admin-root textarea, #admin-root select, .adm-gate input { font-size: 16px; }
}

.adm-tabs button[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
