/* ==========================================================================
   PEDIR — pedidos en línea con la piel del sitio público (sitio/)
   Celular: una columna. Tableta: productos en 3–4 columnas y carrito en
   hoja. Computadora: menú a la izquierda y carrito fijo a la derecha.
   ========================================================================== */
:root {
  --crema: #FFFFFF; --blanco: #fff; --tinta: #1B1513; --rojo: #E63C2F; --rojo-2: #D5352A;
  --gris: #5C5C5C; --linea: #E1E1E1; --arena: #F4F4F4; --disco: #F2F2F2; --verde: #14794A;
  --f-display: 'Archivo', 'Arial Narrow', sans-serif; --f-texto: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1); --radio: 12px; --cab: 64px;
}
[x-cloak] { display: none !important; }
html, body { background: var(--crema) !important; }
/* Sin desplazamiento lateral en celular (ver sitio.css) */
html, body { overflow-x: clip; }
body { margin: 0; color: var(--tinta) !important; font-family: var(--f-texto) !important; -webkit-font-smoothing: antialiased; }
body.cargando { overflow: hidden; }
.i { flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.display { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; line-height: .92; margin: 0; }
.rojo { color: var(--rojo); }
button { font: inherit; color: inherit; cursor: pointer; }
.app { min-height: 100dvh; display: flex; flex-direction: column; }

/* --- Apertura -------------------------------------------------------------- */
#splash { position: fixed; inset: 0; z-index: 9999; background: var(--crema); display: flex; align-items: center; justify-content: center; transition: opacity .55s var(--ease); }
#splash.fuera { opacity: 0; pointer-events: none; }
#splash.fuera .splash-tile { transform: scale(1.06); transition: transform .6s var(--ease); }
/* El logo se arma en orden: la loseta roja, el disco del horno, los ladrillos
   dando la vuelta, el fuego que prende, la cola de llamas que sale, la
   rebanada que llega a cerrar la Q y al final el nombre. */
.splash-tile { width: min(60vw, 264px); aspect-ratio: 1; background: var(--rojo); border-radius: 22%; overflow: hidden;
  box-shadow: 0 1px 2px rgba(27,21,19,.08), 0 14px 28px -10px rgba(27,21,19,.22), 0 40px 70px -24px rgba(170,45,30,.45);
  animation: lq-tile .7s cubic-bezier(.34,1.4,.64,1) both; }
.splash-tile svg { display: block; width: 100%; height: 100%; }
.lq-disco, .lq-flama, .lq-onda, .lq-rebanada, .lq-l, .lq-t { transform-box: fill-box; }
.lq-disco { transform-origin: center; animation: lq-pop .55s cubic-bezier(.34,1.56,.64,1) .22s both; }
.lq-trazo { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: lq-trazo .75s cubic-bezier(.65,0,.35,1) .38s forwards; }
.lq-flama { transform-origin: 50% 100%; animation: lq-prende .6s cubic-bezier(.34,1.56,.64,1) .62s both, lq-flama 1.4s ease-in-out 1.3s infinite; }
.lq-onda { transform-origin: center; transform: scale(.42); animation: lq-onda .7s cubic-bezier(.22,1,.36,1) .8s forwards; }
.lq-rebanada { transform-origin: 0 0; animation: lq-rebanada .65s cubic-bezier(.34,1.5,.64,1) 1s both; }
.lq-l { animation: lq-letra .6s cubic-bezier(.22,1,.36,1) calc(1.08s + var(--i) * 45ms) both; }
.lq-t { animation: lq-lema .5s ease-out calc(1.42s + var(--i) * 22ms) both; }
@keyframes lq-tile { from { transform: scale(.25); border-radius: 50%; opacity: 0; } 40% { opacity: 1; } }
@keyframes lq-pop { from { transform: scale(0); } }
@keyframes lq-trazo { to { stroke-dashoffset: 0; } }
@keyframes lq-prende { from { transform: scale(.3, 0); } }
@keyframes lq-flama { 0%, 100% { transform: none; } 35% { transform: scale(.95, 1.06) skewX(-2deg); } 70% { transform: scale(1.03, .97) skewX(1.5deg); } }
@keyframes lq-onda { to { transform: scale(1); } }
@keyframes lq-rebanada { from { transform: translate(40px, 34px) rotate(28deg); opacity: 0; } 35% { opacity: 1; } }
@keyframes lq-letra { from { transform: translateY(26px); opacity: 0; } }
@keyframes lq-lema { from { transform: translateY(8px); opacity: 0; } }

/* --- Botones --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: var(--radio); border: 0; font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none; transition: transform .25s var(--ease), background-color .2s, opacity .2s, box-shadow .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-full { display: flex; width: 100%; }
.btn-grande { height: 56px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-rojo { background: var(--rojo); color: #fff; }
.btn-rojo:hover:not(:disabled) { background: var(--rojo-2); }
.btn-tinta { background: var(--tinta); color: #fff; }
.btn-blanco { background: #fff; color: var(--tinta); }
.btn-linea { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.cerrar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--arena); display: flex; align-items: center; justify-content: center; }
.mas { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--tinta); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .3s var(--ease); }
.mas:hover { background: var(--rojo); }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--arena); }
.stepper button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; }
.stepper button:last-child { background: var(--tinta); color: #fff; }
.stepper > span { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }
.globo { position: absolute; top: 8px; left: 8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--rojo); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; }
@keyframes salto { 35% { transform: scale(1.08) translateY(-3px); } 65% { transform: scale(.97); } }
.salta { animation: salto .45s var(--ease); }
.gira { animation: gira 40s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* --- Campos ---------------------------------------------------------------- */
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo-lbl { font-size: 14px; font-weight: 600; }
.campo-lbl em { font-style: normal; font-weight: 400; color: var(--gris); }
.campo-caja { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: var(--radio); background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea); color: var(--gris); transition: box-shadow .2s; }
.campo-caja:focus-within { box-shadow: inset 0 0 0 2px var(--tinta), 0 0 0 4px rgba(27,21,19,.07); }
.campo-caja input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--tinta); font-family: inherit; }
.nota-error { color: var(--rojo); font-size: 13px; font-weight: 600; margin: 4px 0 0; }
.nota-ok { display: flex; align-items: center; gap: 6px; color: var(--verde); font-size: 13px; font-weight: 600; margin: 10px 0 0; }
.nota-ok button { border: 0; background: none; color: var(--gris); text-decoration: underline; font-size: 13px; }

