/* ============================================================
   Mi Tienda Tech — sistema visual
   Basado en la especificación docs/diseno-zayfor.md
   ============================================================ */

:root {
  --brand-50: #eff6ff; --brand-100: #dbeafe; --brand-200: #bfdbfe;
  --brand-400: #60a5fa; --brand-500: #3b82f6; --brand-600: #2563eb;
  --brand-700: #1d4ed8; --brand-800: #1a56db; --brand-900: #172554;

  --bg: #f3f6fb; --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, .80);
  --surface-subtle: rgba(255, 255, 255, .60);

  --text: #09090b; --text-strong: #0f172a; --text-muted: #71717a;
  --text-on-dark: #f8fafc; --text-on-dark-muted: #cbd5e1;

  --border: #e4e4e7; --border-soft: rgba(226, 232, 240, .60); --border-strong: #cbd5e1;

  --success: #10b981; --success-text: #047857; --success-bg: #ecfdf5;
  --danger: #ef4444; --danger-text: #b91c1c; --danger-bg: #fef2f2;
  --warning: #f59e0b; --warning-text: #92400e; --warning-bg: #fffbeb;
  --violet: #6366f1; --whatsapp: #25d366;

  --font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 14px; --r-xl: 16px; --r-2xl: 24px; --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --sh-card: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .06);
  --sh-card-hover: 0 8px 32px rgba(0, 0, 0, .10), 0 2px 8px rgba(59, 130, 246, .08);
  --sh-btn: 0 4px 14px -2px rgba(59, 130, 246, .40), 0 2px 4px -2px rgba(59, 130, 246, .20);
  --sh-btn-hover: 0 8px 24px -4px rgba(59, 130, 246, .50), 0 4px 8px -4px rgba(59, 130, 246, .30);
  --sh-header: 0 1px 3px rgba(15, 23, 42, .04);
  --sh-drawer: -16px 0 48px rgba(2, 6, 23, .18);
  --sh-modal: 0 24px 64px rgba(2, 6, 23, .28);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px;

  --ease-out: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 160ms; --dur-base: 240ms; --dur-slow: 320ms; --dur-reveal: 560ms;

  --container: 1280px; --header-h: 80px; --gutter: 16px;

  --z-header: 100; --z-fab: 120; --z-overlay: 200;
  --z-drawer: 210; --z-modal: 220; --z-toast: 230;
}

:root.dark {
  --bg: #07101f; --bg-alt: #0f172a; --surface: #1e293b;
  --surface-glass: rgba(30, 41, 59, .80); --surface-subtle: rgba(30, 41, 59, .60);
  --text: #f8fafc; --text-strong: #ffffff; --text-muted: #94a3b8;
  --border: #334155; --border-soft: rgba(51, 65, 85, .60); --border-strong: #475569;
  --success-bg: rgba(16, 185, 129, .12); --success-text: #6ee7b7;
  --danger-bg: rgba(239, 68, 68, .12); --danger-text: #fca5a5;
  --warning-bg: rgba(245, 158, 11, .12); --warning-text: #fcd34d;
  --sh-card: 0 4px 20px rgba(0, 0, 0, .28);
  --sh-card-hover: 0 12px 36px rgba(0, 0, 0, .40);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--text-strong); text-wrap: balance; line-height: 1.2; }
