/* ============ TATU Panificados · Landing ============ */
:root {
  /* Paleta sobria: base casi blanca, el naranja SOLO como acento puntual. */
  --cream:     #fcfbf9;   /* fondo base (blanco apenas cálido) */
  --cream-2:   #ffffff;   /* tarjetas / superficies */
  --cream-3:   #f5f2ed;   /* alterno neutro suave */
  --line:      #ebe7e0;   /* bordes neutros claros */
  --text:      #17161a;   /* texto principal (casi negro) */
  --muted:     #8c8880;   /* texto secundario neutro */
  --red:       #f07800;   /* naranja Tatu (acento) */
  --red-deep:  #d06400;
  --navy:      #161616;   /* tinta/negro Tatu (marca, títulos, botones) */
  --navy-2:    #000000;
  --accent:    #f07800;   /* alias (JS puede sobreescribir con primaryColor) */
  --accent-ink:#ffffff;
  --wa:        #1faf54;
  --wa-ink:    #ffffff;

  /* Tipografía on-brand: display chunky (como el logo) + redondeada + texto neutro */
  --font-logo:    "Bagel Fat One", "Fredoka", system-ui, sans-serif;  /* hero + marca */
  --font-display: "Fredoka", system-ui, -apple-system, sans-serif;    /* títulos, precios, botones */
  --font:         "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 14px 32px -16px rgba(40,30,10,.4);
  --shadow-sm: 0 4px 14px -8px rgba(40,30,10,.35);
  --header-h:  62px;
  --maxw:      1080px;
  --ease:      cubic-bezier(.16, 1, .3, 1);   /* expo-out: entradas suaves y premium */
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }  /* salvaguarda: nunca scroll horizontal */
/* hidden SIEMPRE oculta, aunque la clase tenga display:flex/grid */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 58px); }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom);
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.muted { color: var(--muted); }

/* checker reutilizable (firma de marca) */
.checker {
  height: 14px;
  background-image:
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
  background-size: 14px 14px; background-position: 0 0, 7px 7px;
  background-color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(120%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px -12px rgba(40,30,10,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 18px; letter-spacing: .4px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cart-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid var(--navy); border-radius: 12px;
  background: var(--cream-2); color: var(--navy);
  transition: transform .12s, background .2s;
}
.cart-pill:active { transform: scale(.92); }
.cart-pill.bump { animation: bump .35s; }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  background: var(--red); color: #fff;
  border-radius: 999px; border: 2px solid var(--cream);
  transform: scale(0); transition: transform .2s cubic-bezier(.2,1.4,.4,1);
}
.cart-count.show { transform: scale(1); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%); overflow: hidden; }
.hero-inner { position: relative; text-align: center; padding: 40px 18px 34px; }
.hero-kicker {
  display: inline-block; margin: 0 0 16px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: #fff; background: var(--navy);
  padding: 7px 15px; border-radius: 999px;
}
.hero-logo { display: block; width: min(440px, 82%); margin: 0 auto; }
.hero-title {
  margin: 0; font-family: var(--font-logo); font-weight: 400;
  font-size: clamp(40px, 12vw, 82px); line-height: .92; letter-spacing: .3px;
  text-transform: uppercase; word-break: break-word;
  color: var(--text);                        /* relleno oscuro sólido: sobrio y limpio */
}
.hero-title .accent { color: var(--red); }   /* por si se quiere resaltar una palabra */
.hero-sub { margin: 14px auto 0; max-width: 440px; color: var(--navy); font-size: 16px; font-weight: 500; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: var(--cream-2); border: 1.5px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
}
.chip-meta svg { color: var(--red); }
.hero-char { display: block; width: clamp(120px, 32vw, 178px); margin: 0 auto 4px; filter: drop-shadow(0 10px 14px rgba(40,30,10,.22)); animation: bob 3.4s ease-in-out infinite; }
.hero-photo { position: relative; height: clamp(170px, 40vw, 300px); background: linear-gradient(135deg, var(--red), var(--navy)); }
/* Mascota del scooter "entregando" sobre la foto del hero */
.hero-mascot {
  position: absolute; right: 3%; bottom: -8px; z-index: 2;
  width: clamp(128px, 36vw, 240px);
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.35));
  animation: ride 3s ease-in-out infinite;
}
@keyframes bob  { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-7px) rotate(2deg)} }
@keyframes ride { 0%,100%{transform:translateY(0) rotate(-1.5deg)} 50%{transform:translateY(-6px) rotate(1.5deg)} }

