/* CoLiDo Colombia — main.css · consume tokens.css, nunca valores sueltos.
   Estructura: base → chrome (nav/footer/drawer) → home → tienda → producto → carrito → checkout → gracias → cuenta → responsive → reduced-motion */

/* ============ 1 · BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--banner-h) + var(--bar-h));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .link { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, .link:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-style: normal; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 var(--space-md); overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); letter-spacing: -0.015em; }
p { margin: 0 0 var(--space-md); max-width: 65ch; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-xs); transition: none; }
::selection { background: var(--brand-soft); }
.skip-link { position: fixed; top: -100%; left: var(--space-md); z-index: var(--z-toast); background: var(--ink); color: var(--paper); padding: var(--space-sm) var(--space-md); border-radius: var(--r-sm); }
.skip-link:focus-visible { top: var(--space-md); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: clip; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: var(--space-3xl); }
.section--tight { padding-block: var(--space-2xl); }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 46rem; margin-bottom: var(--space-xl); }
.section-head h2 { margin-bottom: var(--space-xs); }
.section-head p { color: var(--ink-2); margin: 0; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); }

/* ============ 2 · BOTONES (8 estados) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--r-full);
  white-space: nowrap; position: relative;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform 100ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; color: var(--paper);
  animation: spin 700ms linear infinite;
}
.btn-secondary.is-loading::after { color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-success { background: var(--ok); }
.btn.is-error { background: var(--err); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-hover); transform: translateY(-1.5px); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-secondary:hover { border-color: var(--ink-2); transform: translateY(-1.5px); }
.btn-quiet { color: var(--ink); font-weight: 600; min-height: 44px; padding: 0 var(--space-2xs); border-radius: var(--r-xs); white-space: nowrap; }
.btn-quiet .arr { transition: transform var(--dur-short) var(--ease-out); }
.btn-quiet:hover .arr { transform: translateX(3px); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }

/* ============ 3 · CHIPS / BADGES ============ */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.02em;
  padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--rule); border-radius: var(--r-full);
  color: var(--ink-2); background: var(--paper); white-space: nowrap;
}
.chip--brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.chip--kraft { background: var(--kraft); border-color: transparent; color: var(--kraft-deep); font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.stock { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--ink-2); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.stock--low::before { background: var(--warn); }
.stock--out { color: var(--muted); }
.stock--out::before { background: var(--muted); }
.pay-chip {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-xs);
  padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--rule-2); border-radius: var(--r-xs);
  color: var(--ink-2); background: var(--paper);
}
.pay-chip .dot { width: 8px; height: 8px; border-radius: 2px; }

/* ============ 4 · NAV (N12: banner + barra que se retrae) ============ */
.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-sticky); transform: translateY(0); transition: transform 320ms var(--ease-out); }
.nav.is-compact { transform: translateY(calc(var(--banner-h) * -1)); }
.nav.is-dismissed { transform: none; }
.nav.is-dismissed .nav__banner { display: none; }
.nav__banner {
  height: var(--banner-h); display: flex; align-items: center; justify-content: center; gap: var(--space-md);
  background: var(--kraft); color: var(--kraft-deep); padding-inline: calc(var(--space-sm) + 32px + var(--space-sm));
  font-size: var(--text-sm); position: relative;
}
.nav__banner p { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__banner b { font-weight: 600; }
.nav__banner-link { flex: 0 0 auto; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.nav__banner-x { position: absolute; right: var(--space-sm); top: 50%; translate: 0 -50%; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-xs); color: var(--kraft-deep); }
.nav__banner-x:hover { background: var(--kraft-2); }
.nav__bar { height: var(--bar-h); background: var(--frost); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--rule-2); }
.nav__inner { max-width: var(--container); height: 100%; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); display: flex; align-items: center; gap: var(--space-lg); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); white-space: nowrap; }
.brand__logo { flex: 0 0 auto; height: 24px; width: auto; display: block; }
.brand small { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.06em; padding-top: 2px; border-left: 1px solid var(--rule); padding-left: var(--space-xs); }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); margin-inline: auto; }
.nav__link { font-weight: 500; font-size: var(--text-sm); color: var(--ink-2); white-space: nowrap; padding: var(--space-xs) 0; border-bottom: 2px solid transparent; transition: color var(--dur-micro) var(--ease-out); }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.nav__actions { display: flex; align-items: center; gap: var(--space-xs); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-full); color: var(--ink); position: relative; transition: background-color var(--dur-micro) var(--ease-out); }
.icon-btn:hover { background: var(--paper-3); }
.icon-btn:active, .dot:active, .wall-tab:active, .gallery__thumb:active { transform: translateY(1px); }
.icon-btn[disabled], .dot[disabled], .wall-tab[disabled] { opacity: 0.45; cursor: not-allowed; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding-inline: 4px;
  display: grid; place-items: center; background: var(--brand-ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px; border-radius: var(--r-full);
}
.cart-count:empty { display: none; }
.nav__burger { display: none; }

/* Menú móvil (sheet) */
.sheet { position: fixed; inset: 0; z-index: var(--z-modal); pointer-events: none; }
.sheet__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.sheet__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(21rem, 88vw);
  background: var(--paper); box-shadow: var(--shadow-3); padding: var(--space-lg);
  transform: translateX(-102%); transition: transform var(--dur-long) var(--ease-out);
  display: flex; flex-direction: column; gap: var(--space-md); overflow-y: auto;
}
.sheet.is-open { pointer-events: auto; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__link { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); padding: var(--space-sm) 0; border-bottom: 1px solid var(--rule-2); }