p { margin: 0; color: var(--text-muted); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-800); outline-offset: 3px; border-radius: var(--r-sm);
}
.dark :where(a, button, input, select, textarea, [tabindex]):focus-visible { outline-color: #93c5fd; }
.skip-link {
  position: fixed; top: -100px; left: var(--s-4); z-index: 999;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: var(--brand-800); color: #fff; font-weight: 700;
}
.skip-link:focus { top: var(--s-4); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-16); }
.section--tight { padding-block: var(--s-10); }
.section__header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-8); }
.section__title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.18; }
.section__subtitle { margin-top: var(--s-2); font-size: .9375rem; color: var(--text-muted); max-width: 52ch; }
.section__action { font-size: .875rem; font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.section__action:hover { text-decoration: underline; text-underline-offset: 4px; }
.dark .section__action { color: #93c5fd; }
.section-label { display: block; margin-bottom: var(--s-2); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-700); }
.dark .section-label { color: #93c5fd; }

.bg-mesh-light { background-image: radial-gradient(at 40% 20%, rgba(59,130,246,.08) 0, transparent 50%), radial-gradient(at 80% 0%, rgba(99,102,241,.06) 0, transparent 50%), radial-gradient(at 0% 50%, rgba(14,165,233,.05) 0, transparent 50%); }
.bg-mesh-dark { background-image: radial-gradient(at 40% 20%, rgba(59,130,246,.15) 0, transparent 50%), radial-gradient(at 80% 0%, rgba(99,102,241,.10) 0, transparent 50%); }
.bg-grid-pattern { background-image: linear-gradient(rgba(59,130,246,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.03) 1px, transparent 1px); background-size: 40px 40px; }

/* ---------- Announcement y header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  min-height: var(--header-h);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--border-soft); box-shadow: var(--sh-header);
}
.header__inner { min-height: var(--header-h); display: flex; align-items: center; gap: var(--s-6); }
.header__logo img { display: block; height: 64px; width: auto; max-width: 64px; object-fit: contain; object-position: left center; }
.header__actions { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--r-md); padding: var(--s-2) var(--s-4);
  font-size: .875rem; font-weight: 600; color: var(--text-muted); white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.nav-link:hover { color: var(--text-strong); background: rgba(241,245,249,.7); }
.dark .nav-link { color: #cbd5e1; }
.dark .nav-link:hover { color: #fff; background: rgba(26,86,219,.16); }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 10px; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--text-muted);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.icon-btn:hover { background: rgba(241,245,249,.8); color: var(--text-strong); }
.dark .icon-btn:hover { background: rgba(30,41,59,.8); color: #fff; }
.icon-btn__count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--brand-700); color: #fff; font-size: .625rem; font-weight: 800; }
.menu-btn { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.currency-switch {
  display: flex; align-items: center; gap: var(--s-2); min-height: 44px;
  padding: 0 var(--s-3); border: 1px solid var(--border-soft); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--sh-sm);
}
.currency-switch--drawer { display: none; }
.currency-switch__label { font-size: .75rem; font-weight: 700; color: var(--text-muted); }
.currency-switch__select {
  min-height: 32px; padding: 0 var(--s-5) 0 var(--s-2); border: 0; border-radius: var(--r-sm);
  appearance: none; background-color: transparent; color: var(--text-strong);
  font-size: .8125rem; font-weight: 800; letter-spacing: .02em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; cursor: pointer;
}
.currency-switch__select:hover { background-color: var(--bg-alt); }
.dark .currency-switch__select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* ---------- Botones y formularios ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: var(--s-3) var(--s-6); border: 1px solid transparent;
  border-radius: var(--r-lg); font-size: .875rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), background-color var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: var(--s-2) var(--s-4); font-size: .8125rem; }
.btn-primary { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); box-shadow: var(--sh-btn); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 50%); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); box-shadow: var(--sh-btn-hover); transform: translateY(-2px); }
.btn-primary:hover::before { opacity: 1; }
.btn-secondary { background: var(--surface); color: var(--brand-700); border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.btn-secondary:hover { background: var(--brand-50); border-color: rgba(59,130,246,.4); transform: translateY(-1px); }
.dark .btn-secondary { background: #1e293b; color: #60a5fa; border-color: #334155; }
.dark .btn-secondary:hover { background: #334155; border-color: rgba(59,130,246,.5); }
.btn-whatsapp { background: var(--whatsapp); color: #062e18; font-weight: 700; }
.btn-whatsapp:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand-700); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-attention { animation: btn-attention 2.2s var(--ease-spring) infinite; }
.btn-attention:hover, .btn-attention:focus-visible { animation-play-state: paused; }
@keyframes btn-attention {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: var(--sh-btn); }
  45% { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 8px rgba(59,130,246,.14), var(--sh-btn-hover); }
  60% { transform: translateY(0) scale(1); }
}

.form-field { display: flex; flex-direction: column; gap: var(--s-2); }
.form-label { font-size: .8125rem; font-weight: 700; color: var(--text-strong); }
.input-field {
  width: 100%; min-height: 44px; padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); font: inherit; font-size: .9375rem;
  box-shadow: var(--sh-sm); outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.input-field::placeholder { color: #94a3b8; }
.input-field:hover { border-color: #94a3b8; }
.input-field:focus { border-color: var(--brand-800); box-shadow: 0 0 0 4px rgba(59,130,246,.14); }
.input-field[aria-invalid="true"] { border-color: var(--danger); }
.input-field:disabled { background: var(--bg-alt); color: var(--text-muted); cursor: not-allowed; }
select.input-field { appearance: none; padding-right: var(--s-10); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-error { font-size: .75rem; font-weight: 600; color: var(--danger-text); }
.form-hint { font-size: .75rem; color: var(--text-muted); }
.form-row { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); font-size: .6875rem; font-weight: 700; line-height: 1; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--available { background: var(--success-bg); color: var(--success-text); border-color: rgba(16,185,129,.22); }
.badge--out { background: var(--danger-bg); color: var(--danger-text); border-color: rgba(239,68,68,.22); }
.badge--offer { background: var(--danger); color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.badge--christmas { background: var(--warning-bg); color: var(--warning-text); border-color: rgba(245,158,11,.3); }
.badge--new { background: var(--brand-50); color: var(--brand-800); border-color: rgba(59,130,246,.25); }
.dark .badge--new { background: rgba(59,130,246,.14); color: #93c5fd; }

/* ---------- Tarjetas ---------- */
.product-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }

.product-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border-soft); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--sh-card);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-card-hover); border-color: rgba(59,130,246,.25); }
.product-card__media { position: relative; aspect-ratio: 4 / 3; padding: var(--s-4); background: var(--bg-alt); overflow: hidden; }
.product-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 450ms var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__flags { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.product-card__wish { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 1; width: 36px; height: 36px; border-radius: var(--r-pill); background: rgba(255,255,255,.9); box-shadow: var(--sh-sm); }
.product-card__wish[aria-pressed="true"] { color: #f59e0b; }
.product-card__wish[aria-pressed="true"] svg { fill: currentColor; }
.product-card__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); flex: 1; }
.product-card__brand { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.product-card__title { font-size: .9375rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-card__title a:hover { color: var(--brand-700); }
.product-card__rating { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--text-muted); }
.product-card__stars { color: #f59e0b; letter-spacing: 1px; }
.product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); margin-top: auto; }
.product-card__price-now { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); }
.product-card__price-old { font-size: .8125rem; color: var(--text-muted); text-decoration: line-through; }
.product-card__cta { margin-top: var(--s-3); }
.product-card--out .product-card__media img { filter: grayscale(.65); opacity: .75; }