/* Cinta de marca (todas incluyen papas · solo delivery) */
.papas-ribbon {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  background: var(--cream); color: var(--muted);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--font); font-weight: 600; font-size: 12px; letter-spacing: .9px; text-transform: uppercase;
  padding: 11px 18px; text-align: center; box-shadow: none;
}
.papas-ribbon .dot { color: var(--red); opacity: 1; }

/* ---------- Category nav ---------- */
.catnav {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(120%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.catnav-inner { display: flex; gap: 8px; overflow-x: auto; padding: 11px 18px; scrollbar-width: none; -ms-overflow-style: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; font-size: 13.5px; font-weight: 700; white-space: nowrap;
  color: var(--navy); background: var(--cream-2); border: 1.5px solid var(--line);
  padding: 8px 15px; border-radius: 999px; transition: all .16s;
}
.cat-chip:hover { border-color: var(--navy); }
.cat-chip.active { color: #fff; background: var(--red); border-color: var(--red); }

/* ---------- Content / sections ---------- */
.content { padding: 26px 0 40px; }
.cat-section { scroll-margin-top: calc(var(--header-h) + 64px); margin-bottom: 38px; }
.cat-title {
  display: flex; align-items: center; gap: 14px; margin: 0 0 16px;
  font-family: var(--font-display); font-size: clamp(22px, 5.5vw, 32px);
  color: var(--navy); text-transform: uppercase; letter-spacing: .5px;
}
.cat-title::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* Promos */
.promos { margin-bottom: 38px; }
.promo-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.promo-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 18px;
  background: var(--cream-2); border: 2px solid var(--red); box-shadow: var(--shadow-sm);
}
.promo-card .badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 4px 9px; border-radius: 6px; margin-bottom: 10px;
}
.promo-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.promo-card p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-price { font-family: var(--font-display); font-size: 24px; color: var(--red); }

/* Product grid */
.prod-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  display: flex; gap: 14px; align-items: stretch;
  background: var(--cream-2); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.card:active { transform: translateY(0); }
.card-img {
  position: relative; flex: 0 0 96px; width: 96px; height: 96px;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-3);
  display: grid; place-items: center;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { font-family: var(--font-display); font-size: 30px; color: var(--line); }
.card.has-img .card-img::after {
  content: "⤢"; position: absolute; right: 5px; bottom: 5px;
  width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 12px; color: #fff; background: rgba(28,35,115,.7); border-radius: 7px; opacity: 0; transition: opacity .2s;
}
.card.has-img:hover .card-img::after { opacity: 1; }
.card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.card-name { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; color: var(--navy); }
.card-desc {
  margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-size: 20px; color: var(--red); letter-spacing: .3px; }

/* Add button + stepper */
.add-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800;
  color: #fff; background: var(--red); border: none; border-radius: 10px; padding: 10px 15px;
  box-shadow: 0 4px 12px -4px rgba(245,58,48,.6); transition: transform .12s, background .2s;
}
.add-btn:hover { background: var(--red-deep); }
.add-btn:active { transform: scale(.94); }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--cream-3); border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; }
.stepper button {
  width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent;
  color: var(--navy); font-size: 18px; font-weight: 800; display: grid; place-items: center; transition: background .15s;
}
.stepper button:hover { background: var(--cream-2); }
.stepper .qty { min-width: 26px; text-align: center; font-weight: 800; font-size: 14px; color: var(--navy); }

