.a-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--a-space-3);
  margin-top: var(--a-space-4);
}

.a-top__side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--a-space-3);
}

.a-top__side > .a-tbanner { aspect-ratio: 1; }
.a-top__side--n1 > .a-tbanner,
.a-top__side > .a-tbanner--wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

@media (min-width: 1024px) {
  .a-top { gap: var(--a-space-4); align-items: stretch; }
  .a-top:has(.a-top__side--n1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-top:has(.a-top__side--n2),
  .a-top:has(.a-top__side--n3) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

  /* El lado no estira la fila: toma la altura del carrusel y la reparte. */
  .a-top:not(.a-top--noslides) > .a-top__side { contain: size; gap: var(--a-space-4); grid-auto-rows: minmax(0, 1fr); }
  .a-top:not(.a-top--noslides) > .a-top__side > .a-tbanner { aspect-ratio: auto; }
  .a-top:not(.a-top--noslides) > .a-top__side--n2 { grid-template-columns: minmax(0, 1fr); }

  /* Sin carrusel: los banners en fila, cada uno 2:1. */
  .a-top--noslides > .a-top__side { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--a-space-4); }
  .a-top--noslides > .a-top__side > .a-tbanner { grid-column: auto; aspect-ratio: 2 / 1; }
}

.a-tbanner {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: var(--a-surface-2);
  box-shadow: 0 24px 48px -30px rgb(15 23 42 / 0.5);
}

.a-tbanner__pic,
.a-tbanner__pic img {
  display: block;
  width: 100%;
  height: 100%;
}

.a-tbanner__pic img { object-fit: cover; transition: transform 600ms var(--a-ease-out); }

.a-tbanner { container-type: inline-size; }

.a-tbanner__badge {
  position: absolute;
  top: var(--a-space-3);
  left: var(--a-space-3);
  z-index: 2;
  padding: 4px 9px;
  border-radius: 9px;
  background: var(--acc-field);
  color: var(--a-on-fill);
  font-size: var(--a-text-sm);
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--acc-deep) 90%, transparent), inset 0 0 0 1.5px rgb(255 255 255 / 0.28);
  transform: rotate(-2deg);
}

.a-tbanner__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.7) 0%, rgb(0 0 0 / 0.28) 34%, transparent 58%);
  pointer-events: none;
}

/* Título y datos abajo a la izquierda; la flecha queda a la derecha. */
.a-tbanner__copy {
  position: absolute;
  left: var(--a-space-3);
  right: 60px;
  bottom: var(--a-space-3);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  color: var(--a-on-fill);
}

.a-tbanner__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(0.85rem, 6.5cqi, 1.375rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.35);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.a-tbanner__sub {
  overflow: hidden;
  max-width: 100%;
  font-size: var(--a-text-xs);
  color: rgb(255 255 255 / 0.85);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a-tbanner__timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  padding: 3px 8px;
  border-radius: var(--a-radius-pill);
  background: rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.a-tbanner__timer b { font-weight: 800; }

/* Banner chico (cuadrado): solo el título. */
@container (max-width: 240px) {
  .a-tbanner__sub, .a-tbanner__timer { display: none; }
  .a-tbanner__copy { right: var(--a-space-3); bottom: var(--a-space-3); }
}

.a-tbanner__cta {
  position: absolute;
  right: var(--a-space-3);
  bottom: var(--a-space-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--acc-field);
  color: var(--a-on-fill);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--acc-deep) 90%, transparent), inset 0 0 0 1px rgb(255 255 255 / 0.2);
  transition: transform 260ms var(--a-ease-out);
}

.a-tbanner:focus-visible { outline: none; box-shadow: var(--a-focus); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .a-tbanner:hover .a-tbanner__pic img { transform: scale(1.03); }
  .a-tbanner:hover .a-tbanner__cta { transform: translateX(3px); }
}