.category-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--r-xl); background: var(--surface); transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--sh-card-hover); }
.category-card__media { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: var(--s-6); background: linear-gradient(150deg, var(--brand-50), var(--bg-alt)); }
.dark .category-card__media { background: linear-gradient(150deg, rgba(59,130,246,.12), #0f172a); }
.category-card__media img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 450ms var(--ease-out); }
.category-card:hover .category-card__media img { transform: scale(1.07); }
.category-card__body { padding: var(--s-4); display: flex; flex-direction: column; gap: 6px; }
.category-card__title { font-size: 1rem; font-weight: 700; color: var(--text-strong); }
.category-card__count { font-size: .75rem; color: var(--text-muted); }
.category-card__link { margin-top: var(--s-2); font-size: .8125rem; font-weight: 700; color: var(--brand-700); }


.offer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.offer-card { position: relative; display: grid; align-content: center; gap: var(--s-3); min-height: 220px; overflow: hidden; padding: var(--s-6); border: 1px solid var(--border-soft); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--sh-card); }
.offer-card__image { position: absolute; right: -20px; bottom: 0; width: 42%; height: 100%; object-fit: contain; opacity: .9; pointer-events: none; }
.offer-card > *:not(.offer-card__image) { position: relative; z-index: 1; }
.offer-card__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.offer-card__text { font-size: .8125rem; color: var(--text-muted); max-width: 28ch; }
.dark .offer-card__image { opacity: .65; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 440px; display: grid; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img,
.hero__media .hero-carousel__slide { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,16,31,.62) 0%, rgba(7,16,31,.40) 55%, rgba(7,16,31,.20) 100%); z-index: 2; transition: opacity .3s ease; }
.hero__media .hero-carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; z-index: 1; }
.hero__media .hero-carousel__slide.is-active { opacity: 1; }
.hero__content { position: relative; z-index: 3; max-width: 620px; padding-block: var(--s-16); color: #fff; }
.hero__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); font-size: .75rem; font-weight: 700; letter-spacing: .12em; transition: opacity .3s ease, transform .3s ease; }
.hero__title { margin-top: var(--s-5); font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; color: #fff; transition: opacity .3s ease, transform .3s ease; }
.hero__subtitle { margin-top: var(--s-4); color: rgba(255,255,255,.82); font-size: 1rem; max-width: 52ch; transition: opacity .3s ease, transform .3s ease; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.hero.hero--peek .hero__eyebrow,
.hero.hero--peek .hero__title,
.hero.hero--peek .hero__subtitle { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.hero.hero--peek .hero__media::after { opacity: 0; }

/* ---------- Breadcrumb y cabeceras de página ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding-block: var(--s-5); font-size: .75rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb__sep { opacity: .5; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-8); }
.page-head h1 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.page-head p { margin-top: var(--s-2); font-size: .9375rem; }

/* ---------- Tienda / filtros / paginación ---------- */
.catalog-layout { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-6); padding: var(--s-4); border: 1px solid var(--border-soft); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-sm); }
.toolbar__left { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.catalog-toolbar { width: 100%; align-items: end; }
.catalog-toolbar__search { flex: 1 1 260px; min-width: 220px; }
.result-count { font-size: .8125rem; color: var(--text-muted); }
.sort-select { min-width: 210px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-800); font-size: .75rem; font-weight: 700; }
.dark .filter-chip { background: rgba(59,130,246,.14); color: #93c5fd; }
.filters { display: flex; flex-direction: column; gap: var(--s-2); }
.filter-group { border-bottom: 1px solid var(--border-soft); padding-bottom: var(--s-5); margin-bottom: var(--s-2); }
.filter-group__title { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: var(--s-3) 0; font-size: .875rem; font-weight: 800; color: var(--text-strong); cursor: pointer; }
.filter-option { display: flex; align-items: center; gap: var(--s-3); padding: 7px 0; cursor: pointer; font-size: .8125rem; color: var(--text-muted); }
.filter-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand-700); flex: none; }
.filter-option:hover { color: var(--text-strong); }
.filter-option__count { margin-left: auto; font-size: .75rem; color: var(--text-muted); }
.filters-sidebar { display: none; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: var(--s-10); }
.pagination__item { display: grid; place-items: center; min-width: 40px; height: 40px; padding-inline: var(--s-2); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-size: .8125rem; font-weight: 700; color: var(--text-muted); }
.pagination__item:hover:not([aria-current="page"]) { background: var(--brand-50); color: var(--brand-800); border-color: rgba(59,130,246,.35); }
.pagination__item[aria-current="page"] { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.pagination__item[disabled] { opacity: .45; cursor: not-allowed; }
.pagination__info { width: 100%; margin-bottom: var(--s-2); text-align: center; font-size: .8125rem; color: var(--text-muted); }
.empty-state { padding: var(--s-16) var(--s-6); text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--r-2xl); background: var(--surface); }
.empty-state h2 { margin-bottom: var(--s-2); }
.location-card { overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--sh-card); }
.location-card__map { display: block; width: calc(100% + 2px); height: 400px; margin: -1px -1px -42px; border: 0; }
.location-card__placeholder { padding: var(--s-10) var(--s-6); text-align: center; color: var(--text-muted); }
.location-card__placeholder strong { display: block; margin-bottom: var(--s-2); color: var(--text-strong); }
.location-actions { margin-top: var(--s-5); }