/* ============ 5 · FOOTER (Ft1 mast-headed) ============ */
.footer { border-top: 1px solid var(--rule); background: var(--paper); margin-top: var(--space-3xl); }
.footer__mast { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-2xl); padding-block: var(--space-2xl); }
.footer__logo { height: 40px; width: auto; display: block; }
.footer__tag { color: var(--ink-2); margin-top: var(--space-sm); max-width: 34ch; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-content: start; }
.footer__col h4 { font-size: var(--text-sm); font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-sm); }
.footer__col a { display: block; padding: var(--space-2xs) 0; color: var(--ink-2); font-size: var(--text-sm); white-space: nowrap; }
.footer__col a:hover { color: var(--ink); }
.footer__pay { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding-block: var(--space-lg); border-top: 1px solid var(--rule-2); align-items: center; }
.footer__pay .lbl { font-size: var(--text-sm); color: var(--muted); margin-right: var(--space-xs); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-md); padding-block: var(--space-lg); border-top: 1px solid var(--rule-2); font-size: var(--text-sm); color: var(--muted); align-items: center; }
.footer__legal a { color: var(--muted); white-space: nowrap; }
.footer__legal a:hover { color: var(--ink); }
.footer__legal .sep { flex: 1; }

/* ============ 6 · HERO (H2 diptych 7/5) ============ */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { margin-bottom: var(--space-md); }
.hero__lede { font-size: var(--text-md); color: var(--ink-2); max-width: 46ch; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-lg);
  background: var(--kraft); color: var(--kraft-deep); border-radius: var(--r-full);
  padding: var(--space-xs) var(--space-md); font-weight: 600; font-size: var(--text-sm);
  transition: background-color var(--dur-micro) var(--ease-out);
}
.hero__badge:hover { background: var(--kraft-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-block: var(--space-lg); }
.hero__specs { margin-top: var(--space-lg); }
.hero__pay { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-lg); color: var(--muted); font-size: var(--text-sm); }

/* Showroom interactivo */
.showroom { position: relative; }
.showroom__stage {
  display: block; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--rule-2);
  overflow: hidden; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform var(--dur-short) var(--ease-out); will-change: transform;
}
.showroom__stage img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.showroom__meta { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-sm); }
.showroom__name { font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); }
.showroom__price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.showroom__dots { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--swatch); cursor: pointer;
  border: 1px solid var(--line-a); position: relative; flex: 0 0 auto;
  transition: transform var(--dur-micro) var(--ease-out);
}
.dot:hover { transform: scale(1.12); }
.dot[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--ink); border-radius: 50%; }
.dot--sm { width: 22px; height: 22px; }
.dot--sm[aria-pressed="true"]::after { inset: -4px; border-width: 1.5px; }

