/* tienda2 — storefront design system (2025 refresh, mobile-first).
   Clean warm-paper base, teal brand, near-navy primary actions, green status.
   Elegant serif display headline. All accessibility (focus, reduced-motion,
   skeletons), dark mode, and the honeypot are preserved. */

:root {
  --paper:      #f2eee7;   /* warm stone page */
  --paper-2:    #ece6dc;   /* slightly deeper warm panel */
  --surface:    #ffffff;   /* cards */
  --ink:        #15242d;   /* near-navy: headings + primary buttons */
  --ink-soft:   #6b7580;   /* muted text */
  --brand:      #2e6f75;   /* teal: brand accents, hero CTA, links */
  --brand-dark: #235a5f;
  --brand-tint: #e6f0ee;
  --green:      #1f9d57;   /* status: in stock, "asesoría" dot */
  --green-tint: #e4f3ea;
  --hot:        #b3452e;   /* sale / urgency, used sparingly */
  --hot-tint:   #f7e7e2;
  --line:       #e7e0d5;   /* warm hairline */
  --nav:        #12232c;   /* top utility bar + footer */
  --nav-ink:    #cdd6db;
  --btn-primary: #15242d;  /* primary button bg — navy in light, teal in dark; ALWAYS light text */
  --btn-primary-fg: #ffffff;
  --sk-base:    #e9e4db;
  --sk-shine:   rgba(255,255,255,.8);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(21,36,45,.06);
  --shadow:    0 2px 6px rgba(21,36,45,.06), 0 10px 24px rgba(21,36,45,.07);
  --shadow-lg: 0 6px 14px rgba(21,36,45,.08), 0 22px 48px rgba(21,36,45,.14);
  --glass-bg:  rgba(255,255,255,.72);
  --ease: cubic-bezier(.2,.7,.3,1);
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:#0e1512; --paper-2:#16201c; --surface:#16201c;
    --ink:#e9f0ec; --ink-soft:#9fb1a8; --brand:#63b6ad; --brand-dark:#8fd0c7;
    --brand-tint:#12251f; --green:#3ec27e; --green-tint:#10241a;
    --hot:#ef8a6f; --hot-tint:#2a1712; --line:#2b3a33; --nav:#0a1210; --nav-ink:#aebdb5;
    --btn-primary:#2e6f75; --btn-primary-fg:#ffffff;   /* teal so white text stays legible on the dark page */
    --sk-base:#1e2a25; --sk-shine:rgba(255,255,255,.06);
    --glass-bg:rgba(22,32,28,.7);
    --shadow-sm:0 1px 2px rgba(0,0,0,.45);
    --shadow:0 2px 6px rgba(0,0,0,.5),0 10px 24px rgba(0,0,0,.4);
    --shadow-lg:0 6px 14px rgba(0,0,0,.5),0 22px 48px rgba(0,0,0,.55);
  }
}
:root[data-theme="light"]{--paper:#f2eee7;--paper-2:#ece6dc;--surface:#fff;--ink:#15242d;--ink-soft:#6b7580;--brand:#2e6f75;--brand-dark:#235a5f;--brand-tint:#e6f0ee;--green:#1f9d57;--green-tint:#e4f3ea;--hot:#b3452e;--line:#e7e0d5;--nav:#12232c;--nav-ink:#cdd6db;--btn-primary:#15242d;--btn-primary-fg:#fff;--sk-base:#e9e4db;--sk-shine:rgba(255,255,255,.8);--glass-bg:rgba(255,255,255,.72);--hot-tint:#f7e7e2;--shadow-sm:0 1px 2px rgba(21,36,45,.06);--shadow:0 2px 6px rgba(21,36,45,.06),0 10px 24px rgba(21,36,45,.07);--shadow-lg:0 6px 14px rgba(21,36,45,.08),0 22px 48px rgba(21,36,45,.14);}
:root[data-theme="dark"]{--paper:#0e1512;--paper-2:#16201c;--surface:#16201c;--ink:#e9f0ec;--ink-soft:#9fb1a8;--brand:#63b6ad;--brand-dark:#8fd0c7;--brand-tint:#12251f;--green:#3ec27e;--green-tint:#10241a;--hot:#ef8a6f;--line:#2b3a33;--nav:#0a1210;--nav-ink:#aebdb5;--btn-primary:#2e6f75;--btn-primary-fg:#fff;--sk-base:#1e2a25;--sk-shine:rgba(255,255,255,.06);--glass-bg:rgba(22,32,28,.7);--hot-tint:#2a1712;--shadow-sm:0 1px 2px rgba(0,0,0,.45);--shadow:0 2px 6px rgba(0,0,0,.5),0 10px 24px rgba(0,0,0,.4);--shadow-lg:0 6px 14px rgba(0,0,0,.5),0 22px 48px rgba(0,0,0,.55);}

* { box-sizing: border-box; }
/* An author `display:` beats the UA rule for [hidden]; make hidden mean hidden. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1,h2,h3,h4 { line-height: 1.16; margin: 0 0 .45em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(1.5rem, 5.4vw, 2.1rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.15rem, 3.4vw, 1.4rem); letter-spacing: -.01em; }
h3 { font-size: 1rem; }
p  { overflow-wrap: break-word; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip { position:absolute; left:-9999px; top:0; background:var(--brand); color:#fff; padding:10px 16px; z-index:100; }
.skip:focus { left:8px; top:8px; }
.muted { color: var(--ink-soft); font-size:.9rem; }
.display { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
.display em, .display .accent { font-style: italic; color: var(--brand); }

/* ----------------------------------------------------------- test-mode banner */
.testbanner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 30px; line-height: 30px; overflow: hidden;
  background: #f6c700; color: #1a1a00; text-align: center;
  font-size: .84rem; font-weight: 700; padding: 0 12px; white-space: nowrap; text-overflow: ellipsis;
}
/* When the banner is on, push the page (and the sticky header) down by its height. */
body.has-testbanner { padding-top: 30px; }

/* ------------------------------------------------------------- top utility bar */
.topbar {
  background: var(--nav); color: var(--nav-ink);
  font-size: .82rem; text-align: center;
}
.topbar .wrap { display: flex; gap: 8px 16px; justify-content: center; align-items: center; flex-wrap: wrap; padding-block: 7px; }
.topbar strong { color: #fff; }
.topbar a { color: var(--nav-ink); text-decoration: none; }
.topbar .dot { opacity: .5; }

/* Language switcher — three codes in the dark utility bar. Deliberately plain
   text rather than flags: a flag is a country, not a language, and Portuguese
   here means Brazilian readers as much as Portuguese ones. */
.langsw { display: inline-flex; gap: 2px; align-items: center; }
.langsw__opt {
  color: var(--nav-ink); text-decoration: none; font-weight: 600;
  font-size: .72rem; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 999px; line-height: 1.6;
  opacity: .65; transition: opacity .15s ease, background-color .15s ease;
}
.langsw__opt:hover, .langsw__opt:focus-visible { opacity: 1; background: rgba(255,255,255,.12); }
.langsw__opt.is-active { opacity: 1; background: rgba(255,255,255,.18); color: #fff; }

/* --------------------------------------------------------------------- header */
/* The header is ORDINARY page content — it scrolls away like everything else.
   Only the test-mode ribbon is pinned. */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.head-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; min-width: 0; }
.site-head, body { overflow-x: clip; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
/* The wordmark must be READABLE — 160px minimum, height follows. */
.brand img { width: var(--logo-w, 160px); height: auto; }   /* --logo-w: grows with the screen, see MOBILE/DESKTOP */
.brand-logo-dark { display: none; }
.brand img.brand-logo-dark { width: var(--logo-w, 160px); height: auto; }   /* same readable size in dark mode */
@media (prefers-color-scheme: dark) {
  .brand:not(.has-dark-logo) img { background:#fff; padding:5px 9px; border-radius:9px; }
  .brand.has-dark-logo .brand-logo-light { display:none; }
  .brand.has-dark-logo .brand-logo-dark { display:inline-block; }
}
:root[data-theme="dark"] .brand:not(.has-dark-logo) img { background:#fff; padding:5px 9px; border-radius:9px; }
:root[data-theme="dark"] .brand.has-dark-logo .brand-logo-light { display:none; }
:root[data-theme="dark"] .brand.has-dark-logo .brand-logo-dark { display:inline-block; }
:root[data-theme="light"] .brand.has-dark-logo .brand-logo-light { display:inline-block; }
:root[data-theme="light"] .brand.has-dark-logo .brand-logo-dark { display:none; }
:root[data-theme="light"] .brand img { background:none; padding:0; }

.nav-pills { display: flex; align-items: center; gap: 8px; flex: none; }

/* "Deliver to …" — an icon plus the place name. Compact by design: on a phone
   the header must fit the logo, three controls and the search bar with no
   horizontal scroll. */
.geochip { position: relative; }
.geochip > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  max-width: 42vw;
}
.geochip > summary::-webkit-details-marker { display: none; }
.geochip > summary:hover, .geochip[open] > summary { border-color: var(--brand); }
.geochip svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.geochip-where {
  font-size: .86rem; font-weight: 700; line-height: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.geochip-panel {
  position: absolute; z-index: 80; top: calc(100% + 8px); right: 0;
  width: min(92vw, 380px); padding: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}

/* Icon-only header actions (WhatsApp, cart). */
.iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  text-decoration: none; flex: none;
}
.iconbtn:hover { border-color: var(--brand); color: var(--brand); }
.iconbtn svg { width: 21px; height: 21px; }
.iconbtn-dot {
  position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px var(--surface);
}
/* Light/dark switch: shows the theme you'd switch TO. */
.theme-toggle { cursor: pointer; padding: 0; font: inherit; }
.theme-toggle .ico-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .ico-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.iconbtn--cart { background: var(--btn-primary); border-color: var(--btn-primary); color: var(--btn-primary-fg); }
.iconbtn--cart:hover { color: var(--btn-primary-fg); filter: brightness(1.08); }
.iconbtn-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pill); background: var(--brand); color: #fff;
  font-size: .74rem; font-weight: 800; border: 2px solid var(--surface);
}

/* Amazon-style note about the assumed location. */
.geotoast {
  margin: 10px auto 0; max-width: var(--wrap);
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.geotoast p { margin: 0; font-size: .9rem; }
.geotoast-actions { display: flex; gap: 8px; }
.geotoast .btn { min-height: 38px; padding: 8px 14px; font-size: .88rem; }
@media (max-width: 640px) {
  .geotoast { margin-inline: 16px; }
  .geotoast p { font-size: .86rem; }
}

.head-search { padding: 6px 0 10px; }
.search { position: relative; display: flex; }
.search input {
  width: 100%; min-height: 48px; padding: 12px 52px 12px 16px;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--surface); color: var(--ink); font: inherit;
}
.search input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 1px; border-color: var(--brand);
}
.search-go {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--btn-primary); color: var(--btn-primary-fg);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.search-go:hover { filter: brightness(1.08); }
.search-go svg { width: 19px; height: 19px; }

/* ----------------------------------------------------------------------- hero */
.hero { padding: 12px 0 4px; }   /* less fat above the fold */
.stock-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--pill);
  background: var(--green-tint); color: var(--green); font-weight: 700; font-size: .9rem;
}
.stock-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero .display { font-size: clamp(1.75rem, 7vw, 2.6rem); line-height: 1.05; margin: 10px 0 8px; }
.hero-sub { font-size: 1.02rem; color: var(--ink-soft); max-width: 40ch; margin: 0 0 12px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.hero-trust { list-style: none; padding: 0; margin: 22px 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; color: var(--ink-soft); font-size: .92rem; }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust li::before { content: "✓"; color: var(--brand); font-weight: 800; }

.hero-media { margin: 22px 0 8px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; background: var(--paper-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* One calm line instead of the old delivery pill — same info, no bulk. */
.deliv-line {
  margin: 4px 0 14px; padding: 9px 14px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line);
  display: inline-block; font-size: .93rem; color: var(--ink-soft);
}
.deliv-line strong { color: var(--ink); }
.deliv-line b { color: var(--brand); font-variant-numeric: tabular-nums; }
/* Same-day: earn the extra attention, it is the strongest thing we can say. */
.deliv-line--today { border-color: var(--green); background: var(--green-tint); color: var(--ink); }
.deliv-line--today strong { color: var(--green); }

/* -------------------------------------------------------------- delivery card */
.deliv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; margin: 18px 0; }
.deliv-card .eyebrow { color: var(--brand); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.deliv-card .date { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.deliv-card .win { color: var(--ink-soft); margin: 2px 0 0; }
.deliv-card hr { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }
.deliv-card .cut { margin: 0; color: var(--ink-soft); }
.deliv-card .cut b { color: var(--brand); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- featured (oxygen) */
.feature { margin: 6px 0 8px; }
.feature > h2 { margin: 0 0 2px; }
.feature .lead { color: var(--ink-soft); margin: 0 0 14px; }
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.feature-card { position: relative; }
.feature-card .card-body { gap: 8px; }
.feature-badges { display: flex; gap: 6px; }
.feature-rest {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 14px 0 0; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.feature-rest .rest-copy strong { font-size: 1.05rem; }
.feature-rest .rest-copy p { margin: 2px 0 0; color: var(--ink-soft); }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
/* Never drop to one card per row: two-across is what makes a phone feel like a shop. */

/* ---------------------------------------------------------- category + toolbar */
.catpills { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; margin: 8px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catpills::-webkit-scrollbar { display: none; }
.catpill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 9px 16px; min-height: 42px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; text-decoration: none;
}
.catpill .n { color: var(--ink-soft); font-weight: 600; }
.catpill--active { background: var(--btn-primary); color: var(--btn-primary-fg); border-color: var(--btn-primary); }
.catpill--active .n { color: rgba(255,255,255,.7); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.toolbar .count { color: var(--ink-soft); }
.toolbar select { min-height: 44px; padding: 9px 34px 9px 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink); font: inherit; }

/* -------------------------------------------------------------------- cards */
.grid { display: grid; gap: 14px; margin: 8px 0 28px; grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card-media { position: relative; margin: 10px; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); aspect-ratio: 1/1; display: block; }
.card-media .card-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; transition: transform .35s var(--ease); }
.card:hover .card-media .card-img { transform: scale(1.05); }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.card-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.card-title { font-size: 1.02rem; font-weight: 700; margin: 0; color: var(--ink); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-desc { margin: 0; font-size: .88rem; color: var(--ink-soft); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-price { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-top: auto; letter-spacing: -.01em; }
.card-price .cur { font-size:.7em; font-weight:700; color: var(--ink-soft); }
.card-price .was { font-size:.62em; font-weight:600; color: var(--ink-soft); text-decoration: line-through; margin-left: 6px; }
.card-stock { font-size: .84rem; color: var(--green); font-weight: 600; margin: -2px 0 2px; }
.card-stock.out { color: var(--ink-soft); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--pill); font-size: .72rem; font-weight: 800; letter-spacing: .01em; }
.badge-hot  { background: var(--hot); color: #fff; }
.badge-soft { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--btn-primary); --btn-fg: var(--btn-primary-fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; min-height: 50px; width: auto;
  border: 1px solid transparent; border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: filter .12s var(--ease), transform .08s var(--ease), box-shadow .15s var(--ease), background .12s var(--ease);
}
.btn:hover  { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; filter: none; transform: none; }
.btn-brand { --btn-bg: var(--brand); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-secondary { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-secondary:hover { background: var(--paper-2); filter: none; }
.btn-block { width: 100%; }
.btn-pill { border-radius: var(--pill); }
/* legacy alias so existing markup keeps working */
.btn-primary { }

.btn-spinner { width: 1em; height: 1em; flex: none; display: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading .btn-spinner { display: inline-block; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------- forms (micro) */
input, select, textarea { font: inherit; color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; border-color: var(--brand) !important; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; margin-bottom: 5px; }

/* thumb-zone sticky CTA */
.sticky-cta { position: sticky; bottom: 0; z-index: 40; display: flex; gap: 10px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); margin: 16px -16px 0; background: var(--glass-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.sticky-cta .btn { flex: 1; }
.sticky-cta .sticky-price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.only-mobile { display: flex; }

/* ------------------------------------------------- floating action buttons
   Two circles bottom-LEFT (HandyPro pattern): catalog + WhatsApp advisor.
   They keep the hero clean while the actions stay one thumb away everywhere. */
.fabs {
  position: fixed; left: 16px; z-index: 60;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform .12s var(--ease), filter .12s var(--ease);
}
.fab:hover  { filter: brightness(1.08); transform: translateY(-2px); }
.fab:active { transform: scale(.94); }
.fab:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.fab svg { width: 28px; height: 28px; display: block; }
.fab--catalog { background: var(--btn-primary); color: var(--btn-primary-fg); }
.fab--wa      { background: #25D366; color: #fff; }
/* Tooltip label on wider screens */
.fab .fab-label {
  position: absolute; left: 68px; white-space: nowrap;
  background: var(--ink); color: var(--surface);
  padding: 6px 12px; border-radius: var(--pill); font-size: .84rem; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .15s var(--ease);
}
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; }
@media (max-width: 640px) { .fab .fab-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .fab:hover { transform: none; } }

/* --------------------------------------------------------------- CTA band */
.ctaband { margin: 34px 0; padding: 26px 22px; background: var(--nav); color: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ctaband h2 { margin: 0 0 8px; color: #fff; }
.ctaband p { margin: 0 0 18px; color: rgba(255,255,255,.8); }
.ctaband .btn-brand { --btn-bg: var(--brand); }

/* ------------------------------------------------------------------- footer */
.site-foot { background: var(--nav); color: var(--nav-ink); margin-top: 44px; padding: 34px 0 40px; }
.site-foot strong { color: #fff; }
.site-foot a { color: #fff; }
.site-foot p { margin: 5px 0; }

/* --------------------------------------------------------------- skeletons */
.sk { position: relative; overflow: hidden; background: var(--sk-base); border-radius: var(--r-sm); }
.sk::after { content:""; position:absolute; inset:0; transform:translateX(-100%); background:linear-gradient(90deg,transparent,var(--sk-shine),transparent); animation: sk-sweep 1.5s infinite; }
@keyframes sk-sweep { 100% { transform: translateX(100%); } }
.sk-img { aspect-ratio: 1/1; border-radius: var(--r-md); margin: 10px; }
.sk-line { height: 12px; } .sk-price { height: 20px; margin-top: 6px; } .sk-btn { height: 44px; border-radius: var(--r-md); margin-top: 6px; }
.sk-stack { display: flex; flex-direction: column; gap: 10px; }
.w30{width:30%;}.w45{width:45%;}.w55{width:55%;}.w70{width:70%;}.w80{width:80%;}.w90{width:90%;}
.t2-enter { animation: t2-fade .28s ease both; }
@keyframes t2-fade { from { opacity:0; transform: translateY(4px); } to { opacity:1; transform:none; } }

/* ---------------------------------------------------------------- notices */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); padding: 14px 16px; border-radius: var(--r-md); margin: 18px 0; }
.empty { text-align: center; padding: 52px 20px; color: var(--ink-soft); }

/* cart bits kept from before */
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-badge { display:inline-block; min-width:20px; padding:1px 6px; margin-left:5px; border-radius:var(--pill); background:var(--brand); color:#fff; font-size:.74rem; font-weight:700; text-align:center; line-height:1.5; }

/* trust list (used on some pages) */
.trust { list-style:none; padding:0; margin:16px 0 6px; display:flex; flex-wrap:wrap; gap:8px 22px; color:var(--ink-soft); font-size:.9rem; }
.trust li::before { content:"✓"; color:var(--brand); font-weight:800; margin-right:6px; }

/* honeypot */
.hp-field { position:absolute !important; left:-10000px !important; width:1px; height:1px; overflow:hidden; }


/* ================================================================== MOBILE
   RULE: a product must be visible without scrolling. Everything above the
   first card is overhead, so on a phone we cut the overhead to the bone —
   the products ARE the hero. */
@media (max-width: 640px) {
  .topbar        { display: none; }        /* phone/email live in the FAB + footer */
  .brand         { --logo-w: 150px; }
  /* Location: just the pin. The place and the picker open on tap. */
  .geochip > summary { width: 42px; max-width: none; padding: 0; justify-content: center; }
  .geochip-where { display: none; }
  .geochip-panel { position: fixed; top: 62px; left: 12px; right: 12px; width: auto; }
  /* Search lives at the bottom of the screen, a thumb away. --mbar is its
     height: everything else that sits at the bottom stacks above it, and the
     page ends above it so nothing is ever hidden under the bar. */
  :root          { --mbar: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .head-search   { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
                   padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
                   background: var(--glass-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
                   border-top: 1px solid var(--line); }
  body           { padding-bottom: var(--mbar); }
  .sticky-cta    { bottom: var(--mbar); }
  .site-foot     { padding-bottom: 124px; }   /* footer text ends above the two floating buttons */
  body:has(.sticky-cta) .fabs { bottom: calc(var(--mbar) + 88px); }   /* product page: above the Agregar bar too */
  .hero          { padding: 6px 0 0; }
  .hero .display { font-size: 1.5rem; line-height: 1.12; margin: 8px 0 6px; }
  .hero-sub      { display: none; }        /* the headline already says it */
  .hero-trust    { display: none; }        /* re-homed under the products */
  .stock-pill    { font-size: .8rem; padding: 4px 11px; }
  .deliv-line    { display: block; margin: 8px 0 10px; font-size: .84rem; padding: 8px 12px; }
  .feature       { margin-top: 2px; }
  .feature > h2  { font-size: 1.08rem; margin-bottom: 2px; }
  .feature .lead { display: none; }
  .fab           { width: 48px; height: 48px; }
  .fab svg       { width: 24px; height: 24px; }
  .fabs          { left: 12px; gap: 10px; bottom: calc(var(--mbar) + 12px); }
  main.wrap      { padding-bottom: 78px; }  /* the FABs must not cover the last row */
}

/* Trust row, re-homed BELOW the products: it reassures without delaying. */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none;
  margin: 6px 0 20px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: .88rem; color: var(--ink-soft);
}
.trust-strip li::before { content: "\2713"; color: var(--brand); font-weight: 800; margin-right: 6px; }
@media (max-width: 640px) {
  .trust-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .82rem; margin: 2px 0 18px; }
}

/* ==================================================================== DESKTOP */
@media (min-width: 720px) {
  .wrap { padding-inline: 24px; }
  .head-top { padding-top: 14px; }
  .brand { --logo-w: clamp(200px, 17vw, 280px); }   /* ~245px on a 15" laptop, 280px max */
  .head-search { max-width: 560px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hero { padding: 18px 0 8px; }
  .hero--media { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
  .hero-media { margin: 0; aspect-ratio: 4/3; }
  .hero-actions { flex-direction: row; }
  .hero-trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 26px; }
  .cart-line { grid-template-columns: 90px 1fr auto; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 400px) {
  .grid, .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 4px 12px 12px; }
  .card-title { font-size: .95rem; }
  .card-price { font-size: 1.2rem; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sk::after { animation: none; } .sk { opacity: .85; }
  .btn.is-loading .btn-spinner { animation-duration: 1.8s; }
  .t2-enter { animation: none; }
  .card:hover, .btn:hover { transform: none; }
  .card:hover .card-media .card-img { transform: none; }
  * { transition-duration: .01ms !important; }
}