/* ---------- Producto ---------- */
.product-layout { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
.gallery__main { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: var(--s-6); border: 1px solid var(--border-soft); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--sh-card); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.gallery__thumb { width: 72px; height: 72px; padding: 6px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.gallery__thumb.is-active { border-color: var(--brand-700); box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.buy-box { display: flex; flex-direction: column; gap: var(--s-4); }
.buy-box h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; }
.buy-box__brand { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
.buy-box__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3); }
.buy-box__price-now { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); }
.buy-box__price-old { color: var(--text-muted); text-decoration: line-through; }
.buy-box__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-size: .8125rem; color: var(--text-muted); }
.buy-box__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-md); overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: var(--surface); color: var(--text-strong); }
.qty button:hover { background: var(--brand-50); }
.qty input { width: 52px; height: 44px; border: 0; text-align: center; background: transparent; font-weight: 700; appearance: textfield; }
.qty input::-webkit-inner-spin-button { appearance: none; }
.buy-box__pills { display: flex; flex-wrap: wrap; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border-soft); font-size: .8125rem; color: var(--text-muted); }
.buy-box__pills li { display: flex; align-items: center; gap: 6px; }
.tabs { margin-top: var(--s-16); border: 1px solid var(--border-soft); border-radius: var(--r-2xl); background: var(--surface); overflow: hidden; }
.tabs__list { display: flex; flex-wrap: wrap; gap: var(--s-1); padding: var(--s-3); border-bottom: 1px solid var(--border-soft); }
.tab { padding: var(--s-3) var(--s-5); border: 0; border-radius: var(--r-md); background: transparent; font-size: .875rem; font-weight: 700; color: var(--text-muted); }
.tab[aria-selected="true"] { background: var(--brand-50); color: var(--brand-800); }
.dark .tab[aria-selected="true"] { background: rgba(59,130,246,.14); color: #93c5fd; }
.tab__panel { display: none; padding: var(--s-6); color: var(--text-muted); }
.tab__panel.is-active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.spec-table th, .spec-table td { padding: var(--s-3); text-align: left; border-bottom: 1px solid var(--border-soft); }
.spec-table th { width: 40%; color: var(--text-strong); font-weight: 700; }
.mobile-buy-bar { display: none; }

/* ---------- Carrito ---------- */
.cart-layout { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: var(--s-3); }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--border-soft); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-sm); }
.cart-line img { width: 72px; height: 72px; padding: 6px; object-fit: contain; background: var(--bg-alt); border-radius: var(--r-md); }
.cart-line__name { font-size: .9375rem; font-weight: 700; color: var(--text-strong); }
.cart-line__price { font-size: .8125rem; color: var(--text-muted); }
.cart-line__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.cart-line__subtotal { margin-left: auto; font-weight: 800; color: var(--text-strong); }
.cart-line__remove { border: 0; background: transparent; color: var(--danger-text); font-size: .75rem; font-weight: 700; }
.summary-card { padding: var(--s-6); border: 1px solid var(--border-soft); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--sh-card); }
.summary-card h2 { font-size: 1.125rem; margin-bottom: var(--s-4); }
.summary-row { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-2); font-size: .875rem; color: var(--text-muted); }
.summary-row--total { margin-top: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border-soft); font-size: 1.125rem; font-weight: 800; color: var(--text-strong); }
.summary-card .btn { margin-top: var(--s-5); }

