:root {
  --chocolate: #3D2010;
  --chocolate-mid: #6B3A20;
  --gold: #C8A020;
  --gold-light: #E8C850;
  --leaf: #4A8C2A;
  --leaf-light: #7DC85A;
  --surface: #FFFFFF;
  --surface-warm: #FAF7F2;
  --ink: #3D2010;
  --ink-muted: #6B5E52;
  --ink-soft: #8A8070;
  --cta-hover: #E8722A;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --section-pad: clamp(56px, 8vw, 96px);
  --shadow: 0 4px 24px rgba(61, 32, 16, 0.08);
  --shadow-soft: 0 2px 12px rgba(61, 32, 16, 0.06);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chocolate-mid); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* header base — fixed en sketch.css */
.nav {
  max-width: var(--max); margin: 0 auto; padding: 14px 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav-brand img { width: 48px; height: 48px; border-radius: var(--radius-sm); }
.nav-brand strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.nav-brand span { font-size: 13px; color: var(--ink-muted); font-weight: 600; }
.nav-links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--chocolate); }
.btn-cart {
  background: var(--surface-warm); border: 1.5px solid rgba(61,32,16,.12);
  border-radius: var(--radius-pill); padding: 10px 18px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); color: var(--chocolate); display: inline-flex; align-items: center; gap: 8px;
}
.cart-badge {
  background: var(--gold); color: var(--chocolate); font-size: 12px; min-width: 22px; height: 22px;
  border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 720px) { .nav-links { display: none; } }

.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px);
  max-width: var(--max); margin: 0 auto; padding: var(--section-pad) 1.5rem 48px; align-items: center;
}
.hero-copy .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--leaf);
  background: rgba(74,140,42,.1); padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: 1.125rem; color: var(--ink-muted); max-width: 34ch; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual, .hero-media { order: -1; }
}

.btn-primary {
  background: var(--gold); color: var(--chocolate); border: none; border-radius: var(--radius-pill);
  padding: 14px 28px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--cta-hover); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--chocolate); border: 2px solid var(--chocolate);
  border-radius: var(--radius-pill); padding: 12px 26px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--chocolate); color: #fff; }

.occasion-bar {
  background: var(--chocolate); color: #fff; text-align: center; padding: 18px 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 600;
}
.occasion-bar #occasionWord {
  color: var(--gold-light); font-family: var(--font-display);
  display: inline-block; min-width: 12ch;
}

.info-strip {
  background: var(--surface-warm); border-block: 1px solid rgba(61,32,16,.08);
  padding: 20px 1.5rem;
}
.info-strip ul {
  max-width: var(--max); margin: 0 auto; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 40px;
  font-weight: 600; color: var(--ink-muted);
}
.info-strip strong { color: var(--chocolate); }