/* ── Carrusel principal ─────────────────────────────────────────────────── */
/*
 * Solo promociones hero del POS, en el tamaño que pide el POS (1600 × 800,
 * 2:1): la pieza llena el slide a sangre, con su propio texto. El botón va en
 * la esquina inferior izquierda (el POS pide dejarla libre) y los controles a
 * la derecha. Los slides se apilan y cambian con un fundido (sin scroll-snap,
 * que hacía vibrar el carrusel al adelantar).
 */
.a-hero {
  --a-hero-inset: clamp(0.75rem, 2.2cqi, 1.5rem);
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: var(--a-surface-2);
  box-shadow: 0 24px 48px -30px rgb(15 23 42 / 0.5);
  container-type: inline-size;
}

.a-hero__stage {
  display: grid;
  aspect-ratio: 2 / 1;
  touch-action: pan-y;
}

.a-hero__slide,
.a-hero__slide:hover {
  grid-area: 1 / 1;
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--a-on-fill);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--a-ease-out), visibility 0s linear 700ms;
}

.a-hero__slide.is-current {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms var(--a-ease-out), visibility 0s;
}

.a-hero__slide:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--a-paper); }

.a-hero__pic,
.a-hero__pic img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.a-hero__pic img { object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .a-hero__pic img { transform: scale(1.04); transition: transform 7s var(--a-ease-out); }
  .a-hero__slide.is-current .a-hero__pic img { transform: scale(1); }
}

/* Velo: oscurece solo la esquina inferior izquierda, donde va el texto. */
.a-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 0% 100%, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.38) 38%, transparent 66%),
    linear-gradient(0deg, rgb(0 0 0 / 0.35), transparent 40%);
  pointer-events: none;
}

.a-hero__copy {
  position: absolute;
  left: var(--a-hero-inset);
  bottom: var(--a-hero-inset);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 1.2cqi, 12px);
  max-width: min(34rem, 56%);
  color: var(--a-on-fill);
}

.a-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* Insignia del POS (o "Hasta -X%"): en el color del tema, como un sticker. */
.a-hero__badge {
  padding: 5px 11px;
  border-radius: 10px;
  background: var(--acc-field);
  color: var(--a-on-fill);
  font-size: clamp(0.8rem, 1.6cqi, 1rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--acc-deep) 90%, transparent), inset 0 0 0 1.5px rgb(255 255 255 / 0.28);
  transform: rotate(-2deg);
}

/* Chips de vidrio: cuenta regresiva en vivo y cantidad de productos. */
.a-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--a-radius-pill);
  background: rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
  font-size: var(--a-text-xs);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.a-hero__timer b { font-weight: 800; }

/*
 * Odómetro de la cuenta regresiva (storefront.js: rollTo). Cada cifra vive en
 * su ranura recortada; solo la que cambia anima: sale hacia arriba y la nueva
 * entra desde abajo. 240 ms con --a-ease-out: termina mucho antes del próximo
 * segundo, así que nunca se encadena. Cifras tabulares: el ancho no salta.
 */
.a-roll {
  display: inline-grid;
  overflow: clip;
  overflow-clip-margin: 2px;
  font-variant-numeric: tabular-nums;
  vertical-align: bottom;
}

.a-roll__d { grid-area: 1 / 1; }

@keyframes a-roll-in { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
@keyframes a-roll-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-70%); } }
@keyframes a-roll-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes a-roll-fade-out { from { opacity: 1; } to { opacity: 0; } }

.a-roll__d.is-in { animation: a-roll-in 240ms var(--a-ease-out) both; }
.a-roll__d.is-out { animation: a-roll-out 240ms var(--a-ease-out) both; }

/* Movimiento reducido: sin desplazamiento, solo un fundido corto. */
@media (prefers-reduced-motion: reduce) {
  .a-roll__d.is-in { animation: a-roll-fade-in 150ms ease both; }
  .a-roll__d.is-out { animation: a-roll-fade-out 150ms ease both; }
}
.a-hero__timer[data-ended] { opacity: 0.6; }