/* ---------- Drawer / modal / toast ---------- */
.drawer-overlay, .modal-overlay { position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(2,6,23,.52); opacity: 0; visibility: hidden; transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow); }
.drawer-overlay.is-open, .modal-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer, .filter-drawer, .menu-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer); width: min(420px, 100vw); max-height: 100dvh; display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--sh-drawer); transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-spring); overscroll-behavior: contain; }
.cart-drawer.is-open, .filter-drawer.is-open, .menu-drawer.is-open { transform: translateX(0); }
.filter-drawer, .menu-drawer { width: min(360px, 92vw); left: 0; right: auto; transform: translateX(-100%); }
.drawer__header { display: flex; align-items: center; justify-content: space-between; padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--border-soft); }
.drawer__title { font-size: 1.125rem; font-weight: 800; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s-5) var(--s-6); }
.drawer__footer { padding: var(--s-5) var(--s-6) calc(var(--s-5) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-soft); background: var(--surface); }
.drawer__total { display: flex; justify-content: space-between; margin-bottom: var(--s-4); font-size: 1.125rem; font-weight: 800; }
.drawer-line { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-3); padding-block: var(--s-4); border-bottom: 1px solid var(--border-soft); }
.drawer-line img { width: 64px; height: 64px; padding: 6px; object-fit: contain; background: var(--bg-alt); border-radius: var(--r-md); }
.drawer-line__name { font-size: .8125rem; font-weight: 700; color: var(--text-strong); }
.drawer-line__sub { font-size: .75rem; color: var(--text-muted); }
.drawer-line__remove { border: 0; background: transparent; color: var(--danger-text); font-size: .75rem; }
.qty--mini button { width: 30px; height: 30px; }
.qty--mini input { width: 34px; height: 30px; font-size: .75rem; }
body.is-locked { overflow: hidden; }

