/* Estilo "embalaje": se carga solo si el cliente tiene "estilo": "embalaje" en data/config.json.
   Tipografías con licencia libre (SIL OFL): Bricolage Grotesque (títulos) y Figtree (texto). */
@font-face{font-family:"Bricolage Grotesque";src:url(../fonts/bricolage.woff2) format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:Figtree;src:url(../fonts/figtree.woff2) format("woff2");font-weight:300 900;font-display:swap}

.estilo-embalaje{
  --titulo:"Bricolage Grotesque",system-ui,sans-serif;
  --texto:Figtree,system-ui,-apple-system,"Segoe UI",sans-serif;
  --tinta:#16201a;--tinta-2:#55615a;--linea:#e3e8e4;--suave:#f4f7f4;--oscuro:#0f1a13;
  --sombra:0 1px 2px rgba(16,26,19,.05),0 12px 32px -14px rgba(16,26,19,.22);
  --suave-curva:cubic-bezier(.2,.7,.2,1);
}
.estilo-embalaje h1,.estilo-embalaje h2,.estilo-embalaje h3{font-weight:750;letter-spacing:-.025em}
.estilo-embalaje .hero h1{font-weight:800;letter-spacing:-.035em;line-height:1}

/* ---------- Marca en la barra: símbolo suelto + nombre con "mas" resaltado, como su logo ---------- */
.marca-simbolo{flex:none;width:44px;height:44px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));transition:transform .5s var(--suave-curva)}
.marca:hover .marca-simbolo{transform:rotate(-120deg)}
.estilo-embalaje .marca-txt{font:800 1.4rem/1 var(--titulo);letter-spacing:-.03em}
.estilo-embalaje .marca-txt b{font-weight:800;color:var(--p3)}
.estilo-embalaje .barra.fija .marca-txt b{color:var(--p1)}
.estilo-embalaje .barra.fija .marca-simbolo{filter:none}
.estilo-embalaje .marca-txt small{margin-top:.25rem;font-weight:600;letter-spacing:.12em}
@media (min-width:900px){.marca-simbolo{width:52px;height:52px}.estilo-embalaje .marca-txt{font-size:1.6rem}}

/* ---------- Portada: foto del local con profundidad, sin globos ---------- */
.estilo-embalaje .hero{background:var(--oscuro)}
.estilo-embalaje .con-foto::before{background:linear-gradient(100deg,rgba(12,22,16,.9) 0%,rgba(12,22,16,.62) 45%,rgba(12,22,16,.2) 100%),linear-gradient(0deg,rgba(12,22,16,.55),transparent 40%)}
.estilo-embalaje .hero-foto{transform:translateY(calc(var(--h,0)*14%)) scale(calc(1.06 + var(--h,0)*.1))}
.estilo-embalaje .hero-in{max-width:1080px}
.estilo-embalaje .hero h1{max-width:12ch}
.estilo-embalaje .hero h1{font-size:clamp(2.7rem,12vw,5.6rem)}
/* entrada escalonada al abrir la página */
.estilo-embalaje .hero-in>*{animation:subir .9s var(--suave-curva) both}
.estilo-embalaje .hero-in>:nth-child(2){animation-delay:.08s}
.estilo-embalaje .hero-in>:nth-child(3){animation-delay:.18s}
.estilo-embalaje .hero-in>:nth-child(4){animation-delay:.28s}
@keyframes subir{from{opacity:0;transform:translateY(28px)}}
.estilo-embalaje .progreso{background:linear-gradient(90deg,var(--p1),var(--p3))}
.estilo-embalaje .vuela{width:22px;height:18px;margin:-9px 0 0 -11px;border-radius:3px;background:linear-gradient(90deg,transparent 42%,var(--p1) 42% 58%,transparent 58%),#c99a5c}

/* ---------- Cinta de embalar con las categorías ----------
   --a (0 a 1) lo pone app.js según el recorrido en pantalla; --u es cuánto lleva desenrollado.
   Sin script --a no existe, --u da 1 y la cinta se ve entera. */
.cinta-caja{overflow:hidden;padding:2.6rem 0 1.4rem}/* la cinta va inclinada y más ancha que la pantalla: esto evita el scroll de costado */
.cinta-emb{--u:clamp(0,(var(--a,1) - .1)*3.4,1);position:relative;margin:0 -12px;transform:rotate(-2deg)}
.cinta-tira{display:flex;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;
  background:linear-gradient(180deg,rgba(255,255,255,.2),transparent 18%,transparent 80%,rgba(0,0,0,.2)),
    repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 2px,transparent 2px 9px),var(--p1);
  clip-path:inset(0 calc(100% - var(--u)*100%) 0 0)}