.a-hero__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1.25rem, 4.4cqi, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.35);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.a-hero__sub {
  display: -webkit-box;
  overflow: hidden;
  max-width: 44ch;
  font-size: clamp(0.8rem, 1.5cqi, 1.0625rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgb(255 255 255 / 0.86);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Botón en el color del tema elegido en el POS (oscurecido hasta tener contraste con el texto blanco). */
.a-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 4px;
  padding: 0 6px 0 20px;
  border-radius: var(--a-radius-pill);
  background: var(--acc-field);
  color: var(--a-on-fill);
  font-weight: 800;
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--acc-deep) 95%, transparent), inset 0 0 0 1px rgb(255 255 255 / 0.18);
  transition: transform 260ms var(--a-ease-out), box-shadow 260ms var(--a-ease-out);
}

.a-hero__cta > span:first-child { display: inline-block; }
.a-hero__cta > span:first-child::first-letter { text-transform: uppercase; }

.a-hero__cta-ico {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--a-paper);
  color: var(--acc-field);
  transition: transform 260ms var(--a-ease-out);
}

@media (hover: hover) {
  .a-hero__slide:hover .a-hero__cta { transform: translateY(-2px); }
  .a-hero__slide:hover .a-hero__cta-ico { transform: translateX(3px); }
}

/* Barra de control: flechas, progreso por slide y contador, en una píldora de vidrio. */
.a-hero__bar {
  position: absolute;
  right: var(--a-hero-inset);
  bottom: var(--a-hero-inset);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--a-radius-pill);
  background: rgb(18 18 22 / 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  color: var(--a-on-fill);
}

.a-hero__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  color: inherit;
  cursor: pointer;
  transition: background var(--a-dur) ease, transform 160ms var(--a-ease-out);
}

.a-hero__nav:hover { background: rgb(255 255 255 / 0.28); }
.a-hero__nav:active { transform: scale(0.92); }
.a-hero__nav:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--a-paper); }

.a-hero__dots { display: flex; align-items: center; gap: 2px; padding-inline: 4px; }

.a-hero__dot {
  display: grid;
  align-items: center;
  /* Área táctil mínima de 24 × 24 px (WCAG 2.5.8); la barra visible es más fina gracias al margin de ::before */
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 400ms var(--a-ease-out);
}

.a-hero__dot::before,
.a-hero__dot-fill {
  grid-area: 1 / 1;
  margin-inline: 3px;
  height: 4px;
  border-radius: 4px;
}

.a-hero__dot::before { content: ""; background: rgb(255 255 255 / 0.38); }
.a-hero__dot-fill { width: 0; background: var(--a-paper); }
.a-hero__dot[aria-current="true"] { width: 46px; }
.a-hero__dot[aria-current="true"] .a-hero__dot-fill { width: 100%; }
.a-hero__dot:focus-visible { outline: none; }
.a-hero__dot:focus-visible::before { box-shadow: 0 0 0 2px var(--a-paper); }

@keyframes a-hero-progress { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .a-hero.is-playing .a-hero__dot[aria-current="true"] .a-hero__dot-fill { animation: a-hero-progress var(--a-hero-every, 7s) linear both; }
  .a-hero.is-paused .a-hero__dot[aria-current="true"] .a-hero__dot-fill { animation-play-state: paused; }
}

.a-hero__count {
  min-width: 4.2em;
  padding-inline: 2px 6px;
  font-size: var(--a-text-xs);
  font-weight: 700;
  color: rgb(255 255 255 / 0.75);
  text-align: center;
}

.a-hero__count b { color: var(--a-on-fill); font-weight: 800; }

/* Con controles, el texto deja libre el ancho de la barra. */
.a-hero:has(.a-hero__bar) .a-hero__copy { max-width: min(34rem, calc(100% - 2 * var(--a-hero-inset) - 230px)); }