/* ============ 7 · MARQUEE SPEC (pausa en hover / estático en reduced) ============ */
.marquee { border-block: 1px solid var(--rule); background: var(--paper); overflow: hidden; padding-block: var(--space-sm); }
.marquee__track { display: flex; gap: var(--space-2xl); width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.06em; color: var(--ink-2); white-space: nowrap; }
.marquee__item b { color: var(--ink); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 8 · MURO DE COLOR (Catalogue) ============ */
.wall-tabs { display: flex; gap: var(--space-xs); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.wall-tab {
  font-family: var(--font-mono); font-size: var(--text-sm); padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--rule); border-radius: var(--r-full); color: var(--ink-2);
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.wall-tab:hover { background: var(--paper-3); }
.wall-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: var(--space-sm); }
.wall__item { display: grid; gap: var(--space-2xs); border-radius: var(--r-sm); }
.wall__swatch {
  aspect-ratio: 1; border-radius: var(--r-sm); background: var(--swatch);
  border: 1px solid var(--line-a); position: relative; overflow: hidden;
}
.wall__swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.wall__item:hover .wall__swatch img, .wall__item:focus-visible .wall__swatch img { opacity: 1; }
.wall__name { font-size: var(--text-sm); font-weight: 500; line-height: 1.25; }
.wall__mat { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.wall__item .wall__out { position: absolute; inset: auto var(--space-2xs) var(--space-2xs) auto; background: var(--paper); border-radius: var(--r-xs); font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; color: var(--muted); }

/* reveal one-shot del muro */
.reveal-set .reveal { opacity: 0; transform: translateY(10px); }
.reveal-set.is-in .reveal { opacity: 1; transform: none; transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 24ms); }

/* ============ 8.5 · BENEFICIOS (ensayo fotográfico asimétrico con crops reales) ============ */
.details { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--space-xl) var(--space-lg); align-items: start; }
.detail { margin: 0; }
.detail--push { margin-top: var(--space-2xl); }
.detail--push2 { margin-top: var(--space-3xl); }
.detail__img { overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); aspect-ratio: 4/3.3; }
.detail__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail__img--box { aspect-ratio: 4/5; }
.detail__img--wide { aspect-ratio: 16/10; }
.detail h3 { font-size: var(--text-lg); margin: var(--space-md) 0 var(--space-2xs); }
.detail p { font-size: var(--text-sm); color: var(--ink-2); margin: 0; max-width: 36ch; }
.details-note { margin: var(--space-xl) 0 0; font-size: var(--text-sm); color: var(--muted); max-width: 60ch; }
.details--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.details--duo .detail__img--wide { aspect-ratio: 16/10; }
@media (max-width: 60rem) {
  .details { grid-template-columns: minmax(0, 1fr); }
  .detail--push, .detail--push2 { margin-top: 0; }
  .detail__img--macro, .detail__img--box { aspect-ratio: 4/3; }
}

/* ============ 8.7 · VISOR 3D ============ */
.v3d-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.v3d {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--rule-2); overflow: hidden;
  cursor: grab; touch-action: none;
}
.v3d[data-grabbing] { cursor: grabbing; }
.v3d__canvas { display: block; width: 100%; height: 100%; }
.v3d__canvas:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.v3d__hint {
  position: absolute; inset: auto var(--space-sm) var(--space-sm) auto;
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted);
  background: var(--frost); border-radius: var(--r-xs); padding: 4px 9px; pointer-events: none;
}
.v3d__loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted);
  background: var(--paper-2); transition: opacity var(--dur-long) var(--ease-out);
}
.v3d[data-state="ready"] .v3d__loading { opacity: 0; visibility: hidden; }
.v3d[data-state="error"] .v3d__loading::after { content: " — no disponible en este navegador"; }
.v3d-panel { display: grid; gap: var(--space-md); align-content: start; }
.v3d-panel h3 { margin: 0; font-size: var(--text-lg); }
.v3d-panel p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.v3d-shapes { display: flex; gap: var(--space-md); }
.v3d-shape {
  font-size: var(--text-sm); font-weight: 600; color: var(--muted);
  padding: 0 0 3px; border-bottom: 2px solid transparent; border-radius: 0; white-space: nowrap;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.v3d-shape:hover { color: var(--ink); }
.v3d-shape[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.v3d-swatches { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.v3d-sw {
  width: 30px; height: 30px; background: var(--swatch); background-size: cover;
  border: 1px solid var(--line-a); border-radius: 0; padding: 0;
  transition: transform var(--dur-micro) var(--ease-out);
}
.v3d-sw:hover { transform: translateY(-2px); }
.v3d-sw[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.v3d-current { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-2); min-height: 1lh; }
@media (max-width: 60rem) {
  .v3d-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .v3d { aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) { .v3d-sw:hover { transform: none; } }

/* ============ 9 · SPLITS (especificaciones / materiales técnicos / kraft) ============ */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); align-items: center; }
.split--rev > :first-child { order: 2; }
.split__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rule-2); background: var(--paper-2); }
.split__media img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: var(--text-sm); }
.spec-table th, .spec-table td { text-align: left; padding: var(--space-sm) var(--space-xs); border-bottom: 1px solid var(--rule-2); font-weight: 400; vertical-align: top; }
.spec-table th { color: var(--muted); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.spec-table td:last-child { text-align: right; color: var(--ink-2); }
.spec-table .val { color: var(--ink); font-weight: 600; }

.kraft-band { background: var(--kraft); color: var(--kraft-deep); }
.kraft-band h2, .kraft-band h3 { color: var(--kraft-h); }
.kraft-band .split__media { border-color: var(--kraft-2); background: var(--kraft-2); }
.kraft-band .chip { background: var(--kraft-chip); border-color: transparent; color: var(--kraft-deep); }
.kraft-band p { color: var(--kraft-body); }

/* ============ 10 · RESEÑAS ============ */
.reviews { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.review { border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: var(--space-lg); background: var(--paper); display: grid; gap: var(--space-sm); }
.review--lead { padding: var(--space-xl); background: var(--paper-2); border-color: transparent; }
.review__stars { color: var(--warn); letter-spacing: 2px; font-size: var(--text-sm); }
.review__text { margin: 0; font-size: var(--text-base); }
.review--lead .review__text { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.015em; line-height: 1.3; }
.review__who { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); color: var(--muted); }
.review__who .dot { cursor: default; }
.review__who .dot:hover { transform: none; }
.review__who b { color: var(--ink-2); font-weight: 600; }

/* ============ 11 · GARANTÍAS (3 col asimétrica) ============ */
.assure { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); }
.assure__item { border-top: 2px solid var(--ink); padding-top: var(--space-md); }
.assure__item h3 { font-size: var(--text-md); margin-bottom: var(--space-xs); }
.assure__item p { font-size: var(--text-sm); color: var(--ink-2); margin: 0; }
.assure__item .chip-row { margin-top: var(--space-sm); }

