/* =========================================================
   PIZZI · App móvil (js/movil.js)
   Se ve en el inicio (móvil y ordenador): tapa la web y funciona como una app.
   En pantallas anchas el contenido se centra en una columna, como Honest Greens.
   ========================================================= */
/* La app forma parte de la página (no es una capa fija): así su fondo llega hasta abajo del todo,
   también bajo la barra del navegador del iPhone. <html> y <body> llevan el mismo vino que la app
   para que el rebote al desplazar no muestre otro color. */
html.modo-app,html.modo-app body{background:#8A0619; scrollbar-gutter:auto}
html.modo-app body>:not(.app-m):not(.toast):not(.al-modal):not(.am-menu){display:none!important}

.app-m{
  --am-rosa:#E2B0AE; --am-borde:rgba(150,4,30,.18); --am-verde:#2E7D4F; --am-verde-bg:#DDF2E3;
  position:relative; min-height:100vh; min-height:100dvh; overflow-x:clip; display:flex; flex-direction:column; color:#fff;
  /* Fondo: baldosas rojas muy atenuadas bajo un velo vino uniforme, solo como textura.
     Se repite hacia abajo para que no se deforme en las pantallas largas (lista de locales, carta) */
  background:linear-gradient(rgba(138,5,25,.86),rgba(138,5,25,.86)),#8A0619 url(../assets/img/fondo-baldosas.webp) center top/100% auto repeat-y}
.app-m [hidden]{display:none!important}

/* Barra superior */
.am-top{position:relative; z-index:2; display:grid; grid-template-columns:48px 1fr 48px; align-items:center; padding:calc(var(--sat) + 14px) 16px 0}
.am-logo{grid-column:2; justify-self:center; width:min(28vw,124px); filter:drop-shadow(0 3px 14px rgba(60,0,10,.55))}
.am-volver,.am-lang{width:44px; height:44px; background:#fff; color:var(--vino); box-shadow:0 6px 18px rgba(40,0,6,.25)}
.am-volver{grid-column:1; grid-row:1}
.am-volver svg{width:22px; height:22px}
.am-lang-w{grid-column:3; grid-row:1; justify-self:end; position:relative}
.am-lang{width:44px; height:44px; font:700 14px/1 var(--cond); letter-spacing:.06em; -webkit-text-stroke:var(--t-m) currentColor}
.am-lang-l{position:absolute; right:0; top:calc(100% + 8px); z-index:5; min-width:190px; margin:0; padding:6px; list-style:none; background:#fff; border-radius:var(--r-m); box-shadow:0 16px 40px rgba(40,0,6,.35); animation:am-in .2s ease both}
.am-lang-l button{display:flex; justify-content:space-between; align-items:center; gap:16px; width:100%; min-height:46px; padding:8px 14px; border:0; border-radius:var(--r-s); background:none; color:var(--vino); cursor:pointer; font:400 18px/1 var(--cond); text-align:left; -webkit-text-stroke:var(--t-r) currentColor}
.am-lang-l b{font-weight:600; font-size:14px; letter-spacing:.08em; opacity:.7}
.am-lang-l [aria-selected="true"]{background:var(--rosa-cc)}

/* Pantallas */
.am-p{position:relative; z-index:1; flex:none; padding:0 16px calc(28px + var(--sab)); animation:am-in .35s ease both}
@keyframes am-in{from{opacity:0; transform:translateY(14px)}to{opacity:1; transform:none}}

/* ---------- Inicio ---------- */
/* Inicio y «Pide ahora»: logo y contenido forman un bloque centrado en la pantalla.
   Los márgenes automáticos centran; si el contenido no cabe, valen 0 y se desplaza con normalidad */
.am-top{margin-top:auto}
.am-hola{display:flex; flex-direction:column; gap:12px; padding-top:22px; margin-bottom:auto}
/* Saludo arriba y acciones abajo: la caja de la foto queda a la vista en el hueco */
.am-hola-tx{padding:0 6px 18px!important; text-align:center}
.am-hola-tx{padding:0 6px 4px; text-shadow:0 3px 18px rgba(40,0,6,.55)}
.am-hola-tx .saludo{margin:0 0 8px}
.am-hola-tx .deco{font-size:clamp(30px,8.6vw,40px); color:#fff}
.am-hola-tx .deco span{color:var(--am-rosa)}

/* Tarjeta del local más cercano */
.am-cerca{display:flex; align-items:center; gap:16px; padding:18px; border-radius:var(--r-xl); background:#fff; color:var(--vino); text-decoration:none; box-shadow:0 14px 34px rgba(40,0,6,.3)}
/* Iconos de marca en vino, sin fondo */
.am-cerca-ic{width:56px; height:56px; flex:none; display:grid; place-items:center}
.am-cerca-ic img,.am-ic img,.am-tic img{width:100%; height:100%; object-fit:contain}
.am-cerca-t{display:flex; flex-direction:column; gap:6px; min-width:0}
.am-cerca-t small{font:600 14px/1 var(--cond); letter-spacing:.12em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}
.am-cerca-t b{font:400 clamp(26px,7.6vw,32px)/1 var(--deco); text-transform:uppercase; -webkit-text-stroke:0}
.am-pulso{position:relative; width:14px; height:14px; margin:6px 0 2px 4px; border-radius:50%; background:var(--vino)}
.am-pulso::after{content:""; position:absolute; inset:0; border-radius:50%; background:var(--vino); animation:am-pulso 1.3s ease-out infinite}
@keyframes am-pulso{to{transform:scale(3); opacity:0}}

.am-badges{display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px}
.am-st{display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border-radius:999px; font:600 16px/1 var(--cond); letter-spacing:.06em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}
.am-st::before{content:""; width:9px; height:9px; border-radius:50%; background:currentColor}
.am-st.ab{background:var(--am-verde-bg); color:var(--am-verde)}
.am-st.ce{background:var(--vino); color:#fff}
.am-dist{font:600 17px/1 var(--cond); letter-spacing:.06em; text-transform:uppercase; color:var(--vino); -webkit-text-stroke:var(--t-r) currentColor}
.am-mc{padding:5px 10px; border-radius:8px; box-shadow:inset 0 0 0 1.5px var(--vino); color:var(--vino); font:600 14px/1 var(--cond); letter-spacing:.08em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}

.am-msg{margin:0; padding:10px 14px; border-radius:var(--r-m); background:rgba(60,0,10,.6); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); font-size:16px; line-height:1.3; color:#fff}
.am-msg:empty{display:none}

/* Botones-píldora (Pedir aquí, A domicilio, Ver carta, Glovo, Uber Eats…) */
.am-acc{display:grid; gap:12px}
/* Todos los botones: superficie blanca, texto e iconos en vino.
   El icono va en una pastilla rosa clara (se reconoce de un vistazo) y la flecha indica que avanza.
   Al tocar: se hunde un poco y toma un tono rosado (respuesta inmediata, como en una app nativa). */
.am-pill{display:flex; align-items:center; gap:14px; min-height:78px; padding:12px 12px 12px 14px; border-radius:var(--r-xl); background:#fff; color:var(--vino); text-decoration:none;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 10px 26px rgba(40,0,6,.26); transition:transform .15s ease, background-color .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color:transparent}
.am-pill,.am-cerca,.am-tabs a,.am-chips button,.am-mini,.am-redes a,.am-volver,.am-lang{touch-action:manipulation}
.am-pill:active,.am-cerca:active,.am-tabs a:active,.am-chips button:active,.am-mini:active,.am-redes a:active,.am-loc-cab:active{transform:scale(.975); background-color:#FBEDED}
.app-m a:focus-visible,.app-m button:focus-visible{outline:3px solid #fff; outline-offset:3px}
.am-pill-1{min-height:88px; box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 14px 34px rgba(40,0,6,.34)}
.am-ic{width:56px; height:56px; flex:none; display:grid; place-items:center; color:var(--vino)}
.am-ic svg{width:40px; height:40px}
/* Iconos dibujados (moto, bolsa) con el mismo estilo que los de marca: vino, sin fondo */
.am-ic-svg svg{stroke-width:2.2}
.am-ic-s{width:32px; height:32px; object-fit:contain}
.am-pill-t{flex:1}
.am-pill-t{display:flex; flex-direction:column; gap:5px; min-width:0}
.am-pill-t b{font:400 clamp(26px,7.4vw,32px)/1 var(--deco); text-transform:uppercase; -webkit-text-stroke:0}
.am-pill-t small{font:400 16px/1.15 var(--cond); letter-spacing:.02em; color:var(--suave); -webkit-text-stroke:var(--t-f) currentColor}
.am-flecha{width:44px; height:44px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--vino); color:#fff; transition:transform .2s ease}
.am-flecha svg{width:22px; height:22px}
.am-pill:active .am-flecha{transform:translateX(3px)}
.am-acc .am-flecha:empty{background:var(--vino) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/22px no-repeat}
/* Acción secundaria: más baja y centrada, para que no compita con pedir */
.am-pill-c{justify-content:center; gap:12px; min-height:60px; padding:10px 24px; border-radius:999px; background:rgba(255,255,255,.94)}
.am-pill-c b{font:400 24px/1 var(--deco); text-transform:uppercase; -webkit-text-stroke:0}


/* ---------- Pide ahora ---------- */
.am-pide{padding-top:26px; margin-bottom:auto}
.am-pide>.deco{font-size:clamp(40px,12vw,54px); color:#fff; text-shadow:0 3px 18px rgba(40,0,6,.5)}
.am-sub{margin:8px 0 20px; font-size:19px}
.am-tabs{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:24px}
.am-tabs a{display:flex; flex-direction:column; justify-content:space-between; gap:18px; min-height:96px; padding:14px 12px 14px 14px; border-radius:var(--r-l); background:#fff; color:var(--vino); text-decoration:none; font:600 15px/1.05 var(--cond); letter-spacing:.03em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor; box-shadow:0 8px 20px rgba(40,0,6,.2); transition:transform .15s, box-shadow .2s}
.am-tabs a.on{box-shadow:inset 0 0 0 2.5px var(--vino),0 12px 28px rgba(40,0,6,.3)}
.am-tic{width:48px; height:48px; display:grid; place-items:center; color:var(--vino)}
.am-tic svg{width:36px; height:36px; -webkit-text-stroke:0}
.am-txt{margin:0 0 16px; font-size:19px}

/* Ubicaciones (desplegables) */
.am-locs{display:grid; gap:12px}
.am-loc{border-radius:var(--r-xl); background:#fff; color:var(--vino); box-shadow:0 12px 28px rgba(40,0,6,.25); overflow:hidden}
.am-loc-cab{display:flex; align-items:center; gap:12px; width:100%; padding:18px 18px 18px 20px; border:0; background:none; color:inherit; text-align:left; cursor:pointer}
.am-loc-t{flex:1; display:flex; flex-direction:column; gap:10px; min-width:0}
.am-loc-t b{font:400 clamp(26px,7.6vw,32px)/1 var(--deco); text-transform:uppercase; -webkit-text-stroke:0}
.am-chev{width:28px; height:28px; flex:none; transition:transform .25s}
.am-chev svg{width:100%; height:100%}
.am-loc.on .am-chev{transform:rotate(180deg)}
.am-loc-c{display:grid; gap:12px; padding:0 12px 14px; animation:am-in .3s ease both}
.am-loc-c img{width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:var(--r-l)}
.am-loc-d{margin:2px 8px; font-size:17px; color:var(--suave)}
.am-loc-c .am-pill{background:var(--rosa-cc); box-shadow:none; min-height:64px; padding-left:22px}
.am-loc-c .am-pill:active{background:#F4D2D2}
.am-loc-acc{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.am-mini{display:grid; place-items:center; min-height:48px; padding:8px 10px; border-radius:999px; box-shadow:inset 0 0 0 1.5px var(--am-borde); color:var(--vino); text-decoration:none; text-align:center; font:600 15px/1.05 var(--cond); letter-spacing:.04em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}

/* Pedidos online */
.am-rep{display:grid; gap:12px}
.am-plat{min-height:84px; padding-left:26px}
.am-plat .am-pill-t{justify-content:center; align-items:flex-start}
.am-plat img{display:block; width:auto}
.am-logo-glovo{height:38px}
.am-logo-uber{height:30px}

/* Carta */
.am-carta-cab{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px}
.am-carta-cab .deco{font-size:clamp(40px,12vw,54px); color:#fff}
.am-chips{display:flex; gap:10px; overflow-x:auto; margin:0 -16px 22px; padding:2px 16px 4px; scrollbar-width:none}
.am-chips::-webkit-scrollbar{display:none}
.am-chips button{flex:none; min-height:44px; padding:8px 22px; border:0; border-radius:999px; background:#fff; color:var(--vino); cursor:pointer; font:600 17px/1 var(--cond); letter-spacing:.06em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}
.am-cat{margin-bottom:34px}
.am-cat>h3{font-size:clamp(30px,9vw,40px); color:#fff; text-align:right; margin-bottom:20px}
.am-cat .pz{cursor:default}
.am-cat .bb-t{cursor:default}

/* Redes */
.am-redes{display:flex; justify-content:center; gap:14px; padding:30px 0 6px}
.am-redes a{width:52px; height:52px; display:grid; place-items:center; border-radius:50%; background:#fff; color:var(--vino); box-shadow:0 8px 20px rgba(40,0,6,.25)}
.am-redes svg{width:24px; height:24px}

/* =========================================================
   Pedir desde la app (js/pedir.js): carta, cesta y seguimiento
   Tarjetas blancas sobre el fondo vino, como el resto de la app.
   ========================================================= */
.ap-pant{padding-top:18px; margin-bottom:0; padding-bottom:calc(120px + var(--sab))}
.ap-pant>.deco{font-size:clamp(38px,11vw,50px); color:#fff; margin:6px 0 16px}

/* Cabecera de la carta: local y hora */
.ap-cab{display:grid; grid-template-columns:1.25fr 1fr; gap:10px}
.ap-chip,.ap-fila{display:flex; align-items:center; gap:10px; min-height:62px; padding:10px 12px; border:0; border-radius:var(--r-l); background:#fff; color:var(--vino); text-decoration:none; text-align:left; cursor:pointer; box-shadow:0 8px 20px rgba(40,0,6,.22); font:inherit}
.ap-chip-ic{width:34px; height:34px; flex:none; display:grid; place-items:center; border-radius:10px; background:var(--rosa-cc)}
.ap-chip-ic svg{width:20px; height:20px}
.ap-chip-t{display:flex; flex-direction:column; gap:3px; min-width:0}
.ap-chip-t small{font:600 12px/1 var(--cond); letter-spacing:.12em; text-transform:uppercase; color:var(--suave); -webkit-text-stroke:var(--t-f) currentColor}
.ap-chip-t b{font:600 16px/1.1 var(--cond); letter-spacing:.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-text-stroke:var(--t-r) currentColor}

/* Franjas de recogida (chips) */
.ap-franjas{display:flex; gap:8px; overflow-x:auto; margin:12px -16px 0; padding:2px 16px 6px; scrollbar-width:none}
.ap-franjas::-webkit-scrollbar{display:none}
.ap-caja .ap-franjas{margin:12px -14px 0; padding:2px 14px 4px}
.ap-franjas button{flex:none; display:flex; flex-direction:column; align-items:center; gap:2px; min-height:48px; padding:8px 14px; border:0; border-radius:14px; background:#fff; color:var(--vino); box-shadow:inset 0 0 0 1.5px var(--am-borde); cursor:pointer; font:600 15px/1 var(--cond); -webkit-text-stroke:var(--t-r) currentColor}
.ap-caja .ap-franjas button{background:var(--rosa-cc); box-shadow:none}
.ap-franjas button small{font-size:12px; opacity:.75}
.ap-franjas button[aria-checked="true"]{background:var(--vino); color:#fff}
.ap-nada{margin:0; color:var(--suave); font-size:16px}

/* Categorías fijas al desplazar */
.ap-cats{position:sticky; top:0; z-index:5; display:flex; gap:8px; overflow-x:auto; margin:14px -16px 6px; padding:10px 16px; scrollbar-width:none; background:linear-gradient(rgba(138,5,25,.97),rgba(138,5,25,.97))}
.ap-cats::-webkit-scrollbar{display:none}
.ap-cats button{flex:none; min-height:40px; padding:8px 18px; border:0; border-radius:999px; background:#fff; color:var(--vino); cursor:pointer; font:600 15px/1 var(--cond); letter-spacing:.06em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}
.ap-aviso{margin:8px 0; padding:12px 14px; border-radius:var(--r-m); background:rgba(60,0,10,.45); color:#fff; font-size:16px}

/* Productos */
.ap-sec{scroll-margin-top:70px}
.ap-sec>h2{font-size:clamp(28px,8vw,36px); color:#fff; margin:20px 2px 12px}
.ap-prod{display:flex; gap:12px; align-items:stretch; padding:12px; margin-bottom:10px; border-radius:var(--r-l); background:#fff; color:var(--tinta); cursor:pointer; box-shadow:0 8px 20px rgba(40,0,6,.18); transition:transform .15s; -webkit-tap-highlight-color:transparent}
.ap-prod:active{transform:scale(.98)}
.ap-prod-t{flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; padding:2px 0 2px 4px}
.ap-prod-t b{font:400 22px/1 var(--deco); color:var(--vino); text-transform:uppercase; -webkit-text-stroke:0}
.ap-prod-t p{margin:0; font-size:15px; line-height:1.25; color:var(--suave); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.ap-precio{margin-top:auto; font:600 17px/1 var(--cond); color:var(--vino); -webkit-text-stroke:var(--t-m) currentColor}
.ap-precio i{font-style:normal; margin-left:6px; padding:3px 8px; border-radius:999px; background:var(--rosa-cc); font-size:12px; letter-spacing:.06em; text-transform:uppercase}
.ap-prod-f{position:relative; width:96px; height:96px; flex:none}
.ap-prod-f img{width:100%; height:100%; object-fit:cover; border-radius:16px; background:var(--rosa-cc)}
.ap-mas{position:absolute; right:-4px; bottom:-4px; width:38px; height:38px; display:grid; place-items:center; border:0; border-radius:50%; background:var(--vino); color:#fff; cursor:pointer; box-shadow:0 4px 12px rgba(40,0,6,.3); font:700 16px/1 var(--cond)}
.ap-mas svg{width:18px; height:18px}
.ap-mas.con{background:#fff; color:var(--vino); box-shadow:inset 0 0 0 2px var(--vino),0 4px 12px rgba(40,0,6,.25)}
.ap-mas.pop,.ap-up.pop{animation:ap-pop .35s ease}
@keyframes ap-pop{50%{transform:scale(1.2)}}

/* Barra inferior: «Ver mi pedido» / «Pagar» */
.ap-barra{position:fixed; left:0; right:0; bottom:0; z-index:30; padding:12px 16px calc(12px + var(--sab)); background:linear-gradient(rgba(106,15,24,0),rgba(106,15,24,.9) 40%)}
.ap-barra button{display:flex; align-items:center; gap:12px; width:100%; min-height:62px; padding:10px 22px; border:0; border-radius:999px; background:#fff; color:var(--vino); cursor:pointer; box-shadow:0 14px 34px rgba(40,0,6,.45); font:600 19px/1 var(--cond); letter-spacing:.04em; text-transform:uppercase; -webkit-text-stroke:var(--t-m) currentColor}
.ap-barra button:active{transform:scale(.98)}
.ap-barra button[disabled]{opacity:.7}
.ap-barra i{width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:var(--vino); color:#fff; font-style:normal; font-size:16px}
.ap-barra span{flex:1; text-align:left}
.ap-barra button span:only-child{text-align:center}
.ap-barra b{font-variant-numeric:tabular-nums}
/* En la app el aviso sale abajo, encima de la barra; top:auto evita que se estire entre top y bottom */
html.modo-app .toast{top:auto; bottom:calc(24px + var(--sab)); z-index:95}
html.con-barra .toast{bottom:calc(96px + var(--sab))}

/* Ficha de producto (hoja inferior) */
.ap-velo{position:fixed; inset:0; z-index:40; background:rgba(30,0,6,.55); opacity:0; transition:opacity .3s}
.ap-velo.on{opacity:1}
.ap-hoja{position:fixed; left:0; right:0; bottom:0; z-index:41; max-height:92dvh; display:flex; flex-direction:column; border-radius:var(--r-xl) var(--r-xl) 0 0; background:#fff; color:var(--tinta); transform:translateY(100%); transition:transform .32s cubic-bezier(.2,.8,.2,1); overflow:hidden}
.ap-hoja.on{transform:none}
.ap-x{position:absolute; top:12px; right:12px; z-index:2; width:40px; height:40px; display:grid; place-items:center; border:0; border-radius:50%; background:#fff; color:var(--vino); box-shadow:0 4px 14px rgba(40,0,6,.25); cursor:pointer}
.ap-x svg{width:20px; height:20px}
.ap-hoja-c{overflow-y:auto; overscroll-behavior:contain}
.ap-hoja-f{background:var(--rosa-cc)}
.ap-hoja-f img{width:100%; aspect-ratio:4/3; object-fit:cover}
.ap-hoja-d{padding:18px 18px 8px; display:flex; flex-direction:column; gap:10px}
.ap-hoja-d h2{font-size:34px; color:var(--vino)}
.ap-hoja-d p{margin:0; font-size:17px; color:var(--suave)}
.ap-tags{display:flex; flex-wrap:wrap; gap:6px}
.ap-tags span{padding:6px 10px; border-radius:999px; background:var(--rosa-cc); color:var(--vino); font-size:14px}
.ap-hoja-pie{display:flex; gap:10px; align-items:center; padding:12px 16px calc(12px + var(--sab)); border-top:1px solid var(--linea)}
.ap-cant{display:flex; align-items:center; gap:4px; border-radius:999px; background:var(--rosa-cc)}
.ap-cant button{width:44px; height:48px; border:0; background:none; color:var(--vino); cursor:pointer; font:700 22px/1 var(--cond)}
.ap-cant button[disabled]{opacity:.35}
.ap-cant b{min-width:22px; text-align:center; color:var(--vino); font:700 18px/1 var(--cond)}
.ap-add{flex:1; display:flex; justify-content:space-between; align-items:center; min-height:52px; padding:10px 20px; border:0; border-radius:999px; background:var(--vino); color:#fff; cursor:pointer; font:600 18px/1 var(--cond); letter-spacing:.04em; text-transform:uppercase; -webkit-text-stroke:var(--t-m) currentColor}

/* Campos */
.ap-campo{display:flex; flex-direction:column; gap:6px; margin-top:10px}
.ap-campo>span{font:600 14px/1 var(--cond); letter-spacing:.08em; text-transform:uppercase; color:var(--suave); -webkit-text-stroke:var(--t-f) currentColor}
.ap-campo input,.ap-campo textarea{width:100%; min-height:50px; padding:12px 14px; border:1.5px solid var(--linea); border-radius:14px; background:#fff; color:var(--tinta); font:400 18px/1.3 var(--txt); -webkit-text-stroke:var(--t-f) currentColor}
.ap-campo input:focus,.ap-campo textarea:focus{outline:none; border-color:var(--vino)}

/* Cesta */
.ap-caja{margin-bottom:12px; padding:16px 14px; border-radius:var(--r-l); background:#fff; color:var(--tinta); box-shadow:0 8px 20px rgba(40,0,6,.18)}
.ap-caja>h2{margin:0 0 10px; font:600 15px/1 var(--cond); letter-spacing:.12em; text-transform:uppercase; color:var(--vino); -webkit-text-stroke:var(--t-r) currentColor}
.ap-linea{display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid var(--linea)}
.ap-linea img{width:54px; height:54px; flex:none; object-fit:cover; border-radius:12px; background:var(--rosa-cc)}
.ap-linea-t{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px}
.ap-linea-t b{font:600 17px/1.1 var(--cond); color:var(--vino); -webkit-text-stroke:var(--t-r) currentColor}
.ap-linea-t small{color:var(--suave); font-size:14px}
.ap-linea-t span{font:600 15px/1 var(--cond); color:var(--tinta)}
.ap-cant-s button{width:36px; height:40px; font-size:20px}
.ap-total{display:flex; justify-content:space-between; align-items:center; padding-top:12px; font:600 19px/1 var(--cond); color:var(--vino); text-transform:uppercase; letter-spacing:.06em; -webkit-text-stroke:var(--t-m) currentColor}
.ap-carril{display:flex; gap:10px; overflow-x:auto; margin:0 -14px; padding:2px 14px 4px; scrollbar-width:none}
.ap-carril::-webkit-scrollbar{display:none}
.ap-up{position:relative; flex:none; width:112px; display:flex; flex-direction:column; gap:4px; padding:8px; border:0; border-radius:16px; background:var(--rosa-cc); color:var(--vino); text-align:left; cursor:pointer; font:inherit}
.ap-up img{width:100%; aspect-ratio:1; object-fit:contain}
.ap-up b{font:600 14px/1.1 var(--cond); -webkit-text-stroke:var(--t-f) currentColor}
.ap-up span{font-size:14px}
.ap-up i{position:absolute; top:6px; right:6px; width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:var(--vino); color:#fff}
.ap-up i svg{width:14px; height:14px}
.ap-fila{box-shadow:inset 0 0 0 1.5px var(--am-borde)}
.ap-fila .ap-chip-t{flex:1}
.ap-fila .ap-chip-t small{text-transform:none; letter-spacing:0; font:400 14px/1.2 var(--txt); -webkit-text-stroke:0}
.ap-cambiar{font:600 13px/1 var(--cond); letter-spacing:.08em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}
.ap-pago-m{display:flex; gap:6px; margin-bottom:10px}
.ap-pago-m span{padding:6px 10px; border-radius:8px; background:var(--rosa-cc); color:var(--vino); font:700 13px/1 system-ui,sans-serif}
.ap-pago p{margin:0; font-size:15px; color:var(--suave)}
.ap-pago p b{color:var(--tinta)}
.ap-check{display:flex; gap:10px; align-items:flex-start; padding:4px 4px 10px; font-size:15px; color:#fff}
.ap-check input{width:22px; height:22px; flex:none; margin-top:1px; accent-color:#fff}
.ap-check a{color:#fff}
.ap-error{margin:0 0 12px; padding:12px 14px; border-radius:var(--r-m); background:#fff; color:var(--error); font-weight:600}

/* Seguimiento */
.am-estado,.ap-pant#am-estado{text-align:center}
.ap-ok{width:72px; height:72px; margin:4px auto 6px; display:grid; place-items:center; border-radius:50%; background:#fff; color:var(--vino)}
.ap-ok svg{width:38px; height:38px}
.ap-num{display:flex; flex-direction:column; gap:6px; align-items:center}
.ap-num small{font:600 13px/1 var(--cond); letter-spacing:.14em; text-transform:uppercase; color:var(--suave)}
.ap-num b{font:400 54px/1 var(--deco); color:var(--vino); letter-spacing:.02em}
.ap-num span{font-size:15px; color:var(--suave)}
.ap-rapida{background:var(--rosa-cc)}
.ap-rapida p{margin:0; font-size:16px}
.ap-acc{margin-bottom:12px}
.ap-acc .am-mini{background:#fff}
#apPasos{text-align:left}

/* =========================================================
   Inicio estilo app: foto del local, saludo y hoja «Pide ahora»
   Paleta: vino #96041E · rosa #E2B0AE · blanco · rosa intenso #FB72A5 (solo para destacar)
   ========================================================= */
.app-m{--acento:#FB72A5}
.ah-foto{position:absolute; top:0; left:0; right:0; height:min(66dvh,600px); z-index:0; pointer-events:none;
  background:linear-gradient(180deg,rgba(40,0,8,.55) 0%,rgba(40,0,8,.12) 24%,rgba(60,0,12,.18) 50%,rgba(100,2,20,.7) 80%,#8A0619 100%),url(../assets/img/hero-app.webp) center 30%/cover no-repeat}
/* En el resto de pantallas la misma foto queda como cabecera corta detrás del logo */
.en-pide .ah-foto{height:230px; background-position:center 40%}
.app-m:not(.en-pide) .am-top{margin-top:0}
.am-hola{flex:1 0 auto; display:flex; flex-direction:column; justify-content:flex-end; gap:0; padding-top:0; padding-bottom:0; margin-bottom:0; min-height:calc(100dvh - var(--sat) - 72px)}
.ah-hero{padding:24px 6px 22px; color:#fff; text-shadow:0 3px 18px rgba(40,0,6,.55)}
.ah-hero .saludo{margin:0 0 10px}
.ah-hero .deco{font-size:clamp(48px,14.5vw,68px); line-height:.9; color:#fff}
.ah-hero .deco span{display:block; color:var(--am-rosa)}
.ah-nov{margin:12px 0 0; font-size:19px; color:#fff}

.ah-hoja{position:relative; margin:0 -16px; padding:30px 20px calc(30px + var(--sab)); border-radius:32px 32px 0 0; background:#fff; color:var(--tinta); box-shadow:0 -14px 40px rgba(40,0,6,.3); display:flex; flex-direction:column; gap:14px}
.ah-hoja::before{content:""; position:absolute; top:10px; left:50%; width:44px; height:5px; margin-left:-22px; border-radius:3px; background:var(--rosa)}
.ah-hoja>h2{font-size:clamp(36px,10.5vw,44px); color:var(--vino)}
.ah-local{display:flex; align-items:center; gap:12px; width:100%; margin-top:-2px; padding:12px 14px; border:0; border-radius:18px; background:var(--rosa-cc); color:var(--vino); text-align:left; cursor:pointer; font:inherit}
.ah-local>img{width:34px; height:34px; flex:none; padding:5px; border-radius:50%; background:#fff}
.ah-local>span{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px}
.ah-local b{font:600 19px/1.15 var(--cond); letter-spacing:.02em; -webkit-text-stroke:var(--t-r) currentColor}
.ah-local b span{font-weight:400; color:var(--suave)}
.ah-local small{font-size:15px; color:var(--suave)}
.ah-local small i,.am-mc-h i{display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; vertical-align:1px}
.ah-local i.ab,.am-mc-h i.ab{background:var(--am-verde)}
.ah-local i.ce,.am-mc-h i.ce{background:var(--vino)}
.ah-local>svg{width:20px; height:20px; flex:none; transform:rotate(-90deg)}
.ah-local .am-pulso{margin:4px 0 0 2px}

.ah-tipos{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:4px}
.ah-tipos button{position:relative; display:flex; align-items:center; gap:12px; min-height:84px; padding:14px; border:0; border-radius:20px; background:#fff; color:var(--vino); cursor:pointer; text-align:left;
  box-shadow:inset 0 0 0 1.5px var(--am-borde),0 6px 16px rgba(40,0,6,.06); transition:transform .15s, background-color .15s, box-shadow .15s; font:inherit; -webkit-tap-highlight-color:transparent}
.ah-tipos button:active{transform:scale(.97)}
.ah-ic{width:46px; height:46px; flex:none; display:grid; place-items:center; border-radius:14px; background:var(--rosa-cc); transition:background-color .15s, color .15s}
.ah-ic svg{width:26px; height:26px}
.ah-tt{display:flex; flex-direction:column; gap:4px; min-width:0}
.ah-tt b{font:600 17px/1.05 var(--cond); letter-spacing:.03em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}
.ah-tt small{font-size:14px; line-height:1.15; color:var(--suave)}
.ah-tipos button[aria-checked="true"]{background:var(--rosa-cc); box-shadow:inset 0 0 0 2px var(--vino),0 10px 22px rgba(150,4,30,.14)}
.ah-tipos button[aria-checked="true"] .ah-ic{background:var(--vino); color:#fff}
.ah-ok{position:absolute; top:-8px; right:-8px; width:26px; height:26px; display:none; place-items:center; border-radius:50%; background:var(--acento); color:#fff; box-shadow:0 0 0 3px #fff}
.ah-ok svg{width:15px; height:15px}
.ah-tipos button[aria-checked="true"] .ah-ok{display:grid; animation:ap-pop .3s ease}
.ah-desc{margin:0; min-height:2.6em; font-size:17px; line-height:1.3; color:var(--suave)}

.ah-cta{display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:66px; padding:10px 10px 10px 26px; border-radius:999px; background:var(--vino); color:#fff; text-decoration:none; box-shadow:0 12px 28px rgba(150,4,30,.35); transition:transform .15s; font:600 22px/1 var(--cond); letter-spacing:.04em; text-transform:uppercase; -webkit-text-stroke:var(--t-m) currentColor}
.ah-cta:active{transform:scale(.98)}
.ah-cta-f{width:48px; height:48px; flex:none; display:grid; place-items:center; border-radius:50%; background:#fff; color:var(--vino)}
.ah-cta-f svg{width:22px; height:22px}
.ah-sec{display:flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:6px; border:0; background:none; color:var(--vino); text-decoration:none; cursor:pointer; font:600 16px/1 var(--cond); letter-spacing:.06em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}
.ah-sec svg,.ah-sec img{width:24px; height:24px}
.ah-sec[hidden]{display:none}
.ah-hoja .am-msg{background:var(--rosa-cc); color:var(--tinta)}

/* ---------- Mapa de locales ---------- */
.am-mapa{position:fixed; inset:0; z-index:60; background:var(--rosa-cc)}
/* Con id: la hoja de estilos de MapLibre pone position:relative a .maplibregl-map y el mapa quedaría sin alto */
#amMapaM{position:absolute; inset:0}
.am-mapa-m.sin{background:#FBF3F2}
.am-mapa-b{position:absolute; right:16px; z-index:500; width:46px; height:46px; display:grid; place-items:center; border:0; border-radius:50%; background:#fff; color:var(--vino); box-shadow:0 6px 18px rgba(40,0,6,.25); cursor:pointer}
.am-mapa-b svg{width:20px; height:20px}
.am-mapa-x{top:calc(var(--sat) + 16px)}
.am-mapa-yo{top:calc(var(--sat) + 72px)}
.am-mapa-p{position:absolute; left:0; right:0; bottom:0; z-index:500; display:grid; grid-template-columns:34px 1fr 34px; align-items:center; gap:4px; padding:0 6px calc(14px + var(--sab))}
.am-mapa-fl{width:34px; height:34px; display:grid; place-items:center; border:0; border-radius:50%; background:#fff; color:var(--vino); box-shadow:0 4px 12px rgba(40,0,6,.2); cursor:pointer}
.am-mapa-fl svg{width:18px; height:18px}
.am-mapa-fl[disabled]{opacity:.35; cursor:default}
.am-mapa-card{position:relative; min-width:0; display:flex; flex-direction:column; gap:10px; padding:24px 18px 18px; border-radius:28px; background:rgba(255,255,255,.97); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); color:var(--tinta); box-shadow:0 14px 40px rgba(40,0,6,.3); animation:am-in .25s ease both}
.am-mc-d{position:absolute; top:-14px; left:16px; padding:6px 12px; border-radius:999px; background:#fff; color:var(--vino); box-shadow:0 4px 12px rgba(40,0,6,.2); font:600 14px/1 var(--cond); letter-spacing:.04em; -webkit-text-stroke:var(--t-r) currentColor}
.am-mapa-card>b.deco{font-size:30px; color:var(--vino)}
.am-mc-h{font-size:15px; color:var(--suave)}
.am-mc-f{display:flex; gap:12px; align-items:flex-start; padding-right:64px}
.am-mc-ic{width:34px; height:34px; flex:none; display:grid; place-items:center; border-radius:10px; background:var(--rosa-cc); color:var(--vino)}
.am-mc-ic svg{width:18px; height:18px}
.am-mc-f b{font:600 16px/1.2 var(--cond); color:var(--vino); -webkit-text-stroke:var(--t-r) currentColor}
.am-mc-f b span.ab{color:var(--am-verde)}
.am-mc-f small{display:block; margin-top:2px; font-size:14px; line-height:1.3; color:var(--suave)}
.am-mc-acc{display:flex; gap:18px; padding-right:64px}
.am-mc-acc a{color:var(--vino); font:600 14px/1 var(--cond); letter-spacing:.06em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}
.am-mc-ok{position:absolute; right:16px; bottom:16px; width:58px; height:58px; display:grid; place-items:center; border:0; border-radius:50%; background:var(--vino); color:#fff; box-shadow:0 8px 20px rgba(150,4,30,.35); cursor:pointer}
.am-mc-ok svg{width:24px; height:24px}
.am-mc-ok:active{transform:scale(.94)}
/* Chinchetas: icono de Pizzi en una burbuja blanca; la del local elegido crece y se pone vino */
.am-pin{padding:0; border:0; background:none; cursor:pointer}
.am-pin span{display:grid; place-items:center; width:42px; height:42px; border-radius:50% 50% 50% 6px; transform:rotate(-45deg); background:#fff; box-shadow:0 6px 16px rgba(80,0,16,.28); transition:transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s}
.am-pin img{width:24px; height:24px; transform:rotate(45deg)}
.am-pin.on{z-index:2}
.am-pin.on span{background:var(--vino); transform:rotate(-45deg) scale(1.22)}
.am-pin.on img{filter:brightness(0) invert(1)}
.am-yo span{display:block; width:18px; height:18px; border-radius:50%; background:var(--acento); border:3px solid #fff; box-shadow:0 0 0 10px rgba(251,114,165,.22),0 2px 6px rgba(80,0,16,.3); animation:am-yo 2s ease-out infinite}
@keyframes am-yo{50%{box-shadow:0 0 0 16px rgba(251,114,165,.08),0 2px 6px rgba(80,0,16,.3)}}
.am-mapa .maplibregl-ctrl-attrib{font-size:10px; margin-bottom:calc(var(--sab) + 2px)!important}


/* =========================================================
   Ordenador: la misma app, centrada en una columna sobre la foto (como Honest Greens)
   ========================================================= */
@media (min-width:700px){
  .app-m{--ancho:620px}
  .am-top{padding-left:32px; padding-right:32px}
  .am-p{width:100%; max-width:var(--ancho); margin-left:auto; margin-right:auto}
  .am-hola{max-width:none; padding-left:0; padding-right:0}
  .ah-hero{width:100%; max-width:1100px; margin:0 auto; padding:40px 40px 34px}
  .ah-hero .deco{font-size:clamp(68px,9vw,128px)}
  .ah-hero .deco span{display:inline}
  .ah-nov{font-size:23px}
  .ah-foto{height:78dvh; background-position:center 40%}
  .ah-hoja{width:100%; max-width:var(--ancho); margin:0 auto; padding:34px 40px calc(30px + var(--sab))}
  .am-pide{max-width:720px}
  .am-tabs a{min-height:110px}
  .am-loc-c img{aspect-ratio:auto; height:280px}
  .ap-pant{max-width:var(--ancho)}
  .ap-cats,.ap-franjas{margin-left:0; margin-right:0; padding-left:0; padding-right:0}
  .ap-barra{left:50%; right:auto; width:min(100%,var(--ancho)); transform:translateX(-50%)}
  .ap-hoja{left:50%; right:auto; bottom:auto; top:50%; width:min(100% - 48px,600px); max-height:88dvh; border-radius:var(--r-xl); transform:translate(-50%,-46%); opacity:0; transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s}
  .ap-hoja.on{transform:translate(-50%,-50%); opacity:1}
  .ap-hoja-pie{padding-bottom:16px}
  .am-aviso{align-items:center; justify-content:center}
  .am-aviso-c{max-width:520px; border-radius:var(--r-xl); padding-bottom:28px}
  .am-mapa-p{max-width:640px; margin:0 auto; grid-template-columns:44px 1fr 44px; gap:10px; padding-bottom:24px}
  .am-mapa-fl{width:44px; height:44px}
}
@media (min-width:1100px){
  .ah-hoja{max-width:760px}
}

/* ---------- Extras, sugerencia de bebidas y alergias (js/pedir.js) ---------- */
.ap-ext{margin:6px 0 0; padding:14px 0 4px; border:0; border-top:1px solid var(--linea)}
/* La leyenda flota para que el borde superior del grupo no se corte a su lado */
.ap-ext legend{float:left; width:100%; display:flex; flex-direction:column; gap:3px; padding:0; margin-bottom:8px}
.ap-op{clear:both}
.ap-ext legend b{font:400 24px/1 var(--deco); color:var(--vino); text-transform:uppercase; -webkit-text-stroke:0}
.ap-ext legend small{font-size:14px; color:var(--suave)}
.ap-ext.error legend small{color:var(--error); font-weight:600}
.ap-op{display:flex; align-items:center; gap:12px; min-height:48px; padding:6px 2px; border-bottom:1px solid var(--linea); cursor:pointer; font-size:17px}
.ap-op input{width:22px; height:22px; flex:none; accent-color:var(--vino)}
.ap-op span{flex:1}
.ap-op em{font-style:normal; color:var(--vino); font-weight:600}
.ap-sug .ap-hoja-d{padding-top:30px}
.ap-sug .ap-hoja-d h2{padding-right:44px}
.ap-sug .ap-carril{margin:4px -18px 0; padding:2px 18px 8px}
.ap-sug .ap-up{width:132px; background:var(--rosa-cc)}
.ap-nota{margin:0 0 10px; font-size:15px; color:var(--suave)}
.ap-alerg{display:flex; flex-wrap:wrap; gap:8px}
.ap-alerg button{min-height:40px; padding:8px 14px; border:0; border-radius:999px; background:var(--rosa-cc); color:var(--vino); cursor:pointer; font:600 15px/1 var(--cond); -webkit-text-stroke:var(--t-f) currentColor}
.ap-alerg button[aria-pressed="true"]{background:var(--vino); color:#fff}
.ap-link{display:inline-block; margin:12px 0 2px; color:var(--vino); font-size:15px}
.ap-cuenta{align-self:flex-end; font-size:13px; color:var(--suave)}

/* ---------- «Las más pedidas» en el inicio ---------- */
.ah-top{margin:10px -20px 0; padding-top:18px; border-top:1px solid var(--linea)}
.ah-top-cab{display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:0 20px 12px}
.ah-top-cab h3{font-size:28px; color:var(--vino)}
.ah-top-cab a{color:var(--vino); font:600 14px/1 var(--cond); letter-spacing:.08em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}
.ah-carril{display:flex; gap:12px; overflow-x:auto; padding:2px 20px 10px; scroll-snap-type:x mandatory; scroll-padding:0 20px; scrollbar-width:none}
.ah-carril::-webkit-scrollbar{display:none}
.ah-pz{position:relative; flex:0 0 148px; scroll-snap-align:start; display:flex; flex-direction:column; gap:4px; padding:10px 10px 14px; border-radius:22px; background:var(--rosa-cc); color:var(--vino); text-decoration:none; transition:transform .15s}
.ah-pz:active{transform:scale(.97)}
.ah-pz-f{display:block; aspect-ratio:1; margin-bottom:6px}
.ah-pz-f img{width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 8px 12px rgba(80,0,16,.25)); transition:transform .3s}
.ah-pz:hover .ah-pz-f img{transform:rotate(-8deg) scale(1.04)}
.ah-pz i{position:absolute; top:10px; left:10px; padding:4px 9px; border-radius:999px; background:var(--acento); color:#fff; font:600 11px/1 var(--cond); font-style:normal; letter-spacing:.08em; text-transform:uppercase}
.ah-pz b{font:400 20px/1 var(--deco); text-transform:uppercase; -webkit-text-stroke:0}
.ah-pz span:last-child{font:600 15px/1 var(--cond); color:var(--tinta)}
@media (min-width:700px){.ah-top{margin:10px -40px 0}.ah-top-cab{padding:0 40px 12px}.ah-carril{padding:2px 40px 10px; scroll-padding:0 40px}}


/* =========================================================
   Resto de pantallas con el mismo look que el inicio:
   foto de cabecera, hoja blanca redondeada encima y, dentro, tarjetas rosa claro,
   bordes finos, títulos en vino y el botón principal vino con círculo blanco.
   ========================================================= */
.app-m.en-pide .am-top{margin-top:0}
.app-m.en-pide .am-pide,.app-m.en-pide .ap-pant{position:relative; flex:1 0 auto; margin:96px 0 0; padding:34px 20px calc(30px + var(--sab)); border-radius:32px 32px 0 0;
  background:#fff; color:var(--tinta); box-shadow:0 -14px 40px rgba(40,0,6,.3)}
.app-m.en-pide .ap-pant{padding-bottom:calc(120px + var(--sab))}
.app-m.en-pide .am-pide::before,.app-m.en-pide .ap-pant::before{content:""; position:absolute; top:10px; left:50%; width:44px; height:5px; margin-left:-22px; border-radius:3px; background:var(--rosa)}
.am-pide>.deco,.ap-pant>.deco,.am-carta-cab .deco{color:var(--vino); text-shadow:none}
.am-sub,.am-txt{color:var(--suave)}

/* Pestañas como las tarjetas de tipo de pedido */
.am-tabs a{background:#fff; box-shadow:inset 0 0 0 1.5px var(--am-borde),0 6px 16px rgba(40,0,6,.06); border-radius:20px}
.am-tic{border-radius:14px; background:var(--rosa-cc)}
.am-tic img{width:70%; height:70%}
.am-tabs a.on{background:var(--rosa-cc); box-shadow:inset 0 0 0 2px var(--vino),0 10px 22px rgba(150,4,30,.14)}
.am-tabs a.on .am-tic{background:var(--vino); color:#fff}
.am-tabs a.on .am-tic img{filter:brightness(0) invert(1)}

/* Locales: tarjetas rosa claro como la del local en el inicio */
.am-loc{background:var(--rosa-cc); box-shadow:none; border-radius:22px}
.am-loc.on{box-shadow:inset 0 0 0 2px var(--vino)}
.am-loc-c .am-pill{background:var(--vino); color:#fff}
.am-loc-c .am-pill .am-flecha{background:#fff; color:var(--vino)}
.am-loc-c .am-pill:active{background:var(--vino-o)}
.am-mini{background:#fff; box-shadow:inset 0 0 0 1.5px var(--am-borde)}

/* Botones de reparto y demás píldoras dentro de la hoja */
.am-pide .am-pill{box-shadow:inset 0 0 0 1.5px var(--am-borde),0 6px 16px rgba(40,0,6,.06); border-radius:22px}
.am-redes a{background:var(--rosa-cc); box-shadow:none}

/* Carta para consultar sobre fondo blanco */
.am-chips button,.ap-cats button{background:var(--rosa-cc)}
.am-cat>h3,.ap-sec>h2{color:var(--vino); text-shadow:none}
.am-cat .pz p{color:var(--suave)}
.am-cat .pz-pill{box-shadow:0 8px 18px rgba(80,0,16,.14)}
.am-cat .bb-t{color:var(--vino)}
.am-cat .bb-t .pts{border-bottom-color:var(--rosa)}

/* Carta para pedir */
.ap-chip,.ap-fila{background:var(--rosa-cc); box-shadow:none; border-radius:18px}
.ap-chip-ic{background:#fff}
.ap-cats{margin:14px -20px 6px; padding:10px 20px; background:#fff}
.ap-franjas{margin-left:-20px; margin-right:-20px; padding-left:20px; padding-right:20px}
#apFranjasCab button{background:var(--rosa-cc); box-shadow:none}
.ap-aviso{background:var(--rosa-cc); color:var(--tinta)}
.ap-prod{box-shadow:inset 0 0 0 1.5px var(--am-borde),0 6px 16px rgba(40,0,6,.06); border-radius:22px}
.ap-prod-f img{border-radius:16px}

/* Cesta y seguimiento */
.ap-caja{box-shadow:inset 0 0 0 1.5px var(--am-borde),0 6px 16px rgba(40,0,6,.06); border-radius:22px}
.ap-check{color:var(--tinta)}
.ap-check input{accent-color:var(--vino)}
.ap-check a{color:var(--vino)}
.ap-error{background:var(--rosa-cc)}
.ap-ok{background:var(--vino); color:#fff; box-shadow:0 10px 24px rgba(150,4,30,.3)}
.ap-acc .am-mini{background:#fff}

/* Barra inferior como el botón principal del inicio */
.ap-barra{background:linear-gradient(rgba(255,255,255,0),#fff 45%)}
.ap-barra button{background:var(--vino); color:#fff; box-shadow:0 12px 28px rgba(150,4,30,.35); min-height:66px; padding:10px 12px 10px 26px}
.ap-barra i{background:#fff; color:var(--vino)}
.ap-barra button b{padding:10px 16px; border-radius:999px; background:#fff; color:var(--vino)}

@media (min-width:700px){
  .app-m.en-pide .am-pide,.app-m.en-pide .ap-pant{margin-top:110px; padding-left:40px; padding-right:40px}
  .ap-cats{margin-left:-40px; margin-right:-40px; padding-left:40px; padding-right:40px}
  .en-pide .ah-foto{height:300px}
}
.am-cat .tag{background:var(--acento); color:#fff; box-shadow:none}

/* Alérgenos y bebidas sobre la hoja blanca */
.am-cat .al-ley,.ap-sec .al-ley{color:var(--vino); background:var(--rosa-cc); box-shadow:none}
.am-cat .al-i,.ap-sec .al-i{background:#fff; box-shadow:inset 0 0 0 1.5px var(--am-borde)}
.am-cat .al-fila .al-i{background:var(--rosa-cc); box-shadow:none}
.am-cat .al-ley b,.ap-sec .al-ley b{color:var(--vino)}
.ap-sec .al-ley{margin:0 0 14px}
.am-cat .bb-f{background:var(--rosa-cc)}
.ap-prod .al-fila{justify-content:flex-start; margin:2px 0 0; gap:5px}
.ap-prod .al-i{width:24px; height:24px; background:var(--rosa-cc); box-shadow:none}

/* Foto del local en la tarjeta del mapa */
.am-mc-foto{display:block; max-width:none; width:calc(100% + 36px); margin:-24px -18px 4px; aspect-ratio:16/8; object-fit:cover; border-radius:28px 28px 0 0}
.am-mapa-card .am-mc-d{top:12px; left:12px; z-index:1}
/* Ordenador: foto del local de fondo en el inicio (en el móvil, la de las pizzas) */
@media (min-width:700px){.app-m:not(.en-pide) .ah-foto{background-image:linear-gradient(180deg,rgba(40,0,8,.5) 0%,rgba(40,0,8,.15) 30%,rgba(100,2,20,.7) 80%,#8A0619 100%),url(../assets/img/hero-web.webp); background-position:center 45%}}

.am-lang .bandera{width:26px; height:18px}
.am-lang-l button{justify-content:flex-start; gap:12px}
#amc-alergenos .al-sec{padding:4px 0 0; background:none}
.am-cat .al-tabla tbody th{font-size:18px}

/* ---------- Ajustes de la app (móvil) ---------- */
.app-m{background:#96041E}
html.modo-app,html.modo-app body{background:#96041E}
.ah-foto{background-image:linear-gradient(180deg,rgba(40,0,8,.45) 0%,rgba(40,0,8,.1) 30%,rgba(120,2,24,.65) 78%,#96041E 100%),url(../assets/img/hero-app.webp)}
.am-top{padding-top:calc(var(--sat) + 30px)}
.ah-hero .deco{font-size:clamp(30px,9vw,40px)}
.ah-hoja{gap:12px; padding-bottom:calc(10px + var(--sab))}
.ah-hoja>.ah-sec:last-child{min-height:40px; padding-bottom:0}
/* App (móvil): sin foto, fondo vino liso en todas las pantallas */
.ah-foto{display:none!important}

/* ---------- Menú lateral ---------- */
.am-menu-b{grid-column:1; grid-row:1; width:44px; height:44px; background:#fff; color:var(--vino); box-shadow:0 6px 18px rgba(40,0,6,.25)}
.am-menu-b svg{width:22px; height:22px}
.am-menu-b[hidden]{display:none}
.am-menu{position:fixed; inset:0; z-index:110; background:rgba(30,0,6,.55); opacity:0; transition:opacity .25s}
.am-menu.on{opacity:1}
.am-menu-c{position:absolute; top:0; bottom:0; left:0; width:min(84vw,360px); display:flex; flex-direction:column; overflow-y:auto; background:#fff; color:var(--vino); transform:translateX(-100%); transition:transform .28s cubic-bezier(.2,.8,.2,1); border-radius:0 28px 28px 0}
.am-menu.on .am-menu-c{transform:none}
.am-menu-cab{display:flex; align-items:center; justify-content:space-between; padding:calc(var(--sat) + 24px) 20px 22px; background:var(--vino)}
.am-menu-cab img{width:110px}
.am-menu-x{width:40px; height:40px; display:grid; place-items:center; border:0; border-radius:50%; background:rgba(255,255,255,.15); color:#fff; cursor:pointer}
.am-menu-x svg{width:20px; height:20px}
.am-menu ul{list-style:none; margin:0; padding:8px 14px}
.am-menu li a{display:flex; align-items:center; gap:14px; min-height:60px; padding:8px 6px; border-bottom:1px solid var(--linea); color:var(--vino); text-decoration:none; font:600 18px/1.1 var(--cond); letter-spacing:.03em; -webkit-text-stroke:var(--t-r) currentColor}
.am-mi{width:40px; height:40px; flex:none; display:grid; place-items:center; border-radius:12px; background:var(--rosa-cc)}
.am-mi img{width:26px; height:26px}
.am-mi svg{width:22px; height:22px}
.am-menu-pie{margin-top:auto; padding:16px 20px calc(20px + var(--sab))}
.am-menu-lang{display:flex; gap:8px; justify-content:center; margin-bottom:6px}
.am-menu-lang button{touch-action:manipulation; padding:6px; border:0; border-radius:10px; background:none; cursor:pointer}
.am-menu-lang button[aria-pressed="true"]{background:var(--rosa-cc); box-shadow:inset 0 0 0 2px var(--vino)}
.am-menu-lang .bandera{width:30px; height:20px}
.am-menu-pie .am-redes{padding:12px 0 0}
/* ---------- Propina y «Añadir más» ---------- */
.ap-prop{display:grid; grid-template-columns:repeat(4,1fr); gap:8px}
.ap-prop button{min-height:46px; border:0; border-radius:14px; background:var(--rosa-cc); color:var(--vino); cursor:pointer; font:600 15px/1.1 var(--cond); -webkit-text-stroke:var(--t-f) currentColor}
.ap-prop button[aria-pressed="true"]{background:var(--vino); color:#fff}
.ap-prop-otra{width:100%; min-height:48px; margin-top:10px; padding:10px 14px; border:1.5px solid var(--linea); border-radius:14px; font:400 18px/1 var(--txt)}
.ap-barra{display:flex; gap:10px}
.ap-mas2{flex:none; display:grid; place-items:center; min-height:66px; padding:0 18px; border-radius:999px; background:#fff; color:var(--vino); text-decoration:none; box-shadow:inset 0 0 0 2px var(--vino),0 10px 24px rgba(40,0,6,.2); font:600 16px/1 var(--cond); letter-spacing:.03em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor}
.ap-mas2[hidden]{display:none}
.ap-barra button{flex:1}

/* ---------- Fondo de azulejos (app móvil) ----------
   Patrón continuo de la foto de azulejos, con un velo muy ligero para igualar el vino de la marca */
html.modo-app,html.modo-app body,.app-m{background:#96041E}

/* ---------- Ficha de producto: foto completa, ingredientes y alérgenos ---------- */
.ap-hoja-f img{width:100%; aspect-ratio:1; max-height:48dvh; object-fit:contain; padding:20px 28px 8px}
.ap-hoja-x{padding-top:0}
.fi-cab{display:flex; align-items:baseline; justify-content:space-between; gap:12px}
.fi-precio{font:400 30px/1 var(--deco); color:var(--vino); white-space:nowrap}
.fi-tam{align-self:flex-start; padding:5px 12px; border-radius:999px; background:var(--rosa-cc); color:var(--vino); font:600 13px/1 var(--cond); letter-spacing:.06em; text-transform:uppercase}
.fi-h{margin:14px 0 8px; font:600 14px/1 var(--cond); letter-spacing:.12em; text-transform:uppercase; color:var(--suave); -webkit-text-stroke:var(--t-r) currentColor}
.fi-ing,.fi-al{display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0}
.fi-ing li{padding:8px 14px; border-radius:999px; background:var(--rosa-cc); color:var(--vino); font-size:16px}
.fi-al{gap:10px 18px}
.fi-al li{display:inline-flex; align-items:center; gap:8px; color:var(--vino); font-size:16px}
.fi-al .al-i{width:34px; height:34px; background:var(--rosa-cc); box-shadow:none}
.fi-no{margin:0; color:var(--suave); font-size:16px}
.fi-ley{display:block; margin-top:8px; color:var(--suave); font-size:13px; line-height:1.3}
.al-modal-c .ap-hoja-d{padding-bottom:calc(24px + var(--sab))}
.am-cat .pz{cursor:pointer}

/* ---------- Mapa al estilo Honest Greens: puntos pequeños, tu posición con su radio y encuadre conjunto ---------- */
.am-pin{width:44px; height:44px; padding:0; border:0; background:none; cursor:pointer; display:grid; place-items:center}
.am-pin span{display:block; width:18px; height:18px; border-radius:50%; background:var(--vino); border:3px solid #fff; box-shadow:0 3px 8px rgba(80,0,16,.35); transform:none; transition:width .25s,height .25s}
.am-pin img{display:none}
.am-pin.on{z-index:2}
.am-pin.on span{width:28px; height:28px; transform:none; animation:am-pin 2s ease-out infinite}
@keyframes am-pin{0%{box-shadow:0 0 0 0 rgba(150,4,30,.45),0 3px 8px rgba(80,0,16,.35)}100%{box-shadow:0 0 0 18px rgba(150,4,30,0),0 3px 8px rgba(80,0,16,.35)}}
.am-yo{width:96px; height:96px; display:grid; place-items:center; border-radius:50%; background:rgba(251,114,165,.16)}
.am-yo span{margin:0}

/* ---------- Portada de la app: foto de la pizza sobre el vino de Pizzi ---------- */
.app-m:not(.en-pide) .ah-foto{display:block!important; height:62dvh; background:url(../assets/img/portada-app.webp) center 4%/cover no-repeat, #96041E; -webkit-mask-image:linear-gradient(180deg,#000 62%,transparent 100%); mask-image:linear-gradient(180deg,#000 62%,transparent 100%)}
.am-pill,.am-menu-b{z-index:2}

/* ---------- Iconos de Pizzi en tarjetas y pestañas ---------- */
.ah-ic img{width:30px; height:30px; object-fit:contain}
.ah-tipos button[aria-checked="true"] .ah-ic{background:#fff; color:var(--vino)}

/* ---------- Mapa tipo Google Maps con el icono de ubicación de Pizzi ---------- */
.am-pin{width:34px; height:44px; padding:0; border:0; background:none; cursor:pointer; display:block}
.am-pin img{display:block; width:34px; height:34px; object-fit:contain; filter:drop-shadow(0 3px 3px rgba(60,0,10,.45)); transform-origin:50% 100%; transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.am-pin span{display:none}
.am-pin.on{z-index:3}
.am-pin.on img{transform:scale(1.45); animation:am-bote .9s ease-out 1}
@keyframes am-bote{0%{transform:translateY(-18px) scale(1.45)}60%{transform:translateY(0) scale(1.45)}80%{transform:translateY(-5px) scale(1.45)}100%{transform:scale(1.45)}}
.am-yo{width:96px; height:96px}

/* ---------- Ficha de producto con vida ---------- */
.ap-hoja-f{position:relative; overflow:hidden; background:radial-gradient(circle at 50% 46%,#B90A29 0%,#96041E 55%,#6E0213 100%)}
.ap-hoja-f .fi-aro{position:absolute; left:50%; top:50%; width:86%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; border:2px dashed rgba(248,233,232,.45); animation:fi-gira 40s linear infinite}
.ap-hoja-f .fi-aro::after{content:""; position:absolute; inset:-9%; border-radius:50%; background:radial-gradient(circle,rgba(251,114,165,.28),transparent 68%)}
.ap-hoja-f img{position:relative; z-index:1; width:100%; aspect-ratio:1; max-height:46dvh; object-fit:contain; padding:26px 30px 34px; filter:drop-shadow(0 18px 18px rgba(30,0,6,.5)); animation:fi-entra .6s cubic-bezier(.2,.8,.2,1) both}
.fi-tag{position:absolute; z-index:2; left:16px; top:16px; padding:7px 14px; border-radius:999px; background:#FB72A5; color:#fff; font:600 14px/1 var(--cond); letter-spacing:.08em; text-transform:uppercase; -webkit-text-stroke:var(--t-r) currentColor; box-shadow:0 4px 12px rgba(30,0,6,.3); transform:rotate(-4deg)}
@keyframes fi-gira{to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes fi-entra{from{opacity:0; transform:scale(.7) rotate(-14deg)}to{opacity:1; transform:none}}
.fi-cuerpo{position:relative; z-index:2; margin-top:-26px; padding-top:22px; border-radius:28px 28px 0 0; background:#fff}
.fi-cab{align-items:center}
.fi-precio{padding:9px 16px 7px; border-radius:999px; background:var(--vino); color:#fff; font-size:26px; box-shadow:0 6px 14px rgba(150,4,30,.3)}
.fi-datos{display:flex; flex-wrap:wrap; gap:8px}
.fi-datos span{display:inline-flex; align-items:center; gap:8px; padding:6px 14px 6px 8px; border-radius:999px; background:var(--rosa-cc); color:var(--vino); font-size:15px; font-weight:600}
.fi-datos img{width:26px; height:26px; object-fit:contain}
.fi-h{display:flex; align-items:center; gap:10px; color:var(--vino)}
.fi-h::after{content:""; flex:1; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--rosa),transparent)}
.fi-ing li{padding:8px 14px 8px 12px; background:var(--rosa-cc); box-shadow:inset 0 0 0 1.5px var(--rosa-c)}
.fi-ing li::before{content:""; display:inline-block; width:8px; height:8px; margin-right:8px; border-radius:50%; background:#FB72A5}
.fi-al li{padding:5px 14px 5px 5px; border-radius:999px; background:var(--rosa-cc)}
.fi-al .al-i{width:38px; height:38px; background:#fff}
@media (prefers-reduced-motion:reduce){.ap-hoja-f .fi-aro,.ap-hoja-f img,.am-pin.on img{animation:none}}
.am-pin.on img{filter:drop-shadow(0 4px 4px rgba(60,0,10,.5))}
.al-modal-x{float:none; margin:12px 12px -52px auto; background:#fff; box-shadow:0 4px 14px rgba(30,0,6,.3)}
.al-modal-c{border-radius:28px 28px 0 0}