/* Celular: la misma pieza 2:1; botón y barra más chicos para no tapar el arte. */
@container (max-width: 560px) {
  .a-hero__count { display: none; }
  .a-hero__nav { width: 28px; height: 28px; }
  .a-hero__dot[aria-current="true"] { width: 34px; }
  .a-hero__copy { max-width: 70%; gap: 5px; }
  .a-hero:has(.a-hero__bar) .a-hero__copy { max-width: calc(100% - 2 * var(--a-hero-inset) - 150px); }
  .a-hero__sub, .a-hero__chip--items { display: none; }
  .a-hero__chip { padding: 3px 8px; font-size: 10px; }
  .a-hero__badge { padding: 3px 8px; font-size: 11px; }
  .a-hero__cta { min-height: 32px; margin-top: 0; padding: 0 4px 0 12px; gap: 6px; font-size: var(--a-text-xs); }
  .a-hero__cta-ico { width: 24px; height: 24px; }
  .a-hero__cta-ico .a-icon { width: 13px; height: 13px; }
}

@media (max-width: 767px) {
  .a-hero { border-radius: var(--a-radius-xl); }
}

@media (prefers-reduced-motion: reduce) {
  .a-hero__slide, .a-hero__slide.is-current { transition: none; }
}

/* ── Banners de promoción ──────────────────────────────────────────────── */
.a-banners {
  display: grid;
  gap: var(--a-space-4);
}

.a-banners--top { margin-top: var(--a-space-5); }

@media (min-width: 768px) {
  .a-banners--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-banners--pair.a-banners--single { grid-template-columns: minmax(0, 1fr); }
}

.a-banner,
.a-banner:hover {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-lg);
  background: var(--a-surface);
  color: var(--a-ink);
  text-decoration: none;
  transition: box-shadow var(--a-dur) ease, border-color var(--a-dur) ease;
}

@media (hover: hover) {
  .a-banner:hover { border-color: var(--a-line-strong); box-shadow: var(--a-shadow); }
}

.a-banner:focus-visible { outline: none; box-shadow: var(--a-focus); }

.a-banner__media {
  position: relative;
  display: block;
  aspect-ratio: 1296 / 560;
  overflow: hidden;
  background: color-mix(in srgb, var(--acc) 12%, var(--a-surface-2));
}

/* Banners extra del home (ubicación banner, 1200 × 600): 2:1, de a dos en escritorio. */
.a-banners--wide .a-banner__media { aspect-ratio: 2 / 1; }
@media (min-width: 768px) {
  .a-banners--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-banners--wide.a-banners--single { grid-template-columns: minmax(0, 1fr); }
}

.a-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--a-ease-out);
}

@media (hover: hover) {
  .a-banner:hover .a-banner__media img { transform: scale(1.02); }
}

.a-banner__badge {
  position: absolute;
  top: var(--a-space-3);
  left: var(--a-space-3);
  font-size: var(--a-text-sm);
}

.a-banner__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a-space-4);
  min-width: 0;
  padding: var(--a-space-3) var(--a-space-4);
}

.a-banner__text { display: grid; gap: 2px; min-width: 0; }

.a-banner__title,
.a-banner__sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a-banner__title {
  font-size: var(--a-text-base);
  font-weight: 800;
  line-height: 1.25;
}

.a-banner__sub {
  font-size: var(--a-text-sm);
  color: var(--a-muted);
}

.a-banner__cta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  font-size: var(--a-text-sm);
  font-weight: 700;
  white-space: nowrap;
  color: var(--acc-ink, var(--a-brand-700));
}

.a-banner__cta .a-icon { transition: transform var(--a-dur) var(--a-ease-out); }
.a-banner:hover .a-banner__cta .a-icon { transform: translateX(2px); }

/*
 * Un solo banner: a todo el ancho, nunca una media tarjeta suelta. En
 * escritorio la pieza va a la izquierda (su proporción, sin recorte) y su
 * texto en grande a la derecha, sobre el campo de su color.
 */