/* ---------- Cart bar ---------- */
.cartbar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(160%);
  bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45;
  width: min(560px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  background: var(--red); color: #fff; border: none; border-radius: 16px;
  box-shadow: 0 14px 34px -10px rgba(245,58,48,.6);
  font-weight: 800; font-size: 15px; transition: transform .3s cubic-bezier(.2,1,.3,1);
}
.cartbar.show { transform: translateX(-50%) translateY(0); }
.cartbar-left { display: flex; align-items: center; gap: 10px; }
.cartbar-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: #fff; color: var(--red); border-radius: 999px; font-size: 13px; }
.cartbar-total { font-family: var(--font-display); font-size: 19px; letter-spacing: .5px; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(28,22,10,.5); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.drawer-backdrop.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 55; width: min(420px, 100%); height: 100dvh;
  display: flex; flex-direction: column; background: var(--cream); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,1,.3,1);
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; color: var(--navy); letter-spacing: .4px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--cream-2); color: var(--navy); font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 18px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.cart-empty .em { font-size: 40px; }
.cart-line { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.cart-line .ci-img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--cream-3); display: grid; place-items: center; }
.cart-line .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .ci-img .ph { font-family: var(--font-display); font-size: 18px; color: var(--line); }
.ci-body { flex: 1; min-width: 0; }
.ci-name { font-weight: 800; font-size: 14px; color: var(--navy); }
.ci-price { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ci-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.ci-sub { font-family: var(--font-display); font-size: 15px; color: var(--red); }

.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--cream-2); }
.notes-field { display: block; margin-bottom: 12px; }
.notes-field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.notes-field textarea {
  width: 100%; resize: none; background: var(--cream); color: var(--text);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 14px;
}
.notes-field textarea:focus { outline: none; border-color: var(--red); }
.total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 15px; color: var(--navy); }
.total-row strong { font-family: var(--font-display); font-size: 26px; color: var(--red); letter-spacing: .5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; font-weight: 800; font-size: 16px; border: none; border-radius: 14px; padding: 15px; }
.btn-wa { background: var(--wa); color: #fff; transition: filter .2s, transform .12s; box-shadow: 0 8px 20px -8px rgba(31,175,84,.6); }
.btn-wa:hover { filter: brightness(1.05); }
.btn-wa:active { transform: scale(.98); }
.btn-wa[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn-ghost { background: var(--cream-2); color: var(--navy); border: 1.5px solid var(--line); width: auto; padding: 12px 20px; }
.checkout-note { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); }

/* ---------- Product detail modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(28,22,10,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s;
}
.modal-backdrop.show { opacity: 1; }
.modal {
  position: relative; width: min(440px, 100%); min-width: 0; max-width: 100%; max-height: 92dvh; overflow: hidden;
  display: flex; flex-direction: column; background: var(--cream-2); border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(28,22,10,.6);
}
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(28,35,115,.75); color: #fff; font-size: 16px; backdrop-filter: blur(4px); }
/* imagen del producto: se ve COMPLETA (no recorta la burger) */
.modal-img { width: 100%; background: var(--cream-3); display: grid; place-items: center; }
.modal-img img { width: 100%; height: auto; max-height: 52dvh; object-fit: contain; display: block; }
.modal-img .ph { font-family: var(--font-display); font-size: 64px; color: var(--line); padding: 50px 0; }
.modal-body { padding: 18px 20px 20px; overflow-y: auto; }
.modal-name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: var(--navy); }
.modal-desc { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.modal-price { font-family: var(--font-display); font-size: 28px; color: var(--red); letter-spacing: .5px; }
.modal-foot .add-btn { font-size: 15px; padding: 12px 20px; }
.modal-foot .stepper { transform: scale(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 32px 0 36px; text-align: center; }
.site-footer .footer-logo { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 10px; opacity: .95; }
.site-footer .footer-mascot { width: 148px; margin: 0 auto 8px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); }
.site-footer p { margin: 0; }
.site-footer #footerBrand { font-family: var(--font-display); font-size: 22px; letter-spacing: .6px; margin-bottom: 6px; }
.site-footer .muted { color: rgba(255,255,255,.7); font-size: 13px; }
.site-footer .footer-credit { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.site-footer .footer-credit a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 1px; }
.site-footer .footer-credit a:hover { color: var(--accent-2, #8b5cf6); }

/* ---------- States / skeleton ---------- */
.state { text-align: center; padding: 60px 16px; }
.state-emoji { font-size: 48px; margin-bottom: 8px; }
.state h2 { margin: 0 0 6px; color: var(--navy); }
.state p { color: var(--muted); margin: 0 0 18px; }
.skeleton-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); padding-top: 26px; }
.sk-card { height: 122px; border-radius: var(--radius); background: linear-gradient(100deg, var(--cream-2) 30%, var(--cream-3) 50%, var(--cream-2) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }

@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes bump { 0%,100%{transform:scale(1)} 30%{transform:scale(1.18)} }

@media (max-width: 560px) {
  .card-img { flex: 0 0 84px; width: 84px; height: 84px; }
  .cat-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ---------- Tira de fotos de producto (scroll horizontal) ---------- */
.photo-strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  max-width: var(--maxw); margin: 0 auto; padding: 6px 18px 22px;
  -webkit-overflow-scrolling: touch; background: transparent;
}
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip { scrollbar-width: none; }
.photo-strip img {
  flex: 0 0 auto; width: 148px; height: 148px; object-fit: cover;
  border-radius: 16px; scroll-snap-align: start;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}

/* ---------- Sección Repartos & Garita ---------- */
.info-section { padding: 26px 18px 8px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--cream-2); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.info-card h2 {
  font-family: var(--font-display); font-size: 21px; margin: 0 0 14px; color: var(--text);
}
.reparto-list { list-style: none; margin: 0; padding: 0; }
.reparto-list li {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.reparto-list li:last-child { border-bottom: none; }
.reparto-list span { font-weight: 700; color: var(--text); text-transform: uppercase; font-size: 12px; letter-spacing: .2px; }
.reparto-list b { text-align: right; font-weight: 600; color: var(--text); font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; white-space: normal; line-height: 1.3; }
.info-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.garita-card { padding: 0; overflow: hidden; }
.garita-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.garita-body { padding: 20px; }
.garita-body h2 { margin: 0 0 10px; }
.garita-hours { margin: 0; font-size: 15px; color: var(--text); line-height: 1.6; }
.garita-hours b { color: var(--red); font-size: 17px; }

/* ============================================================
   PULIDO PRO — animaciones, microinteracciones, refinamiento
   ============================================================ */

/* ---- Reveal on scroll (easing expo, sin fade genérico) ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.photo-strip a.reveal { transform: translateY(20px) scale(.94); }
.photo-strip a.reveal.in { transform: none; }
/* stagger de las primeras cards de cada grilla */
.prod-grid .card:nth-child(2), .promo-grid .promo-card:nth-child(2) { transition-delay: .06s; }
.prod-grid .card:nth-child(3), .promo-grid .promo-card:nth-child(3) { transition-delay: .12s; }
.prod-grid .card:nth-child(4), .promo-grid .promo-card:nth-child(4) { transition-delay: .18s; }
.prod-grid .card:nth-child(5) { transition-delay: .24s; }
.prod-grid .card:nth-child(6) { transition-delay: .30s; }
/* cascada de la tira de fotos */
.photo-strip a:nth-child(2) { transition-delay: .05s; }
.photo-strip a:nth-child(3) { transition-delay: .10s; }
.photo-strip a:nth-child(4) { transition-delay: .15s; }
.photo-strip a:nth-child(5) { transition-delay: .20s; }
.photo-strip a:nth-child(6) { transition-delay: .25s; }
.photo-strip a:nth-child(7) { transition-delay: .30s; }
.photo-strip a:nth-child(n+8) { transition-delay: .35s; }

/* ---- Entrada del hero (stagger) ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: translateY(24px) scale(.9) rotate(-2deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.hero-kicker { animation: fadeUp .6s var(--ease) .05s both; }
.hero-title  { animation: popIn 1s var(--ease) .16s both; }
.hero-sub    { animation: fadeUp .7s var(--ease) .42s both; }
.hero-meta   { animation: fadeUp .7s var(--ease) .56s both; }
/* glow cálido detrás del hero */
.hero::before {
  content: ""; position: absolute; top: -30%; left: 50%; width: 120%; height: 140%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(240,120,0,.18), transparent 62%);
  pointer-events: none;
}

/* ---- Encabezado de sección (galería) ---- */
.strip-head { padding: 22px 18px 12px; text-align: center; }
.section-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--red); margin-bottom: 6px;
}
.section-title {
  margin: 0; font-family: var(--font-display); font-size: clamp(24px, 6vw, 34px);
  color: var(--text); letter-spacing: -.3px;
}

