/* Storefront público · FASE 5.1 */

:root {
  --storefront-ink: var(--color-text);
  --storefront-muted: var(--color-text-muted);
  --storefront-line: var(--color-border);
  --storefront-surface: var(--brand-white);
  --storefront-surface-soft: var(--brand-cream);
  --storefront-tint: var(--brand-cream);
  --storefront-green-tint: var(--brand-green-soft);
  --storefront-radius: 1.25rem;
  --storefront-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --storefront-shadow: 0 1rem 2.5rem rgb(var(--shadow-rgb) / 9%);
}

.storefront-shell { min-height: 100vh; background: var(--storefront-surface-soft); }
.storefront-header { border-bottom: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent); background: var(--brand-white); }
.storefront-header-inner { display: grid; gap: var(--space-3); padding-block: 0.8rem; }
.storefront-header-row, .storefront-header-actions, .storefront-market-switch { display: flex; align-items: center; }
.storefront-header-row { justify-content: space-between; gap: var(--space-4); }
.storefront-brand { display: inline-flex; align-items: center; min-width: 0; }
.storefront-brand img { width: clamp(9.5rem, 36vw, 13rem); height: auto; }
.storefront-header-actions { justify-content: flex-end; gap: 0.75rem; }
.storefront-search-jump { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.55rem 0.85rem; color: var(--brand-red-deep); border: 1px solid color-mix(in srgb, var(--brand-red-dark) 22%, transparent); border-radius: 999px; background: var(--brand-cream-light); font-size: 0.82rem; font-weight: 800; white-space: nowrap; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.storefront-search-jump svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.storefront-search-jump-compact { display: none; }
.storefront-search-jump:hover { color: var(--brand-white); border-color: var(--brand-red); background: var(--brand-red); transform: translateY(-1px); }
.storefront-search-jump:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 3px; }
.storefront-market-pill, .storefront-future-label { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.2rem; padding: 0.45rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 800; }
.storefront-market-pill { color: var(--brand-green-deep); background: var(--storefront-green-tint); }
.storefront-market-pill strong { color: var(--storefront-ink); }
.storefront-future-label { color: var(--brand-orange-deep); background: var(--storefront-tint); white-space: nowrap; }
.storefront-change-link { color: var(--brand-red-deep); font-size: 0.82rem; font-weight: 750; text-decoration: underline; text-underline-offset: 0.18em; }
.storefront-search { position: relative; scroll-margin-top: 1rem; }
.storefront-toolbar-search { width: min(100%, 38rem); margin-top: 0.15rem; }
.storefront-search input { width: 100%; min-height: 2.9rem; padding: 0.65rem 1rem 0.65rem 2.55rem; color: var(--storefront-ink); border: 1px solid var(--storefront-line); border-radius: 999px; background: var(--storefront-surface-soft); }
.storefront-search input::placeholder { color: var(--storefront-muted); }
.storefront-search-icon { position: absolute; top: 50%; left: 1rem; color: var(--brand-orange-deep); transform: translateY(-50%); pointer-events: none; }
.storefront-search label { display: block; }
.storefront-clear-search { position: absolute; top: 50%; right: 0.55rem; display: grid; width: 1.9rem; height: 1.9rem; place-items: center; color: var(--storefront-muted); border-radius: 50%; background: transparent; font-size: 1.35rem; line-height: 1; transform: translateY(-50%); }
.storefront-clear-search:hover, .storefront-clear-search:focus-visible { color: var(--brand-red-deep); background: var(--storefront-tint); }
.storefront-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3.4rem, 10vw, 6.2rem); background: linear-gradient(120deg, var(--brand-cream-light) 0%, var(--brand-cream) 54%, var(--brand-green-soft) 100%); }
.storefront-hero::after { position: absolute; z-index: -1; right: -8rem; bottom: -10rem; width: 22rem; height: 22rem; border: 3.5rem solid color-mix(in srgb, var(--brand-green) 20%, transparent); border-radius: 50%; content: ""; }
.storefront-hero-content { max-width: 45rem; }
.storefront-eyebrow { margin: 0 0 0.7rem; color: var(--brand-orange-deep); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.storefront-hero h1 { max-width: 12ch; margin: 0; color: var(--storefront-ink); font-size: clamp(2.25rem, 9vw, 4.6rem); line-height: 0.98; letter-spacing: -0.055em; }
.storefront-hero p:not(.storefront-eyebrow) { max-width: 38rem; margin: 1.25rem 0 0; color: var(--storefront-muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.storefront-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.storefront-primary-link, .storefront-secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.7rem 1rem; border-radius: 0.75rem; font-weight: 800; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.storefront-primary-link { color: var(--brand-white); background: var(--brand-red); box-shadow: 0 0.5rem 1.2rem color-mix(in srgb, var(--brand-red-dark) 18%, transparent); }
.storefront-secondary-link { color: var(--brand-red-deep); border: 1px solid color-mix(in srgb, var(--brand-red-dark) 25%, transparent); background: color-mix(in srgb, var(--brand-white) 72%, transparent); }
.storefront-primary-link:hover, .storefront-primary-link:focus-visible, .storefront-secondary-link:hover, .storefront-secondary-link:focus-visible { transform: translateY(-2px); }
.storefront-main { padding-block: 1.4rem 3rem; }
.storefront-main, .storefront-toolbar { scroll-margin-top: 1rem; }
.storefront-toolbar { display: grid; gap: 1.15rem; margin-bottom: 2rem; }
.storefront-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.storefront-section-heading h2 { margin: 0; color: var(--storefront-ink); font-size: clamp(1.55rem, 4vw, 2.25rem); letter-spacing: -0.035em; }
.storefront-section-heading p { margin: 0.35rem 0 0; color: var(--storefront-muted); }
.storefront-category-list { display: flex; gap: 0.55rem; overflow-x: auto; padding: 0.15rem 0.1rem 0.65rem; scrollbar-width: thin; }
.storefront-category-button { flex: 0 0 auto; min-height: 2.55rem; padding: 0.55rem 0.95rem; color: var(--storefront-muted); border: 1px solid var(--storefront-line); border-radius: 999px; background: var(--storefront-surface); font-size: 0.88rem; font-weight: 800; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.storefront-category-button:hover, .storefront-category-button:focus-visible, .storefront-category-button[aria-pressed="true"] { color: var(--brand-white); border-color: var(--brand-red); background: var(--brand-red); }
.storefront-category-button:active { transform: scale(0.97); }
.storefront-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.4rem; }
.storefront-filter-footer p { margin: 0; color: var(--storefront-muted); font-size: 0.8rem; }
.storefront-clear-filters { min-height: 2.35rem; padding: 0.45rem 0.75rem; color: var(--brand-red-deep); border: 1px solid color-mix(in srgb, var(--brand-red-dark) 25%, transparent); border-radius: 0.65rem; background: var(--storefront-surface); font-size: 0.78rem; font-weight: 800; }
.storefront-clear-filters:hover, .storefront-clear-filters:focus-visible { color: var(--brand-white); background: var(--brand-red); }
.storefront-featured-section { margin-bottom: 3rem; padding: 1.35rem; border: 1px solid var(--color-border); border-radius: var(--storefront-radius); background: linear-gradient(140deg, var(--brand-cream), var(--brand-cream-light)); }
.storefront-featured-section[hidden] { display: none; }
.storefront-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.storefront-product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--storefront-line); border-radius: var(--storefront-radius); background: var(--storefront-surface); box-shadow: 0 0.5rem 1.6rem rgb(var(--shadow-rgb) / 5%); transition: transform 180ms ease, box-shadow 180ms ease; }
.storefront-product-card:hover, .storefront-product-card:focus-within { transform: translateY(-3px); box-shadow: 0 0.8rem 2rem rgb(var(--shadow-rgb) / 10%); }
.storefront-product-card.is-sold-out { opacity: 0.82; }
.storefront-product-link { display: flex; min-width: 0; flex: 1; flex-direction: column; color: inherit; }
.storefront-product-media { position: relative; display: grid; aspect-ratio: 1 / 0.9; place-items: center; overflow: hidden; background: linear-gradient(140deg, var(--brand-cream), var(--brand-green-soft)); }
.storefront-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.storefront-product-card:hover .storefront-product-media img { transform: scale(1.035); }
.storefront-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--brand-orange-deep); background: radial-gradient(circle at 30% 25%, var(--brand-cream-light) 0 9%, transparent 10%), linear-gradient(140deg, var(--brand-cream), var(--brand-green-soft)); font-size: 2.4rem; }
.storefront-product-badges { position: absolute; top: 0.65rem; left: 0.65rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.storefront-badge { display: inline-flex; min-height: 1.65rem; align-items: center; padding: 0.2rem 0.5rem; border-radius: 999px; color: var(--brand-white); font-size: 0.67rem; font-weight: 850; }
.storefront-badge-featured { background: var(--brand-orange-deep); }
.storefront-badge-soldout { background: var(--brand-red-deep); }
.storefront-product-content { display: flex; min-height: 11.5rem; flex: 1; flex-direction: column; padding: 0.95rem; }
.storefront-product-category { margin: 0; color: var(--brand-green-deep); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.storefront-product-name { margin: 0.4rem 0 0; color: var(--storefront-ink); font-size: 1rem; line-height: 1.2; }
.storefront-product-description { display: -webkit-box; margin: 0.45rem 0 0; overflow: hidden; color: var(--storefront-muted); font-size: 0.82rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.storefront-product-bottom { display: flex; align-items: end; justify-content: space-between; gap: 0.6rem; margin-top: auto; padding-top: 0.9rem; }
.storefront-product-price { color: var(--brand-red-deep); font-size: 1.08rem; font-weight: 900; white-space: nowrap; }
.storefront-availability { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--brand-green-deep); font-size: 0.7rem; font-weight: 800; text-align: right; }
.storefront-availability::before { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: currentColor; content: ""; }
.storefront-availability.is-sold-out { color: var(--brand-red-deep); }
.storefront-product-dialog { width: min(calc(100% - 1.5rem), 54rem); max-height: calc(100% - 1.5rem); padding: 0; overflow: auto; border: 0; border-radius: 1.25rem; background: transparent; }
.storefront-product-dialog::backdrop { background: color-mix(in srgb, var(--brand-ink) 58%, transparent); backdrop-filter: blur(4px); }
.storefront-dialog-panel { position: relative; display: grid; gap: 1.25rem; padding: 1.1rem; border: 1px solid var(--storefront-line); border-radius: 1.25rem; background: var(--storefront-surface); box-shadow: 0 1.5rem 4rem color-mix(in srgb, var(--brand-ink) 22%, transparent); }
.storefront-dialog-close { position: absolute; z-index: 2; top: 0.7rem; right: 0.7rem; display: grid; width: 2.4rem; height: 2.4rem; place-items: center; color: var(--storefront-ink); border: 1px solid var(--storefront-line); border-radius: 50%; background: color-mix(in srgb, var(--brand-white) 92%, transparent); font-size: 1.45rem; line-height: 1; }
.storefront-dialog-close:hover, .storefront-dialog-close:focus-visible { color: var(--brand-white); border-color: var(--brand-red); background: var(--brand-red); }
.storefront-detail-media { display: grid; min-height: 14rem; aspect-ratio: 1 / 0.8; place-items: center; overflow: hidden; border-radius: 0.9rem; background: linear-gradient(140deg, var(--brand-cream), var(--brand-green-soft)); }
.storefront-detail-media img, .storefront-detail-media .storefront-placeholder { width: 100%; height: 100%; object-fit: cover; }
.storefront-detail-content { padding-inline: 0.25rem; }
.storefront-detail-content h2 { margin: 0.35rem 0 0; color: var(--storefront-ink); font-size: clamp(1.55rem, 5vw, 2.3rem); line-height: 1.05; }
.storefront-detail-market { margin: 0.55rem 0 0; color: var(--storefront-muted); font-size: 0.82rem; }
.storefront-detail-price { margin: 1rem 0 0; color: var(--brand-red-deep); font-size: 1.55rem; font-weight: 900; }
.storefront-detail-description { margin: 1rem 0 0; color: var(--storefront-muted); white-space: pre-line; }
.storefront-detail-availability { display: inline-flex; align-items: center; gap: 0.35rem; margin: 1rem 0 0; color: var(--brand-green-deep); font-weight: 850; }
.storefront-detail-availability::before { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; content: ""; }
.storefront-detail-availability.is-sold-out { color: var(--brand-red-deep); }
.storefront-related-section { padding-top: 0.5rem; border-top: 1px solid var(--storefront-line); }
.storefront-related-section[hidden], .storefront-product-dialog[hidden] { display: none; }
.storefront-related-section h3 { margin: 0 0 0.9rem; color: var(--storefront-ink); font-size: 1.2rem; }
.storefront-related-section .storefront-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-state { display: grid; min-height: 9rem; place-items: center; padding: 2rem 1rem; color: var(--storefront-muted); text-align: center; }
.storefront-state[hidden] { display: none; }
.storefront-state-content { max-width: 32rem; }
.storefront-state-title { margin: 0; color: var(--storefront-ink); font-size: 1.1rem; font-weight: 850; }
.storefront-state-description { margin: 0.45rem 0 0; }
.storefront-retry, .storefront-reset-filter { min-height: 2.6rem; margin-top: 1rem; padding: 0.55rem 0.9rem; color: var(--brand-white); border-radius: 0.7rem; background: var(--brand-red); font-weight: 800; }
.storefront-skeleton-grid { display: grid; grid-column: 1 / -1; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.storefront-skeleton-card { overflow: hidden; border: 1px solid var(--storefront-line); border-radius: var(--storefront-radius); background: var(--storefront-surface); }
.storefront-skeleton-card::before, .storefront-skeleton-line { display: block; background: linear-gradient(90deg, var(--color-disabled) 25%, var(--brand-cream-light) 45%, var(--color-disabled) 65%); background-size: 240% 100%; animation: storefront-shimmer 1.35s ease-in-out infinite; content: ""; }
.storefront-skeleton-card::before { aspect-ratio: 1 / 0.9; }
.storefront-skeleton-content { display: grid; gap: 0.65rem; padding: 1rem; }
.storefront-skeleton-line { height: 0.8rem; border-radius: 999px; }
.storefront-skeleton-line.short { width: 54%; }
.storefront-skeleton-line.long { width: 82%; }
.storefront-footer { padding-block: 2.2rem; color: var(--brand-white); background: var(--brand-green-deep); }
.storefront-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.storefront-footer p { margin: 0; color: color-mix(in srgb, var(--brand-white) 78%, transparent); font-size: 0.84rem; }
.storefront-footer strong { color: var(--brand-white); }
.country-selector-page { display: grid; min-height: 100svh; place-items: center; padding: 1rem; background: radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--brand-green) 20%, transparent), transparent 30%), linear-gradient(140deg, var(--brand-cream-light), var(--brand-green-soft)); }
.country-selector { width: min(100%, 66rem); padding: 1rem; }
.country-selector-brand { width: min(12rem, 54vw); margin: 0 auto 1rem; }
.country-selector-brand img { width: 100%; height: auto; }
.country-selector-copy { max-width: 40rem; margin: 0 auto; text-align: center; }
.country-selector-copy h1 { margin: 0; color: var(--storefront-ink); font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -0.05em; line-height: 1; }
.country-selector-copy p { margin: 0.65rem auto 0; color: var(--storefront-muted); font-size: clamp(0.9rem, 1.5vw, 1rem); }
.country-selector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1.25rem; }
.country-card { display: flex; min-height: 10rem; flex-direction: column; justify-content: space-between; padding: 1.25rem; border: 1px solid var(--storefront-line); border-radius: var(--storefront-radius); background: var(--storefront-surface); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.country-card:hover, .country-card:focus-visible { border-color: var(--brand-orange); box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--brand-red-dark) 12%, transparent); transform: translateY(-3px); }
.country-card-top { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.country-card-flag { font-size: 2rem; line-height: 1; }
.country-card h2 { margin: 0; color: var(--storefront-ink); font-size: 1.35rem; }
.country-card p { margin: 0.45rem 0 0; color: var(--storefront-muted); font-size: 0.86rem; }
.country-card-action { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.25rem; color: var(--brand-red-deep); font-weight: 850; }
@keyframes storefront-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (min-width: 36rem) { .storefront-products-grid, .storefront-skeleton-grid { gap: 1.1rem; } .storefront-product-content { padding: 1.1rem; } }
@media (min-width: 48rem) { .storefront-header-inner { grid-template-columns: minmax(0, 1fr); align-items: center; gap: 1.25rem; } .storefront-header-row { display: flex; } .storefront-products-grid, .storefront-skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 48rem) { .storefront-dialog-panel { grid-template-columns: minmax(14rem, 0.95fr) minmax(16rem, 1.05fr); padding: 1.5rem; } .storefront-detail-media { grid-row: span 2; } .storefront-related-section { grid-column: 1 / -1; } }
@media (min-width: 64rem) { .storefront-products-grid, .storefront-skeleton-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .storefront-featured-section { padding: 1.75rem; } }
@media (min-width: 90rem) { .storefront-products-grid, .storefront-skeleton-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .storefront-future-label, .storefront-header-actions .storefront-change-link { display: none; } .country-selector-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .storefront-skeleton-card::before, .storefront-skeleton-line { animation: none; } }

/* Mantiene el indicador de TEST visible sin competir con los avisos del carrito. */
body.storefront-shell .environment-indicator { right: auto; left: 0.75rem; }

/* Selector de país: composición compacta y movimiento decorativo. */
.country-selector-page {
  position: relative;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(circle at 7% 12%, color-mix(in srgb, var(--brand-green) 26%, transparent), transparent 25rem),
    radial-gradient(circle at 93% 84%, color-mix(in srgb, var(--brand-green) 19%, transparent), transparent 24rem),
    var(--brand-cream);
}
.country-selector-page::before,
.country-selector-page::after {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}
.country-selector-page::before {
  top: -8rem;
  right: clamp(2rem, 4vw, 4rem);
  width: clamp(16rem, 34vw, 31rem);
  border: clamp(1.5rem, 4vw, 3.5rem) solid color-mix(in srgb, var(--brand-red) 9%, transparent);
}
.country-selector-page::after {
  bottom: -7rem;
  left: -4rem;
  width: clamp(14rem, 30vw, 27rem);
  border: clamp(1.2rem, 3vw, 2.8rem) solid color-mix(in srgb, var(--brand-green) 10%, transparent);
}
.country-selector {
  position: relative;
  align-self: center;
  width: min(100%, 68rem);
  padding: clamp(0.75rem, 2vw, 1.5rem);
  border: 0;
  background: transparent;
  box-shadow: none;
}
.country-selector-brand {
  width: clamp(8.5rem, 12vw, 10rem);
  margin-bottom: clamp(0.6rem, 1.7vw, 1.1rem);
  animation: storefront-rise 650ms var(--storefront-ease) both;
}
.country-selector-copy { max-width: 42rem; }
.country-selector-copy h1 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.25rem, 4.9vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.country-selector-copy .storefront-eyebrow {
  margin: 0 0 0.45rem;
  animation: storefront-rise 650ms 70ms var(--storefront-ease) both;
}
.country-selector-copy h1 { animation: storefront-rise 720ms 120ms var(--storefront-ease) both; }
.country-selector-copy > p:last-child { animation: storefront-rise 700ms 190ms var(--storefront-ease) both; }
.country-selector-grid { gap: clamp(0.7rem, 1.5vw, 1.1rem); margin-top: clamp(1rem, 2.5vw, 1.65rem); }
.country-card {
  position: relative;
  isolation: isolate;
  min-height: clamp(10.5rem, 17vw, 12.5rem);
  overflow: hidden;
  padding: clamp(1rem, 1.9vw, 1.5rem);
  border: 1px solid color-mix(in srgb, var(--brand-white) 25%, transparent);
  border-radius: clamp(1.25rem, 2vw, 1.8rem);
  color: var(--brand-white);
  box-shadow: var(--storefront-shadow);
  transition: transform 260ms var(--storefront-ease), box-shadow 260ms ease;
  animation: storefront-rise 750ms 260ms var(--storefront-ease) backwards;
}
.country-card:nth-child(2) { animation-delay: 330ms; }
.country-card:hover::before,
.country-card:focus-visible::before { transform: translate(-0.5rem, -0.4rem) rotate(10deg); }
.country-card::before,
.country-card::after {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  content: "";
  transition: transform 450ms var(--storefront-ease);
}
.country-card::before {
  right: -4rem;
  bottom: -10rem;
  width: 19rem;
  border: 3.5rem solid color-mix(in srgb, var(--brand-white) 13%, transparent);
}
.country-card::after {
  top: -6rem;
  right: 15%;
  width: 11rem;
  background: color-mix(in srgb, var(--brand-white) 7%, transparent);
}
.country-card-chile { background: linear-gradient(135deg, var(--brand-red-dark), var(--brand-red) 62%, var(--brand-red)); }
.country-card-peru { background: linear-gradient(135deg, var(--brand-green), var(--brand-green) 62%, var(--brand-green)); }
.country-card:hover,
.country-card:focus-visible {
  border-color: color-mix(in srgb, var(--brand-white) 55%, transparent);
  box-shadow: 0 1.2rem 2.8rem rgb(var(--shadow-rgb) / 17%);
  transform: translateY(-5px);
}
.country-card:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 4px; }
.country-card-flag { display: inline-block; margin-bottom: 0.4rem; font-size: 1.8rem; }
.country-card h2 { color: var(--brand-white); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -0.05em; }
.country-card p { position: relative; max-width: 22rem; margin-top: 0.45rem; color: var(--brand-white); font-size: 0.9rem; }
.country-card-number { color: var(--brand-white); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.11em; white-space: nowrap; }
.country-card-action { justify-content: space-between; width: 100%; margin-top: 0.8rem; padding-top: 0.65rem; border-top: 1px solid color-mix(in srgb, var(--brand-white) 35%, transparent); color: var(--brand-white); font-size: 0.92rem; }
.country-selector-note { margin: clamp(0.8rem, 2vw, 1.15rem) 0 0; color: var(--storefront-muted); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.country-selector-page .environment-indicator { position: relative; right: auto; bottom: auto; justify-self: center; margin: 0.25rem auto 0.5rem; }
.country-card-arrow { display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border: 1px solid color-mix(in srgb, var(--brand-white) 55%, transparent); border-radius: 50%; font-size: 1.2rem; transition: transform 220ms var(--storefront-ease), background-color 220ms ease; }
.country-card:hover .country-card-arrow,
.country-card:focus-visible .country-card-arrow { background: color-mix(in srgb, var(--brand-white) 18%, transparent); transform: translate(3px, -3px); }
@media (prefers-reduced-motion: no-preference) {
  .country-selector-page::before { animation: country-accent-drift 9s ease-in-out infinite alternate; }
  .country-selector-page::after { animation: country-accent-drift 11s ease-in-out infinite alternate-reverse; }
}
@keyframes country-accent-drift { to { transform: translate(0.7rem, 0.55rem) rotate(8deg); } }

/* Navegación y hero compartidos por Chile y Perú */
.storefront-shell { background: var(--brand-cream-light); }
.storefront-header {
  background: var(--brand-white);
  box-shadow: 0 0.15rem 0.75rem rgb(var(--shadow-rgb) / 3%);
}
.storefront-header::before { display: block; height: 0.25rem; background: linear-gradient(90deg, var(--brand-red), var(--brand-orange), var(--brand-yellow), var(--brand-green)); content: ""; }
.storefront-header-inner { padding-block: 0.5rem; }
.storefront-brand img { width: clamp(6.5rem, 20vw, 8rem); }
.storefront-market-pill { min-height: 2.5rem; padding-inline: 0.8rem; border: 1px solid color-mix(in srgb, var(--brand-green) 18%, transparent); }
.storefront-search input { min-height: 3.15rem; padding-right: 2.9rem; border-color: var(--color-border); background: var(--brand-cream-light); box-shadow: inset 0 1px 2px rgb(var(--shadow-rgb) / 3%); transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.storefront-search input:focus { border-color: var(--brand-red-deep); background: var(--brand-white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 25%, transparent); outline: none; }
.storefront-clear-search { width: 2.3rem; height: 2.3rem; }
.storefront-hero {
  padding-block: clamp(1.3rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 87% 28%, color-mix(in srgb, var(--brand-green) 34%, transparent), transparent 23rem),
    radial-gradient(circle at 12% 100%, color-mix(in srgb, var(--brand-red) 12%, transparent), transparent 24rem),
    linear-gradient(115deg, var(--brand-cream) 0%, var(--brand-cream) 62%, var(--brand-green-soft) 100%);
}
.storefront-hero::before {
  position: absolute;
  z-index: -1;
  top: 10%;
  right: 12%;
  width: clamp(8rem, 18vw, 15rem);
  aspect-ratio: 1;
  border-radius: 42% 58% 61% 39%;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand-red) 13%, transparent), color-mix(in srgb, var(--brand-green) 10%, transparent));
  pointer-events: none;
  animation: storefront-ambient-drift 12s ease-in-out infinite alternate;
  content: "";
}
.storefront-hero::after { right: -7rem; bottom: -11rem; border-color: color-mix(in srgb, var(--brand-green) 17%, transparent); }
.storefront-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 1.5rem; }
.storefront-hero-content { position: relative; z-index: 1; max-width: 62rem; }
.storefront-hero .storefront-eyebrow { animation: storefront-rise 520ms var(--storefront-ease) both; }
.storefront-hero h1 { max-width: 28ch; font-size: clamp(1.85rem, 3.3vw, 2.7rem); line-height: 1.04; animation: storefront-rise 620ms 50ms var(--storefront-ease) both; }
.storefront-hero p:not(.storefront-eyebrow) { max-width: 56rem; margin-top: 0.55rem; font-size: 0.95rem; color: var(--ink-soft); animation: storefront-rise 600ms 100ms var(--storefront-ease) both; }
.storefront-hero-actions { margin-top: 0.75rem; animation: storefront-rise 560ms 160ms var(--storefront-ease) both; }
.storefront-primary-link { gap: 0.8rem; min-height: 2.7rem; padding-inline: 1rem; border-radius: 0.85rem; }
.storefront-primary-link span { display: inline-block; transition: transform 180ms var(--storefront-ease); }
.storefront-primary-link:hover span,
.storefront-primary-link:focus-visible span { transform: translate(3px, -3px); }
.storefront-secondary-link { min-height: 2.7rem; border-radius: 0.85rem; }
.storefront-hero-art { position: relative; display: none; min-height: 22rem; isolation: isolate; place-items: center; }
.storefront-hero-orbit,
.storefront-hero-disc { position: absolute; display: block; aspect-ratio: 1; border-radius: 50%; }
.storefront-hero-orbit { width: min(100%, 29rem); border: 1.5rem solid color-mix(in srgb, var(--brand-red) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-red-dark) 11%, transparent), 0 0 0 2rem color-mix(in srgb, var(--brand-green) 11%, transparent); }
.storefront-hero-disc { width: min(75%, 21rem); background: radial-gradient(circle at 28% 25%, var(--brand-orange), var(--brand-red) 65%, var(--brand-red-dark)); box-shadow: 1.2rem 1.5rem 2.5rem color-mix(in srgb, var(--brand-red-dark) 19%, transparent); }
.storefront-hero-art-label { position: relative; color: var(--brand-white); font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.95; text-align: center; transform: rotate(-7deg); }
.storefront-eyebrow { color: var(--brand-red-dark); letter-spacing: 0.14em; }