.cinta-emb{filter:drop-shadow(0 10px 12px rgba(16,26,19,.28))}/* sombra después del recorte: sigue solo el tramo desenrollado */
.cinta-tira::-webkit-scrollbar{display:none}
.cinta-tira a{flex:none;display:flex;align-items:center;gap:.55em;padding:1.05rem 1.5rem;color:#fff;text-decoration:none;scroll-snap-align:start;
  font:800 1rem/1 var(--titulo);letter-spacing:.06em;text-transform:uppercase;border-right:2px dashed rgba(255,255,255,.35);transition:background .2s}
.cinta-tira a:hover,.cinta-tira a:focus-visible{background:rgba(0,0,0,.14)}
.cinta-tira a:focus-visible{outline:3px solid #fff;outline-offset:-5px}
.cinta-tira .ico{width:1.25em;height:1.25em;opacity:.85}
/* el rollo que va soltando la cinta: avanza y gira con el scroll, y se va cuando terminó */
.cinta-rollo{position:absolute;top:50%;left:calc(var(--u)*100%);width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,var(--papel) 0 27%,#c99a5c 28% 36%,transparent 37%),
    repeating-radial-gradient(circle,var(--p1) 0 3px,var(--p1-o) 3px 4px);
  box-shadow:0 10px 22px -8px rgba(16,26,19,.6),inset 0 0 0 2px rgba(255,255,255,.15);
  transform:rotate(calc(var(--u)*900deg));opacity:clamp(0,(1 - var(--u))*12,1)}
.cinta-rollo::after{content:"";position:absolute;top:6px;left:50%;width:4px;height:10px;margin-left:-2px;border-radius:2px;background:rgba(255,255,255,.45)}
@media (min-width:900px){.cinta-emb{margin-inline:-2vw}.cinta-caja{padding-block:3.4rem 2rem}.cinta-tira{justify-content:center}.cinta-tira a{padding:1.25rem 2rem;font-size:1.1rem}}

/* ---------- Aparición al bajar: más recorrido, curva suave y en cascada ---------- */
.js .estilo-embalaje .revelar{transform:translateY(36px);transition:opacity .9s var(--suave-curva),transform .9s var(--suave-curva)}
.js .estilo-embalaje .revelar.visto{transform:none}
/* los títulos suben desde una ranura */
.js .estilo-embalaje .titulo.revelar{opacity:1;transform:none}
.js .estilo-embalaje .titulo.revelar>*{clip-path:inset(0 0 100% 0);transform:translateY(.6em);transition:clip-path .9s var(--suave-curva),transform .9s var(--suave-curva)}
.js .estilo-embalaje .titulo.revelar>:nth-child(2){transition-delay:.08s}
.js .estilo-embalaje .titulo.revelar>:nth-child(3){transition-delay:.16s}
.js .estilo-embalaje .titulo.revelar.visto>*{clip-path:inset(-20% -5% -25% -5%);transform:none}
/* productos en cascada; la foto se acomoda adentro de la tarjeta */
.js .estilo-embalaje #grilla .prod:nth-child(2n){transition-delay:.09s}
@media (min-width:900px){
  .js .estilo-embalaje #grilla .prod:nth-child(2n){transition-delay:0s}
  .js .estilo-embalaje #grilla .prod:nth-child(4n+2){transition-delay:.08s}
  .js .estilo-embalaje #grilla .prod:nth-child(4n+3){transition-delay:.16s}
  .js .estilo-embalaje #grilla .prod:nth-child(4n+4){transition-delay:.24s}
}
.js .estilo-embalaje #grilla .prod.revelar img{transform:scale(1.14);transition:transform 1.4s var(--suave-curva)}
.js .estilo-embalaje #grilla .prod.revelar.visto img{transform:none}
/* galería: cada foto se destapa de costado */
.js .estilo-embalaje .galeria li.revelar{opacity:1;transform:none;clip-path:inset(0 0 0 100% round var(--r));transition:clip-path 1.1s var(--suave-curva)}
.js .estilo-embalaje .galeria li.revelar:nth-child(2){transition-delay:.12s}
.js .estilo-embalaje .galeria li.revelar:nth-child(3){transition-delay:.24s}
.js .estilo-embalaje .galeria li.revelar:nth-child(4){transition-delay:.36s}
.js .estilo-embalaje .galeria li.revelar.visto{clip-path:inset(0 0 0 0 round var(--r))}
.js .estilo-embalaje .puntaje.revelar{transform:scale(.92)}
.js .estilo-embalaje .puntaje.revelar.visto{transform:none}

@media (prefers-reduced-motion:reduce){
  .estilo-embalaje .hero-in>*{animation:none}
  .estilo-embalaje .hero-foto,.cinta-rollo,.marca-simbolo{transform:none!important}
  .cinta-tira{clip-path:none}
  .cinta-rollo{display:none}
  .js .estilo-embalaje .revelar,.js .estilo-embalaje .revelar>*,.js .estilo-embalaje .revelar img{opacity:1!important;transform:none!important;clip-path:none!important;transition:none!important}
}
