/* El Relincho · extras.css (se carga después de styles.css) */

/* Progreso de lectura bajo el menú */
#progress{position:fixed;left:0;right:0;top:0;height:4px;z-index:100;background:linear-gradient(90deg,var(--yellow),var(--orange),var(--wine));transform:scaleX(0);transform-origin:0 50%;pointer-events:none}

/* Menú: enlace activo */
.nav nav a.active{color:var(--yellow);opacity:1;box-shadow:inset 0 -3px 0 var(--orange)}

/* Portada: video, brasas, humo */
.hero{position:relative;overflow:hidden;isolation:isolate}
.hero-photo{overflow:hidden}
.hero-photo::before{z-index:2}
.hero-video{position:absolute;inset:-4% 0 -4% 0;width:100%;height:108%;object-fit:cover;z-index:1;will-change:transform;transform:scale(1.08);animation:vin 1.2s ease both}
@keyframes vin{from{opacity:0}to{opacity:1}}
#brasas{position:absolute;inset:0;z-index:3;pointer-events:none}
.hero-inner{position:relative;z-index:4}
.hero h1{animation:rise .9s .1s both cubic-bezier(.2,.7,.2,1)}
.hero .eyebrow{animation:rise .8s both cubic-bezier(.2,.7,.2,1)}
.hero .lead,.hero .cta-row,.hero .trust{animation:rise .9s .3s both cubic-bezier(.2,.7,.2,1)}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.hero h1 em{background:linear-gradient(100deg,var(--yellow),var(--orange),var(--yellow));background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shine 5s linear infinite}
@keyframes shine{to{background-position:-200% 0}}