/* Pide rápido y fácil: recorrido editorial, no controles de compra */
.storefront-steps {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  border-block: 1px solid var(--color-border);
  background: radial-gradient(circle at 95% 0%, color-mix(in srgb, var(--brand-green) 17%, transparent), transparent 18rem), var(--brand-cream);
}
.storefront-steps-heading { margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.storefront-steps-heading h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--storefront-ink);
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.storefront-steps-heading h2 span { display: block; color: var(--brand-red-deep); }
.storefront-steps-heading > p:last-child { margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 1.1rem; }
.storefront-steps-list { margin: 0; padding: 0; list-style: none; }
.storefront-step {
  --step-accent: var(--brand-red-dark);
  --step-wash: var(--brand-red-soft);
  position: relative;
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: transform 220ms var(--storefront-ease);
}
.storefront-step:nth-child(2) { --step-accent: var(--brand-orange-deep); --step-wash: var(--brand-cream); }
.storefront-step:nth-child(3) { --step-accent: var(--brand-green); --step-wash: var(--brand-green-soft); }
.storefront-step:last-child { border-bottom: 0; }
.storefront-step:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 4.9rem;
  bottom: -1.1rem;
  left: 2.15rem;
  border-left: 2px dashed var(--color-border);
  content: "";
}
.storefront-step-marker { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0.15rem; color: var(--step-accent); }
.storefront-step-number { background: var(--brand-cream-light); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 900; line-height: 1; letter-spacing: -0.08em; }
.storefront-step-icon { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: 0.65rem; background: var(--step-wash); }
.storefront-step-icon svg { width: 1.25rem; height: 1.25rem; }
.storefront-step-copy { min-width: 0; padding-top: 0.35rem; }
.storefront-step-copy h3 { margin: 0 0 0.45rem; color: var(--storefront-ink); font-size: clamp(1.18rem, 2vw, 1.4rem); line-height: 1.14; }
.storefront-step-copy p { max-width: 30ch; margin: 0; color: var(--ink-soft); line-height: 1.5; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .storefront-step:hover { transform: translateY(-3px); }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .storefront-steps > .container { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2rem; }
  .storefront-steps-heading { margin-bottom: 0; }
}
@media (min-width: 64rem) {
  .storefront-steps-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 1.5rem; }
  .storefront-steps-heading .storefront-eyebrow { grid-column: 1 / -1; }
  .storefront-steps-heading > p:last-child { margin-bottom: 0.3rem; }
  .storefront-steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
  .storefront-step { display: block; min-width: 0; padding: 1.15rem 1.25rem 1.35rem; border: 1px solid var(--color-border); border-top: 3px solid var(--step-accent); border-radius: 0.35rem 1.1rem 1.1rem 1.1rem; background: linear-gradient(155deg, var(--step-wash), var(--brand-cream-light) 65%); }
  .storefront-step:nth-child(2) { margin-top: 0.55rem; }
  .storefront-step:nth-child(3) { margin-top: 1.1rem; }
  .storefront-step-marker { display: flex; align-items: center; justify-content: space-between; min-height: 4.4rem; }
  .storefront-step-number { background: transparent; }
  .storefront-step-icon { width: 2.7rem; height: 2.7rem; background: var(--brand-cream-light); }
  .storefront-step-icon svg { width: 1.55rem; height: 1.55rem; }
  .storefront-step:not(:last-child)::after { top: 4.05rem; bottom: auto; left: calc(100% + 0.1rem); width: 1rem; border-top: 2px dashed var(--color-border); border-left: 0; }
  .storefront-step-copy { padding-top: 0.7rem; }
}