/* ============ 12 · TIENDA ============ */
.shop-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.filters { position: sticky; top: calc(var(--bar-h) + var(--space-lg)); display: grid; gap: var(--space-lg); max-height: calc(100dvh - var(--bar-h) - var(--space-2xl)); overflow-y: auto; padding-bottom: var(--space-lg); }
.filters details { border-bottom: 1px solid var(--rule-2); padding-bottom: var(--space-md); }
.filters summary { font-weight: 600; font-size: var(--text-sm); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding-block: var(--space-xs); }
.filters summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); transition: transform var(--dur-micro) var(--ease-out); }
.filters details[open] summary::after { transform: rotate(45deg); }
.filters summary::-webkit-details-marker { display: none; }
.f-opt { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) 0; font-size: var(--text-sm); color: var(--ink-2); cursor: pointer; }
.f-opt input { accent-color: var(--brand-ink); width: 16px; height: 16px; }
.f-opt .n { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.f-colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-xs); padding-top: var(--space-xs); }
.shop-toolbar { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.shop-toolbar .count { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted); }
.shop-toolbar .sep { flex: 1; }
.select {
  appearance: none; font: inherit; font-size: var(--text-sm); color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--rule); border-radius: var(--r-sm); padding: var(--space-xs) var(--space-xl) var(--space-xs) var(--space-sm);
}
.active-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.active-chips .chip button { display: grid; place-items: center; margin-left: 2px; }
.grid-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
.grid-products.is-list { grid-template-columns: 1fr; gap: var(--space-md); }