/* Estado abierto/cerrado */
.estado{display:inline-flex;align-items:center;gap:.7rem;background:rgba(20,10,5,.62);border:1px solid #ffffff2e;backdrop-filter:blur(6px);color:var(--cream);padding:.55rem 1.05rem;border-radius:999px;font-size:.95rem;margin:0 0 1.3rem;max-width:100%}
.estado .t{font-variant-numeric:tabular-nums;color:var(--yellow);font-weight:700;white-space:nowrap}
.estado:empty{display:none}
.dot{width:11px;height:11px;border-radius:50%;flex:none}
.dot.on{background:#3ddc6b;box-shadow:0 0 0 0 #3ddc6b99;animation:pulse 1.8s infinite}
.dot.off{background:var(--orange)}
@keyframes pulse{70%{box-shadow:0 0 0 12px #3ddc6b00}100%{box-shadow:0 0 0 0 #3ddc6b00}}

/* Stock del día */
.stock-line{display:flex;align-items:center;justify-content:center;gap:.8rem;margin:-.6rem auto 1.8rem;max-width:44rem;color:#f7ead2;font-size:.98rem;text-align:left}
.stock-line[hidden]{display:none}
.stock-line .bar{width:90px;height:8px;border-radius:99px;background:#ffffff26;overflow:hidden;flex:none}
.stock-line .bar i{display:block;height:100%;border-radius:99px;background:#3ddc6b;width:90%}
.stock-line.low .bar i{background:var(--yellow);width:35%}
.stock-line.out .bar i{background:#e5484d;width:4%}
.stock-line small{opacity:.75}

/* Carta: pedido armado */
.item{overflow:hidden;transition:transform .3s,box-shadow .3s,opacity .6s}
.item img{transition:transform .7s}
.item:hover{transform:translateY(-6px);box-shadow:0 22px 44px rgba(0,0,0,.45)}
.item:hover img{transform:scale(1.07)}
.step{display:inline-flex;align-items:center;gap:.35rem;margin-top:.7rem}
.step button{font:700 1rem Inter,sans-serif;border:0;cursor:pointer;border-radius:999px;background:var(--orange);color:#fff;min-width:2.3rem;height:2.3rem;padding:0 .9rem;transition:background .15s,transform .15s}
.step button:hover{background:var(--orange-d)}
.step button:active{transform:scale(.94)}
.step button:disabled{background:#9b8a78;cursor:not-allowed}
.step .minus{background:#ead7b3;color:var(--wine);padding:0}
.step .minus:hover{background:#dfc79a}
.step output{min-width:1.6rem;text-align:center;font:700 1.05rem Fraunces,serif;color:#2b1a10}
.step[data-n="0"] .minus,.step[data-n="0"] output{display:none}
.sizes li{align-items:center;flex-wrap:nowrap;padding:.4rem 0}
.sizes li>span{flex:1}
.sizes li .step{margin:0 0 0 .3rem;flex:none}
.sizes li .step button{height:2rem;min-width:2rem;font-size:.9rem}
.foot .step{margin-top:.8rem}
.item .foot{display:flex;flex-direction:column}

/* Barra de pedido */
#cartbar{position:fixed;left:50%;bottom:1rem;transform:translateX(-50%);z-index:70;display:flex;align-items:center;gap:1rem;background:var(--wine);color:#fff6e4;border:2px solid var(--yellow);border-radius:999px;padding:.55rem .6rem .55rem 1.3rem;box-shadow:0 14px 34px rgba(0,0,0,.55);animation:rise .4s both;max-width:calc(100vw - 1.5rem)}
#cartbar[hidden]{display:none}
#cartbar .cb-info{font-weight:700;white-space:nowrap}
#cartbar .cb-open{background:var(--yellow);color:var(--wood-900);border:0;font:700 .95rem Inter,sans-serif;border-radius:999px;padding:.7rem 1.2rem;cursor:pointer;white-space:nowrap}
#cartbar .cb-open:hover{background:#ffc95c}
.fab{transition:opacity .25s,transform .25s}
.fab.gone{opacity:0;pointer-events:none;transform:translateY(20px)}

/* Ventana del pedido */
#cartdlg{border:0;border-radius:22px;padding:0;width:min(560px,calc(100vw - 1.5rem));max-height:calc(100vh - 2rem);background:#fff6e4;color:#2b1a10;box-shadow:0 30px 80px rgba(0,0,0,.6)}
#cartdlg::backdrop{background:rgba(20,10,5,.7);backdrop-filter:blur(3px)}
#cartdlg .in-wrap{padding:1.4rem 1.5rem 1.5rem;overflow:auto;max-height:calc(100vh - 2rem)}
#cartdlg h3{margin:0 0 .2rem;font:800 1.6rem Fraunces,serif;color:#2b1a10}
#cartdlg .mini{margin:0 0 1rem;color:#6b5443;font-size:.93rem}
#cartdlg .x{position:absolute;right:.8rem;top:.7rem;border:0;background:#ead7b3;color:var(--wine);font:700 1.2rem Inter;width:2.2rem;height:2.2rem;border-radius:50%;cursor:pointer}
#cart-list{list-style:none;margin:0 0 1rem;padding:0}
#cart-list li{display:grid;grid-template-columns:1fr auto auto;gap:.7rem;align-items:center;padding:.55rem 0;border-bottom:1px dashed #d8c19a}
#cart-list .nm{font-weight:600}
#cart-list .step{margin:0}
#cart-list b{font-family:Fraunces,serif;color:var(--wine);min-width:4.2rem;text-align:right}
.tot{display:flex;justify-content:space-between;align-items:baseline;font:800 1.35rem Fraunces,serif;margin:.4rem 0 1rem}
.tot small{font:500 .8rem Inter,sans-serif;color:#6b5443}
.mods{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin:0 0 1rem;border:0;padding:0}
.mods legend{font-weight:600;margin-bottom:.4rem;padding:0}
.mods label{display:block;text-align:center;border:2px solid #d8c19a;border-radius:12px;padding:.55rem .3rem;cursor:pointer;font-size:.9rem;font-weight:600;background:#fff}
.mods input{position:absolute;opacity:0;pointer-events:none}
.mods label:has(input:checked){border-color:var(--orange);background:#fff0dc;color:var(--wine)}
.mods label:has(input:focus-visible){outline:3px solid var(--yellow)}
#cartdlg input[type=text],#cartdlg textarea{width:100%;font:400 1rem Inter,sans-serif;padding:.7rem .85rem;border-radius:12px;border:2px solid #d8c19a;background:#fff;color:#2b1a10;margin:.2rem 0 .8rem}
#cartdlg textarea{min-height:68px;resize:vertical}
#cartdlg label.f{font-weight:600;font-size:.92rem}
#cart-send{width:100%;background:#25a244;border:0;color:#fff;font:700 1.05rem Inter,sans-serif;padding:1rem;border-radius:999px;cursor:pointer;box-shadow:0 8px 20px rgba(37,162,68,.35)}
#cart-send:hover{background:#1e8a39}

/* Cómo llegar */
.route{margin-top:1.4rem}
.route h3{margin:0 0 .6rem;font:800 1.15rem Fraunces,serif}
.route .chips{display:flex;flex-wrap:wrap;gap:.5rem}
.route .chips a{text-decoration:none;color:var(--ink);background:var(--card);border:1px solid var(--line);padding:.55rem 1rem;border-radius:999px;font-weight:600;font-size:.93rem;transition:border-color .15s,transform .15s}
.route .chips a:hover{border-color:var(--orange);transform:translateY(-2px)}
.route button{font:600 .93rem Inter,sans-serif;cursor:pointer;color:#fff;background:var(--wine);border:0;border-radius:999px;padding:.6rem 1.1rem}
.route button:hover{background:var(--wine-d)}
#loc-out{margin:.7rem 0 0;color:var(--muted);font-size:.93rem;min-height:1.4em}
.visit{align-items:stretch}
.visit iframe{height:100%;min-height:440px}

/* Estadísticas */
.stats strong{font-variant-numeric:tabular-nums}

/* Móvil */
@media(max-width:560px){
  .estado{font-size:.85rem;border-radius:16px;padding:.5rem .8rem}
  #cartbar{left:.75rem;right:.75rem;transform:none;justify-content:space-between}
  .mods{grid-template-columns:1fr}
  .stock-line{flex-direction:column;text-align:center;gap:.4rem}
}
@media(prefers-reduced-motion:reduce){
  .hero h1,.hero .eyebrow,.hero .lead,.hero .cta-row,.hero .trust,.hero h1 em,.dot.on,#cartbar,.hero-video{animation:none!important}
  .hero h1 em{color:var(--yellow);background:none}
  #brasas,.hero-video{display:none}
  .item:hover,.item:hover img{transform:none}
}

/* Ajuste: filas de tamaños sin cortes de palabra */
.sizes li>span{white-space:nowrap;flex:1;min-width:0}
.sizes li b{white-space:nowrap;font-size:1.05rem}
.sizes li .step{gap:.2rem}
.sizes li .step button{min-width:1.9rem;height:1.9rem}
.sizes li .step output{min-width:1.2rem}

/* Vista previa del mensaje (burbuja tipo WhatsApp) */
.prev{margin:.2rem 0 1rem;border:2px solid #d8c19a;border-radius:14px;background:#fff;overflow:hidden}
.prev summary{cursor:pointer;font-weight:600;font-size:.92rem;padding:.7rem .9rem;list-style:none;display:flex;justify-content:space-between;align-items:center}
.prev summary::-webkit-details-marker{display:none}
.prev summary::after{content:"▾";transition:transform .2s}
.prev[open] summary::after{transform:rotate(180deg)}
.wa{background:#efeae2;background-image:radial-gradient(#d9d2c3 1px,transparent 1.2px);background-size:14px 14px;padding:.9rem .8rem 1rem}
.wa .bub{position:relative;margin-left:auto;max-width:100%;background:#d9fdd3;color:#111b21;border-radius:12px 12px 2px 12px;padding:.55rem .75rem 1.3rem;font:400 .88rem/1.45 system-ui,Segoe UI,Roboto,sans-serif;white-space:pre-wrap;word-break:break-word;box-shadow:0 1px 1px rgba(0,0,0,.18)}
.wa .bub::after{content:"";position:absolute;right:-7px;bottom:0;border-left:8px solid #d9fdd3;border-top:8px solid transparent}
.wa .bub .hr{position:absolute;right:.6rem;bottom:.3rem;font-size:.68rem;color:#667781}
.wa .bub b{font-weight:700}

/* Visor de imágenes sobre la página */
#lbdlg{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100vw;height:100vh;color:#fff;overflow:hidden}
#lbdlg:not([open]){display:none}
#lbdlg[open]{display:grid;grid-template-rows:1fr auto;place-items:center;animation:lbin .28s both cubic-bezier(.2,.7,.2,1)}
#lbdlg::backdrop{background:radial-gradient(circle at 50% 40%,rgba(86,19,32,.86),rgba(12,6,3,.94));backdrop-filter:blur(8px)}
@keyframes lbin{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
#lbdlg figure{margin:0;display:grid;place-items:center;width:100%;height:100%;padding:3.6rem 4.5rem .5rem;overflow:auto;min-height:0}
#lbdlg img{max-width:100%;max-height:calc(100vh - 9rem);width:auto;height:auto;border-radius:14px;box-shadow:0 30px 80px rgba(0,0,0,.65),0 0 0 3px rgba(244,182,63,.55);cursor:zoom-in;transition:transform .25s}
#lbdlg.zoom figure{place-items:start center;align-content:start}
#lbdlg.zoom img{max-width:min(1100px,200vw);width:min(1100px,200vw);max-height:none;cursor:zoom-out}
#lbdlg figcaption{display:none}
#lbdlg .lb-x,#lbdlg .lb-prev,#lbdlg .lb-next{position:absolute;z-index:3;border:0;border-radius:50%;background:rgba(255,246,228,.14);color:#fff6e4;cursor:pointer;backdrop-filter:blur(6px);transition:background .15s,transform .15s;font:400 1.9rem/1 Inter,sans-serif;width:3rem;height:3rem;display:grid;place-items:center}
#lbdlg .lb-x{top:1rem;right:1rem}
#lbdlg .lb-prev{left:1rem;top:50%;transform:translateY(-50%)}
#lbdlg .lb-next{right:1rem;top:50%;transform:translateY(-50%)}
#lbdlg .lb-x:hover,#lbdlg .lb-prev:hover,#lbdlg .lb-next:hover{background:var(--orange)}
#lbdlg.solo .lb-prev,#lbdlg.solo .lb-next{display:none}
.lb-bar{display:flex;gap:.7rem;align-items:center;justify-content:center;padding:.4rem 1rem 1.2rem;flex-wrap:wrap}
.lb-bar .lb-n{font-variant-numeric:tabular-nums;color:#e9d6b4;font-weight:600;margin-right:.5rem}
#lbdlg[data-g=galeria] .lb-order{display:none}
@media(max-width:700px){
  #lbdlg figure{padding:3.4rem .6rem .4rem}
  #lbdlg .lb-prev{left:.4rem}#lbdlg .lb-next{right:.4rem}
  #lbdlg .lb-prev,#lbdlg .lb-next{width:2.6rem;height:2.6rem;background:rgba(20,10,5,.55)}
}