@media (min-width: 768px) {
  .a-banners--single .a-banner,
  .a-banners--single .a-banner:hover {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    border: 0;
    background:
      radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--acc-field) 80%, var(--a-paper)) 0%, transparent 60%),
      var(--acc-field);
    color: var(--a-on-fill);
  }

  .a-banners--single .a-banner__caption {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--a-space-5);
    padding: var(--a-space-8) clamp(1.5rem, 3vw, 3rem);
  }

  .a-banners--single .a-banner__title {
    display: -webkit-box;
    font-size: var(--a-text-3xl);
    letter-spacing: -0.03em;
    line-height: 1.05;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .a-banners--single .a-banner__sub { font-size: var(--a-text-base); color: inherit; }

  .a-banners--single .a-banner__cta {
    min-height: 44px;
    padding: 0 var(--a-space-5);
    border-radius: var(--a-radius-pill);
    background: var(--a-paper);
    color: var(--a-paper-ink);
    font-size: var(--a-text-md);
  }
}

/* ── Categorías populares: carrusel de fotos cuadradas ──────────────────── */
.a-tiles .a-heading { margin-bottom: var(--a-space-5); }

.a-rail--cats .a-rail__track { --rail-cols: 2.4; --rail-gap: 12px; padding-top: 6px; }
@container (min-width: 560px) { .a-rail--cats .a-rail__track { --rail-cols: 4; } }
@container (min-width: 900px) { .a-rail--cats .a-rail__track { --rail-cols: 5; --rail-gap: 16px; } }
@container (min-width: 1180px) { .a-rail--cats .a-rail__track { --rail-cols: 6; --rail-gap: 18px; } }
.a-rail--cats .a-rail__nav { top: calc(50% - 22px); }
.a-rail--cats .a-rail__nav--prev { left: -18px; }
.a-rail--cats .a-rail__nav--next { right: -18px; }

.a-tile,
.a-tile:hover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--a-radius-lg);
  color: #fff;
  text-decoration: none;
}

.a-tile:focus-visible { outline: none; box-shadow: var(--a-focus); }

/* Foto vertical que llena la tarjeta; el nombre va encima, sobre un degradado oscuro. */
.a-tile__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--a-paper);
}

.a-tile__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.78), transparent);
  pointer-events: none;
}

.a-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease, transform 0.5s ease;
}

/* Nombre + botón "Explorar": abajo en reposo, sube al centro en hover. */
.a-tile__body {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% - 12px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-100%);
  transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.a-tile__cta {
  display: inline-block;
  max-height: 0;
  margin-top: 0;
  padding: 0 18px;
  overflow: hidden;
  border: 1.5px solid #fff;
  border-width: 0 1.5px;
  border-radius: 999px;
  font-size: var(--a-text-sm);
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .a-tile:hover .a-tile__media img,
  .a-tile:focus-visible .a-tile__media img {
    filter: brightness(0.6);
    transform: scale(1.04);
  }
  .a-tile:hover .a-tile__body,
  .a-tile:focus-visible .a-tile__body {
    top: 50%;
    transform: translateY(-50%);
  }
  .a-tile:hover .a-tile__cta,
  .a-tile:focus-visible .a-tile__cta {
    max-height: 40px;
    margin-top: 12px;
    border-width: 1.5px;
    opacity: 1;
  }
  .a-tile__cta:hover { background: #fff; color: #111; }
}

@media (prefers-reduced-motion: reduce) {
  .a-tile__media img,
  .a-tile__body,
  .a-tile__cta { transition: none; }
}

.a-tile__name {
  font-size: var(--a-text-md);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
}

@media (max-width: 559px) {
  .a-tile__name { font-size: var(--a-text-sm); }
}

/* ── Banner de colección enlazada a una categoría (sobre su bloque) ────── */
.a-catsec__banner {
  display: block;
  margin-bottom: var(--a-space-4);
  overflow: hidden;
  border-radius: var(--a-radius-xl);
  background: var(--a-surface-2);
}

/* Colección del POS (1920 × 640): 3:1 a todo el ancho. */
.a-catsec__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

/* ── Beneficios ────────────────────────────────────────────────────────── */
.a-benefits__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--a-space-3);
}

