/* =========================================================
   LA TOSCANA SL — estilos
   Línea sobria: marfil · espresso · naranja de marca como acento
   Tipografías: Fraunces (títulos) + Inter (texto)
   ========================================================= */

@font-face { font-family: "Fraunces"; src: url("../assets/fonts/Fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #FBF7F0;
  --soft: #F4EDE2;
  --surface: #FFFFFF;
  --ink: #2A1A12;
  --brown: #6B2E14;
  --muted: #76675C;
  --line: #E7DDCF;
  --line-2: #D9CCBA;
  --accent: #D9731A;
  --accent-soft: #FBEBD8;
  --olive: #6F7D2A;
  --olive-soft: #EEF0D6;
  --dark: #241610;
  --wa: #1FAF5A;
  --r: 16px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(42,26,18,.05);
  --shadow: 0 1px 2px rgba(42,26,18,.04), 0 10px 30px -12px rgba(42,26,18,.14);
  --head-h: 72px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans); font-weight: 400;
  color: var(--ink); background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Tipografía ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.kicker--light { color: #F2B472; }

h1, h2, .sec-head h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-variation-settings: "opsz" 144, "SOFT" 30; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; min-height: 44px;
  font-weight: 600; font-size: .94rem; line-height: 1.2; text-decoration: none; text-align: center;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 14px 26px; min-height: 52px; font-size: 1rem; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--brown); border-color: var(--brown); }
.btn--outline { background: transparent; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn--outline-l { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-l:hover { border-color: #fff; }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; width: 100%; min-height: 52px; font-size: 1rem; }
.btn--wa:hover { background: #179A4D; border-color: #179A4D; }
.btn--wa:disabled { opacity: .45; cursor: not-allowed; }
.btn--cart { gap: 10px; padding: 9px 14px; background: transparent; }
.btn-link { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; font-size: .85rem; color: var(--muted); padding: 4px; }
.btn-link:hover { color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt b { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; color: var(--ink); }
.brand__txt small { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .92rem; padding: 8px 12px; border-radius: 8px; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.badge {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--accent); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.badge.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.35); } }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; border-radius: var(--r-sm); padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin: 20px 0 22px; font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.04; color: var(--ink); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--brown); }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 44px; }

.trust { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--muted); line-height: 1.3; }
.trust svg { width: 26px; height: 26px; flex: none; color: var(--brown); }
.trust b { display: block; font-weight: 600; color: var(--ink); }

