/* ==========================================================================
   Ranferi Pastelería — Design tokens
   Fuente: sistema de color entregado por el cliente (GEO-RAN001)
   ========================================================================== */
:root {
  /* Brand core */
  --color-brand-gold: #b59a65;
  --color-brand-gold-dark: #9c814d;
  --color-brand-gold-light: #d8c49a;
  --color-brand-brown: #706a5a;
  --color-brand-brown-dark: #4f493d;
  --color-brand-ink: #222222;
  --color-brand-muted: #888888;
  --color-brand-mint: #b8d6d0;

  /* Backgrounds & surfaces */
  --color-bg-main: #ffffff;
  --color-bg-warm: #fbf8f1;
  --color-bg-cream: #f6f0e4;
  --color-bg-soft: #f9f7f2;
  --color-surface-card: #ffffff;
  --color-surface-warm: #fcfaf6;
  --color-surface-overlay: rgba(255, 255, 255, 0.88);
  --color-border-light: #e1e1e1;
  --color-border-warm: #e6dcc8;

  /* Hub Local / AMG (Celebraciones GDL) */
  --color-hub-local: #b59a65;
  --color-hub-local-dark: #8d733f;
  --color-hub-local-soft: #f3ead7;
  --color-hub-local-icon: #9b7a35;
  --cta-local-bg: #b59a65;
  --cta-local-bg-hover: #9c814d;
  --cta-local-text: #ffffff;

  /* Hub Tienda / Nacional */
  --color-hub-shop: #2e7d32;
  --color-hub-shop-dark: #1f5f24;
  --color-hub-shop-soft: #eaf4eb;
  --color-hub-shop-icon: #2e7d32;
  --cta-shop-bg: #2e7d32;
  --cta-shop-bg-hover: #1f5f24;
  --cta-shop-text: #ffffff;

  /* Semantic */
  --color-success: #2e7d32;
  --color-success-soft: #eaf4eb;
  --color-warning: #f57f17;
  --color-warning-soft: #fff3e0;
  --color-error: #c62828;
  --color-error-soft: #fdecea;
  --color-info: #0693e3;
  --color-info-soft: #e7f3fc;

  /* Mercado Pago */
  --color-mercadopago-blue: #009ee3;
  --color-mercadopago-blue-dark: #007eb5;
  --color-payment-secure-bg: #eef8fd;
  --color-payment-secure-border: #b9e2f4;

  /* Typography roles */
  --text-heading: #222222;
  --text-body: #3a372f;
  --text-secondary: #706a5a;
  --text-muted: #888888;
  --text-inverse: #ffffff;
  --text-link: #706a5a;
  --text-link-hover: #4f493d;

  /* Cards */
  --card-bg: #ffffff;
  --card-border: #e6dcc8;
  --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  --card-radius: 18px;

  /* Gradients */
  --gradient-gold-soft: linear-gradient(135deg, #b59a65 0%, #d8c49a 100%);
  --gradient-warm-bg: linear-gradient(180deg, #ffffff 0%, #fbf8f1 100%);
  --gradient-shop-soft: linear-gradient(135deg, #2e7d32 0%, #7aa878 100%);
  --gradient-dark-premium: linear-gradient(135deg, #222222 0%, #4f493d 100%);

  --font-heading: Georgia, 'Iowan Old Style', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-width: 1160px;

  /* Depth & rhythm (look-and-feel pass — técnicas tipo Walr, paleta Ranferi) */
  --fs-body: 1.0625rem;
  --radius-soft: 28px;
  --shadow-sm: 0 2px 8px rgba(34, 24, 8, 0.05);
  --shadow-md: 0 16px 40px rgba(34, 24, 8, 0.08);
  --shadow-lg: 0 28px 64px rgba(34, 24, 8, 0.12);
  --shadow-gold-glow: 0 10px 28px rgba(181, 154, 101, 0.35);
  --shadow-shop-glow: 0 10px 28px rgba(46, 125, 50, 0.3);
  --shadow-photo: 0 24px 56px rgba(34, 24, 8, 0.22);
  --section-pad: clamp(40px, 4vw, 56px);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }

/* Motion profile: Lenis (inertia smooth scroll) */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-body);
  background: var(--color-bg-main);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }

/* ==========================================================================
   Focus states + skip-link
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-brand-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer a:focus-visible {
  outline-color: #ffffff;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--color-brand-ink);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section--warm { background: var(--gradient-warm-bg); }
.section--cream { background: linear-gradient(180deg, var(--color-bg-cream) 0%, var(--color-bg-warm) 100%); }
.section--soft { background: var(--color-bg-soft); }
.section--relative { position: relative; overflow: hidden; }

/* Decorative depth blobs — soft, blurred, low-opacity brand-color glows behind hero content */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.bg-blob--gold { background: var(--gradient-gold-soft); }
.bg-blob--shop { background: var(--gradient-shop-soft); }
.bg-blob--lg { width: 480px; height: 480px; }
.bg-blob--md { width: 320px; height: 320px; }
.bg-blob--top-right { top: -140px; right: -120px; }
.bg-blob--bottom-left { bottom: -160px; left: -140px; }

.eyebrow {
  display: inline-block;
  color: var(--color-brand-brown);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75em;
}

/* ==========================================================================
   Header + hub switcher
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-surface-overlay);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container-width);
  margin: 0 auto;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.site-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.hub-switcher {
  display: flex;
  gap: 8px;
  background: var(--color-bg-cream);
  border-radius: 999px;
  padding: 4px;
}
.hub-switcher a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.hub-switcher a.is-local.is-active,
.hub-switcher a.is-local:hover {
  background: var(--color-hub-local);
  color: #fff;
}
.hub-switcher a.is-shop.is-active,
.hub-switcher a.is-shop:hover {
  background: var(--color-hub-shop);
  color: #fff;
}
.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}
.site-nav a { color: var(--text-secondary); }
.cart-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #f0f0f0;
  color: #101010;
  font-size: 1rem;
  cursor: pointer;
  opacity: 1;
}
.cart-icon-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-hub-shop);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button-primary, .button-shop, .button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button-primary {
  background: var(--color-brand-gold);
  color: var(--color-brand-ink);
  box-shadow: var(--shadow-gold-glow);
}
.button-primary:hover { background: var(--color-brand-gold-light); color: var(--color-brand-ink); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(156, 129, 77, 0.4); }

.button-shop {
  background: var(--color-hub-shop);
  color: #ffffff;
  box-shadow: var(--shadow-shop-glow);
}
.button-shop:hover { background: var(--color-hub-shop-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(31, 95, 36, 0.4); }

.button-secondary {
  background: transparent;
  color: var(--color-brand-brown);
  border: 1px solid var(--color-border-warm);
}
.button-secondary:hover { background: var(--color-bg-cream); transform: translateY(-2px); }

.button-primary.is-small, .button-shop.is-small, .button-secondary.is-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--gradient-warm-bg);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero--local { background: linear-gradient(180deg, #ffffff 0%, var(--color-hub-local-soft) 120%); }
.hero--shop { background: linear-gradient(180deg, #ffffff 0%, var(--color-hub-shop-soft) 120%); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__subhead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 46ch;
}
.hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5em; }

.photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-soft);
  background: var(--gradient-gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  box-shadow: var(--shadow-photo);
}
.photo-placeholder.is-shop { background: var(--gradient-shop-soft); }
.photo-placeholder.is-small { aspect-ratio: 1 / 1; border-radius: 20px; box-shadow: var(--shadow-md); }

.photo-real {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-photo);
}
.photo-real.is-square { aspect-ratio: 1 / 1; }

.map-embed {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-soft);
  border: 1px solid var(--color-border-warm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ==========================================================================
   Hero media wrapper + floating status cards (tipo "dashboard preview")
   ========================================================================== */
.hero__media {
  position: relative;
}
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
  z-index: 2;
}
.floating-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.floating-card--top { top: -20px; right: 24px; animation-delay: 0s; }
.floating-card--bottom { bottom: -18px; left: -16px; animation-delay: 1.4s; }
.floating-card.is-local .floating-card__icon { background: var(--color-hub-local-soft); }
.floating-card.is-shop .floating-card__icon { background: var(--color-hub-shop-soft); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 640px) {
  .floating-card { font-size: 0.75rem; padding: 10px 14px; }
  .floating-card--top { top: -14px; right: 8px; }
  .floating-card--bottom { bottom: -14px; left: 8px; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Visible por defecto siempre — nunca depende de que el JS corra.
   El JS solo agrega .reveal-pending a los elementos bajo el pliegue
   que sí alcanza a interceptar antes del primer paint, para animarlos. */
[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(28px);
}
[data-reveal] {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ==========================================================================
   Flow diagram ("cómo funciona")
   ========================================================================== */
.flow {
  position: relative;
}
.flow__line {
  position: absolute;
  top: 26px;
  left: 0;
  width: 100%;
  height: 8px;
  z-index: 0;
  overflow: visible;
}
.flow__line path {
  fill: none;
  stroke: var(--color-border-warm);
  stroke-width: 2;
}
.flow__line path.is-shop { stroke: #cfe3d0; }
.flow__line .flow__dash {
  stroke: var(--color-brand-gold);
  stroke-dasharray: 6 10;
  animation: flow-move 2.2s linear infinite;
}
.flow__line .flow__dash.is-shop { stroke: var(--color-hub-shop); }
@keyframes flow-move {
  to { stroke-dashoffset: -32; }
}
.flow__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--flow-cols, 3), 1fr);
  gap: 24px;
}
.flow__node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--color-brand-gold);
  color: var(--color-brand-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.flow__node.is-shop { border-color: var(--color-hub-shop); color: var(--color-hub-shop-dark); }

.flow--dense .flow__steps { gap: 16px; }
.flow--dense .flow__node { width: 44px; height: 44px; font-size: 1.05rem; margin-bottom: 12px; }
.flow--dense h3 { font-size: 1rem; }
.flow--dense p { font-size: 0.82rem; color: var(--text-secondary); }
.flow--dense .flow__line { top: 20px; }

@media (prefers-reduced-motion: reduce) {
  .floating-card { animation: none; }
  .flow__dash { animation: none; }
  [data-reveal] { transition: none; }
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .flow--dense .flow__line { display: none; }
  .flow--dense .flow__steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .flow--dense .flow__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .flow__line { display: none; }
  .flow__steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Decision block (home switcher)
   ========================================================================== */
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.decision-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.decision-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.decision-card__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.decision-card.is-local .decision-card__icon { background: var(--color-hub-local-soft); color: var(--color-hub-local-icon); }
.decision-card.is-shop .decision-card__icon { background: var(--color-hub-shop-soft); color: var(--color-hub-shop-icon); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .photo-placeholder { border-radius: 0; box-shadow: none; border: none; }
.card__photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.05rem; margin: 0; }
.card__meta { color: var(--text-muted); font-size: 0.85rem; }
.card__price { color: var(--color-brand-ink); font-weight: 700; font-size: 1.05rem; }

/* ==========================================================================
   Badges (restricciones alimentarias)
   ========================================================================== */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-brand-gold-light);
  color: var(--color-brand-brown-dark);
  font-size: 0.85rem;
  font-weight: 600;
}
.badge.is-shop { background: var(--color-hub-shop-soft); color: var(--color-hub-shop-dark); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial {
  background: var(--color-surface-warm);
  border: 1px solid var(--color-border-warm);
  border-radius: var(--radius-soft);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial__quote { font-style: italic; color: var(--text-body); }
.testimonial__name { color: var(--color-brand-brown); font-weight: 600; margin-top: 12px; }

/* ==========================================================================
   Steps ("cómo funciona")
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-brand-gold);
}

/* ==========================================================================
   Info boxes (tiempos, precios, pago seguro)
   ========================================================================== */
.info-box {
  background: var(--color-bg-cream);
  border: 1px solid var(--color-border-warm);
  border-radius: var(--radius-soft);
  padding: 24px;
}
.payment-secure-box {
  background: var(--color-payment-secure-bg);
  border: 1px solid var(--color-payment-secure-border);
  border-radius: 20px;
  padding: 18px 20px;
  color: var(--color-mercadopago-blue-dark);
  font-size: 0.9rem;
}
.payment-secure-box__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 10px;
}
.payment-secure-box__methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  color: var(--text-secondary);
}
.payment-secure-box__methods li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }

/* ==========================================================================
   Size / price table
   ========================================================================== */
.size-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}
.size-table th {
  background: var(--color-bg-cream);
  color: var(--color-brand-brown-dark);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.size-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border-light);
  color: var(--text-body);
}
.size-table tbody tr:hover { background: var(--color-bg-soft); }
.size-table em { color: var(--text-muted); font-style: italic; }

/* ==========================================================================
   Sabores y precios — foto por sabor
   ========================================================================== */
.sabor-row__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}
.sabor-foto {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-photo);
  display: block;
}

.gallery-foto {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  display: block;
}

/* Showcase bento: mosaico visual de producto (home) */
.showcase-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(150px, 19vw));
  grid-template-areas:
    "a a b c"
    "a a d e"
    "f g h e";
  gap: 14px;
  margin-top: 32px;
}
.showcase-bento a {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-photo);
  background: var(--color-bg-warm, #f5efe6);
}
.showcase-bento img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.showcase-bento a:hover img,
.showcase-bento a:focus-visible img { transform: scale(1.06); }
.bento-a { grid-area: a; }
.bento-b { grid-area: b; }
.bento-c { grid-area: c; }
.bento-d { grid-area: d; }
.bento-e { grid-area: e; }
.bento-f { grid-area: f; }
.bento-g { grid-area: g; }
.bento-h { grid-area: h; }
@media (max-width: 820px) {
  .showcase-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 44vw;
    grid-template-areas: none;
  }
  .showcase-bento a { grid-area: auto; }
  .bento-a { grid-column: 1 / -1; grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-bento img { transition: none; }
}
@media (max-width: 640px) {
  .sabor-row__grid { grid-template-columns: 1fr; }
  .sabor-foto { max-width: 240px; }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 16px 0 0;
}
.breadcrumb a { color: var(--text-secondary); }