/* Tarjeta producto (F6, ratio 1/1, acción hover) */
.product { display: grid; gap: var(--space-xs); position: relative; align-content: start; }
.product__media { display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule-2); position: relative; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-long) var(--ease-out); }
.product__media:hover img { transform: scale(1.02); }
.product__tile { width: 100%; height: 100%; display: grid; place-items: center; background: color-mix(in oklab, var(--swatch) 18%, var(--paper-2)); }
.product__tile .spool { width: 54%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at center, var(--paper) 0 26%, transparent 26.5%), var(--swatch); border: 1px solid var(--line-a); }
.product__badge { position: absolute; top: var(--space-sm); left: var(--space-sm); background: var(--paper); border-radius: var(--r-xs); font-family: var(--font-mono); font-size: var(--text-xs); padding: 3px 8px; color: var(--ink-2); box-shadow: var(--shadow-1); }
.product__add {
  position: absolute; bottom: var(--space-sm); right: var(--space-sm); width: 40px; height: 40px;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--r-full); opacity: 0;
  transition: opacity var(--dur-short) var(--ease-out), transform 100ms var(--ease-out);
}
.product:hover .product__add, .product:focus-within .product__add { opacity: 1; }
.product__add:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.product__add:active { transform: translateY(1px); }
@media (pointer: coarse) { .product__add { opacity: 1; } }
.product__name { font-size: var(--text-base); font-weight: 500; margin: 0; }
.product__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.product__price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--text-sm); color: var(--ink-2); }
.product__dots { display: flex; gap: var(--space-2xs); }
.is-list .product { grid-template-columns: 7rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-md); border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: var(--space-sm); }
.is-list .product__media { border-radius: var(--r-sm); }
.is-list .product__add { position: static; opacity: 1; }
.view-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; }
.view-toggle button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--paper-3); color: var(--ink); }
.empty { border: 1px dashed var(--rule); border-radius: var(--r-md); padding: var(--space-2xl); text-align: center; color: var(--ink-2); }

/* ============ 13 · PRODUCTO (PDP) ============ */
.crumbs { display: flex; gap: var(--space-xs); font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.crumbs a { white-space: nowrap; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.gallery { position: sticky; top: calc(var(--bar-h) + var(--space-lg)); display: grid; gap: var(--space-sm); }
.gallery__main { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rule-2); background: var(--paper-2); position: relative; }
.gallery__main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery__main.is-macro img { transform: scale(2.4); transform-origin: 42% 55%; }
.gallery__main.is-pieza img { transform: scale(1.7); transform-origin: 80% 60%; }
.gallery__zoom { position: absolute; bottom: var(--space-sm); right: var(--space-sm); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-2); background: var(--paper); border-radius: var(--r-xs); padding: 4px 8px; box-shadow: var(--shadow-1); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }
.gallery__thumb { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--rule-2); background: var(--paper-2); padding: 0; position: relative; }
.gallery__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.gallery__thumb .tag { position: absolute; bottom: 4px; left: 4px; right: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-2); background: var(--frost); border-radius: 4px; padding: 1px 4px; text-align: center; }
.gallery__thumb.is-macro img { transform: scale(2.4); transform-origin: 42% 55%; }

.pdp__info h1 { font-size: var(--text-xl); letter-spacing: -0.02em; margin-bottom: var(--space-2xs); }
.pdp__sku { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.04em; }
.pdp__price-row { display: flex; align-items: baseline; gap: var(--space-md); margin-block: var(--space-md); }
.pdp__price { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pdp__rating { font-size: var(--text-sm); color: var(--ink-2); }
.pdp__rating .s { color: var(--warn); letter-spacing: 1px; }
.variants { margin-block: var(--space-lg); }
.variants__label { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-xs); display: flex; gap: var(--space-xs); }
.variants__label span { color: var(--muted); font-weight: 400; }
.variants__grid { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: var(--r-full); height: 48px; }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--ink-2); font-size: var(--text-md); }
.qty button:hover { color: var(--ink); }
.qty input { width: 3ch; text-align: center; border: 0; font: inherit; font-family: var(--font-mono); background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { appearance: none; }
.pdp__buy { display: flex; gap: var(--space-sm); margin-block: var(--space-lg); flex-wrap: wrap; }
.pdp__buy .btn-primary { flex: 1; min-width: 12rem; }
.pdp__trust { display: grid; gap: var(--space-xs); border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: var(--space-md); font-size: var(--text-sm); color: var(--ink-2); margin-bottom: var(--space-lg); }
.pdp__trust div { display: flex; gap: var(--space-xs); align-items: center; }
.pdp__trust svg { flex: 0 0 auto; color: var(--brand-ink); }
.acc { border-top: 1px solid var(--rule-2); }
.acc__item { border-bottom: 1px solid var(--rule-2); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) 0; font-weight: 600; font-size: var(--text-base); text-align: left; gap: var(--space-md); }
.acc__btn::after { content: "+"; font-family: var(--font-mono); color: var(--muted); transition: transform var(--dur-short) var(--ease-in-out); }
.acc__item.is-open .acc__btn::after { transform: rotate(45deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-long) var(--ease-in-out); }
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner > :last-child { margin-bottom: var(--space-md); }
.dl-chip { display: inline-flex; align-items: center; gap: var(--space-xs); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: var(--space-xs) var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: border-color var(--dur-micro) var(--ease-out); }
.dl-chip:hover { border-color: var(--ink-2); color: var(--ink); }