@media (min-width: 768px) {
  .a-benefits__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .a-benefits__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.a-benefit,
.a-benefit:hover {
  --tone: var(--a-brand);
  display: flex;
  flex-direction: column;
  gap: var(--a-space-2);
  height: 100%;
  padding: var(--a-space-5) var(--a-space-4);
  border-radius: var(--a-radius-lg);
  background: color-mix(in srgb, var(--tone) 10%, var(--a-surface));
  color: var(--a-ink);
  text-decoration: none;
  transition: background-color var(--a-dur) ease, transform var(--a-dur-press) var(--a-ease-out);
}

.a-benefit:hover { background: color-mix(in srgb, var(--tone) 17%, var(--a-surface)); }
.a-benefit:active { transform: scale(0.98); }

.a-benefit--pink { --tone: var(--a-offer); }
.a-benefit--green { --tone: #16a34a; }
.a-benefit--violet { --tone: #7c3aed; }
.a-benefit--amber { --tone: #d97706; }

.a-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--a-space-1);
  border-radius: var(--a-radius-lg);
  background: var(--a-surface);
  color: color-mix(in srgb, var(--tone) 80%, var(--a-paper-ink));
  box-shadow: var(--a-shadow-sm);
}

.a-benefit__title {
  font-size: var(--a-text-md);
  font-weight: 800;
  line-height: 1.25;
}

.a-benefit__line {
  font-size: var(--a-text-sm);
  line-height: 1.45;
  color: var(--a-muted);
}

/* ── Tarjetas de fidelización ──────────────────────────────────────────── */
.a-loyalty {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--a-space-6);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  overflow: hidden;
  border-radius: var(--a-radius-xl);
  background: var(--a-brand-50);
}

@media (min-width: 900px) {
  .a-loyalty { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

.a-loyalty__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--a-space-4);
}

.a-loyalty__title {
  font-size: var(--a-text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--a-ink);
}

.a-loyalty__text {
  max-width: 52ch;
  font-size: var(--a-text-base);
  line-height: var(--a-leading);
  color: var(--a-ink-2);
}

.a-loyalty__cards {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
}

.a-loyalty__card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 52%);
  aspect-ratio: 1.586;
  border-radius: var(--a-radius-lg);
  box-shadow: var(--a-shadow-lg);
}

.a-loyalty__card img { width: 46%; height: auto; }
.a-loyalty__card--aissa { background: var(--a-on-brand); transform: rotate(-6deg) translateX(24px); }
.a-loyalty__card--sayda { background: var(--a-paper); transform: rotate(5deg) translate(-24px, 28px); }

/* ── Banda de WhatsApp ─────────────────────────────────────────────────── */
.a-waband {
  margin-top: var(--a-section-gap);
  background: var(--a-surface-2);
  border-top: 1px solid var(--a-line);
}

.a-waband__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--a-space-4);
  padding-block: var(--a-space-8);
}

@media (min-width: 900px) {
  .a-waband__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--a-space-6); }
}

.a-waband__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--a-whatsapp);
  color: var(--a-on-fill);
}

.a-waband__title {
  font-size: var(--a-text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--a-ink);
}

.a-waband__text {
  margin-top: var(--a-space-1);
  max-width: 60ch;
  font-size: var(--a-text-md);
  color: var(--a-muted);
}

@media (max-width: 899px) {
  .a-waband__inner > .a-btn { grid-column: 1 / -1; }
}

.store-layout:has(.a-waband) .a-footer { margin-top: 0; }

/* ── Supplier: aviso de precio referencial ya va en el subtítulo ─────── */
.a-supplier .a-heading__sub { max-width: 70ch; }

/* Banners chicos del bento: la flecha va arriba a la derecha para no tapar el texto de la pieza. */
.a-top__side--n3 > .a-tbanner:not(.a-tbanner--wide) .a-tbanner__cta { top: var(--a-space-3); bottom: auto; width: 32px; height: 32px; }