.modal-overlay { z-index: var(--z-modal); display: grid; place-items: center; padding: var(--s-4); background: rgba(2,6,23,.62); }
.modal { width: min(440px, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: var(--s-8); border: 1px solid var(--border-soft); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--sh-modal); transform: translateY(12px) scale(.98); transition: transform var(--dur-slow) var(--ease-spring); }
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal__title { font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; }
.modal__subtitle { margin-top: var(--s-2); font-size: .875rem; color: var(--text-muted); }
.modal__form { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-6); }
.modal__footer { margin-top: var(--s-5); text-align: center; font-size: .8125rem; color: var(--text-muted); }
.toast { position: fixed; right: var(--s-6); bottom: var(--s-6); z-index: var(--z-toast); max-width: min(360px, calc(100vw - 2rem)); padding: var(--s-4); border-radius: var(--r-xl); background: #0f172a; color: #fff; box-shadow: var(--sh-modal); font-size: .875rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); pointer-events: none; }
.toast.is-open { opacity: 1; transform: none; }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-fab {
  --wa-size: 56px;
  position: fixed;
  right: max(var(--s-6), env(safe-area-inset-right));
  bottom: calc(var(--s-6) + env(safe-area-inset-bottom));
  z-index: var(--z-fab);
  display: inline-grid;
  place-items: center;
  width: var(--wa-size);
  height: var(--wa-size);
  border-radius: var(--r-pill);
  background: linear-gradient(145deg, #2be06a, var(--whatsapp));
  color: #062e18;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .55), 0 2px 8px rgba(15, 23, 42, .12);
  text-decoration: none;
  isolation: isolate;
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.whatsapp-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); pointer-events: none; }
.whatsapp-fab > svg { width: 28px; height: 28px; }
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .62), 0 4px 12px rgba(15, 23, 42, .14); filter: saturate(1.03); }
.whatsapp-fab:active { transform: translateY(0) scale(.98); }
.whatsapp-fab:focus-visible { outline: 3px solid var(--brand-800); outline-offset: 4px; }
:root.dark .whatsapp-fab { box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .45), 0 2px 10px rgba(0, 0, 0, .35); }
:root.dark .whatsapp-fab:focus-visible { outline-color: #93c5fd; }

.whatsapp-fab__label {
  position: absolute;
  right: calc(100% + var(--s-3));
  top: 50%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--brand-900);
  color: var(--text-on-dark);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--sh-card-hover);
  opacity: 0;
  visibility: hidden;
  transform: translate(6px, -50%);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  pointer-events: none;
}
.whatsapp-fab__label::after { content: ""; position: absolute; top: 50%; right: -5px; width: 10px; height: 10px; border-radius: 2px; background: var(--brand-900); transform: translateY(-50%) rotate(45deg); }
.whatsapp-fab:hover .whatsapp-fab__label,
.whatsapp-fab:focus-visible .whatsapp-fab__label { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.site-bottom-bar { padding: var(--s-3) var(--s-4); text-align: center; font-size: .8125rem; font-weight: 600; color: var(--text-muted); background: var(--surface); border-top: 1px solid var(--border-soft); }

/* ---------- Cuenta y contacto ---------- */
.auth-wrap { min-height: 60vh; display: grid; place-items: center; padding-block: var(--s-12); }
.auth-card { width: min(440px, 100%); padding: var(--s-8); border: 1px solid var(--border-soft); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--sh-card); }
.auth-card h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
.auth-card__form { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-6); }
.auth-card__footer { margin-top: var(--s-5); text-align: center; font-size: .8125rem; color: var(--text-muted); }
.auth-card__footer a { color: var(--brand-700); font-weight: 700; }
.account-grid { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
.account-card { padding: var(--s-6); border: 1px solid var(--border-soft); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-card); }
.contact-layout { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
.contact-card { display: flex; align-items: flex-start; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--border-soft); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-sm); }
.contact-card__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); }
.contact-card__title { font-size: .8125rem; font-weight: 800; color: var(--text-strong); }
.contact-card__text { font-size: .875rem; color: var(--text-muted); }

