/* =========================================================
   FUOCO · ANIMACIÓN "AGOTADO"  (va con agotado.js)
   ========================================================= */

/* ---------- Tarjeta grande (Sugeridos de hoy) ---------- */
.is-agotado .tph img:not(.fz-art img){filter:grayscale(1) brightness(.16) contrast(1.1);transition:filter .8s ease}
.is-agotado{border-color:rgba(227,18,28,.4)!important}
.is-agotado .tb h3,.is-agotado .tb .p{opacity:.55}
.is-agotado .tb .p{text-decoration:line-through;text-decoration-color:#e3121c}
.fz-overlay{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;
  background:radial-gradient(90% 55% at 50% 100%,rgba(120,8,14,.55),rgba(6,3,4,0) 75%);animation:fzIn .6s ease both}
.fz-leaving .fz-overlay,.fz-leaving .fz-tag{animation:fzOut .45s ease both}

/* luz de fuego real en la base */
.fz-glowfire{position:absolute;left:-10%;right:-10%;bottom:-4%;width:120%;height:46%;object-fit:cover;mix-blend-mode:screen;opacity:0;
  -webkit-mask-image:linear-gradient(to top,#000 20%,transparent 95%);mask-image:linear-gradient(to top,#000 20%,transparent 95%);transition:opacity 1.6s ease}
.fz-seen .fz-glowfire{opacity:.45}

/* dibujo de Waleska */
.fz-art{position:absolute;left:14%;width:72%;bottom:-1%;aspect-ratio:700/670}
.fz-art img{position:absolute;inset:0;width:100%;height:100%;opacity:0;filter:none!important}
.fz-seen .fz-f1{animation:fzRise .9s cubic-bezier(.2,1,.3,1) .15s both}
.fz-seen .fz-f2{animation:fzFade .7s ease 1.2s both}
.fz-seen .fz-f3{animation:fzFade .7s ease 2.2s both}
/* el fuego del dibujo arde con textura de fuego real */
.fz-artfire{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:screen;opacity:0;
  -webkit-mask-image:var(--fz-mask);mask-image:var(--fz-mask);-webkit-mask-size:100% 100%;mask-size:100% 100%;transition:opacity 1.2s ease .3s}
.fz-seen .fz-artfire{opacity:.7}
/* humo real del caldero */
.fz-smoke{position:absolute;left:44%;top:30%;width:14%;height:10%;opacity:0}
.fz-seen .fz-smoke{animation:fzFade 1s ease 2.6s both}
.fz-smoke i{position:absolute;left:0;bottom:0;width:100%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,rgba(225,215,205,.5),rgba(225,215,205,0) 70%);filter:blur(4px);animation:fzSmoke 4.2s ease-out infinite}
.fz-smoke i:nth-child(2){animation-delay:1.4s;left:20%}.fz-smoke i:nth-child(3){animation-delay:2.8s;left:-15%}

/* sello */
.fz-stamp-svg{position:absolute;left:10%;top:1%;width:80%;height:auto}
.fz-word{font-family:"Inter Tight","Arial Narrow",system-ui,sans-serif;font-weight:800;font-size:32px;fill:#e3121c;letter-spacing:.06em}
.fz-stamp{transform-box:fill-box;transform-origin:center;transform:rotate(-6deg);opacity:0}
.fz-seen .fz-stamp{animation:fzStamp .7s cubic-bezier(.2,1.6,.4,1) 2.9s both}

.fz-overlay:not(.fz-run) *{animation-play-state:paused!important}

@keyframes fzIn{from{opacity:0}to{opacity:1}}
@keyframes fzOut{to{opacity:0;transform:scale(.97)}}
@keyframes fzFade{from{opacity:0}to{opacity:1}}
@keyframes fzRise{from{opacity:0;transform:translateY(8%) scaleY(.85)}to{opacity:1;transform:none}}
@keyframes fzStamp{0%{opacity:0;transform:rotate(-12deg) scale(2.4)}60%{opacity:1;transform:rotate(-5deg) scale(.95)}100%{opacity:1;transform:rotate(-6deg) scale(1)}}
@keyframes fzSmoke{0%{opacity:0;transform:translateY(0) scale(.6)}25%{opacity:1}100%{opacity:0;transform:translateY(-260%) scale(2.4)}}

/* ---------- Fila de la carta ---------- */
.dish.is-agotado{position:relative}
.dish.is-agotado h3,.dish.is-agotado p,.dish.is-agotado .pr{opacity:.45}
.dish.is-agotado .pr{text-decoration:line-through;text-decoration-color:#e3121c}
.dish.is-agotado .th img{filter:grayscale(1) brightness(.5)}
.fz-tag{grid-column:1/-1;display:flex;align-items:center;gap:.6rem;margin-top:.45rem;padding:.3rem 1rem .3rem .4rem;width:max-content;max-width:100%;
  border:1px solid rgba(227,18,28,.45);border-radius:99px;background:linear-gradient(90deg,rgba(90,10,20,.55),rgba(10,4,5,.4));
  animation:fzTagIn .6s cubic-bezier(.2,1.5,.4,1) both}
.fz-tag img{width:40px;height:auto;flex:none}
.fz-tag b{font:800 .72rem/1 "Inter Tight",system-ui,sans-serif;letter-spacing:.18em;color:#e3121c}
@keyframes fzTagIn{from{opacity:0;transform:translateY(6px) scale(.9)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  .fz-overlay *,.fz-tag{animation:none!important;transition:none!important}
  .fz-f3,.fz-stamp{opacity:1}.fz-artfire,.fz-glowfire{display:none}
}