/* Descubrimiento, categorías y productos */
.storefront-main { padding-block: clamp(1.8rem, 3vw, 2.6rem) clamp(2rem, 3vw, 2.5rem); background: linear-gradient(180deg, var(--brand-cream-light), var(--brand-cream-light) 42%, var(--brand-cream)); }
.storefront-toolbar h2[id="categories-title"] { scroll-margin-top: 1rem; }
.storefront-toolbar { gap: clamp(1rem, 2vw, 1.5rem); margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.storefront-toolbar .storefront-section-heading { margin-bottom: 0; }
.storefront-toolbar .storefront-section-heading h2 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); }
.storefront-toolbar-search { width: min(100%, 36rem); margin-top: 0; }
.storefront-category-list { flex-wrap: wrap; align-content: center; gap: 0.65rem; min-width: 0; overflow: visible; padding: 0; }
.storefront-category-button { min-height: 2.8rem; padding-inline: 1.1rem; border-color: var(--color-border); color: var(--ink-soft); background: var(--brand-cream-light); transition: transform 180ms var(--storefront-ease), color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.storefront-category-button[aria-pressed="true"] { box-shadow: 0 0.4rem 0.8rem color-mix(in srgb, var(--brand-red-dark) 16%, transparent); }
.storefront-category-button:hover { transform: translateY(-2px); }
.storefront-category-button:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 2px; }
.storefront-toolbar .storefront-search input { background: var(--brand-cream-light); box-shadow: 0 0.2rem 0.6rem rgb(var(--shadow-rgb) / 4%); }
.storefront-toolbar .storefront-search input:focus { background: var(--brand-white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 25%, transparent), 0 0.3rem 0.8rem rgb(var(--shadow-rgb) / 7%); }
.storefront-filter-footer { flex-wrap: wrap; min-height: 1.8rem; padding-top: 0; border-top: 0; }
.storefront-featured-section { position: relative; overflow: hidden; margin-bottom: 0; border-color: var(--color-border); background: linear-gradient(125deg, var(--brand-cream), var(--brand-cream) 63%, var(--brand-green-soft)); }
.storefront-featured-section::before { position: absolute; top: -6rem; right: -5rem; width: 13rem; aspect-ratio: 1; border: 2.2rem solid color-mix(in srgb, var(--brand-green) 10%, transparent); border-radius: 50%; pointer-events: none; content: ""; }
.storefront-featured-section > * { position: relative; }
.storefront-featured-section .storefront-section-heading { margin-bottom: clamp(1.5rem, 2.5vw, 2rem); }
.storefront-featured-section .storefront-section-heading h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1; text-transform: uppercase; }
.storefront-about {
  display: grid;
  min-width: 0;
  overflow: hidden;
  margin: clamp(2rem, 3vw, 2.5rem) 0;
  border: 1px solid var(--color-border);
  border-radius: clamp(1.1rem, 2.5vw, 1.6rem);
  background: linear-gradient(125deg, var(--brand-cream), var(--brand-green-soft));
  box-shadow: 0 0.8rem 2rem rgb(var(--shadow-rgb) / 7%);
}
.storefront-about-art {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 6rem;
  overflow: hidden;
  padding: 1rem clamp(1.25rem, 3vw, 2.1rem);
  color: var(--brand-white);
  background: linear-gradient(130deg, var(--brand-red-dark), var(--brand-red) 62%, var(--brand-orange-deep));
}
.storefront-about-art::before,
.storefront-about-art::after { position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; content: ""; }
.storefront-about-art::before { right: -4rem; bottom: -9rem; width: 16rem; border: 2.5rem solid color-mix(in srgb, var(--brand-white) 17%, transparent); }
.storefront-about-art::after { top: -3.8rem; right: 21%; width: 7rem; background: color-mix(in srgb, var(--brand-green) 26%, transparent); }
.storefront-about-art span { font-size: clamp(1.8rem, 5vw, 4.8rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.065em; }
.storefront-about-content { min-width: 0; padding: clamp(1.4rem, 3vw, 2.8rem); }
.storefront-about-content h2 { max-width: 20ch; margin: 0; color: var(--storefront-ink); font-size: clamp(1.85rem, 3.2vw, 3.1rem); line-height: 1.02; letter-spacing: -0.05em; }
.storefront-about-content h2 span { color: var(--brand-red-deep); }
.storefront-about-content > p:not(.storefront-eyebrow) { max-width: 60ch; margin: 0.9rem 0 0; color: var(--ink-soft); line-height: 1.52; }
.storefront-facebook-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  margin-top: 1.3rem;
  padding: 0.65rem 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-red-dark) 28%, transparent);
  border-radius: 999px;
  color: var(--brand-red-deep);
  background: color-mix(in srgb, var(--brand-white) 74%, transparent);
  box-shadow: 0 0.4rem 1rem rgb(var(--shadow-rgb) / 7%);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.storefront-facebook-icon { display: inline-grid; width: 1.55rem; height: 1.55rem; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--brand-white); background: var(--brand-red-deep); transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.storefront-facebook-icon svg { width: 1rem; height: 1rem; fill: currentColor; }
