
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  color-scheme: light;

  --ink: #0a0b0f;
  --ink-soft: #181a20;
  --ink-contrast: #ffffff;
  --bg: #f5f6f9;
  --surface: #fdfdff;
  --surface-2: #eef0f5;
  --surface-soft: #f8f9fb;
  --border: #e4e6ed;
  --text: #0a0b0f;
  --text-soft: #474b57;
  --text-muted: #868b99;

  --brand: #1a4cff;
  --brand-strong: #1239cc;
  --accent: #ff2e3a;
  --ok: #16a34a;
  --wa: #25D366;

  --shadow-sm: 0 1px 2px rgba(10,11,20,.06);
  --shadow-md: 0 8px 24px -8px rgba(10,11,20,.18), 0 2px 6px rgba(10,11,20,.06);
  --shadow-lg: 0 25px 60px -12px rgba(10,11,20,.42);
  --radius: 16px;
  --radius-sm: 10px;

  --wash-oferta: linear-gradient(135deg, #fff5f5 0%, var(--surface) 60%);
  --wash-envio:  linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  --glow-top: transparent;
  --card-elev: none;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --dur-micro: 140ms;
  --dur-fast: 200ms;
  --dur-base: 300ms;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f4f8;
  --ink-soft: #dde1ea;
  --ink-contrast: #0b0d13;
  --bg: #0b0d13;
  --surface: #12151d;
  --surface-2: #1b1f2b;
  --surface-soft: #161a24;
  --border: #272c3a;
  --text: #eceef4;
  --text-soft: #b4b9c6;
  --text-muted: #7e8493;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.45);
  --shadow-md: 0 10px 30px -12px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg: 0 30px 70px -14px rgba(0,0,0,.85);

  --wash-oferta: linear-gradient(155deg, oklch(0.28 0.09 264 / .55) 0%, var(--bg) 58%);
  --wash-envio:  linear-gradient(135deg, oklch(0.30 0.05 70 / .35) 0%, var(--surface-2) 90%);
  --glow-top: radial-gradient(120% 62% at 50% -14%, oklch(0.45 0.20 264 / .30) 0%, oklch(0.30 0.14 264 / .10) 30%, transparent 62%);
  --card-elev: linear-gradient(180deg, rgba(255,255,255,.028) 0%, rgba(255,255,255,0) 42%);
}

:root[data-theme="dark"] body::before {
  content: ''; position: fixed; inset: 0; z-index: -2;
  background: var(--glow-top);
  pointer-events: none;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .cat-card,
:root[data-theme="dark"] .subasta-card,
:root[data-theme="dark"] .flyer-card,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .order,
:root[data-theme="dark"] .recientes__card {
  background-image: var(--card-elev);
}

:root[data-theme="dark"] .brands-wrap {
  background:
    radial-gradient(120% 150% at 50% -30%, oklch(0.36 0.11 264 / .55) 0%, transparent 58%),
    #141824;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

:root[data-theme="dark"] .hero + .section::before {
  background: linear-gradient(to bottom,
    oklch(0.55 0.20 264 / .40) 0%,
    oklch(0.45 0.16 264 / .16) 40%,
    transparent 100%);
}

html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  scroll-behavior: smooth;

  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,46,58,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(255,46,58,0); }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-entrance), transform .7s var(--ease-entrance); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.tira { background: #0a0a0a; color: #f6f6f7; font-size: 12.5px; padding: 9px 0; }
.tira__inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.tira b { color: white; font-weight: 600; }
.tira span { opacity: .72; }
.tira__right { margin-left: auto; display: flex; gap: 22px; opacity: .85; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar__inner {
  max-width: 1320px; margin: 0 auto; padding: 18px 24px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-weight: 900; font-size: 22px; letter-spacing: -0.5px;
  color: var(--ink);
}

.search {

  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0 18px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.search:hover { border-color: var(--text-muted); }
.search:focus-within {
  background: var(--surface); border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,76,255,0.10);
}
.search__icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search input {
  flex: 1; border: none; background: transparent;
  padding: 12px 10px; font: inherit; color: var(--text);
  outline: none; min-width: 0;
}
.search__clear {
  border: none; background: transparent;
  font-size: 22px; line-height: 1;
  color: var(--text-muted); cursor: pointer; padding: 4px 8px;
}
.search__clear:hover { color: var(--text); }

.userbar { display: flex; align-items: center; gap: 6px; }
.userbar__btn {
  position: relative;
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.userbar__btn:hover { background: var(--ink); color: var(--ink-contrast); }

.userbar__btn--theme svg { width: 17px; height: 17px; }
.theme-ico-sun { display: none; }
:root[data-theme="dark"] .theme-ico-sun { display: block; }
:root[data-theme="dark"] .theme-ico-moon { display: none; }
.userbar__btn svg { width: 18px; height: 18px; }
.userbar__btn--cart { padding: 8px 14px; }

.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--surface);
}

.cart-badge--pop {
  animation: badgePop .45s var(--ease-entrance);
}
@keyframes badgePop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.45); box-shadow: 0 0 0 6px rgba(255,46,58,.25); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,46,58,0); }
}

.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  z-index: 50;
  padding: 8px;
  display: flex; flex-direction: column;
}
.user-menu__name {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  font-size: 13px;
}
.user-menu__name b { display: block; }
.user-menu__name span { color: var(--text-muted); font-size: 11.5px; }
.user-menu button {
  background: none; border: none;
  padding: 9px 12px;
  text-align: left;
  font: inherit; font-size: 13px;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
}
.user-menu button:hover { background: var(--surface-2); }

.hero {
  position: relative;
  background: #06091a;
  padding: 110px 24px 90px;

  min-height: calc(100vh - 112px);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('img/hero-marcas.jpg?v=1') center/cover no-repeat;
  transform: translateY(var(--hero-shift, 0px)) scale(var(--hero-zoom, 1.08));
  will-change: transform;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, oklch(0.32 0.16 264 / .85) 0%, oklch(0.30 0.14 264 / .35) 14%, transparent 32%),
    linear-gradient(100deg, rgba(6,9,26,.82) 0%, rgba(6,9,26,.55) 32%, rgba(6,9,26,.30) 60%, rgba(6,9,26,.16) 85%),
    linear-gradient(rgba(6,9,26,.28), rgba(6,9,26,.28));
  z-index: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  left: 50%; bottom: -30%;
  width: 130%; height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, oklch(0.55 0.23 264 / .38) 0%, transparent 62%);
  animation: heroGlow 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes heroGlow {
  from { opacity: .55; transform: translateX(-50%) scaleY(1); }
  to   { opacity: 1;   transform: translateX(-50%) scaleY(1.18); }
}
.hero__inner {
  max-width: 1320px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}

@supports (animation-timeline: view()) {
  .hero__inner {
    animation: heroExit linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 90%;
  }
  @keyframes heroExit {
    to { transform: translateY(-48px); opacity: .15; }
  }
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: white;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.20);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero__pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.25);
}
.hero__title {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.05;
  margin: 0 0 16px;
  color: white;
  text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.6);
}
.hero__title em {
  font-style: normal;
  color: var(--brand);
  text-shadow: 0 2px 16px rgba(0,0,0,.65), 0 0 28px rgba(26,76,255,.45);
}
.hero__sub {
  font-size: 16.5px;
  color: rgba(255,255,255,.90);
  max-width: 640px;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin: 28px 0 0;
  padding: 0;
  max-width: 760px;
}
.hero__trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.92);
  font-size: 13.5px;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.hero__trust-item svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--brand);
  filter: drop-shadow(0 0 8px rgba(26,76,255,.5));
}
.hero__trust-item b { color: white; font-weight: 700; font-size: 14px; }
@media (max-width: 720px) {
  .hero__trust { gap: 14px; margin-top: 22px; }
  .hero__trust-item { font-size: 12.5px; }
}

.hero__pill  { animation: slideDown .6s var(--ease-entrance) both; }
.hero__title { animation: fadeUp .8s var(--ease-entrance) both .1s; }
.hero__sub   { animation: fadeUp .8s var(--ease-entrance) both .25s; }
.hero__trust { animation: fadeUp .8s var(--ease-entrance) both .4s; }

@media (max-width: 720px) {
  .hero { min-height: 420px; padding: 80px 24px 60px; }
}

.hero + .section {
  position: relative;
}
.hero + .section::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  height: 440px;
  background: linear-gradient(to bottom,
    oklch(0.62 0.17 264 / .20) 0%,
    oklch(0.70 0.12 264 / .10) 38%,
    transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.container { max-width: 1320px; margin: 0 auto; padding: 36px 24px 80px; }

.hero + .container { padding-top: 72px; }
.section { padding: 24px 24px 8px; }
.section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px; gap: 16px;
}
.section__title {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.6px; color: var(--ink); margin: 0;
}
.section__hint { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.cat-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px; min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-from, var(--brand)) 0%, var(--accent-to, var(--brand-strong)) 100%);
  opacity: 0; transition: opacity 0.2s; z-index: 0;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-card:hover::before { opacity: 1; }