/* ==========================================================================
   Brand pattern — rombos + moño, del backdrop de fotografía de Ranferi
   (el mismo moño del oso del logo). Uso sutil como textura de marca.
   ========================================================================== */
.brand-pattern {
  -webkit-mask-image: url("/images/pattern-bowtie-mask.svg");
  mask-image: url("/images/pattern-bowtie-mask.svg");
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-size: 110px 110px;
  mask-size: 110px 110px;
  background-color: var(--pattern-color, var(--color-brand-gold-dark));
}

.pattern-divider {
  position: relative;
  height: 64px;
  overflow: hidden;
  background: var(--color-bg-cream);
}
.pattern-divider .brand-pattern {
  position: absolute;
  inset: 0;
  --pattern-color: var(--color-brand-gold-dark);
  opacity: 0.35;
}
.pattern-divider.is-shop .brand-pattern { --pattern-color: var(--color-hub-shop-dark); }

@media (max-width: 640px) {
  .pattern-divider { height: 40px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--gradient-dark-premium);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 32px;
  border-radius: 40px 40px 0 0;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.site-footer .brand-pattern {
  position: absolute;
  inset: 0;
  --pattern-color: #ffffff;
  opacity: 0.05;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer a { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer__logo { height: 44px; width: auto; display: block; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   Product / spoke layout
   ========================================================================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.purchase-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-md);
  padding: 32px;
  position: sticky;
  top: 90px;
}

.product-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}
.product-options label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.product-options select,
.product-options input[type="text"] {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-body);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border-warm);
  background: var(--color-bg-soft);
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border-warm);
  background: var(--color-bg-soft);
  font-weight: 700;
  color: var(--text-body);
}
.qty-stepper button {
  border: none;
  background: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-hub-shop-dark);
  cursor: not-allowed;
  padding: 0;
  line-height: 1;
}

