:root {
  /* ---- Marca ORIGEN MARKET ---- */
  --yellow: #FFD100;
  --yellow-soft: #FFF7CC;
  --ink: #151515;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --surface: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f7f7f4;
  --line: #eceae6;
  --line-strong: #d9d9d3;
  --checkout-glow: rgba(255, 209, 0, 0.55);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(21, 21, 21, 0.04), 0 4px 12px rgba(21, 21, 21, 0.05);
  --shadow: 0 8px 24px rgba(21, 21, 21, 0.07);
  --shadow-lg: 0 18px 44px rgba(21, 21, 21, 0.1);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 500; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item .icon { width: 15px; height: 15px; color: var(--yellow); }
.topbar__link { color: var(--yellow); }
.topbar__link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__img { height: 46px; width: auto; border-radius: var(--radius-sm); }
.logo__img--footer { height: 56px; margin-bottom: 6px; }
.logo__word { display: flex; flex-direction: column; line-height: 1.1; }
.logo__word b { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; }
.logo__word span { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }

.menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.menu-btn:hover { border-color: var(--ink); background: var(--bg-alt); }
.menu-btn:active { transform: scale(0.97); }
.menu-btn .icon { width: 21px; height: 21px; }

.search { flex: 1; min-width: 240px; max-width: 520px; }
.search__form { display: flex; align-items: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 4px 0 14px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.search__form:focus-within { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.25); }
.search__icon { width: 18px; height: 18px; color: var(--ink-faint); flex-shrink: 0; }
.search__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 12px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.search__input::placeholder { color: var(--ink-faint); }
.search__btn {
  border: none;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  margin: 3px;
  transition: background 0.2s, transform 0.1s;
}
.search__btn:hover { background: #e9bf00; }
.search__btn:active { transform: scale(0.98); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.header__phone .icon { width: 18px; height: 18px; color: var(--ink); }
.header__phone:hover { color: var(--ink); background: var(--bg-alt); }
.header__phone--btn {
  background: none; border: none; cursor: pointer; font: inherit;
  -webkit-appearance: none; appearance: none; line-height: 1;
}
.cart-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.cart-btn:hover { border-color: var(--ink); background: var(--bg-alt); }
.cart-btn:active { transform: scale(0.97); }
.cart-btn .icon { width: 21px; height: 21px; }
.cart-btn__count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--surface);
  border-radius: 10px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-btn__count.bump { animation: bump 0.3s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ---------- Nav ---------- */
.nav { border-top: 1px solid var(--line); background: var(--surface); }
.nav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav__link {
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 14px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__link:hover { color: var(--ink); }
.nav__link--active, .nav__link[data-category]:hover { color: var(--ink); border-bottom-color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(90deg, var(--yellow) 0%, var(--yellow) 22%, rgba(255, 209, 0, 0.55) 42%, rgba(255, 209, 0, 0.16) 62%, rgba(255, 209, 0, 0.04) 80%),
    url('../img/hero-mural.jpg') center 38% / cover no-repeat;
  color: var(--ink);
  padding: 72px 0 84px;
  min-height: 540px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero__inner { display: block; width: 100%; }
.hero__content { max-width: 560px; }
.hero__badge {
  display: inline-flex; align-items: center;
  background: var(--ink);
  color: var(--yellow);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__title { font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.highlight { position: relative; white-space: nowrap; }
.highlight::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 6px;
  height: 12px;
  background: var(--ink);
  border-radius: 3px;
  opacity: 0.92;
  z-index: -1;
}
.hero__subtitle { margin-top: 22px; font-size: 17px; line-height: 1.7; max-width: 460px; color: rgba(21, 21, 21, 0.72); font-weight: 500; }
.hero__cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 30px;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--dark { background: var(--ink); color: var(--surface); }
.btn--dark:hover { box-shadow: 0 6px 18px rgba(21, 21, 21, 0.22); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--surface); }
.btn--block { width: 100%; }

/* Animación "Ir a pagar": pulso de atención, brillo al pasar el cursor y "pop" al confirmar */
#checkoutBtn {
  position: relative;
  overflow: hidden;
  will-change: transform;
}
#checkoutBtn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-130%) skewX(-15deg);
  pointer-events: none;
}
#checkoutBtn:hover::after { animation: checkoutShine 0.8s ease; }
#checkoutBtn.checkout-pulse { animation: checkoutPulse 2s ease-in-out infinite; }
#checkoutBtn.checkout-pop { animation: checkoutPop 0.4s ease; }

@keyframes checkoutShine {
  0% { transform: translateX(-130%) skewX(-15deg); }
  100% { transform: translateX(280%) skewX(-15deg); }
}
@keyframes checkoutPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--checkout-glow); }
  50% { box-shadow: 0 0 14px 5px var(--checkout-glow); }
}
@keyframes checkoutPop {
  0% { transform: scale(1); }
  35% { transform: scale(0.94); }
  65% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.hero__points { margin-top: 28px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hero__points li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(21, 21, 21, 0.8); }
.hero__points .icon { width: 16px; height: 16px; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section__title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.section__link { font-size: 14px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.section__link:hover { color: var(--ink); border-color: var(--ink); }
.section__count { font-size: 14px; font-weight: 500; color: var(--ink-faint); }

/* ---------- Categorías ---------- */
.categories { background: var(--surface); }
.categories__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 12px; }
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease;
}
.cat-tile:hover { transform: translateY(-4px); }
.cat-tile__art {
  position: relative;
  width: 100%;
  max-width: 152px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.cat-tile__deco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cat-tile__img {
  position: absolute;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-tile__img--1 { width: 58%; height: 58%; left: 56%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }
.cat-tile__img--2 { width: 46%; height: 46%; left: 24%; top: 42%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 2; }
.cat-tile__img--3 { width: 34%; height: 34%; left: 78%; top: 74%; transform: translate(-50%, -50%) rotate(10deg); z-index: 4; }
.cat-tile:hover .cat-tile__img--1 { transform: translate(-50%, -50%) scale(1.06); }
.cat-tile:hover .cat-tile__img--2 { transform: translate(-50%, -50%) rotate(-8deg) scale(1.06); }
.cat-tile:hover .cat-tile__img--3 { transform: translate(-50%, -50%) rotate(10deg) scale(1.06); }
.cat-tile__name {
  color: var(--ink);
  font-size: 14.5px; font-weight: 700;
  line-height: 1.25;
}

/* ---------- Promos destacadas (carrusel vertical) ---------- */
.promo__wrap { display: flex; align-items: center; gap: 12px; }
.promo__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 14px;
  flex: 1;
  scrollbar-width: none;
}
.promo__track::-webkit-scrollbar { display: none; }
.promo__nav {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}
.promo__nav:hover { background: var(--yellow-soft); transform: translateY(-2px); }
.promo-card {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  min-height: 400px;
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
  color: var(--surface);
}
.promo-card--pink { background: linear-gradient(155deg, #e0157a 0%, #a30f5c 100%); }
.promo-card--teal { background: linear-gradient(155deg, #0f9e8e 0%, #0b6e63 100%); }
.promo-card--dark { background: linear-gradient(155deg, #232323 0%, var(--ink) 100%); }
.promo-card__deco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.promo-card__star { position: absolute; width: 34px; height: 34px; z-index: 1; }
.promo-card__star--1 { top: 14px; right: 44px; transform: rotate(-8deg); }
.promo-card__star--2 { top: 54px; right: 14px; width: 20px; height: 20px; transform: rotate(14deg); }
.promo-card__badge {
  position: relative; z-index: 2;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 100px;
}
.promo-card__discount { position: relative; z-index: 2; margin-top: 16px; line-height: 1; }
.promo-card__num { font-size: 56px; font-weight: 800; letter-spacing: -0.02em; }
.promo-card__num small { font-size: 26px; font-weight: 700; }
.promo-card__label { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; }
.promo-card__art { position: relative; flex: 1; min-height: 150px; margin: 10px -4px 6px; z-index: 1; }
.promo-card__img { position: absolute; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.25)); }
.promo-card__img--1 { width: 56%; height: 68%; left: 58%; top: 46%; transform: translate(-50%, -50%); z-index: 3; }
.promo-card__img--2 { width: 42%; height: 52%; left: 20%; top: 36%; transform: translate(-50%, -50%) rotate(-6deg); z-index: 2; }
.promo-card__img--3 { width: 34%; height: 42%; left: 78%; top: 82%; transform: translate(-50%, -50%) rotate(9deg); z-index: 4; }
.promo-card__foot { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.promo-card__cat { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.promo-card__cta {
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px; font-weight: 700;
  padding: 12px 18px;
  border-radius: 100px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.promo-card__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }

/* ---------- Tarjetas de producto ---------- */
.offers { background: var(--bg-alt); }
.offers__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.products { background: var(--surface); }
.subs-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.subs-bar[hidden] { display: none; } /* sin esto, el display:flex de arriba le ganaba al atributo hidden y la fila de subcategorías nunca se ocultaba */
.sub-chip {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sub-chip:hover { border-color: var(--yellow); color: var(--ink); }
.sub-chip--on { border-color: var(--yellow); background: var(--yellow); color: #151515; }
.products__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.products__empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-faint); font-size: 15px; }

.p-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.offers__grid .p-card, .products__grid .p-card { animation: none; }
.offers__grid .p-card, .products__grid .p-card { animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

.p-card__img {
  position: relative;
  aspect-ratio: 1 / 0.92;
  background: var(--bg-alt);
  overflow: hidden;
}
.p-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.p-card:hover .p-card__img img { transform: scale(1.06); }
.p-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: var(--yellow);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  z-index: 1;
}
.p-card__tag--offer { background: var(--ink); color: var(--surface); }
.p-card__disc {
  position: absolute; top: 12px; right: 12px;
  background: #E23D3D; color: #fff;
  font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.p-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card__cat { font-size: 11.5px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.09em; }
.p-card__name { font-size: 15px; font-weight: 700; line-height: 1.35; min-height: 41px; }
.p-card__price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.p-card__price { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.p-card__price--old { font-size: 13px; font-weight: 500; color: var(--ink-faint); text-decoration: line-through; }
.p-card__pkg { font-size: 12px; color: var(--ink-faint); font-weight: 500; }
.p-card__btn {
  margin-top: 8px;
  background: var(--ink); color: var(--surface);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.p-card__btn:hover { background: var(--ink); box-shadow: 0 4px 12px rgba(21, 21, 21, 0.18); }
.p-card__btn:active { transform: scale(0.98); }
.p-card__btn--added { background: var(--yellow); color: var(--ink); font-weight: 700; }

/* ---------- Servicios ---------- */
.services { background: var(--bg-alt); border-block: 1px solid var(--line); }
.services__title { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 48px; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.service { text-align: center; padding: 8px 10px; }
.service__icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.service__icon svg { width: 26px; height: 26px; color: var(--ink); }
.service h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.service p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); max-width: 260px; margin: 0 auto; }

/* ---------- Contacto ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .contact__inner > .contact__info:only-child { grid-column: 1 / -1; }
.contact__text { margin: 16px 0 28px; color: var(--ink-soft); max-width: 420px; }
.contact__address, .contact__hours { font-style: normal; margin-bottom: 24px; line-height: 1.8; color: var(--ink-soft); }
.contact__address strong, .contact__hours strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.contact__row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.contact__link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.contact__link .icon { width: 20px; height: 20px; }
.contact__link:hover { text-decoration: underline; }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.contact__form h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.contact__form label { font-size: 13px; font-weight: 600; margin-top: 10px; }
.contact__form input, .contact__form textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.2); }
.contact__form .btn { margin-top: 18px; }
.contact__form-msg { font-size: 14px; font-weight: 600; color: #177a3c; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--surface); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.62); max-width: 260px; }
.footer__col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; }
.footer__col a { display: block; color: rgba(255, 255, 255, 0.75); font-size: 14.5px; margin-bottom: 12px; transition: color 0.2s; }
.footer__col a:hover { color: var(--yellow); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer__social a .icon { width: 19px; height: 19px; }
.footer__social a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; font-size: 13px; color: rgba(255, 255, 255, 0.45); }

/* ---------- Carrito ---------- */
.overlay { position: fixed; inset: 0; background: rgba(21, 21, 21, 0.4); z-index: 90; opacity: 0; transition: opacity 0.25s; }
.overlay.show { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0;
  height: 100vh; width: min(420px, 100%);
  background: var(--surface);
  z-index: 100;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 40px rgba(21, 21, 21, 0.12);
}
.cart.show { transform: translateX(0); }
.cart__header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart__header h3 { font-size: 19px; font-weight: 800; }
.cart__close { border: none; background: var(--bg-alt); width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.cart__close svg { width: 18px; height: 18px; }
.cart__close:hover { background: var(--line); }
.cart__items { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.cart__empty { text-align: center; color: var(--ink-faint); margin-top: 56px; font-size: 15px; line-height: 1.7; }
.cart__empty svg { width: 44px; height: 44px; color: var(--line-strong); display: block; margin: 0 auto 16px; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item__img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow: hidden;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; }
.cart-item__name { font-size: 14px; font-weight: 700; }
.cart-item__price { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.cart-item__qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 14px; font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.qty-btn:hover { border-color: var(--ink); background: var(--bg-alt); }
.qty-btn--remove { color: var(--ink-faint); }
.qty-btn--remove:hover { color: #b3261e; border-color: #b3261e; background: transparent; }
.cart-item__subtotal { font-size: 14px; font-weight: 800; white-space: nowrap; }
.cart__footer { border-top: 1px solid var(--line); padding: 20px 24px 24px; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart__total span { font-weight: 500; color: var(--ink-faint); }
.cart__total strong { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--surface);
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14.5px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 120;
  box-shadow: var(--shadow-lg);
  max-width: 92%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Menú lateral de categorías ---------- */
.side-menu {
  position: fixed; top: 0; left: 0;
  height: 100vh; width: min(360px, 100%);
  background: var(--surface);
  z-index: 110;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 12px 0 40px rgba(21, 21, 21, 0.12);
}
.side-menu.show { transform: translateX(0); }
.side-menu__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.side-menu__header h3 { font-size: 19px; font-weight: 800; }
.side-menu__nav { flex: 1; overflow-y: auto; padding: 12px 16px 28px; }
.menu-cat { border-bottom: 1px solid var(--line); }
.menu-cat:last-child { border-bottom: none; }
.menu-cat__btn {
  width: 100%;
  border: none; background: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 8px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.menu-cat__btn:hover { background: var(--bg-alt); }
.menu-cat__btn .icon { width: 16px; height: 16px; color: var(--ink-faint); transition: transform 0.2s; }
.menu-cat.open .menu-cat__btn .icon { transform: rotate(90deg); }
.menu-cat__items { display: none; padding: 2px 0 12px; }
.menu-cat.open .menu-cat__items { display: block; }
.menu-sub__grp { border-top: 1px dashed var(--line); }
.menu-sub__grp:first-child { border-top: none; }
.menu-sub__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  border: none; background: none; text-align: left;
  padding: 11px 8px 11px 20px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  border-left: 3px solid transparent;
  transition: color 0.2s, border-left 0.2s, background 0.2s;
}
.menu-sub__btn:hover { color: var(--ink); background: var(--bg-alt); }
.menu-sub__btn .icon { width: 14px; height: 14px; color: var(--ink-faint); transition: transform 0.2s; }
.menu-sub.open .menu-sub__btn .icon { transform: rotate(90deg); }
.menu-sub__items { display: none; padding: 0 0 10px; }
.menu-sub.open .menu-sub__items { display: block; }
.menu-sub {
  display: block; width: 100%;
  border: none; background: none; text-align: left;
  padding: 11px 8px 11px 20px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.menu-sub__items .menu-sub { padding-left: 34px; }
.menu-sub__items .menu-sub__btn { padding-left: 34px; }
.menu-sub:hover { color: var(--ink); border-color: var(--yellow); background: var(--bg-alt); }
.menu-sub--active { color: var(--ink); font-weight: 700; border-color: var(--yellow); background: var(--bg-alt); }
.menu-all {
  display: block; width: 100%;
  border: none; background: none; text-align: left;
  padding: 12px 8px;
  font-size: 14px; font-weight: 700; color: var(--yellow);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.menu-all:hover { background: rgba(255, 209, 0, 0.12); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { min-height: 460px; }
  .categories__grid { grid-template-columns: repeat(4, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .header__phone span { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 52px 0 64px; }
  .topbar__item--hide-sm { display: none; }
  .header__inner { flex-wrap: wrap; gap: 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo__img { height: 40px; }
  .categories__grid { grid-template-columns: repeat(3, 1fr); gap: 22px 8px; }
  .cat-tile__name { font-size: 12.5px; }
  .hero {
    min-height: 0;
    background:
      linear-gradient(180deg, var(--yellow) 0%, var(--yellow) 45%, rgba(255, 209, 0, 0.5) 75%, rgba(255, 209, 0, 0.18) 100%),
      url('../img/hero-mural.jpg') center 38% / cover no-repeat;
  }
  .contact__form { padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .offers__grid, .products__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .p-card__img { aspect-ratio: 1 / 0.9; }
  .p-card__body { padding: 8px 8px 10px; gap: 4px; }
  .p-card__cat { font-size: 9px; letter-spacing: 0.05em; }
  .p-card__name { font-size: 11.5px; line-height: 1.25; min-height: 30px; }
  .p-card__price { font-size: 14.5px; }
  .p-card__price--old { font-size: 10px; }
  .p-card__pkg { font-size: 9px; }
  .p-card__btn { font-size: 11.5px; padding: 8px; }
}

/* ---------- Checkout ---------- */
.checkout { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 20px; }
.checkout[hidden] { display: none; }
.checkout__backdrop { position: absolute; inset: 0; background: rgba(21, 21, 21, 0.5); opacity: 0; transition: opacity 0.25s; }
.checkout.show .checkout__backdrop { opacity: 1; }
.checkout__panel {
  position: relative; width: min(560px, 100%); max-height: 92vh; overflow: hidden;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateY(14px); opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s;
}
.checkout.show .checkout__panel { transform: translateY(0); opacity: 1; }
.checkout__head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.checkout__head-top { display: flex; align-items: center; justify-content: space-between; }
.checkout__head h3 { font-size: 19px; font-weight: 800; }
.checkout__steps { list-style: none; display: flex; gap: 8px; margin-top: 14px; }
.checkout__step { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-faint); border-top: 3px solid var(--line); padding-top: 8px; }
.checkout__step span { width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink-faint); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.checkout__step.is-on { color: var(--ink); border-top-color: var(--yellow); }
.checkout__step.is-on span { background: var(--yellow); color: var(--ink); }
.checkout__step.is-done { color: var(--ink-soft); border-top-color: var(--ink); }
.checkout__step.is-done span { background: var(--ink); color: var(--surface); }
.checkout__body { padding: 20px 22px 22px; overflow-y: auto; }
.checkout__pane { display: flex; flex-direction: column; gap: 14px; }
.checkout__pane[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.field input, .field textarea {
  font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.checkout__opts { display: flex; flex-direction: column; gap: 10px; }
.checkout__opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.checkout__opt:hover { border-color: var(--ink); }
.checkout__opt:has(input:checked) { border-color: var(--ink); background: var(--bg-alt); box-shadow: 0 0 0 1px var(--ink) inset; }
.checkout__opt input { margin-top: 4px; accent-color: var(--ink); }
.checkout__opt span { display: flex; flex-direction: column; gap: 2px; }
.checkout__opt b { font-size: 14.5px; font-weight: 800; }
.checkout__opt small { font-size: 12.5px; color: var(--ink-faint); }
.checkout__opts-t { font-size: 14px; font-weight: 800; margin: 14px 0 0; }
.checkout__breb { border: 1.5px solid var(--yellow); background: var(--yellow-soft); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.checkout__breb p { margin: 0; }
.checkout__breb-t { font-size: 13.5px; }
.checkout__breb-n { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.checkout__breb-llave { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 8px 8px 14px; }
.checkout__breb-llave span { font-size: 19px; font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.checkout__breb-copiar { font: inherit; font-size: 13px; font-weight: 800; border: 0; border-radius: var(--radius-sm); background: var(--ink); color: #fff; padding: 9px 14px; cursor: pointer; min-height: 40px; transition: transform 0.15s; }
.checkout__breb-copiar:active { transform: scale(0.97); }
.checkout__breb-copiar:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.checkout__summary .checkout__breb { margin-top: 10px; }
.checkout__summary { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--bg-alt); }
.checkout__line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 4px 0; }
.checkout__line--muted { color: var(--ink-faint); }
.checkout__line--total { border-top: 1px dashed var(--line-strong); margin-top: 6px; padding-top: 10px; font-size: 16px; font-weight: 800; }
.checkout__line-name { color: var(--ink-soft); }
.checkout__err { color: #b00020; font-size: 13px; font-weight: 600; background: #fdecef; border-radius: var(--radius-sm); padding: 10px 12px; }
.checkout__nav { display: flex; gap: 10px; }
.checkout__nav .btn { flex: 1; }
.checkout__pane--done { align-items: center; text-align: center; gap: 10px; }
.checkout__pane--done h3 { font-size: 21px; }
.checkout__pane--done p { color: var(--ink-soft); font-size: 14.5px; }
.checkout__done-ico { width: 62px; height: 62px; border-radius: 50%; background: var(--yellow-soft); color: #1a7f37; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.checkout__done-ico svg { width: 32px; height: 32px; }
.checkout__pane--done .checkout__summary { width: 100%; text-align: left; }
.checkout__pane--done .btn { width: 100%; margin-top: 4px; }
/* Respaldo por si no le llegó el WhatsApp automático (número mal escrito o bot desconectado). */
.checkout__done-link { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center; transition: color 0.15s; }
.checkout__done-link:hover { color: var(--ink); }
.checkout__done-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 640px) {
  .checkout { padding: 0; align-items: flex-end; }
  .checkout__panel { width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; }
}

/* ---------- Páginas de información (institucional / ayuda) ---------- */
.info-page__inner { max-width: 760px; }
.info-page__lead { font-size: 17px; color: var(--ink-soft); margin-top: 14px; }
.info-page__body { margin-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.info-page__body h3 { font-size: 15px; margin-bottom: 6px; }
.info-page__body p { color: var(--ink-soft); font-size: 15px; }
.info-page__body ul { padding-left: 20px; color: var(--ink-soft); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.info-page__note { background: var(--bg-alt); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; color: var(--ink-faint); }
.info-page__cta { margin-top: 8px; }

/* ---------- Acordeón institucional / ayuda (footer) ---------- */
.footer-accordion { background: var(--bg-alt); }
.footer-accordion__inner { max-width: 760px; }
.footer-accordion__list { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.footer-accordion__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.footer-accordion__item summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; font-size: 15.5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-accordion__item summary::-webkit-details-marker { display: none; }
.footer-accordion__item summary::marker { content: ""; }
.footer-accordion__chevron { width: 18px; height: 18px; color: var(--ink-faint); transition: transform 0.2s ease; flex-shrink: 0; }
.footer-accordion__item[open] .footer-accordion__chevron { transform: rotate(180deg); }
.footer-accordion__item[open] summary { border-bottom: 1px solid var(--line); }
.footer-accordion__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.footer-accordion__body h3 { font-size: 15px; margin-bottom: 6px; }
.footer-accordion__body p { color: var(--ink-soft); font-size: 14.5px; }
.footer-accordion__body ul { padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; display: flex; flex-direction: column; gap: 6px; }
/* ---------- Ficha de producto ---------- */
.p-card__img { cursor: zoom-in; }
.pdp { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pdp[hidden] { display: none; }
.pdp__backdrop { position: absolute; inset: 0; background: rgba(21, 21, 21, 0.55); opacity: 0; transition: opacity 0.25s; }
.pdp.show .pdp__backdrop { opacity: 1; }
.pdp__panel {
  position: relative; width: min(1040px, 100%); max-height: 92vh; overflow: hidden;
  background: var(--surface); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(21, 21, 21, 0.18);
  transform: translateY(14px) scale(0.985); opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.28s ease;
}
.pdp.show .pdp__panel { transform: none; opacity: 1; }
.pdp__close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); color: var(--ink);
  box-shadow: 0 2px 8px rgba(21, 21, 21, 0.08);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}
.pdp__close svg { width: 18px; height: 18px; }
@media (hover: hover) { .pdp__close:hover { background: var(--surface); transform: rotate(90deg); } }
.pdp__close:active { transform: scale(0.92); }
.pdp__scroll { overflow-y: auto; max-height: 92vh; overscroll-behavior: contain; }

/* Entrada escalonada (rápida y discreta) */
.pdp-reveal { animation: pdp-up 0.38s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }
@keyframes pdp-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Composición: imagen a la izquierda, compra a la derecha, detalles debajo */
.pdp__layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px 44px; padding: 36px; align-items: start; }
.pdp__gallery { position: sticky; top: 0; }
.pdp__media {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; padding: 18px; overflow: hidden; cursor: zoom-in;
  background: #faf9f6; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(21, 21, 21, 0.04), 0 12px 32px rgba(21, 21, 21, 0.05);
}
.pdp__media.is-loading { background: linear-gradient(100deg, #f3f2ee 30%, #fbfaf8 50%, #f3f2ee 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
.pdp__media img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  opacity: 0; transform: translateY(10px); transform-origin: var(--zx, 50%) var(--zy, 50%);
  transition: opacity 0.4s ease, transform 0.45s var(--ease-out);
}
.pdp__media img.is-ready { opacity: 1; transform: none; }
@media (hover: hover) { .pdp__media:not(.is-zoom):hover img.is-ready { transform: scale(1.04); } }
.pdp__media.is-zoom { cursor: zoom-out; }
.pdp__media.is-zoom img.is-ready { transform: scale(1.6); }
.pdp__disc {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #E23D3D; color: #fff; font-size: 13px; font-weight: 800;
  padding: 5px 12px; border-radius: 100px;
}
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pdp__thumbs::-webkit-scrollbar { display: none; }
.pdp__thumb {
  flex: 0 0 auto; width: 64px; height: 64px; padding: 4px; cursor: pointer;
  background: #faf9f6; border: 2px solid transparent; border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp__thumb.is-on { border-color: var(--yellow-deep); }
.pdp__thumb:active { transform: scale(0.95); }

/* Información */
.pdp__info { display: flex; flex-direction: column; padding-top: 6px; min-width: 0; }
.pdp__cat { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.pdp__name { margin-top: 8px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pdp__ref { margin-top: 6px; font-size: 12.5px; color: var(--ink-faint); }
.pdp__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; }
.pdp__price { font-size: clamp(30px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.pdp__old { font-size: 16px; color: var(--ink-faint); text-decoration: line-through; }
.pdp__save { font-size: 12.5px; font-weight: 700; background: var(--yellow-soft); padding: 4px 10px; border-radius: 999px; }
.pdp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pdp__chip { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }

/* Cantidad */
.pdp__qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pdp__qty-label { font-size: 14px; font-weight: 700; line-height: 1.25; }
.pdp__qty-label small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-faint); }
.pdp__qty { display: flex; align-items: center; gap: 2px; padding: 4px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; }
.pdp__qbtn {
  width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease, background 0.2s ease, opacity 0.2s ease;
}
.pdp__qbtn svg { width: 18px; height: 18px; }
.pdp__qbtn--minus { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 21, 21, 0.14); }
.pdp__qbtn--plus { background: var(--ink); color: #fff; }
@media (hover: hover) {
  .pdp__qbtn--minus:hover:not(:disabled) { background: #f1f0ec; }
  .pdp__qbtn--plus:hover:not(:disabled) { background: #2d2d2d; }
}
.pdp__qbtn:active:not(:disabled) { transform: scale(0.9); }
.pdp__qbtn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.pdp__qty input {
  width: 52px; border: none; background: transparent; padding: 0; text-align: center;
  font: inherit; font-size: 18px; font-weight: 800; color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.pdp__qty input::-webkit-outer-spin-button, .pdp__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__qty input:focus { outline: none; }
.pdp__qty:focus-within { border-color: var(--yellow-deep); box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.3); }
.pdp__qty input.pop, .pdp__sum-row b.pop { animation: pdp-pop 0.28s var(--ease-out); }
@keyframes pdp-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* Botón principal */
.pdp__add {
  margin-top: 14px; width: 100%; min-height: 56px; border: none; border-radius: 16px; cursor: pointer;
  background: var(--yellow); color: var(--ink); font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 20px rgba(255, 209, 0, 0.38);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.pdp__add svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (hover: hover) { .pdp__add:hover { background: var(--yellow-deep); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255, 209, 0, 0.5); } }
.pdp__add:active { transform: scale(0.98); box-shadow: 0 4px 10px rgba(255, 209, 0, 0.35); }
.pdp__add.is-incart { background: var(--ink); color: var(--yellow); box-shadow: 0 8px 20px rgba(21, 21, 21, 0.16); }
@media (hover: hover) { .pdp__add.is-incart:hover { background: #2d2d2d; box-shadow: 0 12px 26px rgba(21, 21, 21, 0.22); } }
.pdp__add.is-done, .pdp__add.is-done:hover { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 20px rgba(255, 209, 0, 0.38); }
.pdp__add.is-done svg { animation: pdp-pop 0.35s var(--ease-out); }
.pdp__add:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }

/* Resumen de compra */
.pdp__summary { margin-top: 16px; padding: 4px 18px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; }
.pdp__sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; color: var(--ink-soft); }
.pdp__sum-row + .pdp__sum-row { border-top: 1px dashed var(--line-strong); }
.pdp__sum-row b { color: var(--ink); font-weight: 700; transform-origin: right center; transition: color 0.2s ease; }
.pdp__sum-row--total { color: var(--ink); font-weight: 700; }
.pdp__sum-row--total b { font-size: 19px; font-weight: 800; }
.pdp__summary.is-empty .pdp__sum-row:not(:first-child) b { color: var(--ink-faint); }

/* Detalles del producto (acordeón) */
.pdp__acc { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(21, 21, 21, 0.03); }
.pdp__acc-head {
  width: 100%; min-height: 58px; padding: 0 20px; border: none; border-radius: 18px; background: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 17px; font-weight: 800; color: var(--ink);
}
.pdp__acc-head svg { width: 20px; height: 20px; color: var(--ink-faint); transition: transform 0.3s var(--ease-out); }
.pdp__acc.is-open .pdp__acc-head svg { transform: rotate(180deg); }
.pdp__acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease-out); }
.pdp__acc.is-open .pdp__acc-body { grid-template-rows: 1fr; }
.pdp__acc-inner { overflow: hidden; min-height: 0; }
.pdp__acc:not(.is-open) .pdp__acc-inner { visibility: hidden; transition: visibility 0s 0.3s; }
.pdp__facts { margin: 0; padding: 0 20px 6px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.pdp__fact { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.pdp__fact-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: var(--yellow-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.pdp__fact-ico svg { width: 18px; height: 18px; }
.pdp__fact dt { font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.pdp__fact dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }

.pdp :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Tablet */
@media (max-width: 860px) and (min-width: 641px) {
  .pdp__layout { gap: 24px 28px; padding: 28px; }
  .pdp__facts { grid-template-columns: 1fr; }
}
/* Móvil: hoja a pantalla completa, imagen compacta y compra visible sin mucho scroll */
@media (max-width: 640px) {
  .pdp { padding: 0; align-items: stretch; }
  .pdp__panel { max-height: 100vh; height: 100%; border-radius: 0; }
  .pdp__scroll { max-height: none; height: 100%; }
  .pdp__layout { grid-template-columns: 1fr; gap: 0; padding: 14px 16px 28px; }
  .pdp__gallery { position: static; }
  .pdp__media { aspect-ratio: 4 / 3; padding: 12px; border-radius: 18px; }
  .pdp__close { top: 22px; right: 22px; width: 40px; height: 40px; }
  .pdp__info { padding-top: 18px; }
  .pdp__name { font-size: 22px; }
  .pdp__acc { margin-top: 22px; }
  .pdp__facts { grid-template-columns: 1fr; padding: 0 16px 4px; }
  .pdp__acc-head { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp__media img { opacity: 1; transform: none; }
}

/* ==========================================================================
   Pulido visual (solo presentación): animaciones, microinteracciones y ajustes
   de espaciado. No toca la lógica; todo se puede quitar borrando este bloque.
   ========================================================================== */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --yellow-deep: #e9bf00; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* --- Tarjetas: entrada escalonada y hover --- */
/* "backwards" (no "both"): al terminar la entrada la tarjeta queda libre y el hover sí puede moverla. */
.offers__grid .p-card, .products__grid .p-card { animation: card-in 0.45s var(--ease-out) backwards; }
.p-card {
  border-radius: 14px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.4s ease;
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(21, 21, 21, 0.12); border-color: var(--line-strong); }
@media (hover: none) {
  .p-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .p-card:hover .p-card__img img { transform: none; }
}
.p-card__img img { transition: transform 0.5s var(--ease-out); }
.p-card:hover .p-card__img img { transform: scale(1.05); }
/* Aparición progresiva al hacer scroll (la agrega main.js solo a las tarjetas lejanas). */
.offers__grid .p-card.will-reveal, .products__grid .p-card.will-reveal { animation: none; opacity: 0; transform: translateY(14px); }

/* --- Botón Agregar --- */
.p-card__btn { transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
@media (hover: hover) {
  .p-card__btn:hover { background: var(--yellow); color: var(--ink); transform: translateY(-1px) scale(1.02); box-shadow: 0 6px 14px rgba(255, 209, 0, 0.45); }
  .p-card__btn--added:hover { background: var(--yellow-deep); }
}
.p-card__btn:active { transform: scale(0.97); box-shadow: none; }
.p-card__btn--added { animation: added-pop 0.35s var(--ease-out); }
@keyframes added-pop { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }
.p-card__btn:disabled, .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Buscador --- */
.search__form { transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.search__form:hover { border-color: var(--line-strong); }
.search__form:focus-within { border-color: var(--yellow-deep); background: var(--surface); box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.28), 0 8px 22px rgba(21, 21, 21, 0.08); }
.search__icon { transition: color 0.25s ease; }
.search__form:focus-within .search__icon { color: var(--ink); }
.search__btn { transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.search__btn:hover { box-shadow: 0 4px 10px rgba(255, 209, 0, 0.4); }

/* --- Categorías: indicador amarillo que crece desde el centro --- */
.nav__inner { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.nav__link, .nav__link:hover, .nav__link--active, .nav__link[data-category]:hover { border-bottom-color: transparent; }
.nav__link { position: relative; transition: color 0.25s ease; }
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--yellow);
  transform: scaleX(0); transition: transform 0.3s var(--ease-out);
}
.nav__link--active::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav__link:hover::after { transform: scaleX(0.55); }
  .nav__link--active:hover::after { transform: scaleX(1); }
}
.sub-chip { min-height: 36px; transition: border-color 0.2s ease, color 0.2s ease, background 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease; }
@media (hover: hover) { .sub-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(21, 21, 21, 0.08); } }
.sub-chip:active { transform: scale(0.96); }
.sub-chip--on { box-shadow: 0 4px 12px rgba(255, 209, 0, 0.4); }

/* --- Carrito: el icono reacciona cuando se agrega algo --- */
.cart-btn .icon, .menu-btn .icon { transition: transform 0.25s var(--ease-out); }
@media (hover: hover) { .cart-btn:hover .icon, .menu-btn:hover .icon { transform: scale(1.1); } }
.cart-btn:has(.cart-btn__count.bump) .icon { animation: cart-wiggle 0.5s var(--ease-out); }
@keyframes cart-wiggle {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.18) rotate(-8deg); }
  60% { transform: scale(1.08) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}
.cart-btn__count.bump { animation: bump 0.35s var(--ease-out); }
.qty-btn { transition: border-color 0.2s, background 0.2s, transform 0.12s ease; }
.qty-btn:active { transform: scale(0.92); }
.header__phone .icon { transition: transform 0.25s var(--ease-out); }
@media (hover: hover) { .header__phone:hover .icon { transform: scale(1.12); } }

/* --- Estado de carga: bloque con brillo suave mientras llega el catálogo --- */
.products__grid:empty::before, .offers__grid:empty::before {
  content: ''; grid-column: 1 / -1; height: 260px; border-radius: 14px;
  background: linear-gradient(100deg, #f3f2ee 30%, #fbfaf8 50%, #f3f2ee 70%);
  background-size: 300% 100%; animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Tarjetas de muestra (index.html) con la forma de un producto mientras llega el catálogo. */
.skel, .p-card__img.is-loading {
  background: linear-gradient(100deg, #f3f2ee 30%, #fbfaf8 50%, #f3f2ee 70%);
  background-size: 300% 100%; animation: shimmer 1.3s linear infinite;
}
.p-card--skel { pointer-events: none; }
.p-card--skel:hover { transform: none; box-shadow: none; border-color: var(--line); }
.skel--line { display: block; height: 12px; border-radius: 6px; width: 100%; }
.skel--short { width: 40%; }
.skel--mid { width: 70%; }
.skel--price { display: block; height: 20px; width: 45%; border-radius: 6px; margin-top: auto; }
.skel--btn { display: block; height: 38px; border-radius: 10px; }

/* Foto de cada tarjeta: brillo mientras descarga y aparece suave al llegar. */
.p-card__img img { transition: opacity 0.35s ease, transform 0.5s var(--ease-out); }
.p-card__img.is-loading img { opacity: 0; }

/* Botón "Confirmar pedido" mientras se envía: ruedita girando. */
.btn.is-loading { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.is-loading::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite;
}
.btn.is-loading:disabled { opacity: 0.85; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Jerarquía y espaciado --- */
.section__head { align-items: flex-end; }
.section__title { line-height: 1.15; }
.subs-bar { margin: 4px 0 22px; }

/* --- Móvil: botones más fáciles de tocar y sin zoom al enfocar el buscador --- */
@media (max-width: 640px) {
  .search__input { font-size: 16px; }
  .section { padding: 52px 0; }
  .section__head { margin-bottom: 22px; }
  .section__title { font-size: 24px; }
  .p-card { border-radius: 12px; }
  .p-card__btn { padding: 10px 8px; min-height: 38px; }
  .sub-chip { padding: 8px 14px; }
}
@media (pointer: coarse) {
  .qty-btn { width: 34px; height: 34px; }
  .cart__close { width: 40px; height: 40px; }
}

/* --- Accesibilidad: menos movimiento --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .offers__grid .p-card.will-reveal, .products__grid .p-card.will-reveal { opacity: 1; transform: none; }
}
.p-card__btn { line-height: 1.2; }
@media (max-width: 640px) { .p-card__btn { font-size: 10.5px; padding: 6px 4px; } }

/* Cabecera: se esconde al bajar y reaparece al subir */
.header { transition: transform 0.3s var(--ease-out); }
.header--hidden { transform: translateY(-100%); }

/* Botón "Añadir al carrito" en amarillo (el estado "Añadido" se invierte: negro con texto amarillo) */
.p-card__btn { background: var(--yellow); color: var(--ink); font-weight: 700; }
.p-card__btn--added { background: var(--ink); color: var(--yellow); }
@media (hover: hover) {
  .p-card__btn:hover { background: var(--yellow-deep); color: var(--ink); box-shadow: 0 6px 14px rgba(255, 209, 0, 0.5); }
  .p-card__btn--added:hover { background: #2b2b2b; color: var(--yellow); box-shadow: none; }
}

/* Carrito flotante (abajo a la derecha, aparece al hacer scroll) */
.cart-fab {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70;
  width: 58px; height: 58px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(21, 21, 21, 0.22);
  opacity: 0; transform: translateY(16px) scale(0.85); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out), box-shadow 0.2s ease;
}
.cart-fab[hidden] { display: none; }
.cart-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.cart-fab .icon { width: 25px; height: 25px; }
.cart-fab .cart-btn__count { top: -4px; right: -4px; }
.cart-fab:has(.cart-btn__count.bump) .icon { animation: cart-wiggle 0.5s var(--ease-out); }
.cart-fab.show:active { transform: scale(0.93); }
@media (hover: hover) { .cart-fab.show:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(21, 21, 21, 0.28); } }
/* Con productos en el carrito: un saltito leve cada pocos segundos y un halo que late, para que se note
   que ahí se paga. Usa "translate"/"rotate" (no "transform") para no chocar con aparecer/hover/tocar. */
.cart-fab.show.has-items { animation: fab-llamar 4.5s ease-in-out 1.2s infinite; }
.cart-fab.show.has-items::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: var(--yellow); pointer-events: none;
  animation: fab-halo 2.4s ease-out infinite;
}
@keyframes fab-llamar {
  0%, 18%, 100% { translate: 0 0; rotate: 0deg; }
  4% { translate: 0 -7px; rotate: -8deg; }
  8% { translate: 0 0; rotate: 6deg; }
  12% { translate: 0 -3px; rotate: -3deg; }
  15% { translate: 0 0; rotate: 0deg; }
}
@keyframes fab-halo { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.6); opacity: 0; } }
/* Etiqueta "Ir a pagar" que sale unos segundos al agregar un producto */
.cart-fab__label {
  position: absolute; right: calc(100% + 10px); top: 50%;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--ink); color: var(--yellow); font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(21, 21, 21, 0.22);
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
}
.cart-fab.say-pay .cart-fab__label { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) {
  .cart-fab.show.has-items, .cart-fab.show.has-items::before { animation: none; }
}

/* Móvil: alturas dinámicas (la barra del navegador ya no tapa el pie del carrito ni de la ficha) */
.cart__footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.pdp__add small { font-size: 12.5px; font-weight: 600; opacity: 0.75; }
@media (max-width: 640px) { .cart__footer { padding-top: 16px; padding-bottom: calc(30px + env(safe-area-inset-bottom)); } }
@supports (height: 100dvh) {
  .cart { height: 100dvh; }
  .checkout__panel { max-height: 92dvh; }
  @media (max-width: 640px) {
    .pdp { bottom: auto; height: 100dvh; }
    .pdp__panel { max-height: 100dvh; }
  }
}

/* Precio por gramo (solo Frutas y Verduras) */
.p-card__unit { margin-top: -3px; font-size: 12px; font-weight: 500; color: var(--ink-faint); }
.pdp__unit { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--ink-faint); }
@media (max-width: 640px) { .p-card__unit { font-size: 10px; margin-top: -2px; } }

/* Peso total junto al precio (Frutas y Verduras) */
.p-card__price-row { flex-wrap: wrap; }
.p-card__grams { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.pdp__grams { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 640px) { .p-card__grams { font-size: 10.5px; } }


/* Aviso de peso real y tabla de equivalencias (solo Frutas y Verduras) */
.fruit-info {
  margin: 4px 0 18px;
  padding: 16px 18px;
  background: var(--yellow-soft);
  border: 1px solid #f1df8a;
  border-radius: var(--radius);
}
.fruit-info[hidden] { display: none; }
.fruit-info__note {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.fruit-info__table {
  width: 100%;
  max-width: 420px;
  margin-top: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 14px;
}
.fruit-info__table th,
.fruit-info__table td {
  padding: 9px 14px;
  text-align: left;
}
.fruit-info__table th {
  background: var(--ink);
  color: var(--yellow);
  font-weight: 800;
  font-size: 13px;
}
.fruit-info__table td { border-top: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; }
.fruit-info__table tbody tr:nth-child(even) td { background: var(--bg-alt); }
@media (max-width: 600px) {
  .fruit-info { padding: 14px; margin-bottom: 14px; }
  .fruit-info__note { font-size: 13px; }
  .fruit-info__table { max-width: none; font-size: 13px; }
}

/* Aviso de peso real dentro de la ficha (Frutas y Verduras) */
.fruit-info--pdp { margin: 16px 0 0; padding: 14px; }
.fruit-info--pdp .fruit-info__note { font-size: 13px; }
.fruit-info--pdp .fruit-info__table { max-width: none; font-size: 13px; }

/* Compra por peso (Frutas y Verduras por kilo) */
.pdp__qty input.is-peso { width: 92px; font-size: 16px; }
.cart-item__qtyval { min-width: 52px; text-align: center; white-space: nowrap; }

/* Móvil: evita el zoom automático de iOS al tocar los campos del pago (letra < 16px) y agranda
   los enlaces pequeños que costaba tocar con el dedo. */
@media (max-width: 820px) {
  .checkout input[type="text"], .checkout input[type="tel"], .checkout input[type="email"],
  .checkout textarea, .checkout select { font-size: 16px; }
}
@media (pointer: coarse) {
  .section__link, .contact__link { display: inline-flex; align-items: center; min-height: 36px; }
  .footer__col a { display: flex; align-items: center; min-height: 36px; }
}

/* Teclado: la imagen de cada tarjeta (abre la ficha) muestra su foco */
.p-card__img:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }

/* Aviso legal en el último paso del pedido */
.checkout__legal { font-size: 12.5px; line-height: 1.45; color: var(--ink-faint); margin: 12px 0 0; }
.checkout__legal a { color: inherit; text-decoration: underline; }

/* Pista de "hay más categorías": difuminado + flecha que se mueve en el borde con contenido por ver */
.nav { position: relative; }
.nav::before, .nav::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 46px;
  pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 2;
}
.nav::after {
  right: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 5 16 12 9 19'/%3E%3C/svg%3E") no-repeat right 8px center / 15px,
    linear-gradient(270deg, var(--surface) 35%, rgba(255, 255, 255, 0));
  animation: navNudgeR 1.4s ease-in-out infinite;
}
.nav::before {
  left: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 5 8 12 15 19'/%3E%3C/svg%3E") no-repeat left 8px center / 15px,
    linear-gradient(90deg, var(--surface) 35%, rgba(255, 255, 255, 0));
  animation: navNudgeL 1.4s ease-in-out infinite;
}
.nav--mas-der::after, .nav--mas-izq::before { opacity: 1; }
@keyframes navNudgeR { 0%, 100% { background-position: right 8px center, 0 0; } 50% { background-position: right 2px center, 0 0; } }
@keyframes navNudgeL { 0%, 100% { background-position: left 8px center, 0 0; } 50% { background-position: left 2px center, 0 0; } }
@media (prefers-reduced-motion: reduce) { .nav::before, .nav::after { animation: none; } }

/* =====================================================================
   REDISEÑO (prototipo). Todo el cambio visual está en este bloque:
   si no gusta, se borra desde aquí hasta el final y queda como antes.
   Mismos colores de marca (amarillo #FFD100 y negro #151515).
   ===================================================================== */
:root {
  --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --well: #F5F3EC;               /* fondo cálido detrás de las fotos */
  --shadow-warm: 0 14px 32px rgba(70, 52, 0, 0.12);
}

/* Títulos con carácter (el texto y los productos siguen en Manrope) */
h1, h2, .section__title, .services__title, .hero__title { font-family: var(--font-display); text-wrap: balance; }
.section__title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.08; }
.hero__subtitle, .contact__text, .service p { text-wrap: pretty; }

/* Portada: título más grande y apretado, etiqueta en tipo normal, segundo botón como enlace */
.hero__title { font-size: clamp(42px, 5.4vw, 68px); line-height: 1.0; letter-spacing: -0.04em; }
.hero__badge { text-transform: none; letter-spacing: 0; font-size: 13.5px; border-radius: 10px 10px 10px 3px; padding: 7px 14px; }
.hero__cta { align-items: center; gap: 22px; }
.hero__cta .btn--outline { border-color: transparent; padding-left: 4px; padding-right: 4px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.hero__cta .btn--outline:hover { background: transparent; color: var(--ink); text-decoration-thickness: 3px; }
@media (max-width: 640px) {
  /* En el celular el texto queda sobre amarillo sólido y la pintura se ve completa abajo */
  .hero {
    background:
      linear-gradient(180deg, var(--yellow) 0%, var(--yellow) calc(100% - 230px), rgba(255, 209, 0, 0) calc(100% - 90px)),
      url('../img/hero-mural.jpg') center bottom / cover no-repeat, var(--yellow);
    padding-bottom: 190px;
  }
  .hero__title { font-size: 42px; }
  .hero__cta { gap: 14px; }
}

/* Ofertas vacías: franja corta en vez de un bloque gris enorme */
.offers:has(.products__empty) { padding: 40px 0; }
.offers:has(.products__empty) .section__head { margin-bottom: 6px; }
.offers .products__empty { text-align: left; padding: 0; font-size: 15px; color: var(--ink-soft); }
.offers:has(.products__empty) .section__link { display: none; }

/* Aviso de frutas por peso: compacto, la tabla se despliega */
.fruit-info { border: 0; border-radius: 14px; padding: 14px 18px; }
.fruit-info__note { margin-bottom: 4px; }
.fruit-info__more summary { cursor: pointer; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; width: fit-content; margin-top: 4px; }
.fruit-info__more summary:hover { text-decoration-thickness: 2px; }
.fruit-info__more[open] summary { margin-bottom: 4px; }

/* Tarjetas de producto: sin borde ni sombra genérica; la foto va en un fondo cálido */
.p-card { border-color: transparent; box-shadow: none; border-radius: 18px; }
.p-card__img { background: var(--well); margin: 8px 8px 0; border-radius: 13px; }
.p-card__img img { mix-blend-mode: multiply; }
.p-card:hover { box-shadow: var(--shadow-warm); border-color: transparent; }
.p-card__cat { text-transform: none; letter-spacing: 0; font-weight: 600; }
.p-card__price { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.p-card__btn { border-radius: 11px; }
.products { background: var(--bg-alt); }
@media (max-width: 640px) {
  .p-card { border-radius: 13px; }
  .p-card__img { margin: 4px 4px 0; border-radius: 10px; }
  .p-card__cat { font-size: 9.5px; }
  .p-card__btn { border-radius: 8px; }
}

/* "Una compra pensada para ti": franja amarilla con el título a la izquierda (antes 3 columnas iguales centradas) */
.services { background: var(--yellow); border: 0; }
.services .container { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr); gap: 48px; align-items: center; }
.services__title { text-align: left; margin: 0; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.035em; line-height: 1.02; }
.services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.service { text-align: left; padding: 2px 22px; border-left: 2px solid var(--ink); }
.service__icon { background: var(--ink); border: 0; box-shadow: none; width: 44px; height: 44px; border-radius: 12px; margin: 0 0 14px; }
.service__icon svg { color: var(--yellow); width: 22px; height: 22px; }
.service h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; margin-bottom: 4px; }
.service p { margin: 0; max-width: none; color: rgba(21, 21, 21, 0.78); }
@media (max-width: 860px) {
  .services .container { grid-template-columns: 1fr; gap: 26px; }
  .services__grid { grid-template-columns: 1fr; gap: 20px; }
  .service { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; border-left: 0; padding: 0; }
  .service__icon { grid-row: span 2; margin: 0; }
}

/* Encuentra tu tienda: panel con la dirección sobre la pintura de Origen (antes la mitad derecha vacía) */
@media (min-width: 961px) { .contact__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; } }
/* La dirección ya va grande en el panel: no se repite en la columna de texto */
.contact__inner:has(.contact__panel) .contact__address { display: none; }
.contact__panel {
  border-radius: 22px; overflow: hidden; color: #fff; padding: 34px;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px;
  background:
    linear-gradient(180deg, rgba(21, 21, 21, 0.05) 0%, rgba(21, 21, 21, 0.35) 40%, rgba(21, 21, 21, 0.9) 100%),
    url('../img/hero-mural.jpg') 72% 45% / cover no-repeat;
}
.contact__panel-dir { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.contact__panel-ref { margin-top: 8px; color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.contact__panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn--yellow { background: var(--yellow); color: var(--ink); font-weight: 700; }
.btn--yellow:hover { box-shadow: 0 10px 22px rgba(255, 209, 0, 0.35); }
.btn--light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255, 255, 255, 0.22); }
@media (max-width: 640px) {
  .contact__panel { min-height: 300px; padding: 24px; border-radius: 18px; }
  .contact__panel-actions .btn { flex: 1 1 100%; }
}

/* Institucional y ayuda: dos columnas en computador */
@media (min-width: 961px) {
  .footer-accordion__inner { max-width: 1200px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); column-gap: 72px; align-items: start; }
  .footer-accordion__inner > .section__title, .footer-accordion__inner > .info-page__lead { grid-column: 1; }
  .footer-accordion__list { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}
.footer-accordion__item { border-color: transparent; border-radius: 14px; }
.footer-accordion__item[open] { box-shadow: var(--shadow-warm); }

/* Ofertas vacías: la sección de productos sube para no dejar un hueco */
.offers + .products { padding-top: 32px; }
.offers:has(.products__empty) + .products { padding-top: 16px; }

/* Celular: logo, pedido y carrito en una sola fila (antes no cabían por 9 px y bajaban a otra fila) */
@media (max-width: 640px) {
  .header__inner { gap: 10px; }
  .logo { gap: 9px; }
  .logo__word span { letter-spacing: 0.12em; }
}

/* Vista con los productos exactos que mandó el bot de WhatsApp (?p=...) */
.products__bot-todo { grid-column: 1 / -1; text-align: center; margin: 8px 0 0; }