.cat-card:hover .cat-card__icon,
.cat-card:hover .cat-card__name,
.cat-card:hover .cat-card__count { color: white; }
.cat-card:hover .cat-card__count { background: rgba(255,255,255,.16); }
.cat-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center; color: var(--ink);
  background: var(--surface-2); border-radius: 12px;
  position: relative; z-index: 1;
  transition: color 0.2s, background 0.2s;
}
.cat-card:hover .cat-card__icon { background: rgba(255,255,255,.18); }
.cat-card__icon svg { width: 24px; height: 24px; }
.cat-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.cat-card__name {
  font-size: 17px; font-weight: 700; color: var(--ink);
  line-height: 1.25; letter-spacing: -0.3px; transition: color 0.2s;
}
.cat-card__count {
  font-size: 11.5px; color: var(--text-muted);
  background: var(--surface-2); padding: 3px 9px;
  border-radius: 999px; width: fit-content;
  font-weight: 600; transition: color 0.2s, background 0.2s;
}

.cat-card--img {
  border-color: transparent;
  color: #fff;
  justify-content: flex-end;
}
.cat-card__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s var(--ease-out);
}
.cat-card--img:hover .cat-card__bg { transform: scale(1.06); }

.cat-card--img::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,9,15,.88) 0%, rgba(8,9,15,.45) 45%, rgba(8,9,15,.15) 100%);
  transition: background .25s var(--ease-out);
}
.cat-card--img:hover::after {
  background: linear-gradient(to top, rgba(10,18,60,.90) 0%, rgba(12,30,120,.50) 45%, rgba(26,76,255,.20) 100%);
}