.alert { padding: var(--s-4); border-radius: var(--r-md); font-size: .875rem; font-weight: 600; }
.alert--success { background: var(--success-bg); color: var(--success-text); border: 1px solid rgba(16,185,129,.22); }
.alert--error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid rgba(239,68,68,.22); }

/* ---------- Reveal / responsive ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-reveal) var(--ease-spring), transform var(--dur-reveal) var(--ease-spring); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 640px) {
  :root { --gutter: 20px; }
  .product-grid, .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drawer__body .cart-line { grid-template-columns: 64px 1fr auto; }
}
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .hero { min-height: 520px; }

  .contact-layout { grid-template-columns: 1.2fr .8fr; }
  .cart-line { grid-template-columns: 72px 1fr auto; align-items: center; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 248px minmax(0, 1fr); gap: var(--s-8); }
  .filters-sidebar { display: block; }
  .product-layout { grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); }
  .product-layout .buy-box { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .cart-layout .summary-card { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .account-grid { grid-template-columns: 1fr 1fr; }
  .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .header__logo img { height: 52px; max-width: 52px; }
  .currency-switch--header { display: none; }
  .currency-switch--drawer { display: flex; width: 100%; justify-content: space-between; padding: var(--s-2) var(--s-4); border-radius: var(--r-md); margin-bottom: var(--s-5); }
  .offer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero { min-height: 440px; }
  .hero__media::after { background: rgba(7,16,31,.72); }
  .hero__content { padding-block: var(--s-12); }
  .hero__actions .btn { flex: 1 1 100%; }
  .drawer__body .cart-line { grid-template-columns: 56px 1fr; }
  .drawer-line { grid-template-columns: 56px 1fr auto; }
  .mobile-buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .mobile-buy-bar__price { font-size: 1.125rem; font-weight: 800; }
  .mobile-buy-bar .btn { flex: 1; }
  .product-page { padding-bottom: 96px; }
  .whatsapp-fab {
    --wa-size: 52px;
    right: var(--s-4);
    bottom: calc(var(--s-4) + env(safe-area-inset-bottom));
  }
  .whatsapp-fab > svg { width: 26px; height: 26px; }
  body:has(.mobile-buy-bar) .whatsapp-fab { bottom: calc(88px + var(--s-3) + env(safe-area-inset-bottom)); }
  .filter-drawer .filters-sidebar { display: block; }
  .nearest-map { height: 220px; }
  .nearest-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .header__actions .icon-btn--wish, .header__actions .icon-btn--user { display: none; }
  .product-grid { gap: var(--s-3); }
  .product-card__body { padding: var(--s-3); }
  .product-card__price-now { font-size: 1.0625rem; }
}

@media (hover: none), (pointer: coarse) {
  .whatsapp-fab__label { display: none; }
  .site-bottom-bar { font-size: .75rem; }
}

/* ---------- Directorio de empresas y tiendas ---------- */
.hero--hub .hero__content { max-width: 700px; }
.hub-steps { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.hub-steps span {
  padding: var(--s-1) var(--s-3); border: 1px solid rgba(255,255,255,.28); border-radius: var(--r-pill);
  color: rgba(255,255,255,.88); font-size: .75rem; font-weight: 700;
}

/* ---------- Buscar tienda más cercana ---------- */
.btn.btn--on-dark {
  background: rgba(255,255,255,.10); color: #fff;
  border-color: rgba(255,255,255,.42); box-shadow: none;
}
.btn.btn--on-dark:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.65); color: #fff; transform: translateY(-1px); }
.btn--on-dark svg { transition: transform var(--dur-fast) var(--ease-out); }
.btn--on-dark:hover svg { transform: translateY(2px); }
.hero__hint { margin-top: var(--s-2); color: rgba(255,255,255,.72); font-size: .75rem; }