/* ---- Tira de fotos: clickeable, con etiqueta de categoría ---- */
.strip-item {
  position: relative; flex: 0 0 auto; width: 150px; height: 150px;
  border-radius: 18px; overflow: hidden; scroll-snap-align: start;
  border: 3px solid #fff; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .32s var(--ease), box-shadow .32s ease;
}
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.strip-item:hover { transform: translateY(-5px) scale(1.03); box-shadow: var(--shadow); }
.strip-item:hover img { transform: scale(1.08); }
.strip-item:active { transform: scale(.98); }
.strip-tag {
  position: absolute; left: 8px; bottom: 8px;
  font: 700 11px/1 var(--font-display); color: var(--navy);
  background: rgba(255,255,255,.92); padding: 5px 9px; border-radius: 999px;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,.3); letter-spacing: .1px;
}

/* ---- Placeholder cuando el producto no tiene foto: monograma chunky ---- */
.card:not(.has-img) .card-img,
.cart-line .ci-img:not(.has-img),
.modal-img:not(.has-img) {
  background: var(--cream-3);
}
.card-img .ph, .modal-img .ph {
  position: relative; font-family: var(--font-logo); font-weight: 400;
  color: #d3cec4; font-size: 30px;               /* monograma neutro, discreto */
}
.cart-line .ci-img .ph { font-family: var(--font-logo); color: #d3cec4; }

/* ---- Zoom de imagen en cards con foto ---- */
.card.has-img .card-img img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.card.has-img:hover .card-img img { transform: scale(1.09); }

/* ---- Botones con degradé + brillo ---- */
.add-btn { background: linear-gradient(135deg, #ff8a1f 0%, #e06a00 100%); box-shadow: 0 6px 16px -6px rgba(208,100,0,.6); }
.add-btn:hover { background: linear-gradient(135deg, #ff9a35 0%, #d06400 100%); transform: translateY(-1px); }
.add-btn:active { transform: scale(.94); }
.btn-wa { background: linear-gradient(135deg, #22c15e 0%, #12a150 100%); }
.cartbar { background: linear-gradient(135deg, #ff8a1f 0%, #e06a00 100%); }

/* ---- Cinta marquee ---- */
.papas-ribbon { padding: 0; overflow: hidden; }
.marquee { display: flex; overflow: hidden; padding: 11px 0; }
.marquee-track {
  display: flex; flex: 0 0 auto; gap: 16px; align-items: center; padding-left: 16px;
  white-space: nowrap; animation: marquee 26s linear infinite; will-change: transform;
}
.papas-ribbon:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Header: marca con leve realce al hacer scroll ---- */
.brand-mark img { transition: transform .3s ease; }
.brand:hover .brand-mark img { transform: rotate(-6deg) scale(1.06); }

/* ---- Reduce motion: sin animaciones ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .hero-kicker, .hero-title, .hero-sub, .hero-meta { animation: none; }
}

/* ---- Link Instagram (footer) ---- */
.ig-link {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 4px;
  font-weight: 700; font-size: 14px; color: #fff; text-decoration: none;
  padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #f9a01b 0%, #e1306c 55%, #a12ba7 100%);
  box-shadow: 0 6px 16px -6px rgba(225,48,108,.6); transition: transform .18s var(--ease), box-shadow .18s ease;
}
.ig-link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(225,48,108,.7); }
.ig-link:active { transform: scale(.96); }

/* ---- Hero de dos columnas en desktop (llena el espacio, evita el vacío) ---- */
.hero-visual { display: none; }
@media (min-width: 900px) {
  .hero-inner {
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
    gap: 48px; text-align: left; padding: 58px 18px 54px;
  }
  .hero-copy { text-align: left; }
  .hero-kicker { margin-top: 0; }
  .hero-title { font-size: clamp(52px, 5.4vw, 80px); }
  .hero-sub { margin: 18px 0 0; max-width: 430px; }
  .hero-meta { justify-content: flex-start; }
  .hero-visual { display: block; position: relative; }
  .hero-visual::before {
    content: ""; position: absolute; inset: -7%; z-index: 0;
    background: var(--red); opacity: .08;
    border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%;
  }
  .hero-visual img {
    position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4;
    object-fit: cover; border-radius: 28px; border: 5px solid #fff; box-shadow: var(--shadow);
    transform: rotate(1.5deg);
  }
  .hero-visual-2 { display: none; }
}

/* ---- Desktop: la tira de fotos entra completa (sin scroll ni corte a la derecha) ---- */
@media (min-width: 900px) {
  .photo-strip { overflow: visible; flex-wrap: nowrap; gap: 14px; }
  .strip-item { flex: 1 1 0; width: auto; min-width: 0; height: 160px; }
}