/* ==========================================================================
   Carrito (mockup) + seam Mercado Pago
   ========================================================================== */
.add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 16px; }
.add-to-cart__field { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--text-secondary); }
.add-to-cart__field select,
.add-to-cart__field input { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--color-border-warm); font-size: 0.95rem; background: #fff; color: var(--text-body); }
.add-to-cart__field input[type="number"] { width: 78px; }
.add-to-cart .button-shop { align-self: flex-end; }

.cart-drawer[hidden] { display: none; }
.cart-drawer { position: fixed; inset: 0; z-index: 1000; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(20, 14, 4, 0.42); }
.cart-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--color-bg-warm, #fbf7f0);
  box-shadow: -24px 0 56px rgba(34, 24, 8, 0.28);
  display: flex; flex-direction: column;
  animation: cartIn 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes cartIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .cart-drawer__panel { animation: none; } }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--color-border-warm); }
.cart-drawer__head h2 { margin: 0; font-size: 1.15rem; }
.cart-drawer__close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-secondary); line-height: 1; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-drawer__empty { padding: 40px 20px; text-align: center; color: var(--text-secondary); }
.cart-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--color-border-warm); }
.cart-item__img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; flex: none; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__title { font-weight: 600; font-size: 0.95rem; }
.cart-item__size { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-item .qty-stepper { gap: 12px; padding: 4px 12px; font-size: 0.9rem; }
.cart-item .qty-stepper button { cursor: pointer; }
.cart-item__price { font-weight: 700; white-space: nowrap; }
.cart-item__remove { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 0.9rem; flex: none; }
.cart-drawer__foot { padding: 18px 20px; border-top: 1px solid var(--color-border-warm); background: var(--color-bg-cream, #fff); }
.cart-drawer__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.cart-drawer__note { font-size: 0.74rem; color: var(--text-secondary); margin: 10px 0 0; line-height: 1.5; }
.cart-drawer__note code { background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 5px; }
.cart-drawer__payload { margin-top: 10px; max-height: 170px; overflow: auto; background: #101010; color: #8ff0a4; font-size: 0.72rem; padding: 10px; border-radius: 10px; white-space: pre; }
.button-mp { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #009ee3; color: #fff; border: none; border-radius: 14px; padding: 13px 20px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.button-mp:hover { background: #008fcf; }
.button-mp:disabled { background: #bcd7e2; cursor: not-allowed; }
.cart-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #222; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 0.9rem; z-index: 1100; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); max-width: 90vw; text-align: center; }
.cart-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .hero__grid, .decision-grid, .detail-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .purchase-panel { position: static; }
  .site-header__inner { flex-wrap: wrap; row-gap: 10px; padding: 12px 20px; }
  .hub-switcher { order: 3; width: 100%; justify-content: center; }
  .site-logo { order: 1; }
  .cart-icon-btn { order: 2; margin-left: auto; }
}