.cat-card--img::before { display: none; }
.cat-card--img .cat-card__body { position: relative; z-index: 2; }
.cat-card--img .cat-card__name { color: #fff; }
.cat-card--img .cat-card__count {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
}

.cat-card--img:hover .cat-card__name,
.cat-card--img:hover .cat-card__count { color: #fff; }

.cat-card:nth-child(6n+1) { --accent-from:#1a4cff; --accent-to:#0a2bbf; }
.cat-card:nth-child(6n+2) { --accent-from:#0a0a0a; --accent-to:#2a2a2a; }
.cat-card:nth-child(6n+3) { --accent-from:#ff2e3a; --accent-to:#c9202b; }
.cat-card:nth-child(6n+4) { --accent-from:#16a34a; --accent-to:#0f7a37; }
.cat-card:nth-child(6n+5) { --accent-from:#f59e0b; --accent-to:#c47600; }
.cat-card:nth-child(6n+6) { --accent-from:#7c3aed; --accent-to:#5b21b6; }

.reveal.is-visible .cat-card,
.reveal.is-visible .card {
  animation: fadeUp .5s var(--ease-entrance) both;
}
.reveal.is-visible .cat-card:nth-child(1),
.reveal.is-visible .card:nth-child(1)  { animation-delay: .02s; }
.reveal.is-visible .cat-card:nth-child(2),
.reveal.is-visible .card:nth-child(2)  { animation-delay: .06s; }
.reveal.is-visible .cat-card:nth-child(3),
.reveal.is-visible .card:nth-child(3)  { animation-delay: .10s; }
.reveal.is-visible .cat-card:nth-child(4),
.reveal.is-visible .card:nth-child(4)  { animation-delay: .14s; }
.reveal.is-visible .cat-card:nth-child(5),
.reveal.is-visible .card:nth-child(5)  { animation-delay: .18s; }
.reveal.is-visible .cat-card:nth-child(6),
.reveal.is-visible .card:nth-child(6)  { animation-delay: .22s; }
.reveal.is-visible .cat-card:nth-child(7),
.reveal.is-visible .card:nth-child(7)  { animation-delay: .26s; }
.reveal.is-visible .cat-card:nth-child(8),
.reveal.is-visible .card:nth-child(8)  { animation-delay: .30s; }
.reveal.is-visible .cat-card:nth-child(n+9),
.reveal.is-visible .card:nth-child(n+9) { animation-delay: .34s; }

.brands-wrap {
  background: #0a0b0f; color: white;
  padding: 36px 0 40px; margin-top: 40px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.07);
}

.brands-wrap > .container { padding-top: 0; padding-bottom: 0; }
.brands-wrap .section__title { color: white; }
.brands-wrap .section__hint  { color: rgba(255,255,255,.55); }

.brands-marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.brands-marquee__track {
  display: flex; gap: 56px; align-items: center;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.brands-marquee:hover .brands-marquee__track { animation-play-state: paused; }

.brand-chip {
  font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
  color: white; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.brand-chip::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.brand-chip:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.26); transform: translateY(-2px) scale(1.04); }
.brand-chip__count {
  font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,.55); margin-left: 2px;
}

.ofertas-wrap {
  background: var(--wash-oferta);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 36px 0 48px; margin-top: 24px;
}
.ofertas-tag {
  display: inline-block; background: var(--accent); color: white;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 6px;
  margin-right: 12px; vertical-align: middle; transform: translateY(-2px);
  animation: pulseRed 2.4s ease-in-out infinite;
}
.card--oferta { position: relative; }
.card--oferta::before {
  content: ''; position: absolute; inset: 0 0 auto 0;
  height: 3px; background: var(--accent); z-index: 2;
}
.card__badges {
  position: absolute; bottom: 10px; right: 10px;
  display: flex; gap: 4px; z-index: 2;
}
.card__sbadge {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--ink);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  cursor: help;
}
.card__sbadge--ig { background: linear-gradient(135deg,#feda75,#fa7e1e 40%,#d62976 70%,#962fbf); color: white; }
.card__sbadge--tt { background: #000; color: white; }
.card__sbadge--ml { background: #fff159; color: #2d3277; }
.card__sbadge--mp { background: #166fe5; color: white; }
.card__sbadge--cp { background: var(--accent); color: white; }
.card__sbadge--fl { background: #16a34a; color: white; }

.breadcrumb {
  display: flex; gap: 8px; font-size: 13px; color: var(--text-muted);
  padding-top: 8px; margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-soft); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb__sep { opacity: 0.5; }
.listado__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.listado__title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -1px; color: var(--ink);
  margin: 0 0 4px; line-height: 1.1;
}
.listado__sub { font-size: 14px; color: var(--text-muted); margin: 0; }
.filters { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft);
  padding: 7px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--ink-contrast); }

.state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px;
  padding: 90px 24px; color: var(--text-soft); text-align: center;
}
.state--error { color: var(--accent); }
.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--border); border-top-color: var(--ink);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skel-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.skel-card__media { aspect-ratio: 1 / 1; }
.skel-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.skel-line { height: 12px; border-radius: 6px; }
.skel-line--lg { height: 16px; }
.skel-line--price { height: 22px; }
.skel-card__foot { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.skel-shimmer {
  background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in oklab, var(--surface-2) 60%, #fff) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s var(--ease-out) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skel-shimmer { animation: none; }
}

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px;
  padding: 56px 24px;
  animation: fadeUp .5s var(--ease-entrance) both;
}
.empty-state__art {
  width: 88px; height: 88px; margin-bottom: 12px;
  display: grid; place-items: center;
  color: var(--brand);
  background: radial-gradient(circle at center, color-mix(in oklab, var(--brand) 12%, transparent), transparent 70%);
  border-radius: 50%;
  animation: emptyFloat 3.2s var(--ease-out) infinite;
}
.empty-state__art svg { width: 44px; height: 44px; }
.empty-state__title { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.3px; }
.empty-state__sub {
  font-size: 13.5px; color: var(--text-muted);
  margin: 0 0 16px; max-width: 320px; line-height: 1.5;
}
@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .empty-state__art { animation: none; }
}

.btn {
  background: var(--ink); color: var(--ink-contrast);
  border: none; padding: 12px 24px;
  border-radius: 999px; font-weight: 600; font-size: 13px;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.btn:hover { background: var(--brand); color: #fff; }

.btn:active { transform: scale(.97); transition-duration: 60ms; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ink-contrast); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); }
.btn--lg { padding: 14px 28px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--wa {

  background: transparent; color: var(--wa); border: 1.5px solid var(--wa);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12.5px 22px;
  border-radius: 12px; font-size: 14.5px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s; width: 100%;
}
.btn--wa:hover { background: rgba(37,211,102,0.10); border-color: #1ebe5d; color: #1ebe5d; }
.btn--wa svg { width: 18px; height: 18px; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
}

.grid.is-cats {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  cursor: pointer; border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.card__media {
  position: relative; aspect-ratio: 1 / 1;

  background: #fff;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__img { transition: transform .45s var(--ease-out); }
.card:hover .card__img { transform: scale(1.05); }
.card__media--failed::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #eef0f4 0%, #fafbfc 100%) url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23c8ccd4' stroke-width='1.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5h18v14H3z'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='m3 17 5-5 5 5 4-4 4 4'/%3E%3C/svg%3E") center / 64px no-repeat;
}
.card__placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center; color: #c8ccd4;
}
.card__placeholder svg { width: 64px; height: 64px; stroke-width: 1; }

.subasta-unirse {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 42px 28px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.subasta-unirse--ok { border-style: solid; border-color: var(--wa); }
.subasta-unirse__icon { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.subasta-unirse__titulo {
  margin: 0 0 10px; font-size: 21px; font-weight: 800;
  letter-spacing: -.4px; color: var(--ink);
}
.subasta-unirse__texto {
  margin: 0 auto 20px; max-width: 46ch;
  font-size: 14.5px; line-height: 1.65; color: var(--text-muted);
}
.subasta-unirse .btn { min-width: 210px; }
@media (max-width: 640px) {
  .subasta-unirse { padding: 32px 20px; }
  .subasta-unirse__titulo { font-size: 19px; }
  .subasta-unirse .btn { min-width: 0; width: 100%; }
}

.subastas-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.subasta-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.subasta-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.subasta-card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.subasta-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.subasta-card__noimg { font-size: 44px; opacity: .4; }
.subasta-card__lote {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,10,10,.82); color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .4px;
  backdrop-filter: blur(6px);
}
.subasta-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.subasta-card__name { margin: 0; font-size: 14.5px; line-height: 1.35; color: var(--text); }
.subasta-card__qty { font-size: 12px; color: var(--text-muted); }
.subasta-card__bid { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.subasta-card__bid span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 600; }
.subasta-card__bid b { font-size: 19px; color: var(--brand); }
.subasta-card__bid small { font-size: 12px; color: var(--text-muted); }
.subasta-card__timer { font-size: 13px; font-weight: 600; color: var(--text-soft); min-height: 1.2em; }
.subasta-card__timer.is-urgent { color: var(--accent); animation: pulseRed 2s infinite; border-radius: 8px; padding: 2px 8px; width: fit-content; }
.subasta-card__timer.is-done { color: var(--text-muted); }
.subasta-card__cta { margin-top: auto; text-align: center; font-size: 12.5px; padding: 10px 16px; width: 100%; }
.subasta-card__wa {
  display: block; text-align: center; margin-top: 7px;
  font-size: 12px; color: var(--text-muted); text-decoration: underline;
}
.subasta-card__wa:hover { color: var(--wa); }
.subasta-card--prog { opacity: .85; }

.flyer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.flyer-card {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--surface); cursor: pointer; padding: 0; text-align: left;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.flyer-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.09); }
.flyer-card__img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block;
  background: var(--surface-2); padding: 8px;
}
.flyer-card__name {
  padding: 11px 14px; font-size: 12.5px; font-weight: 600; color: var(--text-soft);
  line-height: 1.35; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  border-top: 1px solid var(--border);
}

.section__vertodas {
  background: none; border: none; cursor: pointer; font: inherit; font-size: 13.5px;
  font-weight: 600; color: var(--brand); padding: 4px 2px;
}
.section__vertodas:hover { text-decoration: underline; }

.detail__flyer { margin: 20px 0 4px; }
.detail__flyer-title { margin: 0 0 10px; font-size: 15px; }
.detail__flyer-link {
  display: block; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  max-width: 460px; background: var(--surface-2);
}
.detail__flyer-link img { width: 100%; height: auto; display: block; }
.detail__flyer-link:hover { border-color: var(--brand); }

#search-input::-webkit-search-cancel-button,
#search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.recientes-row {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px 2px 12px; scroll-snap-type: x proximity;
}
.recientes__card {
  flex: 0 0 145px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px; cursor: pointer; text-align: left;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.recientes__card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.recientes__img {
  aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  display: flex; align-items: center; justify-content: center;
}
.recientes__img img { width: 100%; height: 100%; object-fit: cover; }
.recientes__noimg { font-size: 30px; opacity: .45; }
.recientes__name {
  font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--text-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px; min-height: 2.6em;
}
.recientes__price { font-size: 13px; font-weight: 700; color: var(--brand); }
.recientes__clear {
  background: none; border: none; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--text-muted);
}
.recientes__clear:hover { color: var(--brand); text-decoration: underline; }

.card__tags {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
}
.card__tag {
  font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 7px;
  text-transform: uppercase; letter-spacing: .04em; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18); white-space: nowrap;
}
.card__tag--oferta { background: #ff2e3a; }
.card__tag--low { background: #f59e0b; }
.card__badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,10,10,.82); color: white;
  font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.4px; backdrop-filter: blur(6px);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.card__body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.card__brand {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.card__name {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 38px;
}
.card__footer {
  margin-top: auto; padding-top: 8px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  border-top: 1px solid var(--border);
}
.card__price { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.6px; line-height: 1; }
.card__price--empty { color: var(--text-muted); font-weight: 500; font-size: 14px; }

.card__precios { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card__price-antes {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.card__off {
  font-size: 11.5px; font-weight: 800; letter-spacing: .2px;
  color: #fff; background: #e5342b; border-radius: 999px; padding: 3px 8px;
}
.card__stock { font-size: 12.5px; font-weight: 600; }
.card__stock--ok  { color: var(--ok); }
.card__stock--out { color: var(--text-muted); }

.card__actions { display: flex; gap: 6px; margin-top: 4px; }
.card__btn {
  flex: 1; padding: 9px 10px;
  border: none; border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s, color 0.15s;
}
.card__btn:active { transform: scale(.97); }
.card__btn svg { width: 14px; height: 14px; }

.card__btn--wa {
  background: var(--surface);
  color: var(--wa);
  border: 1.5px solid var(--wa);
}
.card__btn--wa:hover { background: rgba(37,211,102,.10); }

.card__btn--buy { background: var(--brand); color: white; }
.card__btn--buy:hover { background: var(--brand-strong); }
.card__btn--buy:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }
.card__btn--buy svg { stroke-width: 2; }

.modal {
  border: none; padding: 0;
  border-radius: 20px;
  width: min(1040px, 94vw); max-height: 92vh;
  background: var(--surface);
  box-shadow: var(--shadow-lg); overflow: hidden;

  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition:
    opacity var(--dur-base) var(--ease-entrance),
    transform var(--dur-base) var(--ease-entrance),
    overlay var(--dur-base) allow-discrete,
    display var(--dur-base) allow-discrete;
}
.modal[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style {
  .modal[open] { opacity: 0; transform: translateY(14px) scale(.985); }
}
.modal::backdrop {
  background: rgba(10,11,20,.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition:
    opacity var(--dur-base) var(--ease-entrance),
    overlay var(--dur-base) allow-discrete,
    display var(--dur-base) allow-discrete;
}
.modal[open]::backdrop { opacity: 1; }
@starting-style {
  .modal[open]::backdrop { opacity: 0; }
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer;
  color: var(--ink); z-index: 5;
  box-shadow: var(--shadow-sm); transition: transform 0.15s;
}
.modal__close:hover { transform: rotate(90deg); }
.modal__content { padding: 0; overflow-y: auto; max-height: 92vh; }

.detail__hero { display: grid; grid-template-columns: 1.05fr 1fr; }
.detail__media-main {

  aspect-ratio: 4 / 3; background: #fff;
  overflow: hidden; position: relative;
}

.detail__media-main:has(iframe),
.detail__media-main:has(.yt-facade) { background: #0a0a0a; }
.detail__media-main img, .detail__media-main iframe {
  width: 100%; height: 100%; border: none; display: block; object-fit: cover;
}

.yt-facade {
  position: relative;
  width: 100%; height: 100%;
  padding: 0; border: none; cursor: pointer;
  background: #000;
  display: block;
}
.yt-facade img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .2s ease;
}
.yt-facade:hover img { opacity: .85; }
.yt-facade__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 48px;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  transition: transform .15s ease;
}
.yt-facade:hover .yt-facade__play { transform: translate(-50%, -50%) scale(1.08); }
.yt-facade__play svg { width: 100%; height: 100%; display: block; }

.yt-player-mount, .yt-player-mount iframe { width: 100%; height: 100%; display: block; border: 0; }

.yt-blocked {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}
.yt-blocked img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .35;
  transition: opacity .2s ease, transform .3s ease;
}
.yt-blocked:hover img { opacity: .45; transform: scale(1.02); }
.yt-blocked__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px;
  text-align: center;
}
.yt-blocked__icon {
  width: 44px; height: 44px; color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}
.yt-blocked__icon svg { width: 20px; height: 20px; }
.yt-blocked:hover .yt-blocked__icon { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.yt-blocked__txt { color: #fff; max-width: 320px; }
.yt-blocked__txt strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; letter-spacing: -.005em; }
.yt-blocked__txt span { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.4; }

.detail__yt-link {
  display: block;
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: right;
}
.detail__yt-link:hover { color: var(--text); text-decoration: underline; }

.detail__media-thumbs {
  display: flex; gap: 8px; padding: 14px;
  background: var(--surface); border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.detail__thumb {
  position: relative;
  width: 70px; height: 50px; border-radius: 8px;
  overflow: hidden; border: 2px solid transparent;
  cursor: pointer; padding: 0;
  background: #fff;
}
.detail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail__thumb.is-active { border-color: var(--brand); }
.detail__thumb-badge {
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(0,0,0,.7); color: white;
  font-size: 10px; line-height: 1;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.detail__main-img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--surface-2);
  display: block;
}

.detail__info { padding: 40px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); }
.detail__breadcrumb {
  font-size: 11.5px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600;
}
.detail__title {
  margin: 0; font-size: 28px; font-weight: 800;
  color: var(--ink); line-height: 1.15; letter-spacing: -0.8px;
}
.detail__code {

  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 600;
  background: var(--surface-2); color: var(--text-muted);
  padding: 3px 9px; border-radius: 5px; width: fit-content;
  border: 1px solid var(--border);
  letter-spacing: 0.3px;
}
.detail__price-block { background: var(--surface-2); border-radius: var(--radius-sm); padding: 20px; }
.detail__price-main { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -1.2px; line-height: 1; }
.detail__price-main--empty {

  font-size: 16px; color: var(--text-muted); font-weight: 600;
  letter-spacing: 0; line-height: 1.4;
}
.detail__price-label {
  font-size: 11.5px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; margin-bottom: 6px;
}
.detail__stock-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; }

.detail__notif {
  margin-top: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.detail__notif-head strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 2px;
}
.detail__notif-head small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.detail__notif-form {
  display: flex;
  gap: 8px;
}
.detail__notif-form input[type="email"] {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: var(--surface);
}
.detail__notif-form input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,76,255,0.10);
}
.detail__notif-form input[type="email"]:disabled { opacity: .5; }
.detail__notif-form button { padding: 9px 16px; font-size: 13px; }
.detail__notif-status {
  font-size: 12px;
  margin-top: 8px;
  min-height: 14px;
  color: var(--text-muted);
}
.detail__notif-status--ok { color: var(--ok); font-weight: 600; }
.detail__notif-status--err { color: var(--danger); }
.detail__notes { font-size: 14px; line-height: 1.65; color: var(--text-soft); }
.detail__notes b { color: var(--ink); }
.detail__notes-rel { color: var(--brand); font-weight: 600; text-decoration: none; cursor: pointer; }
.detail__notes-rel:hover { text-decoration: underline; }

.detail__docs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 16px 0 4px;
}
.detail__doc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.detail__doc:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.detail__doc svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }

.detail__rel {
  padding: 28px 40px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.detail__rel-loading { display: flex; justify-content: center; padding: 20px; }
.spinner--sm { width: 22px; height: 22px; border-width: 2px; }
.detail__rel-title {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin: 0 0 16px; letter-spacing: -.2px;
}
.detail__rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.detail__rel-card {
  display: flex; flex-direction: column; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  cursor: pointer; text-align: left; padding: 0;
  font: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.detail__rel-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
}
.detail__rel-img {
  width: 100%; aspect-ratio: 1 / 1;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.detail__rel-img img { width: 100%; height: 100%; object-fit: contain; }
.detail__rel-noimg { font-size: 28px; opacity: .25; }
.detail__rel-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.detail__rel-name {
  font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
}
.detail__rel-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.detail__rel-price { font-weight: 700; color: var(--ink); }
.detail__rel-price--empty { color: var(--text-muted); font-weight: 500; font-size: 11px; }
.detail__rel-stock--ok  { color: var(--ok); font-weight: 600; }
.detail__rel-stock--out { color: var(--text-muted); font-weight: 500; }
@media (max-width: 720px) {
  .detail__rel { padding: 20px 24px 24px; }
  .detail__rel-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}
.detail__actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.detail__actions .btn { flex: 1; min-width: 140px; }

.modal--auth { width: min(440px, 94vw); }

.auth { padding: 32px; max-height: 92vh; overflow-y: auto; }
.auth__tabs {
  display: flex; gap: 4px; background: var(--surface-2);
  padding: 4px; border-radius: 999px; margin-bottom: 24px;
}
.auth__tab {
  flex: 1; background: transparent; border: none;
  padding: 9px 14px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--text-muted);
  transition: all 0.15s;
}
.auth__tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth__form { display: none; flex-direction: column; gap: 14px; }
.auth__form.is-active { display: flex; }
.auth__form h2 { margin: 0; font-size: 22px; letter-spacing: -0.5px; }
.auth__sub { color: var(--text-muted); font-size: 13px; margin: -8px 0 4px; }

.auth__sub--hint {
  font-size: 12px; line-height: 1.45;
  margin: 2px 0 0; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.auth__form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-soft);
}
.auth__form label small { font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.auth__form input {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.auth__form input:focus { border-color: var(--brand); }

.auth__form .req { color: #e5342b; font-weight: 700; margin-left: 2px; }

.auth__form input.is-invalid {
  border-color: #e5342b;
  box-shadow: 0 0 0 3px rgba(229, 52, 43, .13);
}
.auth__form input.is-invalid:focus { border-color: #e5342b; }
.auth__form input:user-invalid {
  border-color: #e5342b;
  box-shadow: 0 0 0 3px rgba(229, 52, 43, .13);
}

.auth__extra {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px dashed var(--border); border-radius: 12px;
  padding: 14px 15px 16px; background: var(--surface-2);
}
.auth__extra-titulo {
  margin: 0; font-size: 13px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.auth__extra-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px;
}
.auth__extra-sub { margin: -5px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); }

.verif { text-align: center; }
.verif__icon  { font-size: 40px; line-height: 1; }
.verif__title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.verif__text  { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.verif__datos {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; text-align: left;
  font-size: 13px; line-height: 1.7; color: var(--ink);
}
.verif__datos b { color: var(--text-muted); font-weight: 600; }
.verif--rechazado .verif__title { color: #e5342b; }
.auth__msg {
  font-size: 12.5px;
  padding: 8px 12px; border-radius: 8px;
  display: none;
}
.auth__msg.is-error   { display: block; background: #fee2e2; color: #991b1b; }
.auth__msg.is-success { display: block; background: #d1fae5; color: #065f46; }

.code-input {
  font-family: 'JetBrains Mono', Consolas, ui-monospace, monospace !important;
  font-size: 28px !important;
  font-weight: 700;
  text-align: center;
  letter-spacing: 12px;
  padding: 16px 14px !important;
}
.code-input::placeholder { color: #c8ccd4; letter-spacing: 12px; }

.auth__foot {
  display: flex; justify-content: space-between;
  margin-top: 4px;
}
.auth__link {
  background: none; border: none; padding: 4px 0;
  color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 500;
  cursor: pointer; text-decoration: underline;
}
.auth__link:hover { color: var(--brand-strong); }
.auth__link:disabled { color: var(--text-muted); cursor: not-allowed; text-decoration: none; }

.drawer { position: fixed; inset: 0; z-index: 30; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10,11,20,.5); animation: fadeIn .25s var(--ease-entrance); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 96vw);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;

  animation: slideIn .42s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer__head h2 { margin: 0; font-size: 18px; letter-spacing: -0.3px; }
.drawer__close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-soft); }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.drawer__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.drawer__total span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.drawer__total strong { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; }

.cart-item {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item__thumb {
  width: 56px; height: 56px;
  background: #fff; border-radius: 8px;
  display: grid; place-items: center; color: #c8ccd4;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item__thumb--failed { background: var(--surface-2); }
.cart-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item__name {
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item__code { font-size: 11px; color: var(--text-muted); font-family: ui-monospace, monospace; }
.cart-item__price { font-size: 13px; color: var(--text-soft); font-weight: 600; margin-top: 2px; }
.cart-item__qty {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-2); border-radius: 8px; padding: 2px;
}
.cart-item__qty button {
  width: 24px; height: 24px;
  border: none; background: transparent;
  font-size: 16px; cursor: pointer;
  border-radius: 6px;
}
.cart-item__qty button:hover { background: var(--surface); }
.cart-item__qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 13px; }
.cart-item__remove {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 12px; margin-top: 4px;
  text-decoration: underline;
}
.cart-item__remove:hover { color: var(--accent); }

.modal--checkout { width: min(1100px, 96vw); }

.checkout { padding: 36px 40px; max-height: 92vh; overflow-y: auto; }
.checkout__title { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.6px; }
.checkout__sub { color: var(--text-muted); margin: 0 0 24px; font-size: 14px; }
.checkout__grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.checkout__form fieldset {
  border: none; padding: 0; margin: 0 0 24px;

  min-width: 0;
}
.checkout__form legend {
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 14px; padding: 0;
}
.checkout__form label:not(.pago-opt) {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text-soft);
  margin-bottom: 12px;
}
.checkout__form input,
.checkout__form select,
.checkout__form textarea {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 13.5px; color: var(--text);
  outline: none; background: var(--surface);

  width: 100%; min-width: 0; max-width: 100%;
}
.checkout__form textarea { resize: vertical; }

.checkout__form input[type="radio"],
.checkout__form input[type="checkbox"] { width: auto; max-width: none; }
.checkout__form input:focus,
.checkout__form select:focus,
.checkout__form textarea:focus { border-color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.grid-2 > * { min-width: 0; }

.pago-opt {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.pago-opt:has(input:checked) { border-color: var(--brand); background: rgba(26,76,255,.04); }
.pago-opt.is-disabled { opacity: 0.5; cursor: not-allowed; }
.pago-opt input { margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.pago-opt > div { flex: 1; min-width: 0; }
.pago-opt strong { display: block; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.pago-opt small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow-wrap: anywhere; }

.pago-opt__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pago-opt__icon svg { width: 18px; height: 18px; }
.pago-opt__icon--wa   { background: #25D366; color: white; }
.pago-opt__icon--card { background: rgba(26,76,255,.12); color: var(--brand); }
.pago-opt__icon--mp   { background: rgba(26,76,255,.12); color: var(--brand); }
.pago-opt__icon--bank { background: rgba(16,122,87,.12); color: #107a57; }
.pago-aviso {
  margin: 14px 2px 0; padding: 10px 13px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px;
  font-size: 12.5px; color: #9a3412; line-height: 1.45;
}
.pago-aviso b { color: #9a3412; }

.pago-opt__tag {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 10.5px; font-weight: 700;
  color: var(--brand);
  background: rgba(26,76,255,.10);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.pago-opt__cost {
  margin-left: auto; align-self: center;
  font-size: 14px; font-weight: 700; color: var(--ink);
  white-space: nowrap;
}
.pago-opt__cost--free { color: var(--ok); }
.pago-opt__cost--collect { color: var(--text-muted); font-size: 12px; font-weight: 600; }

.checkout__agencia {
  margin-top: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.checkout__agencia label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.checkout__agencia input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit; font-size: 13.5px;
  background: var(--surface);
  box-sizing: border-box;
}
.checkout__agencia input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,76,255,.10);
}
.checkout__agencia small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.pago-opt__free-note {
  display: block; margin-top: 4px;
  font-size: 11px; color: var(--ok); font-weight: 600;
}

.checkout__hint {
  margin: 0; padding: 14px;
  font-size: 13px; color: var(--text-muted);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  text-align: center;
}
.checkout__hint--error { color: var(--accent); background: #fee2e2; }
.checkout__hint--spinner { display: flex; align-items: center; justify-content: center; gap: 10px; }
.checkout__hint--spinner .spinner { width: 18px; height: 18px; border-width: 2px; }

.checkout__lines {
  margin-bottom: 6px;
}
.checkout__line {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 13px; color: var(--text-soft);
}
.checkout__line span:last-child { font-weight: 600; color: var(--ink); }

.checkout__resumen {
  background: var(--surface-2); border-radius: var(--radius);
  padding: 24px; align-self: start;
}
.checkout__resumen h3 {
  margin: 0 0 16px; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 8px;
}
.checkout__resumen h3 svg { color: var(--brand); }
.checkout__items {
  max-height: 280px; overflow-y: auto;
  margin-bottom: 16px;
}
.checkout__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.checkout__item:last-child { border-bottom: none; }
.checkout__item-thumb {
  width: 52px; height: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid; place-items: center;
  color: #c8ccd4;
  overflow: hidden;
  flex-shrink: 0;
}
.checkout__item-thumb svg { width: 28px; height: 28px; }
.checkout__item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checkout__item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.checkout__item-name {
  font-size: 13px; font-weight: 700; color: var(--ink);
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.checkout__item-meta {
  display: flex; flex-direction: column; gap: 1px;
  font-size: 11px; color: var(--text-muted);
}
.checkout__item-price {
  font-size: 14px; font-weight: 700; color: var(--ink);
  white-space: nowrap;
  align-self: center;
}
.checkout__total {
  display: flex; justify-content: space-between; align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 14px;
  margin-top: 6px;
}
.checkout__total span { font-size: 12px; color: var(--text-muted); letter-spacing: 0.6px; font-weight: 700; }
.checkout__total strong { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.checkout__secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 12px;
}
.checkout__secure svg { color: var(--ok); }
.checkout__nota {
  margin-top: 12px; font-size: 12px;
  text-align: center; color: var(--text-muted);
}
.checkout__nota.is-error { color: var(--accent); }

.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.trust-badge {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px;
}
.trust-badge svg {
  width: 22px; height: 22px;
  color: var(--brand);
  margin-bottom: 2px;
}
.trust-badge strong {
  font-size: 11.5px;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}
.trust-badge small {
  font-size: 10.5px;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}
.checkout__terms {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  line-height: 1.5;
}
.checkout__terms a { color: var(--brand); font-weight: 600; }
.checkout__terms a:hover { text-decoration: underline; }
.checkout__terms svg { color: var(--text-muted); flex-shrink: 0; }

.modal--confirm { width: min(440px, 94vw); }
.confirm { padding: 40px; text-align: center; }
.confirm__icon {
  position: relative;
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--ok); color: white;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 32px; font-weight: 700;

  animation: confirmPop .5s var(--ease-entrance) both;
}
.confirm__icon::after {
  content: ''; position: absolute;
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--ok);
  animation: confirmHalo .7s var(--ease-out) both .15s;
}
@keyframes confirmPop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes confirmHalo {
  from { transform: scale(1); opacity: .6; }
  to   { transform: scale(1.9); opacity: 0; }
}
.confirm h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.5px; }
.confirm p { margin: 0 0 6px; color: var(--text-soft); }
.confirm__sub { font-size: 13px; color: var(--text-muted) !important; margin-bottom: 20px !important; }
.confirm b { font-family: ui-monospace, monospace; color: var(--ink); }
.confirm__transfer {
  text-align: left; border: 1px solid var(--line, #e3e5e9); border-radius: 12px;
  padding: 16px 18px; margin: 4px 0 20px; background: var(--surface-soft);
  max-height: 46vh; overflow-y: auto;
}

.confirm__qr {
  margin: 4px 0 20px; padding: 18px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
}
.confirm__qr-tit { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.confirm__qr-monto {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin: 0 0 14px;
}
.confirm__qr-monto-lbl {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-muted); margin-bottom: 3px;
}
.confirm__qr-monto b { font-size: 26px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); display: block; }
.confirm__qr-monto-uyu { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.confirm__qr img {
  width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto;
  border-radius: 10px; background: #fff; padding: 8px;
}
.confirm__qr-nota { margin: 12px 0 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.confirm__transfer h4 { margin: 0 0 6px; font-size: 14px; }
.confirm__transfer-total { font-size: 13px; color: var(--text-soft); margin: 0 0 10px; }
.transfer-table-wrap { overflow-x: auto; }
.transfer-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.transfer-table th {
  text-align: left; font-weight: 600; color: var(--text-muted);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px 6px 0; border-bottom: 1px solid var(--line, #e3e5e9); white-space: nowrap;
}
.transfer-table td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line, #eef0f3); font-family: ui-monospace, monospace; white-space: nowrap; }
.transfer-table tr:last-child td { border-bottom: none; }
.transfer-table .tb-bank { font-family: inherit; font-weight: 600; }
.confirm__transfer-note { margin: 12px 0 0; font-size: 12px; color: var(--text-muted); }
.confirm__transfer-note b { font-family: inherit; }

@media (max-width: 920px) {
  .checkout__grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .topbar__inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .userbar__btn span { display: none; }
  .hero { padding: 36px 24px 16px; }
  .detail__hero { grid-template-columns: 1fr; }
  .detail__info { padding: 24px; }
  .checkout { padding: 24px; }
}

@media (max-width: 640px) {

  .grid:not(.is-cats) { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__body { padding: 10px 12px 12px; gap: 4px; }
  .card__name { font-size: 12.5px; }
  .card__price { font-size: 14.5px; }
  .card__badge { font-size: 10px; padding: 4px 8px; top: 8px; left: 8px; }
  .card__tags { top: 8px; right: 8px; }
  .card__tag { font-size: 9.5px; padding: 3px 7px; }

  .card__actions { flex-direction: column; gap: 5px; }
  .card__btn { padding: 9px 8px; font-size: 11.5px; }

  .userbar__btn { min-height: 44px; min-width: 44px; justify-content: center; }
  .search input { min-height: 42px; }

  input, select, textarea { font-size: 16px !important; }

  .topbar__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "search search";
    row-gap: 11px; column-gap: 12px;
    padding: 12px 16px;
  }
  .brand   { grid-area: brand; font-size: 20px; }
  .userbar { grid-area: actions; }
  .search  { grid-area: search; }
  .search input { min-height: 44px; }

  .section__title { font-size: 19px; }
  .subastas-grid { grid-template-columns: 1fr; }
  .flyer-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.cart-progress {
  padding: 14px 20px;
  background: var(--wash-envio);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cart-progress__msg {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.cart-progress__msg b { color: var(--brand); font-weight: 700; }
.cart-progress__msg--done {
  font-weight: 700;
  color: var(--ok);
  margin: 0;
  text-align: center;
}
.cart-progress__bar {
  height: 6px;
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  overflow: hidden;
}
.cart-progress__bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--ok));
  transition: width 0.4s ease;
}

.filters--precio {
  margin-top: -16px;
  margin-bottom: 28px;
  align-items: center;
}
.filters__label {
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-right: 8px;
}

.modal--orders { width: min(720px, 94vw); }
.orders { padding: 32px 36px; }
.orders__title { margin: 0 0 20px; font-size: 24px; letter-spacing: -0.5px; }
.orders__list { display: flex; flex-direction: column; gap: 14px; max-height: 70vh; overflow-y: auto; }
.order {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 18px;
}
.order__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.order__head b { font-size: 14px; }
.order__head small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.order__items {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.order__item {
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--text-soft);
}
.order__item b { color: var(--ink); }
.order__foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.order__foot b { font-size: 16px; color: var(--ink); }
.order__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 12px; }
.order__cancel {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.order__cancel:hover:not(:disabled) { border-color: #ef4444; color: #b91c1c; }
.order__cancel:disabled { opacity: .6; cursor: default; }
.order__cancel--armed { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
.order__cancel-msg { margin: 0; font-size: 12px; color: #b91c1c; text-align: right; max-width: 320px; }

.estado-pill {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.estado-pendiente   { background: #fef3c7; color: #78350f; }
.estado-contactado  { background: #dbeafe; color: #1e40af; }
.estado-confirmado  { background: #c7d2fe; color: #3730a3; }
.estado-pagado      { background: #d1fae5; color: #065f46; }
.estado-enviado     { background: #e0e7ff; color: #3730a3; }
.estado-cancelado   { background: #fee2e2; color: #991b1b; }

.footer {
  text-align: center; padding: 32px 24px;
  font-size: 12.5px; color: var(--text-muted);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer code { background: var(--surface-2); padding: 2px 7px; border-radius: 5px; font-size: 11.5px; }
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
}
.footer__logo {
  font-weight: 900; font-size: 18px; letter-spacing: -0.5px; color: var(--ink);
}
.footer__official {
  display: inline-flex; align-items: center; gap: 4px;
  background: color-mix(in oklab, var(--ok) 12%, transparent);
  color: var(--ok);
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ok) 25%, transparent);
}
.footer__addr { margin: 0; font-size: 12.5px; color: var(--text-soft); }
.footer__links {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.footer__links a {
  color: var(--text-soft); font-weight: 600;
  transition: color var(--dur-micro) var(--ease-out);
}
.footer__links a:hover { color: var(--brand); }
.footer__sep { opacity: .4; }
.footer__meta { opacity: .7; font-size: 11.5px; }

.modal--legal { width: min(720px, 94vw); }
.legal-modal__body {
  padding: 44px 46px 40px;
  overflow-y: auto;
  max-height: 88vh;
}
.legal-modal__body .legal__eyebrow { margin-top: 0; }
@media (max-width: 600px) {
  .legal-modal__body { padding: 36px 22px 28px; }
}

.topbar__inner--legal {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.legal {
  max-width: 760px; margin: 0 auto; padding: 56px 24px 96px;
  animation: fadeUp .5s var(--ease-entrance) both;
}
.legal__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--brand); margin: 0 0 8px;
}
.legal__title {
  font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -1px;
  color: var(--ink); margin: 0 0 8px; line-height: 1.05;
}
.legal__updated { font-size: 13px; color: var(--text-muted); margin: 0 0 28px; }
.legal__note {
  background: color-mix(in oklab, var(--brand) 7%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand) 20%, transparent);
  color: var(--brand-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 13px; line-height: 1.55;
  margin-bottom: 36px;
}
.legal__section { margin-bottom: 32px; }
.legal__section h2 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px;
  color: var(--ink); margin: 0 0 12px;
}
.legal__section p { color: var(--text-soft); line-height: 1.7; margin: 0 0 12px; max-width: 68ch; }
.legal__section ul { color: var(--text-soft); line-height: 1.7; padding-left: 22px; margin: 0; max-width: 68ch; }
.legal__section li { margin-bottom: 8px; }
.legal__section strong { color: var(--ink); font-weight: 600; }
.legal__footer {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-soft);
}
.legal__footer a { color: var(--brand); font-weight: 600; }
.legal__footer a:hover { text-decoration: underline; }

.chat-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(26,76,255,.45), 0 4px 10px rgba(0,0,0,.15);
  display: grid; place-items: center;
  z-index: 25;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.chat-fab:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--brand-strong);
  box-shadow: 0 14px 32px -5px rgba(26,76,255,.55), 0 6px 14px rgba(0,0,0,.2);
}
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab__close { display: none; }
.chat-fab.is-open .chat-fab__open  { display: none; }
.chat-fab.is-open .chat-fab__close { display: block; }
.chat-fab.is-open {
  background: var(--ink);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.4);
}

@keyframes chatPanelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-panel {
  position: fixed;
  bottom: 100px; right: 24px;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 140px);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 25px 60px -10px rgba(0,0,0,.35), 0 8px 20px rgba(0,0,0,.1);
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 24;
  animation: chatPanelIn .22s ease;
}

.chat-panel__head {
  background: linear-gradient(135deg, #1a4cff 0%, #1239cc 100%);
  color: white;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-panel__title { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.chat-panel__clear {
  background: rgba(255,255,255,.12);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease;
  padding: 0;
}
.chat-panel__clear:hover { background: rgba(255,255,255,.24); }
.chat-panel__clear:active { background: rgba(255,255,255,.32); }
.chat-panel__avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
  flex-shrink: 0;
}
.chat-panel__title strong { display: block; font-size: 14px; }
.chat-panel__title small { display: block; font-size: 11.5px; opacity: 0.8; margin-top: 2px; }

.chat-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-2);
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 85%;
  font-size: 13.5px;
  line-height: 1.45;
  animation: fadeUp .25s ease;
}
.chat-msg__bubble {
  padding: 10px 14px;
  border-radius: 14px;
}
.chat-msg--bot .chat-msg__bubble {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}
.chat-msg--user {
  align-self: flex-end;
  margin-left: auto;
}
.chat-msg--user .chat-msg__bubble {
  background: var(--brand);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-msg__products {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 8px;
}
.chat-product {
  display: flex; gap: 10px; align-items: center;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  text-decoration: none; color: inherit;
}
.chat-product:hover { border-color: var(--brand); transform: translateY(-1px); }
.chat-product__thumb {
  width: 44px; height: 44px;
  background: var(--surface-2);
  border-radius: 8px;
  display: grid; place-items: center;
  color: #c8ccd4;
  flex-shrink: 0;
  overflow: hidden;
}
.chat-product__thumb svg { width: 22px; height: 22px; stroke-width: 1.5; }
.chat-product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.chat-msg__nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-nav-chip {
  background: var(--surface); border: 1px solid var(--brand);
  color: var(--brand); font-weight: 600; font-size: 12px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: background var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.chat-nav-chip:hover { background: var(--brand); color: #fff; }
.chat-nav-chip:active { transform: scale(.96); }
.chat-nav-chip--marca { border-color: var(--ink); color: var(--ink); }
.chat-nav-chip--marca:hover { background: var(--ink); color: #fff; }
.chat-product__info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.chat-product__name {
  font-size: 12.5px; font-weight: 600;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-product__meta {
  font-size: 11px; color: var(--text-muted);
  display: flex; gap: 6px;
}
.chat-product__price {
  font-size: 12.5px; font-weight: 700;
  color: var(--ink);
}
.chat-product__arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.chat-typing {
  display: flex; gap: 4px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}
.chat-typing span {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: chatDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

.chat-panel__foot {
  display: flex; gap: 8px;
  padding: 12px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.chat-panel__foot input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit; font-size: 13.5px;
  outline: none;
  background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s;
}
.chat-panel__foot input:focus {
  border-color: var(--brand);
  background: var(--surface);
}
.chat-panel__foot button {
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.chat-panel__foot button:hover { background: var(--brand-strong); }
.chat-panel__foot button:active { transform: scale(.92); }
.chat-panel__foot button:disabled { background: var(--text-muted); cursor: not-allowed; }
.chat-panel__foot button svg { width: 16px; height: 16px; }

@media (max-width: 520px) {
  .chat-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%; height: 80vh;
    max-height: 80vh;
    border-radius: 18px 18px 0 0;
  }
  .chat-fab { bottom: 16px; right: 16px; }
}

.admin-media {

  margin: 0 40px 40px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}
.admin-media__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  user-select: none;
}
.admin-media__summary::-webkit-details-marker { display: none; }
.admin-media__summary:hover { background: var(--surface-2); }
.admin-media__badge {
  background: #1e293b; color: white;
  font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 4px;
  letter-spacing: 0.5px;
}
.admin-media__chevron {
  margin-left: auto;
  transition: transform .2s ease;
  color: #94a3b8;
  font-size: 14px;
}
.admin-media[open] .admin-media__chevron { transform: rotate(180deg); }
.admin-media__body {
  padding: 16px 20px 20px;
  border-top: 1px dashed #cbd5e1;
}
.admin-media__head {
  margin-bottom: 16px;
}
.admin-media__head small { display: block; font-size: 12px; color: #64748b; margin-top: 4px; }
.admin-media__block {
  margin-bottom: 18px;
}
.admin-media__block > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 8px;
}
.admin-media__list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 10px;
  min-height: 24px;
}
.admin-media__empty {
  font-size: 12.5px; color: #94a3b8; font-style: italic;
}
.admin-media__chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px 6px 6px;
  font-size: 12px;
  max-width: 100%;
}
.admin-media__chip img {
  width: 36px; height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface-2);
  flex-shrink: 0;
}
.admin-media__chip-url {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 220px;
  font-family: ui-monospace, monospace;
  color: #475569;
}
.admin-media__chip button {
  border: none; background: transparent;
  color: #94a3b8; cursor: pointer;
  width: 22px; height: 22px; border-radius: 4px;
  font-size: 13px;
}
.admin-media__chip button:hover { background: #fee2e2; color: #dc2626; }
.admin-media__chip-doc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: #fef3c7; color: #92400e;
  border-radius: 6px;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.admin-media__add--doc input[type="url"] { flex: 1; min-width: 0; }
.admin-media__add {
  display: flex; gap: 8px;
}
.admin-media__add input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
}
.admin-media__add input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 76, 255, 0.15);
}
.admin-media__actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.admin-media__status {
  font-size: 12.5px; color: #64748b;
}
.admin-media__status--ok  { color: #16a34a; font-weight: 500; }
.admin-media__status--err { color: #dc2626; font-weight: 500; }

.wa-fab {
  position: fixed;

  right: clamp(24px, calc((100vw - 1320px) / 2 + 24px), 96px);
  bottom: 64px;
  z-index: 25;
  width: 68px; height: 68px;
  border-radius: 50%;

  border: none;
  padding: 0;
  background: var(--wa);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.5), 0 5px 14px rgba(0,0,0,.24);
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  opacity: 1; transform: scale(1);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              background var(--dur-micro) var(--ease-out);
}

@starting-style {
  .wa-fab { opacity: 0; transform: scale(.9); }
}
.wa-fab svg { width: 35px; height: 35px; display: block; }

@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover {
    background: #1ebe5d;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 18px 40px -8px rgba(37,211,102,.6), 0 8px 20px rgba(0,0,0,.28);
  }
}

.wa-fab:active { transform: scale(.97); transition-duration: 110ms; }
.wa-fab:focus-visible { outline: 3px solid color-mix(in oklab, var(--wa) 55%, #fff); outline-offset: 3px; }

.wa-fab::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid var(--wa);
  animation: waPulse 2.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%        { transform: scale(1);   opacity: .55; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

.wa-fab svg { animation: waSaluda 5s var(--ease-out) infinite; }
@keyframes waSaluda {
  0%, 86%, 100% { transform: rotate(0deg); }
  89%           { transform: rotate(-10deg); }
  92%           { transform: rotate(8deg); }
  95%           { transform: rotate(-4deg); }
}
@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover svg { animation: none; }
}

.wa-fab__badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30; color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  pointer-events: none;
  animation: waBadgeIn 220ms var(--ease-out) both;
}
@keyframes waBadgeIn {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}
.wa-fab.is-leido .wa-fab__badge { display: none; }

.wa-panel {
  position: fixed;
  right: clamp(24px, calc((100vw - 1320px) / 2 + 24px), 96px);
  bottom: calc(64px + 68px + 14px);
  z-index: 26;
  width: min(358px, calc(100vw - 36px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.wa-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }

.wa-panel__head {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 13px 13px 15px;
  background: var(--wa); color: #fff;
}
.wa-panel__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.22); display: grid; place-items: center;
}
.wa-panel__avatar svg { width: 21px; height: 21px; }
.wa-panel__who { flex: 1; min-width: 0; }
.wa-panel__name   { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.wa-panel__status { margin: 1px 0 0; font-size: 11.5px; opacity: .92; }
.wa-panel__close {
  background: transparent; border: none; color: #fff; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  font-size: 23px; line-height: 1; display: grid; place-items: center;
  transition: background 140ms var(--ease-out);
}
.wa-panel__close:hover { background: rgba(255,255,255,.2); }

.wa-panel__body { padding: 15px; }
.wa-msg {
  background: var(--surface-2);
  border-radius: 4px 14px 14px 14px;
  padding: 13px 15px; margin-bottom: 14px;
}
.wa-msg p { margin: 0 0 9px; font-size: 13.8px; line-height: 1.55; color: var(--ink); }
.wa-msg p:last-child { margin-bottom: 0; }

.wa-panel__cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--wa); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14.5px; padding: 12px; border-radius: 12px;
  transition: transform 150ms var(--ease-out), background 150ms var(--ease-out);
}
.wa-panel__cta svg { width: 18px; height: 18px; }
.wa-panel__cta:active { transform: scale(.97); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) {
  .wa-panel__cta:hover { background: #1ebe5d; }
}

.wa-notif { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--border); }
.wa-notif__title { margin: 0 0 4px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.wa-notif__sub   { margin: 0 0 11px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.wa-notif__row   { display: flex; gap: 7px; }
.wa-notif__row input {
  flex: 1; min-width: 0; font-family: inherit;
  padding: 10px 12px; font-size: 13.5px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  transition: border-color 150ms var(--ease-out);
}
.wa-notif__row input:focus { outline: none; border-color: var(--brand); }
.wa-notif__btn {
  flex-shrink: 0; font-family: inherit; cursor: pointer;
  background: var(--brand); color: #0a0a0a; border: none; border-radius: 10px;
  padding: 10px 15px; font-size: 13.5px; font-weight: 800;
  transition: transform 150ms var(--ease-out), filter 150ms var(--ease-out);
}
.wa-notif__btn:active   { transform: scale(.97); transition-duration: 100ms; }
.wa-notif__btn:disabled { opacity: .6; cursor: default; transform: none; }
.wa-notif__msg { margin: 9px 0 0; font-size: 12.5px; line-height: 1.5; }
.wa-notif__msg.is-ok    { color: var(--wa); font-weight: 700; }
.wa-notif__msg.is-error { color: #e5342b; }

@media (prefers-reduced-motion: reduce) {
  .wa-fab::after { animation: none; opacity: 0; }
  .wa-fab svg { animation: none; }
  .wa-fab:hover { transform: none; }

  .wa-fab__badge { animation: none; }
  .wa-panel { transition: opacity 160ms var(--ease-out); transform: none; }
  .wa-panel.is-open { transform: none; }
}

@media (max-width: 780px) {
  .wa-fab {
    width: 52px; height: 52px;
    right: 16px;
    bottom: calc(56px + env(safe-area-inset-bottom) + 14px);
  }
  .wa-fab svg { width: 27px; height: 27px; }

  .wa-fab__badge {
    min-width: 18px; height: 18px; line-height: 18px;
    font-size: 10.5px; padding: 0 4px; top: 0; right: 0;
  }
  .wa-panel {
    right: 16px; left: 16px; width: auto;
    bottom: calc(56px + env(safe-area-inset-bottom) + 14px + 52px + 12px);
  }

  .wa-panel__body { max-height: min(56vh, 420px); overflow-y: auto; }
}

.tabbar { display: none; }

@media (max-width: 780px) {

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 19;
    background: color-mix(in oklab, var(--surface) 90%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 26px -12px rgba(0,0,0,.4);
  }
  .tabbar__btn {
    appearance: none; -webkit-appearance: none; border: none; background: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 8px 2px 7px; min-height: 54px; cursor: pointer;
    color: var(--text-muted); font: inherit; font-size: 10px; font-weight: 600; letter-spacing: .1px;
    position: relative; -webkit-tap-highlight-color: transparent;
    transition: color .15s var(--ease-out), transform .12s var(--ease-out);
  }
  .tabbar__btn svg { width: 22px; height: 22px; stroke-width: 2; }
  .tabbar__btn:active { transform: scale(.92); }
  .tabbar__btn.is-active { color: var(--brand); }
  .tabbar__btn.is-active::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand);
  }
  .tabbar__badge {
    position: absolute; top: 3px; left: calc(50% + 4px);
    min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
    border-radius: 999px; background: var(--accent); color: #fff;
    font-size: 9.5px; font-weight: 800; line-height: 15px; text-align: center;
    border: 1.5px solid var(--surface);
  }

  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {

  .modal {
    inset: 0;
    width: auto; height: auto;
    max-width: none; max-height: none;
    border-radius: 0;
  }

  .modal { margin: 0; top: 0; left: 0; }
  .modal__content { max-height: 100%; }
  .modal__close { top: 12px; right: 12px; }

  .confirm__transfer { max-height: none; overflow: visible; }
  .transfer-table-wrap { overflow-x: visible; }
  .transfer-table, .transfer-table tbody, .transfer-table tr, .transfer-table td { display: block; width: 100%; }
  .transfer-table thead { display: none; }
  .transfer-table tr {
    border: 1px solid var(--border); border-radius: 10px;
    padding: 11px 13px; margin-bottom: 8px; background: var(--surface);
  }
  .transfer-table tr:last-child td { border-bottom: none; }
  .transfer-table td {
    padding: 4px 0; border: none; white-space: normal; word-break: break-all;
    display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  }
  .transfer-table td::before {
    content: attr(data-l);
    font-family: 'Inter', system-ui, sans-serif; font-weight: 600;
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px;
    color: var(--text-muted); flex-shrink: 0;
  }
  .transfer-table td.tb-bank {
    display: block; font-size: 14px; font-weight: 700; color: var(--ink);
    margin-bottom: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--border);
  }
  .transfer-table td.tb-bank::before { content: none; }
  .checkout {
    padding: 22px 16px calc(30px + env(safe-area-inset-bottom));
    max-height: 100%;
  }
  .checkout__grid { gap: 22px; }
  .checkout__resumen { padding: 18px 16px; }
  .checkout__title { font-size: 22px; }
  .auth    { padding: 26px 20px calc(28px + env(safe-area-inset-bottom)); max-height: 100%; }
  .orders  { padding: 24px 18px calc(26px + env(safe-area-inset-bottom)); }
  .confirm { padding: 34px 22px calc(34px + env(safe-area-inset-bottom)); }
  .detail__info { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }

  .drawer__panel { width: 100vw; }

  .container { padding: 20px 20px 36px; }
  .hero + .container { padding-top: 18px; }
  .section { padding: 8px 20px 8px; }
  .section__head { margin-bottom: 12px; }

  .tira { font-size: 11.5px; padding: 8px 0; }
  .tira__inner {
    padding: 0 14px; gap: 12px;
    flex-wrap: nowrap; justify-content: center;
  }
  .tira__inner > span:nth-of-type(2),
  .tira__inner > span:nth-of-type(3) { display: none; }
  .tira__inner > span, .tira__right { white-space: nowrap; }
  .tira__right { margin-left: 0; gap: 0; }

  .hero {
    display: block;
    position: relative;
    min-height: 0;
    padding: 0;
    align-items: initial;

    --hero-img-h: min(72vh, calc(100vw * 1717 / 916));
  }
  .hero::before {
    position: relative; inset: auto;
    display: block; width: 100%;

    background-image: url('img/hero-marcas-movil.webp?v=1');

    height: var(--hero-img-h);
    background-size: cover;
    background-position: center top;
    transform: none;
    filter: none;
  }

  .hero::after {
    display: block; z-index: 1;
    top: calc(var(--hero-img-h) * 0.92);
    height: calc(var(--hero-img-h) * 0.08);
    bottom: auto; left: 0; right: 0;
    background: linear-gradient(180deg,
      rgba(6,9,26,0)   0%,
      rgba(6,9,26,.38) 55%,
      rgba(6,9,26,.92) 100%);
  }
  .hero__glow { display: none; }

  .hero__inner { display: none; }

  .brands-marquee__track { gap: 24px; }
  .brand-chip { font-size: 17px; padding: 8px 13px; }
}

.detail__qty { display: flex; align-items: center; gap: 14px; margin: 6px 0 2px; }
.detail__qty-label { font-weight: 600; font-size: 14px; color: var(--n700, #667); }
.detail__qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--divider, #dde3ec); border-radius: 10px; overflow: hidden; background: var(--surface, #fff); }
.detail__qty-btn { width: 42px; height: 42px; border: 0; background: var(--surface-2, #f1f4f9); font-size: 21px; line-height: 1; cursor: pointer; color: inherit; transition: background .15s, color .15s; }
.detail__qty-btn:hover { background: var(--brand, #1668d6); color: #fff; }
.detail__qty-input { width: 66px; height: 42px; border: 0; border-left: 1px solid var(--divider, #dde3ec); border-right: 1px solid var(--divider, #dde3ec); text-align: center; font-size: 16px; font-weight: 700; background: transparent; color: inherit; -moz-appearance: textfield; }
.detail__qty-input::-webkit-outer-spin-button, .detail__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.detail__qty-hint { font-size: 12px; color: var(--n700, #8a8f98); font-weight: 600; white-space: nowrap; }
.detail__price-sub { font-size: 14px; color: var(--n700, #667); margin-top: 4px; font-weight: 600; }
.detail__price-main s { opacity: .5; font-weight: 400; font-size: .58em; margin-left: 8px; }
.detail__price-off { display: inline-block; background: #16a34a; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }
.detail__tramos { margin: 12px 0; padding: 12px 14px; background: var(--surface-2, #f4f7fc); border: 1px solid var(--divider, #e3e8ef); border-radius: 12px; }
.detail__tramos-title { font-weight: 700; font-size: 13px; display: block; margin-bottom: 9px; }
.detail__tramos-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.detail__tramos-list li { display: flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--divider, #e3e8ef); border-radius: 9px; font-size: 13px; transition: border-color .15s, background .15s; }
.detail__tramos-list li span { color: #16a34a; font-weight: 700; }
.detail__tramos-list li.is-active { border-color: #16a34a; background: rgba(22,163,74,.12); }
.cart-item__off { display: inline-block; background: #16a34a; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-left: 5px; vertical-align: middle; }

.detail__combo { margin: 16px 0; padding: 16px; border: 2px solid var(--brand, #1668d6); border-radius: 14px; background: color-mix(in srgb, var(--brand, #1668d6) 8%, transparent); }
.detail__combo-tag { display: inline-block; background: var(--brand, #1668d6); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 20px; letter-spacing: .02em; }
.detail__combo-name { font-weight: 800; font-size: 18px; margin: 9px 0 6px; }
.detail__combo-items { list-style: none; margin: 6px 0 13px; padding: 0; }
.detail__combo-items li { font-size: 14px; padding: 3px 0 3px 22px; position: relative; }
.detail__combo-items li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.detail__combo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detail__combo-price { font-size: 15px; }
.detail__combo-price b { font-size: 25px; color: var(--brand, #1668d6); margin-left: 4px; }
.detail__combo-btn { flex: 0 0 auto; }
@media (max-width: 520px) { .detail__combo-btn { flex: 1 1 100%; } }

.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.servicio-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--divider, #e3e8ef); border-radius: 14px; background: var(--surface, #fff); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.servicio-card:hover { border-color: #25D366; transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.servicio-card__icon { font-size: 30px; flex: 0 0 auto; }
.servicio-card__body { flex: 1 1 auto; }
.servicio-card__title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.servicio-card__desc { font-size: 13px; color: var(--n700, #667); margin: 0; line-height: 1.35; }
.servicio-card__cta { flex: 0 0 auto; font-weight: 700; font-size: 13px; color: #25D366; white-space: nowrap; }

.detail__extra { padding: 8px 40px 30px; display: flex; flex-direction: column; gap: 12px; }
.detail__extra .detail__flyer { margin: 4px 0 0; }
.detail__extra-info { min-width: 0; }
.detail__extra-info > :first-child { margin-top: 0; }
@media (min-width: 760px) {
  .detail__extra--split { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 30px; align-items: start; }
}
.detail__hero--noimg { grid-template-columns: 1fr; }
.detail__hero--noimg .detail__media-main { display: none; }
@media (max-width: 640px) { .detail__extra { padding: 6px 20px 24px; } }