.storefront-facebook-arrow { transition: transform 180ms ease; }
.storefront-facebook-cta:hover { color: var(--brand-white); border-color: var(--brand-red); background: var(--brand-red); box-shadow: 0 0.7rem 1.2rem color-mix(in srgb, var(--brand-red-dark) 18%, transparent); transform: translateY(-2px); }
.storefront-facebook-cta:hover .storefront-facebook-icon { color: var(--brand-red-deep); background: var(--brand-white); transform: rotate(-4deg) scale(1.04); }
.storefront-facebook-cta:hover .storefront-facebook-arrow { transform: translate(2px, -2px); }
.storefront-facebook-cta:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 3px; }
@media (min-width: 64rem) {
  .storefront-about { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .storefront-about-art { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: 22rem; padding: 2rem; }
  .storefront-about-art span { font-size: clamp(3.3rem, 5vw, 4.8rem); }
  .storefront-about-content { align-self: center; }
}
.storefront-section-heading h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.storefront-catalog-section { margin-top: clamp(2.75rem, 5vw, 4rem); padding-top: clamp(2rem, 3.5vw, 3rem); border-top: 1px solid var(--color-border); }
.storefront-catalog-section .storefront-section-heading { margin-bottom: clamp(1.5rem, 2.5vw, 2rem); }
.storefront-catalog-section .storefront-section-heading h2 { font-size: clamp(2.05rem, 4.4vw, 3.3rem); line-height: 1.03; }
.storefront-product-card { border-color: var(--color-border); background: var(--brand-cream-light); box-shadow: 0 0.45rem 1.35rem rgb(var(--shadow-rgb) / 6%); transition: transform 220ms var(--storefront-ease), box-shadow 220ms ease, border-color 220ms ease; }
.storefront-product-card:hover,
.storefront-product-card:focus-within { border-color: color-mix(in srgb, var(--brand-red) 30%, transparent); box-shadow: 0 0.8rem 1.8rem rgb(var(--shadow-rgb) / 11%); transform: translateY(-4px); }
.storefront-product-card.is-sold-out { opacity: 1; }
.storefront-product-media { border-bottom: 1px solid var(--color-border); background: linear-gradient(145deg, var(--brand-cream), var(--brand-green-soft)); }
.storefront-product-media img { transition: transform 250ms var(--storefront-ease); }
.storefront-product-card:hover .storefront-product-media img,
.storefront-product-card:focus-within .storefront-product-media img { transform: scale(1.03); }
.storefront-product-card.is-sold-out .storefront-product-media img { filter: saturate(0.65); }
.storefront-badge-featured { background: var(--brand-red-dark); }
.storefront-placeholder { background: radial-gradient(circle at 25% 25%, var(--brand-cream-light) 0 8%, transparent 9%), linear-gradient(145deg, var(--brand-cream), var(--brand-green-soft)); text-shadow: 0 0.4rem 1rem color-mix(in srgb, var(--brand-red-dark) 12%, transparent); }
.storefront-product-media .storefront-placeholder { background: radial-gradient(circle at 78% 25%, color-mix(in srgb, var(--brand-red) 10%, transparent) 0 13%, transparent 14%), radial-gradient(circle at 18% 80%, color-mix(in srgb, var(--brand-green) 12%, transparent) 0 18%, transparent 19%), linear-gradient(145deg, var(--brand-cream), var(--brand-green-soft)); font-size: clamp(2.6rem, 5vw, 3.3rem); }
.storefront-product-content { min-height: 11rem; }
.storefront-product-category { color: var(--brand-green); font-size: 0.69rem; letter-spacing: 0.11em; }
.storefront-product-name { overflow-wrap: anywhere; font-size: clamp(1.05rem, 1.6vw, 1.23rem); line-height: 1.22; }
.storefront-product-description { line-height: 1.45; }
.storefront-product-bottom { flex-wrap: wrap; align-items: center; }
.storefront-product-price { color: var(--brand-red-dark); font-size: clamp(1.3rem, 2vw, 1.58rem); font-variant-numeric: tabular-nums; line-height: 1.13; white-space: normal; overflow-wrap: anywhere; }
.storefront-availability { min-height: 1.6rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--brand-green-soft); white-space: nowrap; }
.storefront-availability.is-sold-out { background: var(--brand-red-soft); }
.storefront-product-card .storefront-product-cart-actions { margin-inline: 1rem; padding: 0.65rem 0 1rem; border-top: 1px solid var(--color-border); }
.storefront-product-card .storefront-product-cart-status:not([hidden]) { display: inline-flex; width: fit-content; min-height: 1.5rem; align-items: center; padding: 0.2rem 0.5rem; border-radius: 0.5rem; background: var(--brand-green-soft); }
.storefront-product-card .storefront-add-button { width: 100%; min-height: 2.8rem; }
.storefront-product-card .storefront-add-button:active { transform: scale(0.985); }
.storefront-product-link::after { display: block; margin: 0 0.95rem 0.4rem; color: var(--brand-red-deep); font-size: 0.73rem; font-weight: 850; content: "Ver producto ↗"; }
.storefront-product-link:hover::after,
.storefront-product-link:focus-visible::after { text-decoration: underline; text-underline-offset: 0.2em; }
.storefront-product-cart-actions { padding-top: 0.2rem; }
.storefront-skeleton-card::before,
.storefront-skeleton-line { background-image: linear-gradient(90deg, var(--color-disabled) 25%, var(--brand-cream) 45%, var(--color-disabled) 65%); }
.storefront-skeleton-card { border-color: var(--color-border); background: var(--brand-cream-light); box-shadow: 0 0.45rem 1.35rem rgb(var(--shadow-rgb) / 5%); }
.storefront-catalog-section .storefront-state { border-color: var(--color-border); background: linear-gradient(145deg, var(--brand-cream-light), var(--brand-green-soft)); }
.storefront-state-title { font-size: 1.2rem; }
.storefront-main .storefront-products-grid { gap: clamp(1rem, 1.8vw, 1.4rem); }
@media (max-width: 26rem) {
  /* El catálogo mantiene dos columnas incluso en teléfonos estrechos; el carrusel destacado conserva su propio layout horizontal. */
  [data-catalog-grid], .storefront-skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 90rem) {
  [data-featured-grid], [data-catalog-grid], .storefront-skeleton-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (hover: none) {
  .storefront-product-card:hover { transform: none; }
  .storefront-product-card:hover .storefront-product-media img { transform: none; }
}
/* Detalle, estados y cierre */
.storefront-product-dialog::backdrop { animation: storefront-backdrop-in 180ms ease-out both; }
.storefront-product-dialog[open] .storefront-dialog-panel { animation: storefront-sheet-in 340ms var(--storefront-ease) both; }
.storefront-dialog-panel { gap: 1.5rem; background: var(--brand-cream-light); }
.storefront-detail-media { background: linear-gradient(140deg, var(--brand-cream), var(--brand-green-soft)); }
.storefront-detail-content h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.045em; }
.storefront-detail-price { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.storefront-related-section { padding-top: 1.2rem; }
.storefront-state { border: 1px dashed var(--color-border); border-radius: 1.2rem; background: var(--brand-cream-light); }
.storefront-footer a { text-decoration: underline; text-underline-offset: 0.2em; }
.storefront-shell :focus-visible { outline-color: var(--brand-red-deep); }

@keyframes storefront-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes storefront-ambient-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-0.4rem, 0.5rem, 0) scale(1.025); }
}
@keyframes storefront-sheet-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes storefront-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 48rem) {
  .storefront-hero-layout { grid-template-columns: minmax(0, 1fr); }
  .storefront-toolbar { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
  .storefront-toolbar .storefront-section-heading,
  .storefront-toolbar .storefront-filter-footer { grid-column: 1 / -1; }
  .storefront-dialog-panel { padding: clamp(1.5rem, 3vw, 2.25rem); }
}
@media (min-width: 48rem) and (max-width: 64rem) {
  .storefront-header-inner { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .storefront-brand img { width: 10rem; }
  .storefront-header-actions .storefront-change-link { display: none; }
}
@media (max-width: 47.99rem) {
  .storefront-hero { padding-block: 1rem 1.2rem; }
  .storefront-hero h1 { max-width: 21ch; font-size: clamp(1.7rem, 6vw, 2.05rem); }
  .storefront-hero::before { top: 0.5rem; right: -2rem; width: 8rem; opacity: 0.55; animation: none; }
  .storefront-hero p:not(.storefront-eyebrow),
  .storefront-toolbar .storefront-section-heading p { display: none; }
  .storefront-header-actions { gap: 0.45rem; }
  .storefront-header-actions .storefront-change-link { display: none; }
  .storefront-search-jump { min-width: 2.75rem; min-height: 2.75rem; padding-inline: 0.7rem; }
  .storefront-search-jump-compact { display: inline; }
  .storefront-search-jump-wide { display: none; }
  .storefront-cart-button-label { display: none; }
  .storefront-product-dialog { width: 100%; max-width: none; max-height: min(92dvh, 50rem); margin: auto 0 0; border-radius: 1.25rem 1.25rem 0 0; }
  .storefront-dialog-panel { border-radius: 1.25rem 1.25rem 0 0; }
  .storefront-detail-media { min-height: 11rem; aspect-ratio: 1 / 0.62; }
}
@media (max-width: 30rem) {
  .storefront-header-inner { gap: 0.55rem; }
  .storefront-header-row { gap: 0.45rem; }
  .storefront-header-actions { gap: 0.4rem; }
  .storefront-brand img { width: clamp(5.8rem, 24vw, 6.5rem); }
  .storefront-market-pill { min-height: 2.45rem; padding-inline: 0.6rem; }
  .storefront-market-pill [data-market-code] { display: none; }
  .storefront-product-bottom { align-items: start; flex-direction: column; gap: 0.2rem; }
  .storefront-availability { text-align: left; }
  .country-selector { padding: 0.35rem; }
  .country-selector-brand { width: 8.5rem; margin-bottom: 0.65rem; }
  .country-selector-copy h1 { font-size: clamp(2.1rem, 10vw, 2.7rem); }
  .country-selector-copy > p:last-child { max-width: 31ch; line-height: 1.35; }
  .country-selector-grid { margin-top: 0.9rem; }
  .country-card { min-height: 9.25rem; padding: 0.9rem 1rem; }
  .country-card-flag { margin-bottom: 0.2rem; font-size: 1.55rem; }
  .country-card h2 { font-size: 1.85rem; }
  .country-card p { margin-top: 0.25rem; font-size: 0.84rem; }
  .country-card-action { margin-top: 0.5rem; padding-top: 0.45rem; }
  .country-selector-note { margin-top: 0.8rem; font-size: 0.69rem; }
  body.storefront-shell .environment-indicator { bottom: 0.5rem; max-width: calc(100% - 1rem); font-size: 0.62rem; }
}
@media (max-width: 23rem) {
  .storefront-brand img { width: 6.2rem; }
  .storefront-search-jump-label { display: none; }
  .storefront-search-jump { width: 2.65rem; min-width: 2.65rem; padding-inline: 0; }
  .storefront-market-pill { gap: 0.25rem; padding-inline: 0.45rem; }
  .storefront-cart-button { gap: 0.25rem; padding-inline: 0.55rem; }
}
@media (max-width: 21rem) {
  .storefront-header-inner { gap: 0.5rem; }
}

/* Catálogo completo: cards compactas y legibles sin alterar el carrusel de destacados. */
#catalog-product-grid .storefront-product-media {
  aspect-ratio: 1 / 1;
}

#catalog-product-grid .storefront-product-media img {
  object-fit: contain;
  padding: 0.45rem;
}