.section { padding: var(--section-pad) 1.5rem; max-width: var(--max); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; max-width: 640px; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 12px; }
.section-head p { margin: 0; color: var(--ink-muted); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.prod-card {
  background: var(--surface); border-radius: var(--radius-md); overflow: visible;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(61,32,16,.06);
  transition: box-shadow .2s, transform .2s;
}
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.prod-img { position: relative; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-tag {
  position: absolute; top: 12px; left: 12px; background: var(--leaf); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.prod-veg {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.95);
  color: var(--leaf); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
}
.prod-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.prod-name { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 8px; }
.prod-desc { font-size: 14px; color: var(--ink-muted); margin: 0 0 16px; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.prod-price { font-weight: 800; font-size: 1.25rem; }
.prod-price small { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.btn-add {
  background: var(--gold); color: var(--chocolate); border: none; border-radius: var(--radius-pill);
  padding: 10px 16px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn-add:hover { background: var(--cta-hover); color: #fff; }
.btn-add.added { background: var(--leaf); color: #fff; }

.shipping-box {
  background: var(--surface-warm); border-radius: var(--radius-md); padding: 28px 32px;
  border: 1px solid rgba(61,32,16,.1); max-width: 720px; margin: 0 auto;
}
.shipping-box h3 { margin-top: 0; font-size: 1.25rem; }
.shipping-box ul { margin: 0; padding-left: 1.2rem; color: var(--ink-muted); }
.shipping-box li { margin-bottom: 8px; }

.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.loc-card {
  padding: 22px; border-radius: var(--radius-md); background: var(--surface);
  border: 1px solid rgba(61,32,16,.08); box-shadow: var(--shadow-soft);
}
.loc-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.loc-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }

.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gift-card {
  border: none; font: inherit; width: 100%;
  padding: 20px; border-radius: var(--radius-md); background: var(--surface-warm);
  text-align: center; font-weight: 600; color: var(--chocolate-mid);
}

.packaging {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.packaging-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.packaging-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 768px) { .packaging { grid-template-columns: 1fr; } }

.b2b-band {
  background: var(--chocolate); color: #fff; padding: var(--section-pad) 1.5rem; text-align: center;
}
.b2b-band .inner { max-width: 720px; margin: 0 auto; }
.b2b-band h2 { color: #fff; margin: 0 0 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.b2b-band p { color: rgba(255,255,255,.8); margin: 0 0 24px; }

.estela-section { background: var(--surface-warm); padding: var(--section-pad) 1.5rem; }
.estela-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start;
}
.estela-intro h2 { margin-top: 0; }
.estela-intro p { color: var(--ink-muted); }
.estela-perks { list-style: none; padding: 0; margin: 24px 0; }
.estela-perks li { padding: 10px 0; border-bottom: 1px solid rgba(61,32,16,.08); color: var(--ink-muted); }
.estela-perks strong { color: var(--chocolate); }
@media (max-width: 900px) { .estela-grid { grid-template-columns: 1fr; } }

.chat-panel {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid rgba(61,32,16,.1); display: flex; flex-direction: column; max-height: 520px;
}
.chat-head {
  padding: 16px 18px; border-bottom: 1px solid rgba(61,32,16,.08);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-head h3 { margin: 0; font-size: 1rem; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; min-height: 220px; max-height: 280px; }
.bubble-wrap { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-end; }
.bubble { padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; max-width: 85%; }
.bubble.e { background: var(--surface-warm); color: var(--ink); }
.bubble.u { background: var(--chocolate); color: #fff; margin-left: auto; margin-bottom: 12px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.qr {
  background: var(--surface-warm); border: 1px solid rgba(61,32,16,.12); border-radius: var(--radius-pill);
  padding: 8px 12px; font-size: 12px; cursor: pointer; font-family: var(--font-body);
}
.chat-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(61,32,16,.08); }
.chat-inp { flex: 1; border: 1.5px solid rgba(61,32,16,.15); border-radius: var(--radius-pill); padding: 12px 16px; font-family: var(--font-body); }
.chat-send { background: var(--gold); border: none; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; font-weight: 700; }
.chat-foot { font-size: 11px; color: var(--ink-soft); text-align: center; padding: 8px; }
.typing span { display: inline-block; width: 6px; height: 6px; background: var(--ink-soft); border-radius: 50%; margin: 0 2px; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{opacity:.3} 40%{opacity:1} }

.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.test-card {
  background: var(--surface-warm); border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-soft); border: none;
}
.test-stars { margin-bottom: 12px; letter-spacing: 2px; }
.test-text { font-style: italic; color: var(--ink-muted); margin: 0 0 18px; }
.test-name { font-weight: 700; font-size: 14px; }
.test-role { font-size: 12px; color: var(--ink-soft); }

.site-footer { background: var(--chocolate); color: #fff; padding: 56px 1.5rem 28px; }
.foot-inner { max-width: var(--max); margin: 0 auto; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.foot-grid a { color: rgba(255,255,255,.65); text-decoration: none; }
.foot-grid a:hover { color: var(--gold-light); }
.foot-bot { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.45); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }

.overlay { position: fixed; inset: 0; background: rgba(61,32,16,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.on { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: min(400px, 100vw); height: 100vh;
  background: var(--surface); z-index: 300; box-shadow: -6px 0 48px rgba(61,32,16,.15);
  transition: right .35s ease; display: flex; flex-direction: column;
}
.cart-drawer.on { right: 0; }
.cart-top { padding: 18px 20px; border-bottom: 1px solid rgba(61,32,16,.08); display: flex; justify-content: space-between; align-items: center; }
.cart-x { border: none; background: var(--surface-warm); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.cart-scroll { flex: 1; overflow-y: auto; padding: 16px 20px; }
.c-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(61,32,16,.08); }
.c-thumb { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; }
.c-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qb { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; cursor: pointer; }
.cart-bottom { padding: 18px 20px; border-top: 1px solid rgba(61,32,16,.08); }
.btn-chk { width: 100%; background: var(--chocolate); color: #fff; border: none; border-radius: var(--radius-pill); padding: 14px; font-weight: 700; cursor: pointer; margin-top: 12px; }

.fab-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 150; }
.fab {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--gold);
  background: var(--chocolate); color: #fff; cursor: pointer; box-shadow: var(--shadow);
  font-size: 28px; line-height: 1;
}
.fab-tip {
  position: absolute; bottom: 72px; right: 0; background: var(--surface); padding: 10px 14px;
  border-radius: var(--radius-md); box-shadow: var(--shadow); font-size: 13px; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.fab-wrap:hover .fab-tip { opacity: 1; }

.order-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--chocolate); color: #fff;
  padding: 12px 20px; display: none; align-items: center; justify-content: space-between; z-index: 120;
}
.order-bar button { background: var(--gold); color: var(--chocolate); border: none; border-radius: var(--radius-pill); padding: 10px 18px; font-weight: 700; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prod-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .occasion-bar #occasionWord { transition: none; }
}

/* UI/UX Pro Max — a11y + interaction */
html { scroll-padding-top: 88px; }
a, button, .prod-card, .gift-card, .loc-card { cursor: pointer; }
button, .btn-primary, .btn-secondary, .btn-add, .btn-cart, .qr, .fab, .qb, .chat-send, .nav-toggle {
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
}
button:focus-visible, a:focus-visible, input:focus-visible, .gift-card:focus-visible, .loc-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--chocolate); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  background: var(--surface-warm); border: 1.5px solid rgba(61,32,16,.12);
  border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer;
}
.nav-links.open {
  display: flex !important; flex-direction: column; position: absolute;
  top: 72px; left: 0; right: 0; background: var(--surface);
  padding: 1rem 1.5rem 1.25rem; border-bottom: 1px solid rgba(61,32,16,.08);
  box-shadow: var(--shadow);
}
.nav { position: relative; }
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; }
}
.prod-price, .c-sub, .cart-tot strong { font-variant-numeric: tabular-nums; }
.section, .b2b-band, .estela-section { scroll-margin-top: 88px; }
.gift-card {
  cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s;
  border: 1px solid transparent;
}
.gift-card:hover, .gift-card:focus-visible {
  background: var(--surface); box-shadow: var(--shadow-soft);
  border-color: rgba(200,160,32,.35); transform: translateY(-1px);
}
.loc-card { transition: box-shadow .2s, border-color .2s; }
.loc-card:hover { border-color: rgba(200,160,32,.4); box-shadow: var(--shadow); }
.loc-meta { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--gold); }
.occasion-bar #occasionWord.tick {
  animation: occasionPop .35s cubic-bezier(.22, 1, .36, 1);
}
@keyframes occasionPop {
  from { opacity: .35; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.fab {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0;
}
.fab svg { width: 28px; height: 28px; }
.cart-empty { text-align: center; color: var(--ink-muted); padding: 2rem 1rem; }
body.has-order-bar { padding-bottom: 64px; }
.order-bar { box-shadow: 0 -4px 20px rgba(0,0,0,.15); }
.chat-inp { font-size: 16px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 8px;
  font-size: 14px; color: var(--ink-muted); font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.icon-check { color: var(--leaf); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .occasion-bar #occasionWord.tick { animation: none; }
  .gift-card:hover, .gift-card:focus-visible { transform: none; }
}
.fab-wrap.is-tip-visible .fab-tip { opacity: 1; }

/* Stock photos — grade cálido coherente con chocolate/dorado */
.hero-media img,
.prod-img img,
.packaging-media img {
  filter: saturate(1.06) contrast(1.03) brightness(0.97);
}
.prod-card:hover .prod-img img {
  transform: scale(1.04);
  transition: transform 0.35s cubic-bezier(.22, 1, .36, 1);
}
.prod-img img { transition: transform 0.35s cubic-bezier(.22, 1, .36, 1); }
.loc-hint { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.loc-meta {
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none; font-size: 13px; font-weight: 700; color: var(--gold);
}
.loc-meta:hover, .loc-meta:focus-visible { color: var(--chocolate-mid); text-decoration: underline; }
.shipping-note {
  margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(61,32,16,.08);
  font-size: 14px; color: var(--ink-soft); font-style: italic;
}
@media (prefers-reduced-motion: reduce) {
  .prod-card:hover .prod-img img { transform: none; }
}

/* Mobile — full responsive */
@media (max-width: 720px) {
  html, body { overflow-x: clip; }
  .nav { padding: 10px 1rem; gap: 0.5rem; }
  .nav-brand span { display: none; }
  .nav-brand strong { font-size: 0.95rem; line-height: 1.2; }
  .btn-cart { padding: 8px 12px; font-size: 14px; }
  .hero { padding: clamp(28px, 6vw, 48px) 1rem 32px; }
  .hero h1 { font-size: clamp(1.65rem, 7.5vw, 2.2rem); }
  .hero-lead { font-size: 1rem; max-width: none; margin-bottom: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary { justify-content: center; width: 100%; }
  .occasion-bar { font-size: 1.05rem; padding: 14px 1rem; line-height: 1.45; }
  .info-strip { position: static; padding: 16px 1rem; }
  .info-strip ul { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .section { padding: clamp(40px, 8vw, 56px) 1rem; }
  .section-head { margin-bottom: 28px; }
  .prod-grid { grid-template-columns: 1fr; }
  .shipping-box { padding: 20px 18px; }
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gift-card { padding: 16px 10px; font-size: 14px; }
  .b2b-band { padding: clamp(40px, 8vw, 56px) 1rem; }
  .estela-section { padding: clamp(40px, 8vw, 56px) 1rem; }
  .chat-msgs { max-height: min(42vh, 300px); }
  .cart-drawer { width: 100vw; right: -100vw; }
  .order-bar { padding: 12px 1rem; padding-bottom: max(12px, env(safe-area-inset-bottom)); font-size: 14px; }
  body.has-order-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .gift-grid { grid-template-columns: 1fr; }
  .nav-brand img { width: 40px; height: 40px; }
}

