/* DELIRIOUS PIZZA · tienda — móvil primero */
:root {
  --bg: #0d0c0b; --bg2: #161412; --card: #1d1a17; --line: #2c2823;
  --txt: #fff7e8; --mut: #b9ad99; --yel: #ffe14d; --yel2: #ffcc00; --red: #ec3226; --grn: #25d366;
  --r: 18px; --sh: 0 12px 40px rgba(0,0,0,.45);
  --disp: 'Bebas Neue', Impact, sans-serif; --script: 'Dancing Script', cursive; --body: 'Outfit', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { background: var(--bg); color: var(--txt); font-family: var(--body); font-size: 16px; line-height: 1.45; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.disp { font-family: var(--disp); letter-spacing: .02em; line-height: .92; text-transform: uppercase; }
.script { font-family: var(--script); color: var(--yel); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- barra superior ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(13,12,11,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 62px; }
.top .logo img { height: 46px; width: auto; }
.estado { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: #183d24; color: #7ff0a4; font-weight: 600; white-space: nowrap; }
.estado.off { background: #3d1818; color: #ff9b93; }
.top .sp { flex: 1; }
.ico-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); transition: transform .15s; }
.ico-btn:active { transform: scale(.92); }
.ico-btn svg { width: 20px; height: 20px; }
.ico-btn.wa { background: var(--grn); border-color: var(--grn); color: #fff; }
.ico-btn.cart { position: relative; background: var(--yel); color: #111; border-color: var(--yel); }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.badge:empty { display: none; }
.top nav { display: none; gap: 22px; font-weight: 600; font-size: 14px; color: var(--mut); }
.top nav a:hover { color: var(--yel); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 34px 0 20px; background: radial-gradient(120% 80% at 80% 10%, #2a1d05 0%, transparent 60%), url('../assets/img/bg-oscuro.webp') center/cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,12,11,.2), var(--bg) 96%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; display: grid; gap: 8px; }
.hero h1 { font-size: clamp(64px, 19vw, 150px); color: var(--yel); text-shadow: 0 6px 0 #8a6a00, 0 18px 40px rgba(0,0,0,.6); }
.hero h1 small { display: block; font-size: .38em; color: var(--txt); text-shadow: none; letter-spacing: .06em; }
.hero .script { font-size: clamp(30px, 8vw, 54px); line-height: 1; transform: rotate(-4deg); margin: 0 0 4px 4px; }
.hero p.lead { color: var(--mut); max-width: 440px; }
.tag-red { display: inline-block; background: var(--red); color: #fff; font-family: var(--disp); font-size: 22px; padding: 4px 12px; transform: skew(-6deg); letter-spacing: .03em; }
.hero-art { position: relative; height: 220px; margin-top: 0; }
.hero-art .pizza { position: absolute; width: 270px; right: -50px; top: 0; animation: spin 60s linear infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.hero-art .raton { position: absolute; width: 140px; left: -6px; bottom: 0; animation: flota 4s ease-in-out infinite; filter: drop-shadow(0 14px 20px rgba(0,0,0,.5)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flota { 50% { transform: translateY(-12px) rotate(-3deg); } }
.ctas { display: flex; gap: 10px; margin-top: 14px; }
.ctas .btn { flex: 1; padding: 0 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 99px; font-weight: 700; font-size: 16px; transition: transform .15s, filter .15s; white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-yel { background: var(--yel); color: #111; box-shadow: 0 8px 0 #9d7e00; }
.btn-yel:active { box-shadow: 0 3px 0 #9d7e00; transform: translateY(5px); }
.btn-wa { background: var(--grn); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); background: var(--card); }
.btn-red { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.chips-info { display: flex; gap: 8px; margin: 16px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.chips-info::-webkit-scrollbar { display: none; }
.chips-info span { flex: none; }
.chips-info span { font-size: 13px; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.chips-info b { color: var(--yel); }

/* ---------- ticker ---------- */
.ticker { background: var(--yel); color: #111; overflow: hidden; transform: rotate(-1.5deg); margin: 10px -10px 26px; border-block: 3px solid #111; }
.ticker div { display: flex; gap: 30px; width: max-content; padding: 10px 0; animation: tick 28s linear infinite; font-family: var(--disp); font-size: 26px; letter-spacing: .04em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
section { padding: 26px 0; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sec-h h2 { font-size: clamp(40px, 11vw, 72px); }
.sec-h h2 em { font-style: normal; color: var(--yel); }

/* favoritas */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.fav { flex: 0 0 76%; max-width: 330px; scroll-snap-align: start; background: var(--card); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.fav .ph { height: 190px; background: #2a241d center/cover; }
.fav .ph.cut { background: radial-gradient(circle at 50% 60%, #3b2a0a, #1d1a17 70%); }
.fav .ph.cut img { height: 100%; margin: auto; object-fit: contain; padding: 12px; }
.fav .ph:not(.cut) { overflow: hidden; }
.fav .ph:not(.cut) img { width: 182%; max-width: none; height: 100%; object-fit: cover; object-position: 0 50%; }
.fav .in { padding: 14px 16px 16px; }
.fav h3 { font-family: var(--disp); font-size: 30px; letter-spacing: .02em; }
.fav p { color: var(--mut); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fav .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.precio { font-family: var(--disp); font-size: 28px; color: var(--yel); }
.precio small { font-family: var(--body); font-size: 12px; color: var(--mut); margin-right: 4px; }
.add { width: 44px; height: 44px; border-radius: 50%; background: var(--yel); color: #111; font-size: 26px; font-weight: 700; display: grid; place-items: center; transition: transform .15s; }
.add:active { transform: scale(.85) rotate(90deg); }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; z-index: 2; }

/* ---------- menú ---------- */
.menu-bar { position: sticky; top: 62px; z-index: 30; background: rgba(13,12,11,.92); backdrop-filter: blur(12px); padding: 10px 0; border-bottom: 1px solid var(--line); }
.buscar { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 46px; margin-bottom: 10px; }
.buscar input { flex: 1; background: none; border: 0; outline: 0; font-size: 16px; }
.buscar svg { width: 18px; color: var(--mut); }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; height: 40px; padding: 0 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: .2s; }
.cats button.on { background: var(--yel); color: #111; border-color: var(--yel); }
.filtros { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.filtros button { flex: none; font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px dashed var(--line); color: var(--mut); }
.filtros button.on { border-style: solid; border-color: var(--yel); color: var(--yel); }

.cat-block { padding-top: 22px; }
.cat-block h3 { font-family: var(--disp); font-size: 44px; display: flex; align-items: center; gap: 10px; }
.cat-block .nota { color: var(--mut); font-size: 14px; margin: 2px 0 12px; }
.lista { display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: 1fr 112px; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-align: left; width: 100%; transition: border-color .2s, transform .15s; position: relative; }
.item:active { transform: scale(.985); }
.item:hover { border-color: #4a4136; }
.item h4 { font-size: 18px; font-weight: 700; line-height: 1.15; }
.item p { color: var(--mut); font-size: 13.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .pr { margin-top: 8px; font-weight: 700; color: var(--yel); }
.item .pr small { color: var(--mut); font-weight: 500; font-size: 12px; }
.item .th { width: 112px; height: 112px; border-radius: 14px; overflow: hidden; background: #2a241d; position: relative; display: grid; place-items: center; font-size: 46px; }
.item .th img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; }
.item .th.cut { background: radial-gradient(circle at 50% 60%, #3b2a0a, #221e1a 75%); }
.item .th.cut img { object-fit: contain; padding: 6px; }
.item .th .add { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; font-size: 22px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #2b2620; color: var(--mut); }
.pill.top { background: var(--red); color: #fff; }
.pill.veg { background: #1b3a22; color: #8de39f; }
.pill.hot { background: #45180f; color: #ff9a6b; }
.item.agotado { opacity: .45; pointer-events: none; }
.item.agotado .add { display: none; }
.vacio { color: var(--mut); padding: 30px 0; text-align: center; }

/* reseñas */
.revs { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px 10px; margin: 0 -16px; scroll-snap-type: x mandatory; }
.rev { flex: 0 0 82%; max-width: 360px; scroll-snap-align: start; background: #fff7e8; color: #1a1612; border-radius: 22px; padding: 18px; position: relative; }
.rev .stars { color: #f5a400; letter-spacing: 2px; }
.rev p { margin: 8px 0 12px; font-weight: 500; }
.rev b { font-size: 14px; }
.rev::after { content: 'G'; position: absolute; right: 16px; top: 14px; font-weight: 800; color: #4285f4; }

/* curiosidades */
.curio { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 6px; margin: 0 -16px; scroll-snap-type: x mandatory; }
.curio img { flex: 0 0 64%; max-width: 280px; border-radius: 18px; scroll-snap-align: start; aspect-ratio: 4/5; object-fit: cover; }

/* reservas */
.reserva { background: linear-gradient(135deg, var(--yel), var(--yel2)); color: #111; border-radius: 28px; padding: 22px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.reserva h2 { font-size: 48px; }
.reserva form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reserva input, .reserva select { height: 48px; border-radius: 12px; border: 2px solid #111; background: #fff8dc; padding: 0 12px; width: 100%; font-size: 16px; }
.reserva .full { grid-column: 1 / -1; }
.reserva .btn { background: #111; color: var(--yel); }
.reserva img.r { position: absolute; width: 130px; right: -18px; top: -10px; transform: rotate(12deg); opacity: .95; }

/* footer */
footer { margin-top: 30px; padding: 30px 0 140px; border-top: 1px solid var(--line); color: var(--mut); font-size: 14px; }
footer .wrap { display: grid; gap: 18px; }
footer img { height: 70px; width: auto; }
footer h4 { color: var(--txt); font-family: var(--disp); font-size: 24px; letter-spacing: .03em; }
footer .redes { display: flex; gap: 10px; }

/* ---------- barra carrito flotante ---------- */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; background: var(--yel); color: #111; border-radius: 20px; padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.6); transform: translateY(160%); transition: transform .35s cubic-bezier(.2,1.4,.4,1); max-width: 560px; margin: 0 auto; }
.cartbar.show { transform: none; }
.cartbar .n { width: 34px; height: 34px; border-radius: 10px; background: #111; color: var(--yel); font-weight: 800; display: grid; place-items: center; }
.cartbar .t { flex: 1; min-width: 0; }
.cartbar .t b { display: block; font-size: 16px; }
.cartbar .prog { height: 6px; border-radius: 6px; background: rgba(0,0,0,.18); margin-top: 4px; overflow: hidden; }
.cartbar .prog i { display: block; height: 100%; background: #111; border-radius: 6px; transition: width .4s; }
.cartbar .t small { font-size: 12px; font-weight: 600; }
.cartbar .go { background: #111; color: var(--yel); height: 44px; padding: 0 16px; border-radius: 14px; font-weight: 800; }

/* ---------- chat ratón ---------- */
.chat-fab { position: fixed; right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 46; width: 74px; height: 74px; border-radius: 50%; background: var(--card); border: 3px solid var(--yel); display: grid; place-items: center; box-shadow: var(--sh); animation: flota 3.5s ease-in-out infinite; }
.chat-fab img { width: 86px; max-width: none; margin-top: -6px; }
.chat-fab .badge { top: 0; right: 0; }
.chat-hint { position: fixed; right: 96px; bottom: calc(112px + env(safe-area-inset-bottom)); z-index: 46; background: #fff7e8; color: #111; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 14px 14px 4px 14px; box-shadow: var(--sh); max-width: 190px; transition: opacity .3s, transform .3s; }
.chat-hint.hide { opacity: 0; transform: translateY(8px); pointer-events: none; }
.chat { position: fixed; inset: auto 0 0 0; z-index: 60; height: min(86vh, 680px); background: var(--bg2); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .35s cubic-bezier(.2,1,.3,1); border: 1px solid var(--line); }
.chat.open { transform: none; }
.chat header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat header img { width: 54px; }
.chat header b { display: block; }
.chat header small { color: #7ff0a4; font-size: 12px; }
.chat header .sp { flex: 1; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: 15px; white-space: pre-line; animation: pop .25s ease; }
.msg.bot { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.yo { background: var(--yel); color: #111; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.staff { background: #173322; border: 1px solid #23573a; align-self: flex-start; }
.msg.staff::before { content: '👩‍🍳 Equipo Delirious'; display: block; font-size: 11px; color: #7ff0a4; font-weight: 700; margin-bottom: 2px; }
.msg .mini { display: flex; gap: 8px; align-items: center; margin-top: 8px; background: rgba(0,0,0,.25); border-radius: 12px; padding: 6px; }
.msg .mini span { flex: 1; font-size: 13px; }
.msg .mini button { background: var(--yel); color: #111; font-weight: 700; border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mut); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; }
.quick button { flex: none; font-size: 13px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--yel); color: var(--yel); }
#chatForm { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
#chatForm input { flex: 1; height: 46px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); padding: 0 16px; outline: 0; font-size: 16px; }
#chatForm button { width: 46px; height: 46px; border-radius: 50%; background: var(--yel); color: #111; display: grid; place-items: center; }

/* ---------- hojas (producto / carrito) ---------- */
.velo { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(3px); }
.velo.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; max-height: 92vh; background: var(--bg2); border-radius: 26px 26px 0 0; transform: translateY(105%); transition: transform .38s cubic-bezier(.2,1,.3,1); display: flex; flex-direction: column; border: 1px solid var(--line); }
.sheet.open { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: #3c362f; margin: 10px auto 2px; flex: none; }
.sheet .body { overflow-y: auto; padding: 8px 18px 18px; flex: 1; }
.sheet .foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg2); }
.x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; z-index: 3; display: grid; place-items: center; }
.p-hero { height: 230px; margin: 0 -18px 14px; background: #2a241d; display: grid; place-items: center; overflow: hidden; font-size: 90px; }
.p-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; }
.p-hero:not(.cut) img { width: 180%; max-width: none; }
.p-hero:not(.cut) { justify-items: start; }
.p-hero.cut { background: radial-gradient(circle at 50% 60%, #3b2a0a, #161412 70%); }
.p-hero.cut img { object-fit: contain; padding: 16px; }
.sheet h3.t { font-family: var(--disp); font-size: 42px; }
.sheet .d { color: var(--mut); }
.opt { margin-top: 18px; }
.opt h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin-bottom: 8px; display: flex; justify-content: space-between; }
.opt h5 span { color: var(--red); }
.choice { display: grid; gap: 8px; }
.choice label { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .15s; }
.choice label:has(input:checked) { border-color: var(--yel); background: #2a2410; }
.choice input { accent-color: var(--yel); width: 20px; height: 20px; }
.choice label b { margin-left: auto; color: var(--yel); }
.choice label small { display: block; color: var(--mut); font-size: 12px; }
textarea.nota, .campo input, .campo textarea, .campo select { width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: 0; font-size: 16px; resize: none; }
.campo input:focus, .campo textarea:focus, textarea.nota:focus { border-color: var(--yel); }
.qty { display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.qty button { width: 38px; height: 38px; border-radius: 50%; font-size: 22px; font-weight: 700; }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.foot .row { display: flex; gap: 10px; align-items: center; }
.foot .row .btn { flex: 1; }

/* carrito / checkout */
.steps { display: flex; gap: 6px; margin: 4px 0 14px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--yel); }
.c-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.c-item .th { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; background: #2a241d; display: grid; place-items: center; font-size: 26px; }
.c-item .th img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; }
.c-item b { display: block; font-size: 15px; }
.c-item small { color: var(--mut); font-size: 12.5px; display: block; }
.c-item .qty { padding: 2px; }
.c-item .qty button { width: 30px; height: 30px; font-size: 18px; }
.aviso { border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-top: 12px; display: flex; gap: 10px; align-items: center; }
.aviso.yel { background: #2a2410; border: 1px solid #5a4b10; }
.aviso.grn { background: #142c1c; border: 1px solid #23573a; color: #9ff0b8; }
.aviso.red { background: #2e1412; border: 1px solid #6a2520; color: #ffb1a8; }
.aviso .prog { height: 6px; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.aviso .prog i { display: block; height: 100%; background: var(--yel); }
.totales { margin-top: 14px; display: grid; gap: 6px; font-size: 15px; }
.totales div { display: flex; justify-content: space-between; color: var(--mut); }
.totales .tot { color: var(--txt); font-size: 20px; font-weight: 800; padding-top: 8px; border-top: 1px dashed var(--line); }
.totales .tot span:last-child { color: var(--yel); }
.cupon { display: flex; gap: 8px; margin-top: 12px; }
.cupon input { flex: 1; text-transform: uppercase; }
.cupon button { padding: 0 16px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); font-weight: 700; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--card); padding: 5px; border-radius: 16px; border: 1px solid var(--line); }
.seg button { height: 50px; border-radius: 12px; font-weight: 700; }
.seg button small { display: block; font-weight: 500; font-size: 11px; color: var(--mut); }
.seg button.on { background: var(--yel); color: #111; }
.seg button.on small { color: #3a3000; }
.campos { display: grid; gap: 10px; margin-top: 14px; }
.campo label { font-size: 13px; color: var(--mut); display: block; margin-bottom: 5px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-ico { width: 38px; height: 38px; border-radius: 10px; background: #2b2620; display: grid; place-items: center; font-size: 20px; flex: none; }
.ok-wrap { text-align: center; padding: 10px 0; }
.ok-wrap img { width: 170px; margin: 0 auto 6px; animation: flota 3s ease-in-out infinite; }
.ok-wrap h3 { font-family: var(--disp); font-size: 46px; color: var(--yel); }
.ok-wrap .cod { font-family: var(--disp); font-size: 64px; letter-spacing: .06em; margin: 4px 0; }
.ok-acts { display: grid; gap: 10px; margin-top: 16px; }
.pago-sim { background: #fff; color: #111; border-radius: 18px; padding: 18px; margin-top: 10px; }
.pago-sim .lin { height: 46px; border: 1px solid #ddd; border-radius: 10px; display: flex; align-items: center; padding: 0 12px; color: #888; margin-top: 8px; }

/* toast */
.toast { position: fixed; top: 74px; left: 50%; transform: translate(-50%, -30px); opacity: 0; z-index: 90; background: #fff7e8; color: #111; padding: 10px 16px; border-radius: 99px; font-weight: 700; box-shadow: var(--sh); transition: .3s; pointer-events: none; white-space: nowrap; font-size: 14px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.fly { position: fixed; z-index: 95; width: 44px; height: 44px; border-radius: 50%; background: var(--yel); display: grid; place-items: center; font-size: 22px; pointer-events: none; transition: transform .6s cubic-bezier(.5,-0.4,.7,1), opacity .6s; }

/* ---------- escritorio ---------- */
@media (min-width: 760px) {
  .top nav { display: flex; }
  .ctas .btn { flex: none; padding: 0 22px; }
  .chips-info { flex-wrap: wrap; margin: 16px 0 0; padding: 0; }
  .hero { padding: 60px 0 30px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .hero-art { height: 480px; }
  .hero-art .pizza { width: 520px; right: -80px; top: 0; }
  .hero-art .raton { width: 240px; left: 0; }
  .lista { grid-template-columns: 1fr 1fr; }
  .fav { flex-basis: 300px; }
  .rev { flex-basis: 340px; }
  .reserva { grid-template-columns: 1fr 1.3fr; align-items: center; padding: 36px; }
  .reserva form { grid-template-columns: repeat(3, 1fr); }
  .reserva img.r { width: 190px; right: auto; left: 32%; top: auto; bottom: -40px; }
  footer .wrap { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .sheet, .chat { left: 50%; right: auto; width: 520px; margin-left: -260px; }
  .chat { width: 400px; left: auto; right: 20px; bottom: 20px; margin: 0; border-radius: 24px; height: min(640px, 80vh); transform: translateY(calc(100% + 40px)); }
  .chat.open { transform: none; }
  .cartbar { left: 50%; right: auto; width: 520px; margin-left: -260px; }
}
@media (min-width: 1100px) { .lista { grid-template-columns: 1fr 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- venta: modo, packs, upsell, recortes ---------- */
.modo-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.modo-sel button { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 14px 12px; text-align: left; transition: .2s; }
.modo-sel button b { display: block; font-family: var(--disp); font-size: 26px; letter-spacing: .02em; line-height: 1; }
.modo-sel button small { color: var(--mut); font-size: 12.5px; }
.modo-sel button span { font-size: 26px; display: block; margin-bottom: 4px; }
.modo-sel button.on { background: var(--yel); border-color: var(--yel); color: #111; box-shadow: 0 6px 0 #9d7e00; }
.modo-sel button.on small { color: #3a3000; }
.hero-wa { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--mut); text-decoration: underline; text-underline-offset: 3px; }
.hero-art .pizza-real { position: absolute; width: 300px; height: 300px; right: -70px; top: -10px; border-radius: 50%; background: url('../assets/img/p-delirious.jpg') no-repeat; background-size: 552px auto; background-position: -28px -60px; animation: spin 60s linear infinite; box-shadow: 0 30px 60px rgba(0,0,0,.7); }
.packs { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.packs::-webkit-scrollbar { display: none; }
.pack { flex: 0 0 84%; max-width: 360px; scroll-snap-align: start; background: linear-gradient(160deg, #2a2208, var(--card) 60%); border: 1.5px solid #5a4b10; border-radius: 22px; overflow: hidden; }
.pk-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px 10px 0; }
.pk { height: 92px; border-radius: 12px; overflow: hidden; background: #2a241d; display: grid; place-items: center; font-size: 36px; }
.pk img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; }
.pk.cut { background: radial-gradient(circle at 50% 60%, #3b2a0a, #221e1a 75%); }
.pk.cut img { object-fit: contain; padding: 4px; }
.pack .in { padding: 12px 16px 16px; }
.pack h3 { font-family: var(--disp); font-size: 30px; }
.pack p { color: var(--mut); font-size: 14px; }
.pack .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.up-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.up-head img { width: 90px; flex: none; animation: flota 3s ease-in-out infinite; }
.up-list { display: grid; gap: 10px; margin-top: 14px; }
.up-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px 8px 8px; }
.up-row .th { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #2a241d; display: grid; place-items: center; font-size: 30px; }
.up-row .th img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; }
.up-row .th.cut img { object-fit: contain; }
.up-row b { display: block; }
.up-row small { color: var(--yel); font-weight: 700; }
/* fotos con la comida a la derecha (pastas, panes, alitas, palitos) */
.der img { object-position: 100% 50% !important; }
.fav .ph.der img, .p-hero.der img { margin-left: -82%; }
.choice label > span { flex: 1; }
@media (min-width: 760px) {
  .modo-sel { max-width: 460px; }
  .hero-art .pizza-real { width: 440px; height: 440px; right: -40px; top: 10px; background-size: 810px auto; background-position: -40px -88px; }
  .pack { flex-basis: 340px; }
}

/* ---------- chat estilo WhatsApp ---------- */
:root { --wa: #25d366; --wa-dk: #075e54; --wa-bg: #0b141a; --wa-in: #202c33; --wa-out: #005c4b; }
.chat-fab { width: 66px; height: 66px; background: var(--wa); border: 0; box-shadow: 0 10px 28px rgba(37,211,102,.4), 0 4px 12px rgba(0,0,0,.4); overflow: visible; }
.chat-fab::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--wa); opacity: 0; animation: waPulso 2.4s ease-out infinite; }
@keyframes waPulso { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-fab .cf-av { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: #fff7e8; display: grid; place-items: center; border: 2px solid #fff; }
.chat-fab .cf-av img { width: 74px; max-width: none; margin: 4px 0 0; }
.chat-fab .cf-wa { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; border: 3px solid var(--bg); }
.chat-fab .cf-wa svg { width: 15px; height: 15px; }
.chat-fab .badge { top: -2px; right: -2px; background: var(--red); }
.chat-fab .badge:empty { display: none; }
.chat-hint { right: 92px; bottom: calc(100px + env(safe-area-inset-bottom)); width: 236px; max-width: calc(100vw - 120px); padding: 0; border-radius: 14px 14px 2px 14px; background: var(--wa-in); color: #e9edef; overflow: hidden; cursor: pointer; font-weight: 400; }
.chat-hint .ch-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--wa-dk); }
.chat-hint .ch-top b { display: block; font-size: 13px; color: #fff; }
.chat-hint .ch-top small { font-size: 11px; color: #b5f5cf; }
.chat-hint p { padding: 9px 11px 7px; font-size: 13.5px; line-height: 1.35; }
.chat-hint .ch-t { float: right; font-size: 10.5px; color: #8696a0; margin: 6px 0 0 8px; }
.chat-hint .ch-t::after { content: ' ✓✓'; color: #53bdeb; }
.ch-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #fff7e8; display: grid; place-items: center; flex: none; }
.ch-av img { width: 44px; max-width: none; margin-top: 3px; }
/* ventana */
.chat { background: var(--wa-bg) radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.5px) 0 0/18px 18px; border-color: #1f2c33; }
.chat header { background: #202c33; border-bottom: 0; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.chat header .ch-av { width: 42px; height: 42px; }
.chat header .ch-av img { width: 54px; }
.chat header small { color: #8696a0; }
.chat header small::before { content: '● '; color: var(--wa); }
.msg { border-radius: 10px; font-size: 14.5px; box-shadow: 0 1px .5px rgba(0,0,0,.25); }
.msg.bot { background: var(--wa-in); border: 0; border-top-left-radius: 2px; border-bottom-left-radius: 10px; color: #e9edef; }
.msg.yo { background: var(--wa-out); color: #e9edef; border-top-right-radius: 2px; border-bottom-right-radius: 10px; }
.msg.staff { background: var(--wa-in); border: 0; border-top-left-radius: 2px; }
.quick button { border-color: #2a3942; background: #202c33; color: #e9edef; }
#chatForm { background: #202c33; border-top: 0; }
#chatForm input { background: #2a3942; border: 0; color: #e9edef; }
#chatForm button { background: var(--wa); color: #fff; }

/* botones de modo más compactos: icono a la izquierda */
.modo-sel { max-width: 420px; gap: 8px; }
.modo-sel button { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px; border-width: 1.5px; }
.modo-sel button span { grid-row: span 2; font-size: 22px; margin: 0; }
.modo-sel button b { font-size: 20px; }
.modo-sel button small { font-size: 12px; line-height: 1.2; }
.modo-sel button.on { box-shadow: 0 4px 0 #9d7e00; }
.modo-sel button:hover:not(.on) { border-color: var(--yel); }

/* ---------- hero premium: mapa de Madrid + producto real ---------- */
.hero { background: radial-gradient(90% 70% at 78% 30%, rgba(255,225,77,.10) 0%, transparent 60%), #0b0a09; }
.hero-map { position: absolute; inset: 0; background: url('../assets/img/mapa-madrid.svg') 50% 45%/min(92%, 900px) auto no-repeat; opacity: 1; -webkit-mask-image: radial-gradient(60% 75% at 50% 45%, #000 60%, transparent 100%); mask-image: radial-gradient(60% 75% at 50% 45%, #000 60%, transparent 100%); animation: mapaDeriva 40s ease-in-out infinite alternate; pointer-events: none; }
@keyframes mapaDeriva { to { transform: translate3d(-12px, 6px, 0); } }
.hero-art { height: 300px; }
.hero-art .h-halo { position: absolute; width: 300px; height: 300px; right: -40px; top: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,225,77,.28), transparent 65%); filter: blur(10px); }
.hero-art .h-pizza { position: absolute; width: 270px; right: -46px; top: 6px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,225,77,.18), 0 0 0 14px rgba(255,225,77,.06), 0 30px 60px rgba(0,0,0,.7); animation: spin 90s linear infinite; }
.hero-art .h-burger { position: absolute; width: 190px; right: 120px; bottom: -6px; filter: drop-shadow(0 24px 30px rgba(0,0,0,.7)); animation: flota 5s ease-in-out infinite; }
.hero-art .raton { width: 120px; left: -6px; bottom: 6px; z-index: 2; }
.h-pin { position: absolute; right: 26px; bottom: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yel); background: rgba(13,12,11,.75); border: 1px solid rgba(255,225,77,.35); padding: 6px 12px 6px 10px; border-radius: 99px; backdrop-filter: blur(8px); }
.h-pin i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(236,50,38,.6); animation: pinPulso 1.8s ease-out infinite; }
@keyframes pinPulso { to { box-shadow: 0 0 0 12px rgba(236,50,38,0); } }
@media (min-width: 760px) {
  .hero-art { height: 520px; }
  .hero-art .h-halo { width: 520px; height: 520px; right: -60px; top: 0; }
  .hero-art .h-pizza { width: 470px; right: -50px; top: 10px; }
  .hero-art .h-burger { width: 300px; right: 250px; bottom: 10px; }
  .hero-art .raton { width: 190px; left: -10px; bottom: 40px; }
  .h-pin { right: 40px; bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) { .hero-map, .hero-art .h-pizza, .hero-art .h-burger { animation: none; } }
.hero-art .raton { left: auto; right: 150px; top: -10px; bottom: auto; width: 96px; z-index: 3; }
@media (min-width: 760px) { .hero-art .raton { left: 0; right: auto; top: 10px; bottom: auto; width: 150px; } }

/* ---------- dirección de entrega ---------- */
.dir-saved { display: grid; gap: 8px; }
.dir-t { font-size: 13px; color: var(--mut); font-weight: 600; }
.dir-op { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.dir-op:has(input:checked) { border-color: var(--yel); background: rgba(255,225,77,.08); }
.dir-op input { accent-color: var(--yel); width: 18px; height: 18px; flex: none; }
.dir-op span { flex: 1; min-width: 0; }
.dir-op b { display: block; font-size: 15px; }
.dir-op small { display: block; color: var(--mut); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-op em { font-style: normal; }
.dir-nuevo { font-size: 14px; background: rgba(255,225,77,.08); border: 1px dashed rgba(255,225,77,.4); border-radius: 14px; padding: 10px 12px; }
.dir-form { display: grid; gap: 10px; }
.dir-tipos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dir-tipos label { cursor: pointer; }
.dir-tipos input { position: absolute; opacity: 0; pointer-events: none; }
.dir-tipos span { display: block; text-align: center; font-size: 13px; font-weight: 600; padding: 10px 4px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); transition: .15s; }
.dir-tipos input:checked + span { background: var(--yel); color: #111; border-color: var(--yel); }
.dir-tipos input:focus-visible + span { outline: 2px solid var(--yel); outline-offset: 2px; }
.dir-ubic { width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed rgba(37,211,102,.55); background: rgba(37,211,102,.08); color: var(--txt); font-weight: 700; font-size: 14px; }
.dir-ubic small { display: block; font-weight: 500; color: var(--mut); font-size: 12px; margin-top: 2px; }
.dir-ubic.ok { border-style: solid; }
.dir-ubic a { color: #7ff0a4; text-decoration: underline; }
.dir-save { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--mut); }
.dir-save input { accent-color: var(--yel); width: 18px; height: 18px; }
@media (max-width: 380px) { .dir-tipos { grid-template-columns: repeat(2, 1fr); } }
.dir-form[hidden] { display: none; }

/* tarjeta de datos de contacto dentro del chat */
.msg:has(.lead-f) { width: 88%; }
.lead-f { display: grid; gap: 8px; white-space: normal; }
.lead-t { font-size: 15px; margin-bottom: 2px; }
.lead-c { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; background: #2a3942; border: 1px solid transparent; transition: border-color .15s; }
.lead-c:focus-within { border-color: var(--wa); }
.lead-c span { font-size: 16px; flex: none; }
.lead-c input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #e9edef; font-size: 15px; }
.lead-c input::placeholder { color: #8696a0; }
.lead-k { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; cursor: pointer; padding: 2px 0; }
.lead-k input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lead-k i { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 2px solid #8696a0; display: grid; place-items: center; transition: .15s; }
.lead-k input:checked + i { background: var(--wa); border-color: var(--wa); }
.lead-k input:checked + i::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.lead-k input:focus-visible + i { outline: 2px solid var(--wa); outline-offset: 2px; }
.lead-k a { color: #53bdeb; text-decoration: underline; }
.lead-b { height: 44px; border-radius: 12px; background: var(--wa); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; transition: filter .15s, transform .15s; }
.lead-b:hover { filter: brightness(1.08); }
.lead-b:active { transform: scale(.98); }
/* contenido enriquecido de mensajes (foto, producto, pedido, pago, audio, documento) */
.m-img { display: block; margin: 4px 0; border-radius: 10px; overflow: hidden; max-width: 260px; }
.m-img img { display: block; width: 100%; height: auto; }
.m-card { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.06); min-width: 220px; }
.m-card img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.m-card div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.m-card small { display: block; font-size: 12px; opacity: .8; }
.m-card button, .m-card a { flex: none; font-weight: 700; font-size: 13px; padding: 7px 10px; border-radius: 10px; background: #ffe14d; color: #111; text-decoration: none; }
.m-btn.pay { display: inline-flex; margin-top: 6px; padding: 9px 14px; border-radius: 12px; background: #635bff; color: #fff; font-weight: 800; text-decoration: none; }
.m-note { font-size: 12px; opacity: .75; margin-top: 4px; }
.m-cupon { margin-top: 6px; padding: 8px 12px; border-radius: 12px; border: 2px dashed #e5a900; background: rgba(255,212,59,.18); font-size: 15px; }
.m-audio { display: block; width: 240px; max-width: 100%; height: 40px; margin: 4px 0; }
.m-doc { display: flex; align-items: center; gap: 8px; margin: 4px 0; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.06); text-decoration: none; color: inherit; min-width: 200px; }
.m-doc span { font-size: 22px; }
.m-doc b { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.m-doc small { font-size: 12px; opacity: .7; }

/* palabra "Delirious" del banner con la tipografía del logo */
.hero h1 .h-logo { display: block; font-family: 'Cookie', 'Dancing Script', cursive; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1.18em; line-height: .82; padding: .04em 0 .1em; transform: rotate(-3deg); transform-origin: left center; -webkit-text-stroke: .025em var(--yel); paint-order: stroke fill; }

/* ficha de producto: la foto se ve completa
   - recortadas (hamburguesas…): enteras, sin cortar
   - fotos de cartel (pizzas con precio impreso): solo la pizza, en círculo */
.p-hero { position: relative; height: clamp(250px, 36vh, 340px); justify-items: center; background: radial-gradient(circle at 50% 55%, #3b2a0a, #161412 72%); }
.p-hero.cut img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; padding: 14px 18px; box-sizing: border-box; filter: drop-shadow(0 20px 26px rgba(0,0,0,.6)); }
.p-hero:not(.cut) img { width: auto; height: 90%; aspect-ratio: 1; max-width: none; margin: 0; object-fit: cover; object-position: 0 50%; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,225,77,.16), 0 24px 44px rgba(0,0,0,.65); }
.p-hero.der:not(.cut) img { object-position: 100% 50%; margin-left: 0; }

/* Aviso de modo WhatsApp (pagos en línea próximamente) */
.pronto { background: #2a2410; border-bottom: 1px solid #5a4b10; padding: 10px 0; }
.pronto .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.pronto p { margin: 0; font-size: 14px; line-height: 1.35; flex: 1 1 260px; }
.pronto .pr-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pronto .btn { padding: 9px 14px; font-size: 14px; }
@media (max-width: 560px) { .pronto .pr-acts { width: 100%; } .pronto .pr-acts .btn { flex: 1; text-align: center; } }