/* --- Encabezado ------------------------------------------------------------ */
.cab { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--linea); transition: box-shadow .3s; }
.cab.despegada { box-shadow: 0 8px 24px rgba(27,21,19,.06); }
.cab-in { height: var(--cab); max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); display: flex; align-items: center; gap: 16px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.marca img { width: 40px; height: 40px; border-radius: 9px; }
.marca span { display: flex; flex-direction: column; line-height: 1; }
.marca b { font-family: var(--f-display); font-stretch: 80%; font-weight: 900; font-size: 18px; letter-spacing: .08em; }
.marca small { font-size: 8px; letter-spacing: .26em; font-weight: 600; color: var(--gris); margin-top: 4px; }
.suc-pill { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--arena); color: var(--tinta); }
.suc-pill span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.suc-pill small { font-size: 10px; color: var(--gris); font-weight: 600; }
.suc-pill b { font-size: 14px; }
.suc-pill .i:first-child { color: var(--rojo); }
.cab-der { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cab-carrito { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--tinta); color: #fff; }
.cab-carrito .globo { position: static; box-shadow: none; background: var(--rojo); }
.cab-carrito-total { font-weight: 800; font-size: 14px; }

/* --- Aviso ----------------------------------------------------------------- */
.aviso { position: fixed; z-index: 400; top: calc(var(--cab) + 12px); left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--tinta); color: #fff; box-shadow: 0 16px 40px rgba(27,21,19,.3); }
.aviso .i:first-child { color: #FF8A7F; }
.aviso p { flex: 1; margin: 0; font-size: 14px; font-weight: 600; }
.aviso button { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* --- Pasos ----------------------------------------------------------------- */
.paso { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 120px; animation: aparece .45s var(--ease) both; }
/* Solo opacidad: un transform aquí volvería relativos a la barra y la hoja del carrito, que son fijas */
@keyframes aparece { from { opacity: 0; } }
.paso > * { animation: entra .5s var(--ease) both; }
.paso-menu > .carrito, .paso-menu > .barra-carrito { animation: none; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }
.tarjeta { background: #fff; border-radius: 18px; padding: 22px; box-shadow: inset 0 0 0 1px var(--linea), 0 16px 40px rgba(27,21,19,.07); }
.vacio { text-align: center; color: var(--gris); padding: 48px 0; }

/* Paso 1 · Sucursal */
.paso-suc { display: grid; grid-template-columns: 1fr; gap: 24px; }
.suc-hero { display: flex; align-items: center; gap: 16px; }
.suc-hero-txt h1 { font-size: clamp(40px, 10vw, 80px); }
.suc-hero-txt p { color: var(--gris); font-size: 16px; line-height: 1.5; margin: 14px 0 0; max-width: 420px; }
.suc-hero-arte { position: relative; width: 150px; aspect-ratio: 1; flex-shrink: 0; }
.suc-hero-arte .disco { position: absolute; inset: 4%; border-radius: 50%; background: var(--rojo); }
.suc-hero-arte .pizza { position: absolute; inset: 8%; width: 84%; border-radius: 50%; filter: drop-shadow(0 20px 26px rgba(27,21,19,.3)); }
.suc-hero-arte .ing { position: absolute; }
/* Video de preparación: flota sobre el crema como tarjeta (marco blanco y
   sombra en capas), con grano fino para que se lea como foto. */
.suc-video { aspect-ratio: 4 / 5; border: 4px solid #fff; border-radius: 16px; overflow: hidden; background: #E4E4E4;
  box-shadow: 0 0 0 1px rgba(27,21,19,.06), 0 2px 4px rgba(27,21,19,.04), 0 12px 24px -8px rgba(27,21,19,.14), 0 32px 60px -20px rgba(27,21,19,.28); }
.suc-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.suc-video::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.ing-1 { width: 26%; left: -6%; top: -4%; } .ing-2 { width: 22%; right: -6%; top: 6%; rotate: 30deg; } .ing-3 { width: 40%; right: -12%; bottom: -4%; rotate: -24deg; }
.suc-panel { display: flex; flex-direction: column; gap: 14px; }
.cerca h2 { font-size: 18px; margin: 0; }
.cerca > p { font-size: 14px; color: var(--gris); margin: 4px 0 16px; }
.buscar { display: flex; align-items: center; gap: 8px; margin-top: 10px; height: 52px; padding: 0 6px 0 16px; border-radius: var(--radio); box-shadow: inset 0 0 0 1.5px var(--linea); color: var(--gris); }
.buscar:focus-within { box-shadow: inset 0 0 0 2px var(--tinta); }
.buscar input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; color: var(--tinta); font-family: inherit; }
.suc-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.suc-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; border: 0; border-radius: 16px; background: #fff; text-align: left; box-shadow: inset 0 0 0 1px var(--linea), 0 1px 2px rgba(27,21,19,.05), 0 6px 16px -4px rgba(27,21,19,.07); animation: entra .45s var(--ease) both; transition: box-shadow .25s, transform .3s var(--ease); }
.suc-item:hover { box-shadow: inset 0 0 0 2px var(--tinta); transform: translateX(3px); }
.suc-ico { width: 44px; height: 44px; border-radius: 12px; background: #FDECEA; color: var(--rojo); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.suc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.suc-nom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.suc-nom b { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; text-transform: uppercase; font-size: 20px; line-height: 1; }
.suc-nom em { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--verde); padding: 3px 8px; border-radius: 999px; }
.suc-txt small { font-size: 13px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suc-km { font-weight: 800; font-size: 14px; color: var(--rojo); }
.suc-item > .i:last-child { color: #C4C4C4; }

/* Paso 2 · Datos */
.paso-datos { display: flex; justify-content: center; align-items: flex-start; }
.datos-tarjeta { width: 100%; max-width: 480px; text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.datos-pizza { width: 140px; height: 140px; border-radius: 50%; filter: drop-shadow(0 18px 24px rgba(27,21,19,.3)); }
.datos-tarjeta h1 { font-size: clamp(38px, 8vw, 56px); margin-top: 20px; }
.datos-tarjeta > p { color: var(--gris); margin: 10px 0 0; }
.datos-form { width: 100%; display: flex; flex-direction: column; gap: 16px; margin-top: 28px; text-align: left; }
.datos-form .btn { margin-top: 8px; }
.datos-promesas { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--gris); font-weight: 600; }
.datos-promesas li { display: flex; align-items: center; gap: 8px; }
.datos-promesas .i { color: var(--rojo); }
.modo-seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; border-radius: 999px; background: #EEEEEE; }
.paso-datos .modo-seg { margin-top: 26px; }
.modo-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; font-size: 15px; color: var(--gris); transition: background .2s, color .2s, box-shadow .2s; }
.modo-seg button[aria-checked="true"] { background: var(--rojo); color: #fff; box-shadow: 0 6px 16px rgba(231,60,47,.28); }
.modo-seg button:disabled { opacity: .45; cursor: not-allowed; }
.modo-nota { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; font-size: 14px; color: var(--gris); }
.modo-nota img { width: 32px; height: 32px; border-radius: 9px; }
.suc-panel .modo-nota { margin: 0; justify-content: flex-start; }
.modo-seguir { margin-top: 22px; }
.datos-apps { margin: 20px 0 0; font-size: 13px; color: var(--gris); }
.datos-apps a { color: var(--tinta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Paso 3 · Menú */
.paso-menu { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
.portada { position: relative; overflow: hidden; border-radius: 22px; background: var(--rojo); color: #fff; min-height: 190px; display: flex; align-items: center; padding: 24px; }
.portada-txt { position: relative; z-index: 1; max-width: 60%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.portada h2 { font-size: clamp(32px, 6vw, 56px); }
.portada p { margin: 0; color: #FDE7E4; font-size: 15px; }
.portada .btn { margin-top: 6px; }
.portada-pizza { position: absolute; right: -60px; top: 50%; width: 240px; height: 240px; margin-top: -120px; border-radius: 50%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.tira-marco { position: relative; margin-top: 18px; }
.tira-marco::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(to right, rgba(255,255,255,0), var(--crema)); pointer-events: none; opacity: 0; transition: opacity .2s; }
.tira-marco.hay-mas::after { opacity: 1; }
.tira { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; cursor: grab; }
.tira::-webkit-scrollbar { display: none; }
.tira.arrastrando { cursor: grabbing; } .tira.arrastrando * { pointer-events: none; }
.cat { flex-shrink: 0; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 8px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea); font-weight: 700; font-size: 14px; color: var(--tinta); transition: background .2s, color .2s, box-shadow .2s; }
.cat-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--arena); color: var(--rojo); display: flex; align-items: center; justify-content: center; }
.cat-ico .i { width: 20px; height: 20px; }
.cat.on { background: var(--tinta); color: #fff; box-shadow: none; }
.cat.on .cat-ico { background: rgba(255,255,255,.14); color: #fff; }
.cat-arma { background: #FDECEA; box-shadow: inset 0 0 0 1.5px rgba(230,60,47,.35); color: var(--rojo); }
.cat-arma .cat-ico { background: var(--rojo); color: #fff; }
.zona { margin-top: 24px; scroll-margin-top: calc(var(--cab) + 16px); }
.zona-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1.5px solid var(--tinta); margin-bottom: 18px; }
.zona-cab h3 { font-size: clamp(28px, 4vw, 40px); }
.zona-cab span { color: var(--gris); font-size: 14px; font-weight: 600; }
.productos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prod { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--linea), 0 1px 2px rgba(27,21,19,.05), 0 6px 16px -4px rgba(27,21,19,.07); animation: entra .45s var(--ease) both; transition: box-shadow .25s; }
.prod.en-carrito { box-shadow: inset 0 0 0 2px var(--rojo); }
.prod-foto { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: var(--disco); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); z-index: 1; }
.prod:hover .prod-foto img { transform: scale(1.06); }
.prod-sin-foto { color: #C8C8C8; } .prod-sin-foto .i { width: 44px; height: 44px; }
.prod-foto .globo { z-index: 2; }
.prod-datos { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-datos h4 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.prod-pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; }
.precio { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; font-size: 20px; color: var(--rojo); }
.prod .stepper button { width: 30px; height: 30px; }

/* Carrito */
.carrito { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.carrito-fondo { position: absolute; inset: 0; background: rgba(27,21,19,.45); opacity: 0; transition: opacity .3s; }
.carrito-hoja { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; display: flex; flex-direction: column; background: var(--crema); border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .45s var(--ease); }
.carrito.abierto { pointer-events: auto; }
.carrito.abierto .carrito-fondo { opacity: 1; }
.carrito.abierto .carrito-hoja { transform: none; }
.carrito-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--linea); }
.carrito-cab h3 { font-size: 30px; }
.carrito-cab p { margin: 6px 0 0; font-size: 13px; color: var(--gris); }
.carrito-lista { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.linea { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: #fff; }
.linea-foto { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--disco); color: #C8C8C8; display: flex; align-items: center; justify-content: center; }
.linea-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.linea-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.linea-txt b { font-size: 14px; line-height: 1.25; }
.linea-txt small { font-size: 12px; color: var(--gris); }
.linea-txt small.menos { color: var(--rojo); } .linea-txt small.extra { color: var(--verde); }
.linea-txt .precio { font-size: 17px; }
.carrito-vacio { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 0; color: var(--gris); text-align: center; }
.carrito-vacio > span { color: #C8C8C8; } .carrito-vacio .i { width: 48px; height: 48px; }
.carrito-vacio b { color: var(--tinta); }
.carrito-pie { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: #fff; }
.total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.total span { font-weight: 700; }
.total b { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; font-size: 34px; }
.barra-carrito { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
.barra-carrito .btn { justify-content: space-between; box-shadow: 0 14px 34px rgba(230,60,47,.35); }
.barra-carrito .btn span:nth-child(2) { flex: 1; text-align: left; }
.barra-n { min-width: 28px; height: 28px; border-radius: 14px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.barra-carrito b { font-size: 17px; }

/* Paso 4 · Pago */
.volver { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font-weight: 700; font-size: 14px; padding: 8px 0; margin-bottom: 8px; }
.pago-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.pago-col { display: flex; flex-direction: column; gap: 18px; }
.pago-col h1 { font-size: clamp(34px, 6vw, 56px); }
.opciones { display: flex; flex-direction: column; gap: 10px; }
.opcion { display: flex; align-items: center; gap: 14px; padding: 18px; border: 0; border-radius: 16px; background: #fff; text-align: left; box-shadow: inset 0 0 0 1.5px var(--linea); transition: box-shadow .2s; flex-wrap: wrap; }
.opcion[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--tinta), 0 12px 28px rgba(27,21,19,.07); }
.opcion-radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--linea); flex-shrink: 0; transition: box-shadow .2s; }
.opcion[aria-checked="true"] .opcion-radio { box-shadow: inset 0 0 0 7px var(--rojo); }
.opcion-txt { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 2px; }
.opcion-txt b { font-size: 16px; } .opcion-txt small { font-size: 13px; color: var(--gris); }
.opcion-ico { color: var(--rojo); }
.marcas { display: flex; gap: 6px; flex-wrap: wrap; }
.marcas > span { height: 26px; min-width: 40px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 800; letter-spacing: .02em; box-shadow: inset 0 0 0 1px #E2E2E2; background: #fff; }
.m-visa { color: #1A1F71; font-style: italic; font-size: 12px !important; }
.m-mc i { width: 13px; height: 13px; border-radius: 50%; background: #EB001B; display: block; } .m-mc i + i { background: #F79E1B; margin-left: -5px; mix-blend-mode: multiply; }
.m-ap { background: #000 !important; color: #fff; box-shadow: none !important; }
.m-gp { color: #3C4043; } .m-gp .i { color: #4285F4; }
.pasarela { background: #fff; border-radius: 16px; padding: 18px; box-shadow: inset 0 0 0 1.5px var(--linea); }
.pasarela-carga { display: flex; align-items: center; gap: 12px; color: var(--gris); font-size: 14px; padding: 18px 0; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--linea); border-top-color: var(--rojo); animation: gira .8s linear infinite; }
.seguro { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12px; color: var(--gris); }
.resumen { background: #fff; border-radius: 18px; padding: 22px; align-self: start; }
.resumen h2 { font-size: 28px; }
.resumen-suc { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gris); margin: 10px 0 14px; }
.resumen-suc .i { color: var(--rojo); }
.resumen ul { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--linea); }
.resumen li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); font-size: 14px; }
.resumen li > span:last-child { font-weight: 700; white-space: nowrap; }
.resumen-nota { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gris); margin: 0; }
.resumen-nota .i { color: var(--rojo); }

/* Paso 5 · Ticket */
.ok-palomita { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--verde); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(20,121,74,.12); animation: palomita .6s var(--ease) both; }
@keyframes palomita { from { transform: scale(0) rotate(-45deg); } }
.impresora-cuerpo { position: relative; height: 64px; border-radius: 18px 18px 10px 10px; background: linear-gradient(#2A221F, #1B1513); box-shadow: 0 18px 30px rgba(27,21,19,.25); z-index: 2; }
.impresora-cuerpo .ranura { position: absolute; left: 22px; right: 22px; bottom: 14px; height: 6px; border-radius: 3px; background: #000; box-shadow: inset 0 2px 3px rgba(255,255,255,.08); }
.impresora-cuerpo .led { position: absolute; right: 22px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: #3A2F2B; }
.impresora.imprimiendo .led { background: #4ADE80; box-shadow: 0 0 10px #4ADE80; animation: led .5s steps(2) infinite; }
@keyframes led { 50% { opacity: .3; } }
.imp-marca { position: absolute; left: 22px; top: 12px; font-family: var(--f-display); font-stretch: 80%; font-weight: 900; font-size: 13px; letter-spacing: .14em; color: #5C5C5C; }
.papel { background: #fff; padding: 26px 20px 30px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; line-height: 19px; color: #2A221F; text-align: left; transform: translateY(-100%);
  clip-path: polygon(0 0,100% 0,100% calc(100% - 10px),95% 100%,90% calc(100% - 10px),85% 100%,80% calc(100% - 10px),75% 100%,70% calc(100% - 10px),65% 100%,60% calc(100% - 10px),55% 100%,50% calc(100% - 10px),45% 100%,40% calc(100% - 10px),35% 100%,30% calc(100% - 10px),25% 100%,20% calc(100% - 10px),15% 100%,10% calc(100% - 10px),5% 100%,0 calc(100% - 10px));
  filter: drop-shadow(0 12px 16px rgba(27,21,19,.12)); }
.t-c { text-align: center; } .t-marca { font-weight: 800; font-size: 17px; letter-spacing: .14em; } .t-lema { font-size: 10.5px; letter-spacing: .2em; margin-bottom: 4px; }
.t-chico { font-size: 11px; line-height: 16px; } .t-grande { font-weight: 800; font-size: 15px; letter-spacing: .1em; margin: 4px 0; }
.t-corte { border-top: 1.5px dashed #BDBDBD; margin: 8px 0; }
.t-ln { display: flex; justify-content: space-between; gap: 10px; } .t-ln span:first-child { overflow: hidden; text-overflow: ellipsis; }
.t-nota { font-size: 11px; color: #6B6B6B; padding-left: 12px; }
.t-total { font-weight: 800; font-size: 15px; }
.t-barras { height: 34px; margin: 12px 18px 0; background: repeating-linear-gradient(90deg, #2A221F 0 2px, transparent 2px 4px, #2A221F 4px 5px, transparent 5px 8px, #2A221F 8px 11px, transparent 11px 12px); }

/* --- Modales --------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal-fondo { position: absolute; inset: 0; background: rgba(27,21,19,.5); backdrop-filter: blur(4px); }
.modal-caja { position: relative; width: 100%; max-width: 520px; max-height: 90dvh; overflow-y: auto; background: var(--crema); border-radius: 24px 24px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); animation: subeHoja .4s var(--ease) both; }
@keyframes subeHoja { from { transform: translateY(40px); opacity: 0; } }
.modal-ico { width: 56px; height: 56px; border-radius: 16px; background: #FDECEA; color: var(--rojo); display: flex; align-items: center; justify-content: center; }
.modal-caja h3 { font-size: 30px; margin-top: 14px; }
.modal-caja > p { color: var(--gris); font-size: 15px; line-height: 1.5; }
.nd-opciones { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.nd-opciones small { font-weight: 700; font-size: 13px; }
.nd-sug { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 0; border-radius: 14px; background: #fff; text-align: left; transition: box-shadow .2s; }
.nd-sug:hover { box-shadow: inset 0 0 0 2px var(--tinta); }
.nd-sug-foto { position: relative; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--disco); color: #C8C8C8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nd-sug-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nd-sug-nom { flex: 1; font-weight: 700; font-size: 14px; }
.nd-sug b { color: var(--rojo); }
.modal-acciones { display: flex; flex-direction: column; gap: 8px; }
.modal-grande { padding: 0; display: flex; flex-direction: column; overflow: hidden; max-width: 640px; }
.mod-foto { position: relative; height: 180px; background: var(--disco); flex-shrink: 0; }
.mod-foto img { width: 100%; height: 100%; object-fit: cover; }
.mod-foto .cerrar { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.9); }
.mod-cuerpo { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.mod-cuerpo h3 { margin: 0; font-size: 30px; }
.mod-grupo small { display: block; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chip em { font-style: normal; color: var(--gris); font-size: 12px; }
.chip.quitado { background: #FDECEA; box-shadow: inset 0 0 0 1.5px var(--rojo); color: var(--rojo); text-decoration: line-through; }
.chip.agregado { background: #E6F4EC; box-shadow: inset 0 0 0 1.5px var(--verde); color: var(--verde); }
.mod-pie { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: #fff; flex-shrink: 0; }
.up-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 8px; }
.up-cab h3 { margin: 0; font-size: 30px; }
.up-cuerpo { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.oferta { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 16px; border: 0; border-radius: 16px; background: var(--rojo); color: #fff; text-align: left; transition: transform .3s var(--ease); }
.oferta.tomada { background: var(--tinta); }
.oferta-foto { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.15); flex-shrink: 0; }
.oferta-foto img { width: 100%; height: 100%; object-fit: cover; }
.oferta-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.oferta-txt small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.oferta-txt b { font-size: 16px; } .oferta-txt span { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; font-size: 22px; }
.oferta-estado { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.oferta-n { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.productos-chicos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --- Pizza que vuela al carrito ------------------------------------------ */
.vuela { position: fixed; z-index: 500; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 16px 30px rgba(27,21,19,.35); }

/* --- Arma Tu Pizza con la piel de Quecho ---------------------------------- */
#atpizza-modal { background: rgba(27,21,19,.5) !important; }
html[data-theme="light"] #atpizza-modal .atpz-dialog { background: var(--crema) !important; border: 0 !important; border-radius: 24px !important; }
html[data-theme="light"] #atpizza-modal .atpz-header { background: #fff !important; }
#atpizza-modal h2, #atpizza-modal .atpz-select-head { font-family: var(--f-display); font-stretch: 66%; font-weight: 900 !important; text-transform: uppercase; letter-spacing: 0 !important; }
#atpizza-modal h2 { font-size: 22px !important; color: var(--tinta) !important; }
html[data-theme="light"] #atpizza-modal .atpz-select-bg { background: var(--crema) !important; }
html[data-theme="light"] #atpizza-modal .atpz-select-head { color: var(--tinta) !important; font-size: 26px !important; }
html[data-theme="light"] #atpizza-modal .atpz-select-card { border-radius: 20px !important; border: 0 !important; box-shadow: inset 0 0 0 1.5px var(--linea) !important; }
html[data-theme="light"] #atpizza-modal .atpz-select-card:hover { box-shadow: inset 0 0 0 2px var(--tinta), 0 14px 30px rgba(27,21,19,.08) !important; }
#atpizza-modal .atpz-select-title { font-family: var(--f-display); font-stretch: 66%; font-weight: 900 !important; text-transform: uppercase; font-size: 22px !important; }
#atpizza-modal [class*="bg-orange-5"], #atpizza-modal .atpz-add-btn { background: var(--rojo) !important; border-color: var(--rojo) !important; }
#atpizza-modal [class*="text-orange-"] { color: var(--rojo) !important; }
#atpizza-modal [class*="border-orange-"] { border-color: var(--rojo) !important; }
#atpizza-modal [class*="ring-orange-"] { --tw-ring-color: var(--rojo) !important; }
html[data-theme="light"] #atpizza-modal .atpz-pizza-card:hover { border-color: var(--rojo) !important; box-shadow: 0 4px 14px rgba(230,60,47,.15) !important; }
html[data-theme="light"] #atpizza-modal .atpz-card-price-l { color: var(--rojo) !important; }
html[data-theme="light"] #atpizza-modal .atpz-status { color: var(--rojo) !important; }
#atpizza-modal, #atpizza-modal * { font-family: var(--f-texto); }
#atpizza-modal .fa-solid, #atpizza-modal .fa-regular, #atpizza-modal .fa-brands { font-family: 'Font Awesome 6 Free' !important; }
#atpizza-modal .fa-brands { font-family: 'Font Awesome 6 Brands' !important; }

/* ==========================================================================
   TABLETA (≥ 640px)
   ========================================================================== */
@media (min-width: 640px) {
  .productos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .productos-chicos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .suc-hero-arte { width: 220px; }
  .portada { min-height: 230px; padding: 32px; }
  .portada-pizza { width: 300px; height: 300px; margin-top: -150px; right: -40px; }
  .modal { align-items: center; padding: 24px; }
  .modal-caja { border-radius: 24px; padding-bottom: 24px; }
  .opciones { flex-direction: row; }
  .opcion { flex: 1; align-items: flex-start; }
}
@media (min-width: 900px) {
  .productos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .paso-suc { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; padding-top: 48px; }
  .suc-hero { flex-direction: column; align-items: flex-start; gap: 32px; position: sticky; top: calc(var(--cab) + 32px); }
  .suc-hero-arte { width: min(420px, 100%); margin-left: 24px; }
  /* Llena el ancho de la columna; si la pantalla es baja se recorta en alto */
  .suc-video { width: 100%; max-width: 720px; aspect-ratio: 4 / 3; max-height: max(300px, calc(100svh - 390px)); margin-left: 0; border-width: 8px; border-radius: 22px; }
  .pago-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
  .resumen { position: sticky; top: calc(var(--cab) + 24px); }
}

/* ==========================================================================
   COMPUTADORA (≥ 1100px): carrito fijo a la derecha
   ========================================================================== */
@media (min-width: 1100px) {
  .paso-menu { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
  .productos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carrito { inset: auto; position: sticky; top: calc(var(--cab) + 16px); z-index: 1; pointer-events: auto; }
  .carrito-fondo { display: none; }
  .carrito-hoja { position: static; transform: none; max-height: calc(100dvh - var(--cab) - 32px); border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(27,21,19,.06); }
  .carrito-cab .cerrar { display: none; }
  .carrito-lista { background: var(--crema); margin: 0 12px; border-radius: 14px; padding: 10px; min-height: 120px; }
  .carrito-pie { border-radius: 0 0 20px 20px; }
  .barra-carrito { display: none; }
  .cab-carrito { display: none !important; }
  .paso { padding-bottom: 48px; }
}
@media (min-width: 1300px) { .productos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  #splash { display: none; }
  .papel { transform: none !important; }
}

@view-transition { navigation: auto; }

/* Las columnas del grid no se estiran por su contenido (la tira de categorías
   y las direcciones largas desbordaban la página en celular) */
.paso-menu > *, .paso-suc > *, .pago-grid > *, .menu-col, .suc-panel, .suc-hero { min-width: 0; }
.paso { overflow-x: clip; }
@media (max-width: 639px) {
  .cab-in { gap: 10px; }
  .marca span { display: none; }
  .suc-pill { height: 40px; padding: 0 12px; min-width: 0; flex: 1; max-width: max-content; }
  .suc-pill span { min-width: 0; } .suc-pill b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
  .cab-carrito { height: 40px; padding: 0 12px; }
  .cab-carrito-total { display: none; }
  .suc-hero-arte { width: 120px; }
  .portada-txt { max-width: 64%; }
  .portada-pizza { width: 200px; height: 200px; margin-top: -100px; right: -70px; }
}

/* ── Entrega a domicilio (RepaFlash) ─────────────────────────────────── */
.entrega { display: flex; flex-direction: column; gap: 18px; }
.opciones-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opciones-2 .opcion-txt { min-width: 0; }
@media (max-width: 520px) { .opciones-2 { grid-template-columns: 1fr; } }
.h-pago { margin-top: 18px; }
.domicilio { display: flex; flex-direction: column; gap: 14px; }
.campo-btn { display: grid; place-items: center; width: 38px; height: 38px; margin-right: -8px; border: 0; border-radius: 10px; background: var(--arena); color: var(--tinta); cursor: pointer; transition: background .2s; }
.campo-btn:hover { background: var(--linea); }
.dom-mapa { position: relative; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--linea); background: var(--arena); }
#mapa-domicilio { height: 260px; z-index: 0; }
@media (min-width: 900px) { #mapa-domicilio { height: 300px; } }
.dom-mapa .leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(.92); }
.dom-mapa .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.8); }
.dom-ubicame { position: absolute; right: 12px; bottom: 12px; z-index: 500; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--tinta); color: #fff; font: 600 14px var(--f-texto); box-shadow: 0 8px 20px rgba(27,21,19,.25); cursor: pointer; }
.dom-ubicame:disabled { opacity: .6; }
.dom-ayuda { position: absolute; left: 12px; top: 12px; right: 60px; z-index: 500; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.94); font-size: 13px; font-weight: 600; color: var(--tinta); pointer-events: none; width: fit-content; }
.dom-msg { margin: -4px 0 0; font-size: 13px; color: var(--gris); }
.dom-campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dom-campos .dom-calle { grid-column: 1 / -1; }
.dom-campos .campo-caja .spinner { flex-shrink: 0; }
.dom-colonia { margin: -6px 0 0; font-size: 13px; color: var(--gris); }
.dom-colonia b { color: var(--tinta); font-weight: 600; }
.dom-msg.error { color: var(--rojo); font-weight: 600; }
.pin { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(27,21,19,.3); border: 2.5px solid #fff; }
.pin .i { transform: rotate(45deg); color: #fff; }
.pin-casa { background: var(--rojo); }
.pin-suc { background: var(--tinta); width: 30px; height: 30px; }
.cotizacion { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: inset 0 0 0 1.5px var(--linea); }
.cot-carga { display: flex; align-items: center; gap: 12px; color: var(--gris); font-size: 14px; }
.cot-ln { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--gris); padding: 3px 0; }
.cot-ln > span { display: flex; align-items: center; gap: 8px; }
.cot-fuerte { font-size: 16px; color: var(--tinta); font-weight: 600; }
.cot-fuerte .i { color: var(--rojo); }
.cot-fuerte small { font-weight: 400; color: var(--gris); font-size: 13px; }
.cot-fuerte b { font-size: 18px; }
.cot-nota { margin: 8px 0 0; font-size: 12px; color: var(--gris); }
.nota-envio { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--arena); font-size: 13px; line-height: 1.45; }
.nota-envio .i { color: var(--rojo); flex-shrink: 0; margin-top: 1px; }
.resumen-envio { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; color: var(--gris); margin: -4px 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--linea); }
.resumen-envio span:nth-child(even) { text-align: right; font-weight: 700; color: var(--tinta); }
.resumen-suc span b { color: var(--tinta); }

/* ── Paso 5 · Ticket: todo en una pantalla ─────────────────────────────
   Celular: encabezado compacto, el ticket toma el alto que sobra (si el
   pedido es largo, solo el ticket se desplaza) y los botones quedan
   siempre a la vista. Computadora: ticket a la izquierda, confirmación y
   botones a la derecha. Va al final para ganarle a .paso { padding }. */
.paso-ok {
  display: grid; grid-template-areas: "cab" "ticket" "pie"; grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center; gap: 14px; text-align: center; max-width: 560px;
  height: calc(100dvh - var(--cab) - 1px); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); overflow: hidden;
  flex: none; min-height: 0; /* .paso es flex:1 dentro de .app: sin esto crece al alto del ticket */
}
.ok-cab { grid-area: cab; }
.ok-cab .ok-palomita { width: 48px; height: 48px; box-shadow: 0 0 0 7px rgba(20,121,74,.12); }
.ok-cab .ok-palomita svg { width: 24px; height: 24px; }
.ok-cab h1 { font-size: clamp(26px, 7.5vw, 34px); margin-top: 10px; }
.ok-cab p { color: var(--gris); margin: 6px 0 0; font-size: 14px; }
.impresora { grid-area: ticket; width: min(100%, 340px); margin: 0 auto; min-height: 0; display: flex; flex-direction: column; }
.impresora-cuerpo { flex: none; height: 56px; }
.papel-marco { position: relative; margin: -20px 28px 0; z-index: 1; padding-bottom: 16px; flex: 1 1 auto; min-height: 0;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.papel-marco::-webkit-scrollbar { display: none; }
.ok-pie { grid-area: pie; width: 100%; }
.ok-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ok-acciones > :first-child, .ok-acciones.sin-mapa > .btn-linea { grid-column: 1 / -1; }
.ok-acciones .btn { height: 48px; }
.ok-acciones .solo-grande { display: none; }
.ok-correo { font-size: 12.5px; color: var(--gris); margin: 10px 0 0; }

/* Celulares bajos (SE, mini): la palomita y la impresora ceden espacio al ticket */
@media (max-width: 899px) and (max-height: 740px) {
  .paso-ok { gap: 10px; padding-top: 10px; }
  .ok-cab .ok-palomita { display: none; }
  .ok-cab h1 { margin-top: 0; font-size: 26px; }
  .ok-cab p { font-size: 13px; }
  .impresora-cuerpo { height: 44px; }
  .papel-marco { margin-top: -16px; }
}
@media (min-width: 900px) {
  .paso-ok {
    max-width: 1040px; text-align: left; justify-items: start; column-gap: 72px; row-gap: 0;
    grid-template-columns: 380px minmax(0, 1fr);
    grid-template-areas: "ticket ." "ticket cab" "ticket pie" "ticket .";
    grid-template-rows: 1fr auto auto 1fr;
    padding: 28px 48px;
  }
  .impresora { width: 100%; max-height: 100%; align-self: center; }
  .ok-cab .ok-palomita { width: 64px; height: 64px; margin: 0; box-shadow: 0 0 0 10px rgba(20,121,74,.12); }
  .ok-cab .ok-palomita svg { width: 32px; height: 32px; }
  .ok-cab h1 { font-size: clamp(40px, 4.4vw, 60px); margin-top: 20px; }
  .ok-cab p { font-size: 17px; margin-top: 10px; max-width: 460px; }
  .ok-pie { max-width: 460px; margin-top: 28px; }
  .ok-acciones { grid-template-columns: 1fr; gap: 10px; }
  .ok-acciones .btn { height: 52px; }
  .ok-acciones .solo-grande { display: inline; }
  .ok-correo { font-size: 14px; margin-top: 14px; }
}

/* --- Pago en modal: ¿cómo lo recibes? → ¿cómo pagas? ----------------------- */
.pago-modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 12px; }
.pago-fondo { position: absolute; inset: 0; background: rgba(27,21,19,.55); backdrop-filter: blur(6px); animation: entra .3s var(--ease) both; }
.pago-card { position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: var(--crema); border-radius: 26px; box-shadow: 0 30px 80px rgba(27,21,19,.35); animation: entra .4s var(--ease) both; overflow: hidden; }
.pago-cab { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--linea); flex: none; }
.pago-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea); display: flex; align-items: center; justify-content: center; }
.pago-puntos { display: flex; gap: 6px; }
.pago-puntos i { width: 8px; height: 8px; border-radius: 4px; background: var(--linea); transition: width .3s, background .3s; }
.pago-puntos i.on { width: 22px; background: var(--rojo); }
.pago-total { margin-left: auto; font-family: var(--f-display); font-weight: 900; font-size: 22px; }
.pago-cuerpo { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; overscroll-behavior: contain; }
.pago-cuerpo h2 { font-size: clamp(28px, 8vw, 38px); margin: 0; }
.pago-cuerpo .opcion { padding: 14px; }
.pago-tarjeta { display: flex; flex-direction: column; gap: 12px; animation: entra .35s var(--ease) both; }
.pago-tarjeta .pasarela { padding: 14px; }
@media (max-height: 700px) { .pago-cuerpo { gap: 10px; padding-top: 12px; } .pago-cuerpo h2 { font-size: 26px; } .pago-cuerpo .opcion { padding: 11px 12px; } }

/* Ticket: display con el total y número de orden protagonista */
.lcd { position: absolute; right: 40px; top: 9px; padding: 3px 10px; border-radius: 6px; background: #0C0A09; box-shadow: inset 0 0 0 1px #3A2F2B, inset 0 2px 6px rgba(0,0,0,.6); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 700; font-size: 15px; letter-spacing: .08em; color: #fff; text-shadow: 0 0 6px rgba(255,255,255,.55); }
.t-orden { display: flex; flex-direction: column; align-items: center; margin: 6px 0 2px; }
.t-orden small { font-size: 10.5px; letter-spacing: .3em; }
.t-orden b { font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: .02em; }
@media (max-width: 899px) and (max-height: 740px) { .lcd { top: 4px; font-size: 12px; padding: 2px 8px; } .t-orden b { font-size: 32px; line-height: 36px; } }
.suc-estado { font-weight: 700; font-size: 12px; } .suc-estado.abierta { color: var(--verde); } .suc-estado.cerrada { color: var(--rojo); }
.suc-item.suc-cerrada { opacity: .55; }
.ts-caja:empty { display: none; } .ts-caja { display: flex; justify-content: center; }
.link-rojo { border: 0; background: none; padding: 0; color: var(--rojo); font-weight: 700; text-decoration: underline; }