/* Sticky ATC móvil */
.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: var(--paper); border-top: 1px solid var(--rule); box-shadow: var(--shadow-2);
  padding: var(--space-sm) clamp(1rem, 4vw, 2rem) max(var(--space-sm), env(safe-area-inset-bottom));
  display: none; align-items: center; gap: var(--space-md);
  transform: translateY(105%); transition: transform var(--dur-long) var(--ease-out);
}
.sticky-atc.is-visible { transform: none; }
.sticky-atc__name { font-weight: 600; font-size: var(--text-sm); line-height: 1.2; }
.sticky-atc__price { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-2); }
.sticky-atc .btn { margin-left: auto; }

/* Cross-sell */
.xsell { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.xsell .product__media { aspect-ratio: 4/3; }

/* ============ 14 · CARRITO ============ */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.cart-lines { display: grid; gap: var(--space-md); }
.cart-line { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: var(--space-md); align-items: center; border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: var(--space-md); }
.cart-line__img { border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2); }
.cart-line__img img, .cart-line__img .product__tile { aspect-ratio: 1; }
.cart-line__name { font-weight: 600; }
.cart-line__meta { font-size: var(--text-sm); color: var(--muted); font-family: var(--font-mono); }
.cart-line__right { display: grid; gap: var(--space-xs); justify-items: end; }
.cart-line__price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.cart-line__remove { font-size: var(--text-sm); color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.cart-line__remove:hover { color: var(--err); }
.ship-meter { border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: var(--space-md); margin-bottom: var(--space-md); }
.ship-meter__text { font-size: var(--text-sm); color: var(--ink-2); margin: 0 0 var(--space-xs); }
.ship-meter__text b { color: var(--ink); }
.ship-meter__bar { height: 6px; border-radius: var(--r-full); background: var(--paper-3); overflow: hidden; }
.ship-meter__fill { height: 100%; width: 100%; border-radius: inherit; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-long) var(--ease-out); }
.ship-meter.is-free .ship-meter__fill { background: var(--ok); }
.summary { border: 1px solid var(--rule-2); border-radius: var(--r-lg); padding: var(--space-lg); position: sticky; top: calc(var(--bar-h) + var(--space-lg)); background: var(--paper); }
.summary h3 { margin-bottom: var(--space-md); }
.summary__row { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-2xs); font-size: var(--text-sm); color: var(--ink-2); }
.summary__row .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.summary__total { display: flex; justify-content: space-between; border-top: 1px solid var(--rule-2); margin-top: var(--space-sm); padding-top: var(--space-md); font-weight: 700; font-size: var(--text-md); }
.summary__total .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.summary .btn-block { margin-top: var(--space-md); }
.upsell { display: flex; align-items: center; gap: var(--space-md); border: 1px dashed var(--rule); border-radius: var(--r-md); padding: var(--space-sm) var(--space-md); margin-top: var(--space-md); }
.upsell__tile { width: 3.5rem; height: 3.5rem; border-radius: var(--r-sm); flex: 0 0 auto; display: grid; place-items: center; background: color-mix(in oklab, var(--swatch, var(--brand)) 16%, var(--paper-2)); color: var(--ink-2); }
.upsell__name { font-size: var(--text-sm); font-weight: 600; }
.upsell__price { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-2); }
.upsell .btn { margin-left: auto; }

/* Drawer del carrito */
.drawer { position: fixed; inset: 0; z-index: var(--z-modal); pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(26rem, 94vw);
  background: var(--paper); box-shadow: var(--shadow-3);
  transform: translateX(102%); transition: transform var(--dur-long) var(--ease-out);
  display: flex; flex-direction: column;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--rule-2); }
.drawer__head h3 { margin: 0; font-size: var(--text-md); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--space-md) var(--space-lg); display: grid; gap: var(--space-md); align-content: start; }
.drawer__line { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; }
.drawer__line img, .drawer__line .product__tile { border-radius: var(--r-sm); aspect-ratio: 1; object-fit: cover; }
.drawer__line .nm { font-size: var(--text-sm); font-weight: 600; line-height: 1.25; }
.drawer__line .mt { font-size: var(--text-xs); font-family: var(--font-mono); color: var(--muted); }
.drawer__line .pr { font-family: var(--font-mono); font-size: var(--text-sm); }
.drawer__foot { border-top: 1px solid var(--rule-2); padding: var(--space-md) var(--space-lg) max(var(--space-md), env(safe-area-inset-bottom)); display: grid; gap: var(--space-sm); background: var(--paper); }
.drawer__subtotal { display: flex; justify-content: space-between; font-weight: 700; }
.drawer__subtotal .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.drawer__empty { text-align: center; color: var(--ink-2); padding-block: var(--space-2xl); }