#catalog-product-grid .storefront-product-content {
  min-height: 0;
  padding: 0.8rem;
}

#catalog-product-grid .storefront-product-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#catalog-product-grid .storefront-product-cart-actions {
  margin-inline: 0.8rem;
  padding: 0.55rem 0 0.8rem;
}

#catalog-product-grid .storefront-add-button {
  min-height: 2.55rem;
  padding: 0.55rem 0.7rem;
}

@media (max-width: 47.99rem) {
  #catalog-product-grid .storefront-product-content {
    padding: 0.65rem;
  }

  #catalog-product-grid .storefront-product-description {
    display: none;
  }

  #catalog-product-grid .storefront-product-category {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  #catalog-product-grid .storefront-product-name {
    margin-top: 0.28rem;
    font-size: clamp(0.86rem, 3.8vw, 1rem);
    line-height: 1.18;
  }

  #catalog-product-grid .storefront-product-bottom {
    gap: 0.35rem;
    padding-top: 0.65rem;
  }

  #catalog-product-grid .storefront-product-price {
    font-size: clamp(1rem, 4.5vw, 1.28rem);
  }

  #catalog-product-grid .storefront-availability {
    min-height: 1.35rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.62rem;
  }

  #catalog-product-grid .storefront-product-link::after {
    margin: 0 0.65rem 0.35rem;
    font-size: 0.67rem;
  }

  #catalog-product-grid .storefront-product-cart-actions {
    margin-inline: 0.65rem;
    padding-bottom: 0.65rem;
  }

  #catalog-product-grid .storefront-add-button {
    min-height: 2.75rem;
    font-size: 0.82rem;
  }
}
/* Movimiento de marca: contenido y controles permanecen visibles sin JavaScript. */
.storefront-header-row > .storefront-brand { animation: storefront-entrance-up 650ms both var(--storefront-ease); }
.storefront-header-actions > * { animation: storefront-entrance-up 650ms both var(--storefront-ease); }
.storefront-header-actions > :nth-child(1) { animation-delay: 80ms; }
.storefront-header-actions > :nth-child(2) { animation-delay: 130ms; }
.storefront-header-actions > :nth-child(3) { animation-delay: 180ms; }
.storefront-header-actions > :nth-child(4) { animation-delay: 230ms; }
.storefront-hero { background: radial-gradient(circle at 87% 20%, color-mix(in srgb, var(--brand-green) 50%, transparent), transparent 20rem), radial-gradient(circle at 3% 90%, color-mix(in srgb, var(--brand-red) 22%, transparent), transparent 21rem), linear-gradient(110deg, var(--brand-cream), var(--brand-cream) 63%, var(--brand-green-soft)); }
.storefront-hero::before { right: 7%; width: clamp(9rem, 21vw, 18rem); background: linear-gradient(140deg, color-mix(in srgb, var(--brand-red) 31%, transparent), color-mix(in srgb, var(--brand-green) 19%, transparent)); animation: storefront-float 7s ease-in-out infinite alternate; }
.storefront-hero::after { border-color: color-mix(in srgb, var(--brand-green) 30%, transparent); animation: storefront-float-reverse 9s ease-in-out infinite alternate; }
.storefront-hero-shapes { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.storefront-hero-shapes span { position: absolute; display: block; aspect-ratio: 1; }
.storefront-hero-shapes span:nth-child(1) { top: 10%; right: 7%; width: clamp(3rem, 7vw, 6.5rem); border: 0.7rem solid color-mix(in srgb, var(--brand-red) 38%, transparent); border-radius: 48% 52% 38% 62%; animation: storefront-float 6s ease-in-out infinite alternate; }
.storefront-hero-shapes span:nth-child(2) { right: 24%; bottom: -2.5rem; width: clamp(5rem, 10vw, 9rem); border-radius: 50%; background: color-mix(in srgb, var(--brand-green) 43%, transparent); animation: storefront-float-reverse 8s ease-in-out infinite alternate; }
.storefront-hero-shapes span:nth-child(3) { top: -2.7rem; right: 37%; width: 5.5rem; border: 0.8rem solid color-mix(in srgb, var(--brand-green) 32%, transparent); border-radius: 50%; animation: storefront-float 10s ease-in-out infinite alternate; }
.storefront-hero .storefront-eyebrow { animation: storefront-entrance-up 650ms 80ms both var(--storefront-ease); }
.storefront-hero h1 { max-width: 30ch; animation: none; }
.storefront-hero-line { display: block; width: fit-content; animation: storefront-entrance-up 850ms both var(--storefront-ease); }
.storefront-hero-line:nth-child(1) { animation-delay: 130ms; }
.storefront-hero-line:nth-child(2) { animation-delay: 260ms; }
.storefront-hero-line:nth-child(3) { animation-delay: 390ms; }
.storefront-hero-highlight { color: var(--brand-red-deep); background: linear-gradient(transparent 78%, color-mix(in srgb, var(--brand-green) 75%, transparent) 78% 94%, transparent 94%); }
.storefront-hero p:not(.storefront-eyebrow) { animation: storefront-entrance-up 700ms 490ms both var(--storefront-ease); }
.storefront-hero-actions { animation: storefront-entrance-up 700ms 580ms both var(--storefront-ease); }
.storefront-ticker { overflow: hidden; padding-block: 0.65rem; color: var(--brand-white); background: var(--brand-red-deep); border-block: 2px solid var(--brand-red-dark); }
.storefront-ticker-track { display: flex; width: max-content; will-change: transform; animation: storefront-ticker-run 20s linear infinite; }
.storefront-ticker-group { display: flex; flex: 0 0 auto; align-items: center; gap: 1.5rem; padding-right: 1.5rem; white-space: nowrap; font-size: clamp(0.9rem, 1.6vw, 1.15rem); font-weight: 850; letter-spacing: 0.08em; }
.storefront-ticker-group span:nth-child(even) { color: var(--brand-yellow); font-size: 1.1em; }
.storefront-main { position: relative; }
.storefront-toolbar .storefront-section-heading h2::after,
.storefront-featured-section .storefront-section-heading h2::after,
.storefront-catalog-section .storefront-section-heading h2::after { display: block; width: 3.2rem; height: 0.28rem; margin-top: 0.55rem; border-radius: 99px; background: var(--brand-orange); content: ""; }
.storefront-featured-section .storefront-section-heading h2::after { background: var(--brand-red); }
.storefront-catalog-section .storefront-section-heading h2::after { background: var(--brand-green); }
@media (prefers-reduced-motion: no-preference) {
  .storefront-motion-revealed .storefront-section-heading h2::after { transform-origin: left center; animation: storefront-accent-draw 660ms 180ms both var(--storefront-ease); }
}
.storefront-steps::before { position: absolute; top: 0; left: 0; width: 100%; height: 0.6rem; background: linear-gradient(90deg, var(--brand-red), var(--brand-orange) 42%, var(--brand-yellow) 68%, var(--brand-green)); clip-path: polygon(0 0, 100% 0, 100% 45%, 0 100%); content: ""; }
.storefront-product-card { transition-duration: 300ms; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .storefront-product-card:hover,
  .storefront-product-card:focus-within { transform: translateY(-8px); border-color: color-mix(in srgb, var(--brand-red) 55%, transparent); box-shadow: 0 1rem 2rem rgb(var(--shadow-rgb) / 15%); }
  .storefront-product-card:hover .storefront-product-media img,
  .storefront-product-card:focus-within .storefront-product-media img { transform: scale(1.05); }
  .storefront-primary-link:hover,
  .storefront-secondary-link:hover,
  .storefront-category-button:hover { transform: translateY(-3px); }
}
.storefront-primary-link, .storefront-secondary-link { transition: transform 260ms var(--storefront-ease), background-color 260ms ease, box-shadow 260ms ease; }
.storefront-primary-link:active, .storefront-secondary-link:active, .storefront-category-button:active { transform: scale(0.98); }
@keyframes storefront-entrance-up { from { opacity: 0; transform: translateY(28px) rotate(-1deg) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes storefront-float { from { transform: translate3d(0, 0, 0) rotate(-3deg); } to { transform: translate3d(-0.8rem, 1rem, 0) rotate(6deg); } }
@keyframes storefront-float-reverse { from { transform: translate3d(0, 0, 0) rotate(3deg); } to { transform: translate3d(0.7rem, -1rem, 0) rotate(-5deg); } }
@keyframes storefront-ticker-run { to { transform: translateX(-50%); } }
@keyframes storefront-accent-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 47.99rem) {
  .storefront-hero::before { right: -2rem; width: 8rem; opacity: 0.8; animation: storefront-float 8s ease-in-out infinite alternate; }
  .storefront-hero-shapes span:nth-child(1) { right: -1.5rem; width: 4rem; border-width: 0.5rem; }
  .storefront-hero-shapes span:nth-child(2) { right: 21%; width: 4rem; }
  .storefront-hero-shapes span:nth-child(3) { display: none; }
  .storefront-ticker-track { animation-duration: 25s; }
  .storefront-ticker-group { gap: 1rem; padding-right: 1rem; font-size: 0.85rem; }
}
@media (max-width: 26rem) {
  .storefront-hero-actions { gap: 0.45rem; }
  .storefront-hero-actions .storefront-primary-link,
  .storefront-hero-actions .storefront-secondary-link { min-height: 2.75rem; padding-inline: 0.65rem; font-size: 0.85rem; }
  .storefront-hero-actions .storefront-primary-link { gap: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront-hero::before,
  .storefront-category-button,
  .storefront-product-card,
  .storefront-product-media img,
  .storefront-product-card .storefront-add-button { animation: none; transition: none; }
  .storefront-product-card:hover,
  .storefront-product-card:focus-within,
  .storefront-category-button:hover,
  .storefront-product-card:hover .storefront-product-media img,
  .storefront-product-card:focus-within .storefront-product-media img { transform: none; }
  .country-selector-brand,
  .country-selector-copy .storefront-eyebrow,
  .country-selector-copy h1,
  .country-selector-copy > p:last-child,
  .country-card,
  .storefront-hero .storefront-eyebrow,
  .storefront-hero h1,
  .storefront-hero p:not(.storefront-eyebrow),
  .storefront-hero-actions,
  .storefront-product-dialog::backdrop,
  .storefront-product-dialog[open] .storefront-dialog-panel { animation: none; }
  .storefront-header-row > .storefront-brand,
  .storefront-header-actions > *,
  .storefront-hero::after,
  .storefront-hero-shapes span,
  .storefront-hero-line,
  .storefront-ticker-track { animation: none; }
  .storefront-ticker-track { will-change: auto; }
  .country-selector-page::before,
  .country-selector-page::after { animation: none; }
  .country-card:hover,
  .country-card:focus-visible,
  .country-card:hover::before,
  .country-card:focus-visible::before,
  .country-card:hover .country-card-arrow,
  .country-card:focus-visible .country-card-arrow { transform: none; }
  .storefront-primary-link, .storefront-secondary-link { transition: none; }
  .storefront-primary-link:hover, .storefront-secondary-link:hover { transform: none; }
}

/* Composición final: producto real en hero y recorrido visual compacto. */
.storefront-hero-layout { position: relative; z-index: 1; }
.storefront-hero-art { display: grid; width: 100%; min-height: 18rem; }
.storefront-hero-orbit { width: min(82%, 19rem); border-color: color-mix(in srgb, var(--brand-red) 17%, transparent); }
.storefront-hero-disc { width: min(66%, 15rem); }
.storefront-hero-art-label { font-size: clamp(2rem, 3vw, 3rem); }
.storefront-hero-art.has-product .storefront-hero-art-label { display: none; }
.storefront-showcase-product { position: absolute; inset: 0; z-index: 1; min-width: 0; }
.storefront-showcase-product[hidden], .storefront-showcase-image-wrap img[hidden], .storefront-showcase-image-fallback[hidden] { display: none; }
.storefront-showcase-image-wrap { position: absolute; top: 0; left: 17%; display: grid; width: 66%; height: 82%; place-items: center; transform: rotate(-5deg); }
.storefront-showcase-image-wrap img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0.9rem 0.8rem rgb(var(--shadow-rgb) / 21%)); }
.storefront-showcase-image-fallback { color: color-mix(in srgb, var(--brand-white) 84%, transparent); font-size: clamp(5rem, 10vw, 8rem); line-height: 1; }
.storefront-showcase-caption { position: absolute; bottom: 0.25rem; left: 0; display: grid; max-width: 77%; gap: 0.15rem; padding: 0.65rem 0.9rem; border-radius: 0.85rem 0.85rem 0.85rem 0.2rem; color: var(--brand-white); background: var(--brand-red-deep); box-shadow: 0 0.5rem 1rem rgb(var(--shadow-rgb) / 18%); transform: rotate(-2deg); }
.storefront-showcase-category { color: var(--brand-cream); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.storefront-showcase-name { overflow-wrap: anywhere; font-size: clamp(0.85rem, 1.4vw, 1.05rem); font-weight: 900; line-height: 1.12; }
.storefront-showcase-price { position: absolute; right: 0; bottom: 1.25rem; max-width: 44%; padding: 0.45rem 0.7rem; border-radius: 0.7rem; color: var(--brand-ink); background: var(--brand-yellow); box-shadow: 0 0.4rem 0.9rem rgb(var(--shadow-rgb) / 16%); font-size: clamp(0.85rem, 1.5vw, 1.05rem); font-weight: 950; overflow-wrap: anywhere; text-align: center; transform: rotate(4deg); }
.storefront-benefits { position: relative; border-bottom: 1px solid var(--color-border); background: linear-gradient(90deg, var(--brand-cream-light), var(--brand-green-soft)); }
.storefront-benefits-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.5rem, 2vw, 2rem); padding-block: 0.65rem; }
.storefront-benefit { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 0.65rem; color: var(--brand-ink); font-size: clamp(0.68rem, 1vw, 0.84rem); font-weight: 900; letter-spacing: 0.055em; line-height: 1.15; }
.storefront-benefit + .storefront-benefit { border-left: 1px solid var(--color-border); }
.storefront-benefit-icon { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--brand-red-deep); background: var(--brand-cream); }
.storefront-benefit:nth-child(2) .storefront-benefit-icon { color: var(--brand-orange-deep); background: var(--brand-cream); }
.storefront-benefit:nth-child(3) .storefront-benefit-icon { color: var(--brand-green-deep); background: var(--brand-green-soft); }
.storefront-benefit svg { width: 1.15rem; height: 1.15rem; }