.modal--nearest { width: min(720px, 100%); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.nearest-state[hidden], .nearest-actions[hidden] { display: none; }
.nearest-loading { display: flex; align-items: center; gap: var(--s-3); color: var(--text-muted); font-size: .875rem; }
.nearest-spinner {
  flex: none; width: 18px; height: 18px; border: 2px solid var(--border);
  border-top-color: var(--brand-600); border-radius: 50%;
  animation: nearest-spin .8s linear infinite;
}
@keyframes nearest-spin { to { transform: rotate(360deg); } }
.nearest-result__distance {
  display: inline-block; margin-bottom: var(--s-2);
  color: var(--brand-700); font-size: .8125rem; font-weight: 800;
}
.dark .nearest-result__distance { color: #93c5fd; }
.nearest-result__name { font-size: 1.25rem; }
.nearest-result__meta { margin-top: var(--s-1); font-size: .875rem; color: var(--text-muted); }
.nearest-map {
  display: block; width: 100%; height: 320px; margin-top: var(--s-5);
  border: 1px solid var(--border-soft); border-radius: var(--r-lg); background: var(--bg-alt);
}
.nearest-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.nearest-result:not([hidden]) { animation: nearest-in var(--dur-base) var(--ease-out); }
@keyframes nearest-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.entity-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
.entity-card {
  min-width: 0; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--r-2xl);
  background: var(--surface); box-shadow: var(--sh-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.entity-card:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hover); border-color: rgba(59,130,246,.4); }
.entity-card__link { display: flex; flex-direction: column; height: 100%; }
.entity-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.entity-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.entity-card:hover .entity-card__media img { transform: scale(1.03); }
.entity-card__badge {
  position: absolute; top: var(--s-3); left: var(--s-3);
  padding: var(--s-1) var(--s-3); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-strong); font-size: .6875rem; font-weight: 800;
  box-shadow: var(--sh-sm);
}
.entity-card__body { display: flex; flex: 1; flex-direction: column; padding: var(--s-5); }
.entity-card__title { font-size: 1.125rem; }
.entity-card__summary { margin-top: var(--s-2); font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entity-card__footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2);
  margin-top: auto; padding-top: var(--s-5); color: var(--text-muted); font-size: .8125rem; font-weight: 600;
}
.entity-card__cta { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--brand-700); font-weight: 800; }
.entity-card__cta svg { transition: transform var(--dur-fast) var(--ease-out); }
.entity-card:hover .entity-card__cta svg { transform: translateX(2px); }

.entity-hero {
  display: grid; gap: var(--s-5); padding: var(--s-5); overflow: hidden;
  border: 1px solid var(--border-soft); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--sh-card);
}
.entity-hero__media { width: 100%; height: 220px; object-fit: cover; border-radius: var(--r-lg); background: var(--bg-alt); }
.entity-hero__body h1 { margin-top: var(--s-3); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.entity-hero__body p { margin-top: var(--s-2); }
.entity-hero__count { display: block; margin-top: var(--s-3); color: var(--text-muted); font-size: .8125rem; font-weight: 700; }

.store-list { display: grid; gap: var(--s-4); }
.store-card {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: var(--s-4);
  padding: var(--s-4); border: 1px solid var(--border-soft); border-radius: var(--r-xl); background: var(--surface);
}
.store-card__media { width: 72px; height: 72px; border-radius: var(--r-md); object-fit: cover; background: var(--bg-alt); }
.store-card__body h3 { font-size: 1rem; }
.store-card__address { margin-top: 2px; font-size: .8125rem; }
.store-card__body .badge { margin-top: var(--s-2); }
.store-card > .btn { grid-column: 1 / -1; justify-self: start; }

@media (min-width: 640px) {
  .entity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .entity-hero { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; padding: var(--s-6); }
  .entity-hero__media { height: 260px; }
  .store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-card { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .store-card > .btn { grid-column: auto; justify-self: end; }
}
@media (min-width: 1024px) {
  .entity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .entity-card--featured { grid-column: span 2; }
  .entity-card--featured .entity-card__media { aspect-ratio: 21 / 9; }
  .store-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn-attention { animation: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .product-card:hover, .category-card:hover, .btn:hover, .whatsapp-fab:hover, .whatsapp-fab:active { transform: none !important; }
  .nearest-spinner { animation: none !important; }
  .nearest-result:not([hidden]) { animation: none !important; }
}