/* ============ 15 · CHECKOUT ============ */
.steps { display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-xl); flex-wrap: wrap; }
.steps .st { display: inline-flex; align-items: center; gap: var(--space-xs); white-space: nowrap; }
.steps .st .n { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; font-size: var(--text-xs); }
.steps .st.is-active { color: var(--ink); }
.steps .st.is-active .n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.steps .st.is-done .n { background: var(--ok); border-color: var(--ok); color: var(--paper); }
.steps .ln { width: 2.5rem; height: 1px; background: var(--rule); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-base); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--r-sm); padding: var(--space-sm);
  transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
  width: 100%; min-height: 48px;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:hover, .field select:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field.is-error input, .field.is-error select { border-color: var(--err); background: var(--err-soft); }
.field .err-msg { min-height: 1lh; font-size: var(--text-sm); color: var(--err); visibility: hidden; }
.field.is-error .err-msg { visibility: visible; }
.field .hint { font-size: var(--text-xs); color: var(--muted); }
.doc-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-xs); }
.check-row { display: flex; align-items: flex-start; gap: var(--space-xs); font-size: var(--text-sm); color: var(--ink-2); padding-block: var(--space-xs); cursor: pointer; }
.check-row input { accent-color: var(--brand-ink); width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.pay-methods { display: grid; gap: var(--space-sm); }
.pay-method { border: 1px solid var(--rule); border-radius: var(--r-md); padding: var(--space-md); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-sm) var(--space-md); align-items: center; cursor: pointer; transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.pay-method:hover { border-color: var(--ink-2); }
.pay-method.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pay-method input { accent-color: var(--ink); width: 18px; height: 18px; }
.pay-method__name { font-weight: 600; }
.pay-method__desc { grid-column: 2 / -1; font-size: var(--text-sm); color: var(--muted); margin: 0; }
.pay-method__logos { display: flex; gap: var(--space-2xs); }
.checkout-nav { display: flex; gap: var(--space-sm); margin-top: var(--space-xl); flex-wrap: wrap; }
.checkout-nav .btn-primary { flex: 1; min-width: 14rem; }
.co-step[hidden] { display: none; }
.secure-note { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-md); }

/* ============ 16 · GRACIAS ============ */
.thanks { max-width: 46rem; }
.thanks__check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; color: var(--ok); margin-bottom: var(--space-lg); }
.thanks__check svg path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 600ms var(--ease-out) 250ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.order-box { border: 1px solid var(--rule-2); border-radius: var(--r-lg); padding: var(--space-lg); margin-block: var(--space-xl); display: grid; gap: var(--space-sm); }
.order-box__row { display: flex; justify-content: space-between; gap: var(--space-md); font-size: var(--text-sm); color: var(--ink-2); flex-wrap: wrap; }
.order-box__row .v { font-family: var(--font-mono); color: var(--ink); }
.timeline { display: grid; gap: 0; margin-block: var(--space-xl); }
.tl-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-md); position: relative; padding-bottom: var(--space-lg); }
.tl-step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--rule-2); }
.tl-step:last-child::before { display: none; }
.tl-step .pt { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--rule); background: var(--paper); display: grid; place-items: center; }
.tl-step.is-done .pt { border-color: var(--ok); background: var(--ok); color: var(--paper); }
.tl-step.is-now .pt { border-color: var(--brand-ink); }
.tl-step.is-now .pt::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-ink); }
.tl-step h4 { margin: 0; font-size: var(--text-base); }
.tl-step p { margin: var(--space-3xs) 0 0; font-size: var(--text-sm); color: var(--muted); }