/* Descubrimiento: las categorías siguen siendo los mismos botones/handlers. */
.storefront-category-button { position: relative; min-height: 3.35rem; padding: 0.7rem 1.2rem; border-radius: 0.9rem; background: linear-gradient(135deg, var(--brand-cream-light), var(--brand-cream)); box-shadow: 0 0.3rem 0.7rem rgb(var(--shadow-rgb) / 5%); }
.storefront-category-button::before { display: inline-block; width: 0.4rem; height: 0.4rem; margin-right: 0.55rem; border-radius: 50%; background: var(--brand-orange); content: ""; vertical-align: 0.12em; }
.storefront-category-button[aria-pressed="true"] { background: var(--brand-red); box-shadow: 0 0.45rem 0.9rem color-mix(in srgb, var(--brand-red-dark) 17%, transparent); }
.storefront-category-button[aria-pressed="true"]::before { background: var(--brand-yellow); }
.storefront-featured-word { position: absolute; right: -0.3rem; bottom: -0.9rem; color: color-mix(in srgb, var(--brand-red-dark) 5%, transparent); font-size: clamp(4rem, 12vw, 10rem); font-weight: 950; letter-spacing: -0.08em; line-height: 1; pointer-events: none; }
.storefront-featured-section > * { z-index: 1; }
.storefront-steps-heading { position: relative; }
.storefront-steps-heading::after { position: absolute; right: 0; bottom: -0.35rem; width: clamp(5rem, 17vw, 15rem); height: 0.32rem; border-radius: 99px; background: linear-gradient(90deg, var(--brand-yellow), var(--brand-green)); content: ""; }
.storefront-about-content { position: relative; isolation: isolate; overflow: hidden; }
.storefront-about-word { position: absolute; z-index: -1; right: -0.35rem; bottom: -1.25rem; color: color-mix(in srgb, var(--brand-red-dark) 5%, transparent); font-size: clamp(3rem, 6vw, 6rem); font-weight: 950; letter-spacing: -0.08em; line-height: 1; pointer-events: none; }
.storefront-footer { position: relative; overflow: hidden; background: radial-gradient(circle at 90% -30%, color-mix(in srgb, var(--brand-green) 13%, transparent), transparent 18rem), var(--brand-green-deep); }
.storefront-footer::before { position: absolute; right: -4rem; bottom: -11rem; width: 17rem; aspect-ratio: 1; border: 2.5rem solid color-mix(in srgb, var(--brand-white) 6%, transparent); border-radius: 50%; pointer-events: none; content: ""; }
.storefront-footer-inner { position: relative; gap: 1.5rem 3rem; }
.storefront-footer-brand { display: flex; align-items: center; gap: 1rem; }
.storefront-footer-brand img { width: 4.7rem; height: 4.7rem; object-fit: contain; border-radius: 0.7rem; background: var(--brand-white); }
.storefront-footer-end { display: grid; gap: 0.7rem; justify-items: end; }
.storefront-footer-end nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1.25rem; font-size: 0.88rem; font-weight: 750; }
.storefront-footer-facebook { display: inline-flex; align-items: center; gap: 0.4rem; }
.storefront-footer-facebook .storefront-facebook-icon { width: 1.35rem; height: 1.35rem; color: var(--brand-green-deep); background: var(--brand-yellow); }
.storefront-footer-facebook .storefront-facebook-icon svg { width: 0.85rem; height: 0.85rem; }
.storefront-footer-facebook:hover .storefront-facebook-icon { transform: translateY(-1px) rotate(-3deg); }
.storefront-footer-facebook:focus-visible { border-radius: 0.25rem; outline: 3px solid var(--brand-yellow); outline-offset: 3px; }