.hero__art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.tile {
  position: relative; border-radius: 20px; background: var(--c, var(--soft));
  aspect-ratio: 1 / 1.06; display: grid; place-items: center; overflow: hidden;
}
.tile:nth-child(2) { transform: translateY(36px); }
.tile:nth-child(4) { transform: translateY(36px); }
.tile svg { width: 58%; height: auto; filter: drop-shadow(0 14px 18px rgba(42,26,18,.16)); }
.tile span { position: absolute; left: 14px; top: 14px; font-size: .78rem; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.75); padding: 4px 10px; border-radius: 999px; }
.hero__note {
  position: absolute; left: -26px; bottom: -8px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.3; color: var(--muted);
}
.hero__note b { display: block; color: var(--ink); font-weight: 600; }
.hero__note i { width: 36px; height: 36px; border-radius: 10px; background: var(--olive-soft); color: var(--olive); display: grid; place-items: center; font-style: normal; font-weight: 700; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: #EADFD3; }

.sec-head { margin-bottom: 44px; max-width: 680px; }
.sec-head h2 { margin-top: 12px; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; color: var(--ink); }
.sec-head__sub { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }
.sec-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head--row .sec-head__sub { margin: 0; font-size: .92rem; }

/* Mascotas (ardilla y maní) en la sección de combos */
.sec-head--combos { position: relative; max-width: none; padding-right: clamp(250px, 24vw, 330px); }
.combos-mascots { position: absolute; right: 4px; bottom: -14px; display: flex; align-items: flex-end; pointer-events: none; }
.combos-mascots img { height: auto; filter: drop-shadow(0 16px 20px rgba(42,26,18,.16)); }
.combos-mascots__squirrel { width: clamp(120px, 13vw, 172px); transform: rotate(-3deg); animation: mascot-squirrel 3.6s ease-in-out infinite; }
.combos-mascots__peanut { width: clamp(76px, 8vw, 108px); margin-left: -24px; transform: rotate(7deg) translateY(2px); animation: mascot-peanut 2.4s ease-in-out infinite .25s; }
@keyframes mascot-squirrel {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  8% { transform: rotate(-4deg) translateY(-14px); }
  16% { transform: rotate(-2deg) translateY(0); }
  24% { transform: rotate(-4deg) translateY(-7px); }
  32% { transform: rotate(-3deg) translateY(0); }
}
@keyframes mascot-peanut {
  0%, 100% { transform: rotate(7deg) translateY(2px); }
  50% { transform: rotate(10deg) translateY(-9px); }
}

/* ---------- Catálogo ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-bottom: 28px; padding: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.mode { display: flex; background: var(--soft); border-radius: 10px; padding: 4px; gap: 2px; }
.mode__btn { border: 0; background: transparent; border-radius: 7px; padding: 7px 16px; text-align: left; line-height: 1.2; transition: background .15s, box-shadow .15s; }
.mode__btn b { display: block; font-weight: 600; font-size: .9rem; color: var(--muted); }
.mode__btn small { font-size: .7rem; color: var(--muted); opacity: .85; }
.mode__btn.is-on { background: var(--surface); box-shadow: 0 1px 3px rgba(42,26,18,.12); }
.mode__btn.is-on b { color: var(--ink); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { white-space: nowrap; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 500; font-size: .88rem; padding: 7px 14px; border-radius: 999px; transition: .15s; }
.chip:hover { color: var(--ink); background: var(--soft); }
.chip.is-on { color: var(--ink); border-color: var(--line-2); background: var(--bg); }

.search { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 240px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; min-height: 42px; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: .92rem; color: var(--ink); min-width: 0; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s;
  animation: rise .5s both;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card__art { position: relative; height: 190px; display: grid; place-items: center; background: var(--c, var(--soft)); overflow: hidden; }
.card__art svg { width: 118px; height: 118px; transition: transform .4s ease; filter: drop-shadow(0 10px 12px rgba(42,26,18,.14)); }
.card:hover .card__art svg { transform: scale(1.06); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.card__bulto { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.card__min { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: #8A4A12; background: #FFF1D8; border: 1px solid #E8C98A; padding: 3px 8px; border-radius: 999px; }
.card__tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(255,255,255,.85); color: var(--ink); font-weight: 600; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 18px; flex: 1; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.card p { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.size { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 6px 10px; font-weight: 500; font-size: .82rem; transition: .12s; flex: 1 1 auto; text-align: center; }
.size:hover { border-color: var(--ink); }
.size--wide { flex-basis: 100%; }
.size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.price { font-size: .85rem; font-weight: 500; color: var(--muted); padding-top: 2px; }
.price strong { font-size: 1.3rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.buy { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); height: 42px; }
.qty button { width: 34px; height: 100%; border: 0; background: transparent; font-size: 1.05rem; color: var(--ink); }
.qty button:hover { background: var(--soft); }
.qty output { min-width: 24px; text-align: center; font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }
.buy .btn { flex: 1; min-height: 42px; padding: 8px 12px; background: var(--ink); border-color: var(--ink); color: #fff; }
.buy .btn:hover { background: var(--brown); border-color: var(--brown); }
.empty { text-align: center; color: var(--muted); padding: 48px 10px; }

/* ---------- Combos ---------- */
.combos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.combo { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.combo__tag { align-self: flex-start; background: var(--accent-soft); color: var(--brown); font-weight: 600; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.combo h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.combo p { color: var(--muted); font-size: .92rem; }
.combo ul { display: grid; gap: 6px; font-size: .92rem; padding-top: 4px; }
.combo li { display: flex; gap: 8px; }
.combo li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--accent); }
.combo__price { font-weight: 600; font-size: 1.4rem; margin-top: auto; padding-top: 8px; }
.combo__media { height: 170px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.combo__media img { width: 100%; height: 100%; object-fit: cover; }
.combo .btn { width: 100%; background: var(--ink); border-color: var(--ink); color: #fff; }

.soon {
  grid-column: 1 / -1; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 48px;
}
.soon__tag { display: inline-block; margin-bottom: 14px; background: var(--olive-soft); color: var(--olive); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.soon h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.soon p { margin: 10px 0 24px; max-width: 34em; color: var(--muted); }
.soon img { width: 170px; height: auto; }

/* ---------- Mayoristas ---------- */
.may { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.may__intro h2 { margin: 14px 0 16px; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; color: #fff; }
.may__intro > p { color: #BFAF9F; max-width: 30em; }
.checks { display: grid; gap: 10px; margin: 26px 0 32px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: #EADFD3; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(242,180,114,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23F2B472' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.may__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.bags { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bag { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 24px 22px; transition: border-color .2s, background .2s; }
.bag:hover { border-color: rgba(242,180,114,.5); background: rgba(255,255,255,.06); }
.bag__kg { font-family: var(--serif); font-weight: 400; font-size: 3rem; line-height: 1; color: #fff; letter-spacing: -.03em; }
.bag__kg small { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: #BFAF9F; margin-left: 4px; letter-spacing: 0; }
.bag__type { display: inline-block; margin: 16px 0 6px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #F2B472; }
.bag h3 { font-weight: 600; font-size: 1rem; color: #fff; }
.bag p { font-size: .86rem; color: #BFAF9F; margin-top: 4px; }

/* ---------- Envíos ---------- */
.ship { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ship__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; display: flex; flex-direction: column; gap: 6px; }
.ship__item h3 { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ship__big { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
.ship__item p:last-child { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.ship__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brown); margin-bottom: 14px; }
.ship__ico svg { width: 24px; height: 24px; }
.ship__item--hl { background: var(--accent-soft); border-color: #F2D2AE; }
.ship__item--hl .ship__ico { background: #fff; color: var(--accent); }
.ship__item--hl .ship__big { color: var(--brown); }

.pickup { display: grid; grid-template-columns: 1fr 1.2fr; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.pickup__info { padding: 40px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: center; }
.pickup__info h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; margin-top: 4px; }
.pickup__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pickup__map { min-height: 340px; background: var(--soft); }
.pickup__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: saturate(.75); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 600; font-size: 1.02rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.contact__intro h2 { margin: 12px 0 14px; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; }
.contact__list { display: grid; gap: 12px; }
.contact__card { display: flex; align-items: center; gap: 18px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; transition: border-color .15s, box-shadow .15s; }
.contact__card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.contact__card svg { flex: none; width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: var(--soft); color: var(--brown); }
.contact__card--wa svg { background: #E3F6EA; color: var(--wa); }
.contact__card span { flex: 1; min-width: 0; }
.contact__card small { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); }
.contact__card b { font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact__card i { font-style: normal; color: var(--muted); transition: transform .15s; }
.contact__card:hover i { transform: translateX(4px); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #BFAF9F; padding: 64px 0 28px; font-size: .9rem; }
.footer__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 26em; }
.footer__brand img { width: 64px; height: 64px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav b { color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer__nav a { text-decoration: none; } .footer__nav a:hover { color: #fff; }
.footer__legal { padding-top: 24px; font-size: .82rem; }

/* ---------- Botón WhatsApp flotante ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 8px 24px -6px rgba(31,175,90,.55); transition: transform .15s; }
.fab:hover { transform: translateY(-2px); }

/* ---------- Carrito ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(36,22,16,.45); backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--bg); box-shadow: -20px 0 50px -20px rgba(36,22,16,.3);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.x { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; border-radius: 10px; }
.x:hover { border-color: var(--ink); }
.drawer__body { flex: 1; overflow: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.cart-empty { text-align: center; padding: 40px 0 10px; color: var(--muted); }
.cart-empty__ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--soft); color: var(--brown); display: grid; place-items: center; }
.cart-empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.cart-list { display: grid; gap: 8px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cart-item__main { min-width: 0; }
.cart-item b { font-weight: 600; line-height: 1.25; }
.cart-item small { display: block; color: var(--muted); font-size: .8rem; }
.cart-item__price { display: block; margin-top: 4px; font-weight: 600; font-size: .9rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-item__price small { display: inline; font-size: .75rem; font-weight: 500; }
.cart-item__ctrl { display: flex; align-items: center; gap: 4px; }
.cart-item__ctrl span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-item__ctrl button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font-size: 1rem; line-height: 1; }
.cart-item__ctrl button:hover { border-color: var(--ink); background: var(--soft); }
.cart-item__ctrl button[data-ci-del] { border-color: transparent; color: var(--muted); font-size: 1.15rem; }
.cart-item__ctrl button[data-ci-del]:hover { color: #B8321B; background: #FFE3DA; }
.cart-item .qty { height: 36px; }
.cart-item .qty button { width: 30px; }
.cart-item__rm { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; font-size: .78rem; padding: 0; grid-column: 1 / -1; justify-self: start; }
.cart-item__rm:hover { color: var(--ink); }
.order { display: grid; gap: 14px; padding-top: 4px; }
.order__title { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.order label { display: grid; gap: 6px; font-weight: 500; font-size: .85rem; }
.order input, .order select, .order textarea { font: inherit; font-size: .95rem; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); width: 100%; }
.order textarea { resize: vertical; }
.order input:focus, .order select:focus, .order textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.drawer__foot { padding: 18px 24px 20px; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; text-align: center; }
.drawer__sum { display: flex; justify-content: space-between; font-size: .95rem; color: var(--muted); }
.drawer__sum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer__sum--est { font-size: 1.1rem; color: var(--ink); }
.drawer__hint { font-size: .8rem; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 96px; z-index: 120; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; font-weight: 500; font-size: .92rem; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); transition: .25s; max-width: calc(100% - 40px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (min-width: 1025px) {
  .toolbar { position: sticky; top: calc(var(--head-h) + 12px); z-index: 20; }
}
@media (max-width: 1024px) {
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; display: none;
    box-shadow: 0 20px 30px -20px rgba(42,26,18,.2);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:hover { background: none; }
  .header__actions { margin-left: auto; }
  .hero { padding: 48px 0 72px; }
  .hero__in { grid-template-columns: 1fr; gap: 56px; }
  .hero__art { max-width: 520px; }
  .may, .contact, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .ship { grid-template-columns: 1fr; }
  .pickup { grid-template-columns: 1fr; }
  .search { margin-left: 0; flex: 1 1 100%; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .wrap { width: min(1200px, 100% - 32px); }
  .btn__label { display: none; }
  .brand__txt small { display: none; }
  .hero h1 { font-size: 2.35rem; }
  .hero__cta .btn { width: 100%; }
  .trust { grid-template-columns: 1fr; gap: 14px; }
  .hero__art { gap: 10px; }
  .tile:nth-child(2), .tile:nth-child(4) { transform: translateY(20px); }
  .hero__note { left: -6px; bottom: -30px; font-size: .78rem; padding: 10px 12px; }
  .mode { width: 100%; } .mode__btn { flex: 1; text-align: center; }
  .chips { flex-wrap: wrap; gap: 4px; }
  .chips .chip { padding: 6px 10px; font-size: .8rem; }
  .bags { grid-template-columns: 1fr 1fr; }
  .bag { padding: 18px 16px; } .bag__kg { font-size: 2.4rem; }
  .soon { grid-template-columns: 1fr; padding: 28px 24px; }
  .soon img { display: none; }
  .pickup__info { padding: 28px 24px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__art { height: 130px; } .card__art svg { width: 84px; height: 84px; }
  .card__body { padding: 12px; gap: 8px; } .card h3 { font-size: 1.08rem; } .card p { display: none; }
  .sizes { gap: 4px; } .size { padding: 6px 0; font-size: .7rem; flex: 1 1 0; min-width: 0; white-space: nowrap; } .size--wide { flex-basis: 100%; }
  .buy { flex-direction: column; align-items: stretch; } .qty { justify-content: space-between; } .qty button { flex: 0 0 38px; }
  .card__tag { font-size: .58rem; top: 8px; left: 8px; }
  .footer__in { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; }
  .sec-head--combos { padding-right: 0; margin-bottom: 30px; }
  .combos-mascots { position: static; justify-content: center; margin-top: 16px; }
  .combos-mascots__squirrel { width: 118px; }
  .combos-mascots__peanut { width: 74px; margin-left: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   NUEVAS FUNCIONALIDADES SOLICITADAS (Manteniendo estética original)
   ========================================================= */

/* 5. Fotografía principal de inicio */
.hero__main-art { position: relative; max-width: 460px; width: 100%; margin: 0 auto; }
.hero__main-img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 62%;
  border-radius: 20px; box-shadow: 0 14px 28px rgba(42,26,18,.14); display: block;
}

/* 7. Precios de oferta y etiquetas de descuento */
.card__tag--sale, .sale-tag {
  background: #D6452A; color: #fff; font-weight: 700; font-size: .68rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
}
.bulto-tag {
  background: var(--soft); color: var(--ink); font-weight: 600; font-size: .68rem;
  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line);
}
.card__tags-wrap {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; pointer-events: none;
}
/* Las etiquetas dentro del contenedor fluyen en fila (antes se superponían) */
.card__tags-wrap .card__tag,
.modal__tags .card__tag { position: static; top: auto; left: auto; }
.card__tags-wrap .sale-tag,
.card__tags-wrap .bulto-tag { line-height: 1.2; }
.price__old {
  text-decoration: line-through; color: var(--muted); font-size: .88rem; margin-right: 6px;
}
.price strong.price--sale,
.combo__price strong.price--sale,
.modal__price-wrap strong.price--sale { color: #D6452A; }

/* 6. Carrusel de fotografías en la tarjeta */
.card__art { cursor: pointer; }
.card-carousel { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.card-carousel__track { display: flex; width: 100%; height: 100%; transition: transform .3s ease; }
.card-carousel__slide { flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
.card-carousel__slide img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; display: block; }
.card-carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85);
  color: var(--ink); font-size: 1rem; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.card:hover .card-carousel__nav, .card-carousel:focus-within .card-carousel__nav { opacity: 1; }
.card-carousel__nav--prev { left: 8px; }
.card-carousel__nav--next { right: 8px; }
.card-carousel__dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 4px; pointer-events: auto;
}
.card-carousel__dot {
  position: relative; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6);
  transition: all .2s; cursor: pointer;
}
.card-carousel__dot::after { content: ""; position: absolute; inset: -7px; }
.card-carousel__dot.is-active { width: 14px; border-radius: 999px; background: #fff; }
@media (hover: none) {
  .card-carousel__nav { opacity: 1; background: rgba(255,255,255,.9); }
}

/* 1. Modal / Menú de producto al hacer clic en fotografía (Estilo FS) */
.modal {
  position: fixed; inset: 0; z-index: 110; display: none; place-items: center; padding: 20px;
}
.modal.is-open { display: grid; }
.modal__overlay {
  position: absolute; inset: 0; background: rgba(36,22,16,.5); backdrop-filter: blur(2px);
}
.modal__card {
  position: relative; z-index: 2; width: min(840px, 100%); max-height: calc(100vh - 40px);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 20px 40px rgba(36,22,16,.25); overflow-y: auto; padding: 28px;
}
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  background: rgba(255,255,255,.92);
}
.modal__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
.modal__media {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); aspect-ratio: 1 / 1; display: grid; place-items: center;
}
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
/* Foto única: se muestra completa, sin recortes y con la interfaz adaptada */
.modal__media--single {
  aspect-ratio: auto; max-height: min(72vh, 640px); padding: 8px;
  background: #fff;
}
.modal__media--single .modal__img-single {
  width: 100%; height: auto; max-height: min(72vh, 632px);
  object-fit: contain; object-position: center; display: block; border-radius: 10px;
}
/* Carrusel dentro del modal: marco fijo pero foto completa */
.modal__media .card-carousel__slide img { object-fit: contain; object-position: center; background: #fff; }
.modal__media-track { display: flex; width: 100%; height: 100%; transition: transform .3s ease; }
.modal__media-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.modal__info { display: flex; flex-direction: column; gap: 14px; }
.modal__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.modal__title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; color: var(--ink); }
.modal__desc { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.modal__section { display: grid; gap: 6px; }
.modal__label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.modal__min { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .78rem; font-weight: 700; color: #8A4A12; background: #FFF1D8; border: 1px solid #E8C98A; padding: 4px 10px; border-radius: 999px; }
.modal__price-wrap { font-size: .95rem; font-weight: 500; color: var(--muted); }
.modal__price-wrap strong { font-size: 1.7rem; font-weight: 600; color: var(--ink); }
.modal__price-wrap strong.price--sale { color: #D6452A; }
.modal__buy { display: flex; gap: 10px; margin-top: 6px; }
.modal__buy .btn { flex: 1; }

@media (max-width: 640px) {
  .footer { padding-bottom: 96px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__card { width: 100%; max-height: 85vh; border-radius: 20px 20px 0 0; padding: 20px; }
  .modal__grid { grid-template-columns: 1fr; gap: 18px; }
  .modal__media { aspect-ratio: 4 / 3; }
  .modal__media--single { aspect-ratio: auto; max-height: 46vh; }
  .modal__media--single .modal__img-single { max-height: calc(46vh - 16px); }
  .hero__main-art { max-width: 100%; }
}