/* ============ 17 · MI CUENTA ============ */
.account-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.account-nav { display: grid; gap: 2px; position: sticky; top: calc(var(--bar-h) + var(--space-lg)); }
.account-nav button, .account-nav a { text-align: left; padding: var(--space-sm) var(--space-md); border-radius: var(--r-sm); font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); transition: background-color var(--dur-micro) var(--ease-out); display: block; }
.account-nav button:hover { background: var(--paper-2); color: var(--ink); }
.account-nav button[aria-selected="true"] { background: var(--paper-3); color: var(--ink); font-weight: 600; }
.panel[hidden] { display: none; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--text-sm); }
.table th { text-align: left; font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: var(--space-sm) var(--space-xs); border-bottom: 1px solid var(--rule); }
.table td { padding: var(--space-md) var(--space-xs); border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
.table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: var(--text-xs); font-weight: 600; border-radius: var(--r-full); padding: 3px 10px; }
.tag--ok { background: var(--ok-soft); color: var(--ok-ink); }
.tag--warn { background: var(--warn-soft); color: var(--warn-ink); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.dl-card { border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: var(--space-md); display: grid; gap: var(--space-xs); }
.dl-card__mat { display: flex; align-items: center; gap: var(--space-xs); font-weight: 600; }
.dl-card__row { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.addr-card { border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: var(--space-md); max-width: 24rem; font-size: var(--text-sm); color: var(--ink-2); }
.addr-card b { color: var(--ink); }

/* ============ 18 · MODAL / TOAST / WHATSAPP ============ */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--space-md); pointer-events: none; }
.modal__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.modal__card { position: relative; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-3); max-width: 34rem; width: 100%; max-height: 86dvh; overflow-y: auto; padding: var(--space-xl); opacity: 0; transform: scale(0.96); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.modal.is-open { pointer-events: auto; }
.modal.is-open .modal__scrim { opacity: 1; }
.modal.is-open .modal__card { opacity: 1; transform: none; }
.modal__x { position: absolute; top: var(--space-sm); right: var(--space-sm); width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-full); color: var(--ink-2); }
.modal__x:hover { background: var(--paper-3); }
.cert { border: 1px solid var(--kraft-2); background: var(--kraft); border-radius: var(--r-md); padding: var(--space-lg); text-align: center; color: var(--kraft-deep); display: grid; gap: var(--space-sm); justify-items: center; }
.cert img { border-radius: var(--r-sm); max-width: 14rem; }
.cert h4 { color: var(--kraft-h); margin: 0; }
.toasts { position: fixed; bottom: var(--space-lg); left: 50%; translate: -50% 0; z-index: var(--z-toast); display: grid; gap: var(--space-xs); justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: var(--paper); border-radius: var(--r-sm); padding: var(--space-sm) var(--space-md); font-size: var(--text-sm); box-shadow: var(--shadow-2); display: flex; gap: var(--space-md); align-items: center; animation: toast-in var(--dur-long) var(--ease-out); }
.toast--err { background: var(--err); }
.toast button { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.wa-float {
  position: fixed; bottom: var(--space-lg); right: var(--space-lg); z-index: var(--z-raised);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: white; box-shadow: var(--shadow-2);
  transition: transform var(--dur-micro) var(--ease-out);
}
.wa-float:hover { transform: translateY(-2px); }

/* ============ 19 · RESPONSIVE ============ */
@media (max-width: 60rem) {
  .hero__grid, .split, .cart-layout, .checkout-layout, .pdp { grid-template-columns: minmax(0, 1fr); }
  .split--rev > :first-child { order: 0; }
  .gallery { position: static; }
  .summary { position: static; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xsell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review--lead { grid-column: 1 / -1; }
  .assure { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: var(--space-2xs); padding-bottom: var(--space-xs); }
  .account-nav button { white-space: nowrap; }
  .footer__mast { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .section { padding-block: var(--space-2xl); }
  .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  :root { --bar-h: 58px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-sm); }
  .xsell { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: var(--space-xs); }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .wall { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .sticky-atc { display: flex; }
  .hero { padding-block: var(--space-lg) var(--space-2xl); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .cart-line { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .cart-line__right { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .nav__banner { padding-inline: var(--space-xl); font-size: var(--text-xs); }
  .nav__banner p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav__banner-link { display: none; }
  .brand small { display: none; }
  .wa-float { bottom: calc(var(--space-lg) + 66px); }
  body:not(.has-sticky-atc) .wa-float { bottom: var(--space-lg); }
}

/* ============ 20 · REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
  }
  .marquee__track { animation: none; }
  .showroom__stage { transform: none !important; }
  .reveal-set .reveal { opacity: 1; transform: none; }
  .btn.is-loading::after, .thanks__check svg path { animation: none; }
  .thanks__check svg path { stroke-dashoffset: 0; }
}