@media (min-width: 48rem) {
  .storefront-hero-layout { grid-template-columns: minmax(0, 1.18fr) minmax(17rem, 0.82fr); gap: clamp(1rem, 3vw, 3rem); }
  .storefront-hero h1 { font-size: clamp(2rem, 3.25vw, 3.35rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .storefront-hero-art.has-product .storefront-showcase-product { animation: storefront-showcase-in 760ms 450ms both var(--storefront-ease); }
  .storefront-hero-art.has-product .storefront-showcase-image-wrap { animation: storefront-showcase-float 6s 1.25s ease-in-out infinite alternate; }
}
@keyframes storefront-showcase-in { from { opacity: 0; transform: translateY(1.2rem) scale(0.92) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes storefront-showcase-float { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-0.35rem) rotate(-3deg); } }
@media (max-width: 47.99rem) {
  .storefront-hero-art { min-height: 8rem; margin-top: 0.15rem; }
  .storefront-hero-orbit { left: 0; width: 7.5rem; border-width: 0.75rem; }
  .storefront-hero-disc { left: 0.8rem; width: 6rem; box-shadow: 0.5rem 0.6rem 1rem color-mix(in srgb, var(--brand-red-dark) 16%, transparent); }
  .storefront-hero-art-label { margin-left: 7.6rem; font-size: 1.5rem; text-align: left; }
  .storefront-showcase-image-wrap { top: 0; left: 0; width: 7.7rem; height: 7.7rem; }
  .storefront-showcase-caption { right: 0; bottom: 0.15rem; left: 7.7rem; max-width: none; padding: 0.35rem 0.55rem; transform: none; }
  .storefront-showcase-name { font-size: 0.76rem; }
  .storefront-showcase-price { top: 0.2rem; right: 0.2rem; bottom: auto; max-width: calc(100% - 8.2rem); padding: 0.3rem 0.55rem; font-size: 0.8rem; transform: none; }
  .storefront-hero-layout { gap: 0.25rem; }
  .storefront-benefits-list { gap: 0.25rem; padding-block: 0.55rem; }
  .storefront-benefit { flex-direction: column; gap: 0.25rem; padding-inline: 0.2rem; font-size: 0.65rem; text-align: center; }
  .storefront-benefit-icon { width: 1.6rem; height: 1.6rem; }
  .storefront-benefit svg { width: 0.95rem; height: 0.95rem; }
  .storefront-category-button { min-height: 2.8rem; padding: 0.55rem 0.85rem; border-radius: 999px; }
  .storefront-footer-end { justify-items: start; }
}
@media (max-width: 23rem) {
  .storefront-showcase-caption { left: 6.7rem; }
  .storefront-showcase-image-wrap { width: 6.9rem; }
  .storefront-showcase-price { max-width: calc(100% - 7rem); }
  .storefront-benefit { font-size: 0.61rem; }
  .storefront-facebook-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront-hero-art.has-product .storefront-showcase-product,
  .storefront-hero-art.has-product .storefront-showcase-image-wrap { animation: none; }
}

/* Catálogo escalable: showcase rotativo, destacados horizontales y lotes visuales. */
.storefront-hero-art.has-rotating-products .storefront-showcase-product {
  animation: none;
  opacity: 1;
  transform: none;
  transition: opacity 240ms ease, transform 240ms var(--storefront-ease);
}
.storefront-hero-art.has-rotating-products .storefront-showcase-product.is-switching {
  opacity: 0;
  transform: translateY(0.65rem) scale(0.96) rotate(1deg);
}
.storefront-carousel-controls button {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand-red-dark) 24%, transparent);
  border-radius: 50%;
  color: var(--brand-red-deep);
  background: var(--brand-cream-light);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.storefront-carousel-controls button:hover { color: var(--brand-white); background: var(--brand-red); transform: translateY(-2px); }
.storefront-carousel-controls button:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 2px; }

.storefront-featured-header { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.5rem, 2.5vw, 2rem); }
.storefront-featured-header .storefront-section-heading { margin-bottom: 0; }
.storefront-carousel-controls { display: flex; flex: 0 0 auto; gap: 0.55rem; }
.storefront-carousel-controls[hidden] { display: none; }
.storefront-carousel-controls button:disabled { cursor: default; opacity: 0.38; transform: none; }
.storefront-featured-track {
  --featured-gap: clamp(1rem, 1.8vw, 1.4rem);
  display: grid;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - (3 * var(--featured-gap))) / 4);
  grid-auto-flow: column;
  gap: var(--featured-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.25rem 0.15rem 0.9rem;
  scroll-padding-inline: 0.15rem;
  scroll-snap-type: inline mandatory;
  scrollbar-color: color-mix(in srgb, var(--brand-red-dark) 48%, transparent) color-mix(in srgb, var(--brand-white) 48%, transparent);
  scrollbar-width: thin;
}
.storefront-featured-track > .storefront-product-card { height: 100%; scroll-snap-align: start; }
.storefront-featured-track:focus-visible { border-radius: 0.4rem; outline: 3px solid var(--brand-yellow); outline-offset: 3px; }
.storefront-catalog-more-wrap { display: flex; justify-content: center; padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.storefront-catalog-more-wrap:has(.storefront-catalog-more[hidden]) { display: none; }
.storefront-catalog-more {
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--brand-red-dark) 30%, transparent);
  border-radius: 999px;
  color: var(--brand-red-deep);
  background: var(--brand-cream-light);
  box-shadow: 0 0.35rem 0.9rem rgb(var(--shadow-rgb) / 7%);
  font-weight: 900;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.storefront-catalog-more:hover { color: var(--brand-white); background: var(--brand-red); box-shadow: 0 0.6rem 1.1rem color-mix(in srgb, var(--brand-red-dark) 18%, transparent); transform: translateY(-2px); }
.storefront-catalog-more:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 3px; }

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .storefront-featured-track { grid-auto-columns: calc((100% - var(--featured-gap)) / 2); }
}

/* Identidad compartida Chile/Perú: solo color, sin alterar layout ni motion. */
.country-selector-page {
  background: radial-gradient(circle at 7% 12%, color-mix(in srgb, var(--brand-red) 9%, transparent), transparent 25rem),
    radial-gradient(circle at 93% 84%, color-mix(in srgb, var(--brand-green) 13%, transparent), transparent 24rem),
    var(--brand-cream-light);
}
.country-selector-copy h1 { color: var(--brand-green-deep); }
.country-card-chile { background: linear-gradient(135deg, var(--brand-red-dark), var(--brand-red)); }
.country-card-peru { background: linear-gradient(135deg, var(--brand-green-deep), var(--brand-green)); }
.country-card:focus-visible { outline-color: var(--color-focus); }
.storefront-header { background: var(--brand-cream-light); }
.storefront-header::before { background: linear-gradient(90deg, var(--brand-red) 0 25%, var(--brand-green-deep) 25% 100%); }
.storefront-change-link, .storefront-search-jump, .storefront-search-icon,
.storefront-eyebrow, .storefront-section-heading h2 { color: var(--brand-green-deep); }
.storefront-change-link:hover { color: var(--brand-red-dark); }
.storefront-market-pill { color: var(--color-on-dark); border-color: var(--brand-green-deep); background: var(--brand-green-deep); }
.storefront-market-pill strong { color: inherit; }
.storefront-secondary-link { color: var(--color-on-dark); border-color: var(--brand-green-deep); background: var(--brand-green-deep); }
.storefront-secondary-link:hover { background: var(--brand-green); }
.storefront-primary-link:hover { background: var(--color-primary-hover); }
.storefront-hero {
  background: radial-gradient(circle at 88% 25%, color-mix(in srgb, var(--brand-green) 16%, transparent), transparent 22rem),
    radial-gradient(circle at 0 100%, color-mix(in srgb, var(--brand-red) 8%, transparent), transparent 22rem),
    var(--brand-cream);
}
.storefront-hero::before { background: color-mix(in srgb, var(--brand-green) 15%, transparent); }
.storefront-hero-disc { background: radial-gradient(circle at 28% 25%, var(--brand-green), var(--brand-green-deep)); box-shadow: var(--shadow-soft); }
.storefront-hero-orbit { border-color: color-mix(in srgb, var(--brand-green) 20%, transparent); }
.storefront-hero-highlight { color: var(--brand-red-dark); background: linear-gradient(transparent 80%, var(--brand-red-soft) 80% 94%, transparent 94%); }
.storefront-showcase-caption { background: var(--brand-green-deep); }
.storefront-showcase-category { color: var(--brand-green-soft); }
.storefront-showcase-price { color: var(--brand-red-dark); background: var(--brand-cream-light); }
.storefront-ticker { color: var(--color-on-dark); border-color: var(--brand-green-deep); background: var(--brand-green-deep); }
.storefront-benefits { background: var(--brand-cream); }
.storefront-benefit-icon,
.storefront-benefit:nth-child(2) .storefront-benefit-icon,
.storefront-benefit:nth-child(3) .storefront-benefit-icon { color: var(--brand-green-deep); background: var(--brand-green-soft); }
.storefront-main { background: linear-gradient(var(--brand-cream-light), var(--brand-white) 48%, var(--brand-cream-light)); }
.storefront-search input:focus, .storefront-toolbar .storefront-search input:focus { border-color: var(--color-focus); outline: 2px solid var(--color-focus); outline-offset: 2px; box-shadow: none; }
.storefront-category-button { color: var(--brand-green-deep); border-color: var(--color-input-border); background: var(--brand-cream-light); }
.storefront-category-button:hover, .storefront-category-button:focus-visible { color: var(--brand-red-dark); border-color: var(--brand-red); background: var(--brand-red-soft); }
.storefront-category-button[aria-pressed="true"] { color: var(--color-on-dark); border-color: var(--brand-green-deep); background: var(--brand-green-deep); box-shadow: var(--shadow-card); }
.storefront-category-button::before { background: var(--brand-red); }
.storefront-toolbar .storefront-section-heading h2::after { background: var(--brand-red); }
.storefront-featured-section { background: linear-gradient(125deg, var(--brand-cream), var(--brand-cream-light) 70%, var(--brand-green-soft)); }
.storefront-product-media, .storefront-detail-media { background: linear-gradient(145deg, var(--brand-white), var(--brand-cream-light)); }
.storefront-badge-featured { background: var(--brand-red-dark); }
.storefront-badge-soldout { background: var(--ink-soft); }
.storefront-product-link::after { color: var(--brand-green-deep); }
.storefront-product-link:hover::after { color: var(--brand-red-dark); }
.storefront-availability, .storefront-detail-availability { color: var(--color-success); }
.storefront-availability { background: var(--color-success-soft); }
.storefront-availability.is-sold-out { color: var(--ink-soft); background: var(--color-disabled); }
.storefront-detail-availability.is-sold-out { color: var(--ink-soft); }
.storefront-steps { color: var(--color-on-dark); border-color: var(--brand-green-deep); background: var(--brand-green-deep); }
.storefront-steps::before { background: linear-gradient(90deg, var(--brand-red) 0 24%, var(--brand-green-medium) 24%); }
.storefront-steps-heading h2, .storefront-steps-heading h2 span,
.storefront-steps-heading > p:last-child, .storefront-steps .storefront-eyebrow,
.storefront-step-copy h3, .storefront-step-copy p { color: var(--color-on-dark); }
.storefront-step, .storefront-step:nth-child(2), .storefront-step:nth-child(3) {
  --step-accent: var(--brand-red-soft);
  --step-wash: var(--brand-green);
  border-color: color-mix(in srgb, var(--brand-cream) 24%, transparent);
  background: transparent;
}
.storefront-step-number { color: var(--brand-red-soft); background: transparent; }
.storefront-step-icon { color: var(--brand-green-deep); background: var(--brand-cream); }
.storefront-step:not(:last-child)::after { border-color: color-mix(in srgb, var(--brand-cream) 48%, transparent); }
.storefront-steps-heading::after { background: var(--brand-yellow); }
.storefront-about { background: var(--brand-cream); }
.storefront-about-art { color: var(--brand-green-deep); background: var(--brand-green-soft); }
.storefront-about-art::before { border-color: color-mix(in srgb, var(--brand-green-deep) 10%, transparent); }
.storefront-about-art::after { background: color-mix(in srgb, var(--brand-red) 12%, transparent); }
.storefront-about-word { color: color-mix(in srgb, var(--brand-green-deep) 7%, transparent); }
.storefront-facebook-cta { color: var(--brand-green-deep); border-color: var(--brand-green); background: var(--brand-cream-light); }
.storefront-facebook-icon { background: var(--brand-green-deep); }
.storefront-facebook-cta:hover { color: var(--brand-white); }
.storefront-footer { color: var(--color-on-dark); background: var(--brand-green-deep); }
.storefront-footer p, .storefront-footer strong { color: var(--color-on-dark); }
.storefront-footer a:hover { color: var(--brand-yellow); }
.storefront-steps :focus-visible, .storefront-footer :focus-visible { outline-color: var(--color-focus-on-dark); }

@media (max-width: 47.99rem) {
  .storefront-featured-header { align-items: center; gap: 0.75rem; }
  .storefront-featured-track { grid-auto-columns: min(86%, 20rem); }
  .storefront-carousel-controls button { width: 2.4rem; height: 2.4rem; }
}
@media (max-width: 23rem) {
  .storefront-featured-header { align-items: start; flex-direction: column; }
  .storefront-featured-track { grid-auto-columns: 91%; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront-hero-art.has-rotating-products .storefront-showcase-product,
  .storefront-carousel-controls button,
  .storefront-catalog-more,
  .storefront-facebook-cta,
  .storefront-facebook-icon,
  .storefront-facebook-arrow { animation: none; transition: none; }
  .storefront-hero-art.has-rotating-products .storefront-showcase-product.is-switching,
  .storefront-carousel-controls button:hover,
  .storefront-catalog-more:hover,
  .storefront-facebook-cta:hover,
  .storefront-facebook-cta:hover .storefront-facebook-icon,
  .storefront-facebook-cta:hover .storefront-facebook-arrow,
  .storefront-footer-facebook:hover .storefront-facebook-icon { opacity: 1; transform: none; }
}
