/* ESTAMOS ACÁ · app de la mesa.
   Lenguaje sacado de sus historias de carta: fondo negro cálido, fotos de la barra de madera, títulos
   anchos y pesados en blanco, el acento «ˇ» amarillo del logo, placas mostaza con letra café. */

html { background: var(--noche); }
body {
  min-height: 100dvh; color: var(--crema);
  background:
    radial-gradient(130% 55% at 50% -12%, rgb(122 74 36 / .38), transparent 62%),
    var(--noche);
  background-attachment: fixed;
  overscroll-behavior-y: none;
}
#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; position: relative; overflow-x: clip; }
main { padding: 0 16px calc(118px + env(safe-area-inset-bottom)); }
body.con-carrito main { padding-bottom: calc(186px + env(safe-area-inset-bottom)); }
.ico { width: 22px; height: 22px; flex: none; }

/* acento del logo: la «ˇ» amarilla que va sobre la A */
.acento { position: relative; }
.acento::before {
  content: ''; position: absolute; left: 50%; top: -9px; width: 9px; height: 9px; margin-left: -5px;
  border: solid var(--amarillo); border-width: 0 0 3px 3px; border-radius: 0 0 0 2px; transform: rotate(-45deg);
}

/* ───────── cabecera ───────── */
.cab {
  position: sticky; top: 0; z-index: 30; height: 58px; padding: 0 16px; padding-top: env(safe-area-inset-top);
  box-sizing: content-box; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(rgb(14 11 9 / .96), rgb(14 11 9 / .82)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cab-logo { display: flex; align-items: center; height: 44px; }
.cab-logo .logo { height: 23px; }
.cab-con { font-size: 11px; font-weight: 700; color: var(--mostaza-2); letter-spacing: .04em; text-transform: uppercase; }
.cab-mesa {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px;
  border-radius: 99px; background: var(--mostaza); color: var(--cafe);
  font-weight: 900; font-style: italic; font-size: 14px; letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 3px 0 var(--mostaza-3);
}
.cab-mesa small { font-weight: 700; font-style: normal; font-size: 11.5px; opacity: .75; text-transform: none; letter-spacing: 0; }
.cab-mesa .vivo-punto { width: 8px; height: 8px; border-radius: 50%; background: #0b6a65; box-shadow: 0 0 0 3px rgb(11 106 101 / .25); animation: latido 1.2s infinite; }
.cab-mesa.sin { background: var(--noche-3); color: var(--crema); box-shadow: none; font-style: normal; font-weight: 700; font-size: 12.5px; }

/* ───────── barra inferior: palabras, con la «ˇ» sobre la activa ───────── */
.barra {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(528px, calc(100% - 24px)); height: 62px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgb(8 6 5 / .94); border: 1px solid rgb(246 237 224 / .09); border-radius: 22px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -10px #000;
}
.barra button { position: relative; display: flex; align-items: center; justify-content: center; color: rgb(246 237 224 / .45); transition: color .2s; }
.barra button span { font-weight: 800; font-stretch: 118%; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; position: relative; }
.barra button.activo { color: #fff; }
.barra button.activo span::before {
  content: ''; position: absolute; left: 50%; top: -11px; width: 9px; height: 9px; margin-left: -5px;
  border: solid var(--amarillo); border-width: 0 0 3px 3px; transform: rotate(-45deg); animation: caer .35s cubic-bezier(.2, 1.6, .5, 1);
}
@keyframes caer { from { transform: translateY(-8px) rotate(-45deg); opacity: 0; } }
.barra .punto { position: absolute; top: 14px; right: calc(50% - 40px); width: 8px; height: 8px; border-radius: 50%; background: var(--celeste); box-shadow: 0 0 8px var(--celeste); }
.barra .punto.urgente { background: var(--rayo); box-shadow: 0 0 8px var(--rayo); animation: latido 1s infinite; }

/* carrito flotante */
.carrito {
  position: fixed; z-index: 39; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom));
  width: min(528px, calc(100% - 24px)); height: 58px; padding: 0 8px 0 18px; display: flex; align-items: center; gap: 12px;
  border-radius: 20px; text-align: left; animation: subir .35s cubic-bezier(.2, 1.3, .5, 1);
  box-shadow: 0 4px 0 var(--mostaza-3), 0 18px 30px -12px #000;
}
.carrito .c-cant { width: 30px; height: 30px; border-radius: 50%; background: var(--cafe); color: var(--mostaza-2); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.carrito .c-txt { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.carrito .c-tot { margin-left: auto; font-weight: 900; font-size: 16px; font-variant-numeric: tabular-nums; }
.carrito .c-ver { height: 42px; padding: 0 16px; border-radius: 14px; background: var(--cafe); color: var(--crema); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
@keyframes subir { from { transform: translate(-50%, 30px); opacity: 0; } }

/* ───────── inicio ───────── */
.saludo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 2px 12px; }
.saludo b { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.saludo span { font-size: 12.5px; color: rgb(246 237 224 / .6); white-space: nowrap; }
.saludo .ab { color: var(--hoja); }

/* «¿Cómo viene la noche?»: el menú desplegable de su publicación decide qué se ofrece */
.noche { position: relative; height: clamp(470px, 128vw, 600px); border-radius: 26px; overflow: hidden; background: #000; isolation: isolate; box-shadow: var(--sombra); }
.noche-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: opacity .55s ease, transform 1.2s ease; }
.noche-foto.fuera { opacity: 0; transform: scale(1.06); }
.noche::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / .62) 0%, rgb(0 0 0 / .08) 34%, rgb(0 0 0 / 0) 48%, rgb(0 0 0 / .55) 70%, rgb(0 0 0 / .94) 100%); }
.noche-preg { position: absolute; z-index: 2; left: 16px; top: 16px; font-weight: 900; font-stretch: 112%; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.mac {
  position: absolute; z-index: 2; left: 16px; top: 40px; width: 212px; padding: 5px;
  background: rgb(246 246 246 / .95); border-radius: 10px; box-shadow: 0 12px 30px -8px rgb(0 0 0 / .7), 0 0 0 .5px rgb(0 0 0 / .25);
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif; font-size: 14px; color: #1d1d1f;
}
.mac button { display: flex; width: 100%; height: 30px; align-items: center; padding: 0 10px; border-radius: 6px; text-align: left; letter-spacing: -.01em; transition: background .18s, color .18s; }
.mac button.sel { background: #2f6fdf; color: #fff; }
.cursor { position: absolute; z-index: 3; width: 20px; height: 26px; pointer-events: none; transition: top .5s cubic-bezier(.3, .8, .3, 1), left .5s cubic-bezier(.3, .8, .3, 1); filter: drop-shadow(0 2px 2px rgb(0 0 0 / .5)); }
.noche-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 18px 18px; }
.noche-tit { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(30px, 9.4vw, 44px); line-height: .9; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.noche-d { margin: 8px 0 0; font-size: 13.5px; line-height: 1.35; color: rgb(255 255 255 / .78); max-width: 30ch; }
.noche-fila { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.noche-fila .btn { flex: 1; }
.etiqueta {
  display: inline-block; padding: 4px 10px 5px; background: var(--amarillo); color: #111; transform: rotate(-4deg);
  font-weight: 900; font-style: italic; font-size: 17px; font-variant-numeric: tabular-nums; border-radius: 3px; box-shadow: 0 6px 14px -6px #000;
}
.noche-info .etiqueta { position: absolute; right: 18px; top: -22px; font-size: 19px; }
.noche-entra .noche-tit, .noche-entra .noche-d, .noche-entra .etiqueta { animation: aparece .45s both; }
.noche-entra .noche-d { animation-delay: .06s; }
.noche-entra .etiqueta { animation-delay: .12s; }

.acomp { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.mini { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border-radius: 18px; background: var(--noche-2); min-height: 66px; text-align: left; border: 1px solid rgb(246 237 224 / .06); }
.mini img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; flex: none; }
.mini img.mini-cut { object-fit: contain; border-radius: 0; height: 64px; margin: -14px 0 -6px; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .5)); }
.mini div { min-width: 0; flex: 1; }
.mini b { display: block; font-size: 13.5px; font-weight: 800; line-height: 1.12; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini span { font-size: 12.5px; color: var(--mostaza-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.mini .mas { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--mostaza); color: var(--cafe); display: grid; place-items: center; }
.mini .mas .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.mini.sin-foto { padding-left: 14px; }

.bloque { margin-top: 30px; }
.bloque-tit { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.bloque-tit h2 { margin: 0; font-weight: 900; font-size: 30px; line-height: .86; letter-spacing: -.035em; }
.bloque-tit h2 small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(246 237 224 / .58); margin-bottom: 6px; }
.bloque-tit .vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--celeste); }
.bloque-tit .vivo::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: latido 1.3s infinite; }

/* tres casillas iguales: llamar, cuenta, dividir */
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.casilla {
  height: 92px; border-radius: 20px; background: var(--noche-2); border: 1px solid rgb(246 237 224 / .07);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 0 6px;
  font-weight: 800; font-size: 13px; line-height: 1.1; transition: transform .12s, background .2s;
}
.casilla:active { transform: scale(.96); }
.casilla .ico { width: 26px; height: 26px; color: var(--mostaza-2); }
.casilla.llamando { background: var(--rayo); color: #3a1200; border-color: transparent; animation: pulso 1.4s infinite; }
.casilla.llamando .ico { color: #3a1200; }
.casilla.va { background: var(--celeste); color: #06332f; border-color: transparent; }
.casilla.va .ico { color: #06332f; }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 122 47 / .55); } 60% { box-shadow: 0 0 0 10px rgb(255 122 47 / 0); } }

/* lo que está en camino (resumen en el inicio) */
.camino { margin-top: 12px; padding: 14px 16px; border-radius: 20px; background: var(--noche-2); border: 1px solid rgb(148 244 238 / .16); display: block; width: 100%; text-align: left; }
.camino-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.camino-cab b { font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; }
.camino-cab span { font-size: 12.5px; color: var(--celeste); font-weight: 700; }
.camino-l { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; border-top: 1px dashed rgb(246 237 224 / .1); }
.camino-l:first-of-type { border-top: 0; }
.camino-l span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* el dado */
.dado-card { margin-top: 30px; padding: 20px 18px; display: grid; grid-template-columns: 1fr 112px; gap: 10px; align-items: center; overflow: hidden; }
.dado-card h3 { margin: 0; font-size: 30px; }
.dado-card p { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.35; font-weight: 600; }
.dado-card .btn { min-height: 44px; }
.birras-cuenta { display: flex; gap: 6px; margin: 0 0 12px; }
.birras-cuenta i { width: 26px; height: 34px; border-radius: 4px 4px 8px 8px; border: 2.5px solid var(--cafe); position: relative; overflow: hidden; }
.birras-cuenta i.llena::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 78%; background: var(--cafe); }
.mini-dado { width: 96px; height: 96px; border-radius: 22px; background: linear-gradient(145deg, #fff3d6, #f4d999); box-shadow: inset -6px -8px 0 rgb(183 128 31 / .45), 0 10px 0 var(--mostaza-3), 0 22px 30px -12px rgb(0 0 0 / .6);
  display: grid; place-items: center; transform: rotate(9deg); animation: bamboleo 3.2s ease-in-out infinite; color: var(--cafe); }
.mini-dado svg { width: 54px; height: 54px; }
@keyframes bamboleo { 50% { transform: rotate(-5deg) translateY(-4px); } }

/* lo más pedido esta noche */
.ranking { display: grid; gap: 2px; }
.rank { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgb(246 237 224 / .08); text-align: left; width: 100%; }
.rank-n { font-weight: 900; font-style: italic; font-size: 40px; line-height: .8; color: var(--mostaza); font-variant-numeric: tabular-nums; text-align: center; }
.rank b { display: block; font-size: 16px; font-weight: 800; line-height: 1.15; }
.rank small { font-size: 12.5px; color: rgb(246 237 224 / .55); }
.rank .lado { display: flex; align-items: center; gap: 10px; }
.rank .lado img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.rank .lado img.rank-cut { object-fit: contain; border-radius: 0; height: 60px; margin: -8px 0; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .5)); }
.rank .p { font-weight: 800; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.mas-red { width: 34px; height: 34px; border-radius: 50%; background: var(--mostaza); color: var(--cafe); display: grid; place-items: center; flex: none; box-shadow: 0 3px 0 var(--mostaza-3); }
.mas-red .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.mas-red:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--mostaza-3); }

/* combos: las placas tal cual su destacada */
.riel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.riel::-webkit-scrollbar { display: none; }
.combo { flex: 0 0 82%; scroll-snap-align: center; padding: 22px 18px 18px; min-height: 420px; display: grid; grid-template-columns: 1fr 44px; grid-template-rows: auto 1fr auto; gap: 0 8px; }
.combo h3 { grid-column: 1 / -1; margin: 0; font-size: 34px; }
.combo h3 small { display: block; font-size: 22px; }
.combo ul { grid-column: 1; margin: 14px 0 12px; padding: 0 0 0 16px; font-size: 13px; line-height: 1.32; font-weight: 600; }
.combo ul li::marker { content: '● '; font-size: 9px; }
.combo-foto { grid-column: 1; grid-row: 3; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-height: 190px; border-radius: 4px; }
.combo-n { grid-column: 2; grid-row: 2 / 4; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 500; font-size: 46px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; justify-self: center; align-self: end; color: var(--cafe-2); }
.combo .btn { grid-column: 1 / -1; margin-top: 14px; }

.pie { margin-top: 34px; position: relative; border-radius: 26px; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; background: #000; }
.pie img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; opacity: .9; }
.pie::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgb(0 0 0 / .85)); }
.pie div { position: relative; z-index: 1; padding: 18px; font-size: 13px; line-height: 1.5; color: rgb(255 255 255 / .85); }
.pie b { color: #fff; font-weight: 800; }
.pie a { color: var(--celeste); font-weight: 700; text-decoration: none; }

/* ───────── carta: un color por categoría, escenario arriba y productos que salen de la tarjeta ───────── */
#v-carta { --cat: var(--mostaza); --cat-t: var(--cafe); }
.cats {
  position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 20; margin: 0 -16px; padding: 12px 16px 14px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(var(--noche) 80%, rgb(14 11 9 / 0));
}
.cats::-webkit-scrollbar { display: none; }
.cats button {
  flex: none; height: 44px; padding: 0 18px; border-radius: 15px; background: var(--noche-2); color: rgb(246 237 224 / .62);
  font-weight: 900; font-stretch: 118%; font-size: 14px; text-transform: uppercase; letter-spacing: .01em; border: 1px solid rgb(246 237 224 / .08);
  transition: background .2s, color .2s, transform .15s;
}
.cats button.activo { background: var(--c); color: var(--ct); border-color: transparent; box-shadow: 0 4px 0 rgb(0 0 0 / .35); transform: translateY(-2px); }

.aviso-mesa { margin: 6px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--noche-2); font-size: 13.5px; line-height: 1.35; color: rgb(246 237 224 / .8); }

/* escenario de la categoría */
.escena {
  position: relative; margin-top: 46px; min-height: 196px; padding: 20px 18px 18px; border-radius: 28px; isolation: isolate;
  background: var(--cat); color: var(--cat-t); box-shadow: 0 6px 0 rgb(0 0 0 / .28), var(--sombra);
}
.escena::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--grano); opacity: .2; mix-blend-mode: multiply; pointer-events: none; z-index: -1; }
.escena-txt { position: relative; z-index: 2; max-width: 64%; }
.escena h1 { margin: 0; font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: clamp(30px, 9vw, 54px); line-height: .88; letter-spacing: -.02em; }
.escena p { margin: 10px 0 12px; font-size: 13.5px; line-height: 1.35; font-weight: 700; opacity: .86; }
.escena-n { display: inline-block; padding: 4px 10px 5px; border-radius: 99px; background: var(--cat-t); color: var(--cat); font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.escena-arte { position: absolute; z-index: 1; right: 0; bottom: 0; pointer-events: none; }
.escena-arte.uno { right: 6px; bottom: -6px; }
.escena-arte.uno img { height: 262px; filter: drop-shadow(0 18px 18px rgb(0 0 0 / .35)); animation: flotar 4.5s ease-in-out infinite; }
.escena-arte.abanico { right: -4px; bottom: 8px; width: 52%; height: 230px; }
.escena-arte.abanico img { position: absolute; bottom: 0; height: 178px; left: calc(var(--i) * 21%); filter: drop-shadow(0 14px 14px rgb(0 0 0 / .3));
  transform: rotate(calc((var(--i) - 1.5) * 7deg)); transform-origin: 50% 100%; animation: flotar 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.escena-arte.abanico img:nth-child(2), .escena-arte.abanico img:nth-child(3) { height: 200px; z-index: 1; }
.escena-arte.plato { right: -46px; top: -40px; bottom: auto; }
.escena-arte.plato img { width: 236px; height: 236px; border-radius: 50%; object-fit: cover; object-position: 50% 40%; border: 6px solid #f3ead9;
  box-shadow: 0 18px 30px -8px rgb(0 0 0 / .55); animation: girar 60s linear infinite; }
.escena-arte.letra { right: 22px; bottom: 6px; font-weight: 300; font-size: 170px; line-height: 1; color: var(--cat-t); opacity: .9; }
.escena-arte.letra::before { content: ''; position: absolute; left: 50%; top: 2px; width: 40px; height: 40px; margin-left: -22px; border: solid var(--amarillo); border-width: 0 0 10px 10px; transform: rotate(-45deg); border-radius: 0 0 0 4px; }
@keyframes flotar { 50% { translate: 0 -9px; } }
@keyframes girar { to { rotate: 360deg; } }

.sec { margin-top: 38px; scroll-margin-top: 130px; }
.sec-cab { position: relative; margin-bottom: 16px; }
.sec-kick { display: block; font-size: 12.5px; font-weight: 600; color: rgb(246 237 224 / .66); margin-bottom: 2px; }
.sec-tit { display: inline; margin: 0; font-weight: 900; font-size: clamp(34px, 10.4vw, 48px); line-height: .9; letter-spacing: -.04em; color: #fff;
  -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; background: linear-gradient(transparent 70%, color-mix(in srgb, var(--cat) 55%, transparent) 70%, color-mix(in srgb, var(--cat) 55%, transparent) 92%, transparent 92%); }
.sec-nota { display: table; margin-top: 10px; padding: 3px 9px 4px; background: var(--amarillo); color: #111; font-weight: 800; font-style: italic; font-size: 12.5px; transform: rotate(-2deg); border-radius: 2px; }

/* tarjetas con imagen */
.platos { display: grid; gap: 14px; }
.pl {
  position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 6px 14px; align-items: start;
  min-height: 118px; padding: 14px 14px 14px 12px; border-radius: 22px; background: var(--noche-2); border: 1px solid rgb(246 237 224 / .07);
  text-align: left; cursor: pointer; transition: transform .15s; animation: aparece .45s both; animation-delay: calc(var(--i, 0) * 45ms);
}
.pl:active { transform: scale(.985); }
.pl::after { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--cat); }
.pl-foto { grid-row: 1 / 3; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 3px solid var(--cat); box-shadow: 0 10px 18px -8px #000; align-self: center; }
.pl-foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.pl.con-cut { margin-top: 22px; }
.pl-cut { grid-row: 1 / 3; position: relative; width: 92px; height: 100%; min-height: 96px; }
.pl-cut::before { content: ''; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 46px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cat) 45%, transparent), transparent); }
.pl-cut img { position: absolute; left: 50%; bottom: -4px; height: 150px; translate: -50% 0; filter: drop-shadow(0 12px 12px rgb(0 0 0 / .5)); animation: flotar 4.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s); }
.pl-txt { min-width: 0; }
.pl-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl .it-p, .canilla .it-p { display: inline-block; padding: 3px 9px 4px; background: var(--amarillo); color: #111; transform: rotate(-3deg); border-radius: 3px; font-style: italic; font-weight: 900; font-size: 15px; }
.pl.agotado { opacity: .55; }

.it-n { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: #fff; }
.it-d { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.32; color: rgb(246 237 224 / .6); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.it-p { font-weight: 800; font-size: 15px; color: var(--mostaza-2); font-variant-numeric: tabular-nums; transition: color .3s; white-space: nowrap; }
.it-p s { color: rgb(246 237 224 / .4); font-weight: 600; margin-right: 6px; font-size: 13px; }
.pl .it-p s, .canilla .it-p s { color: rgb(0 0 0 / .45); }
.it-p.cambio { animation: cambio 2.2s ease; }
@keyframes cambio { 0%, 30% { color: #111; background: var(--amarillo); box-shadow: 0 0 0 4px var(--amarillo); } 100% { box-shadow: 0 0 0 4px transparent; } }
.it-sin { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--rayo-2); }
.it-vars { display: block; margin-top: 5px; font-size: 12.5px; color: rgb(246 237 224 / .72); font-variant-numeric: tabular-nums; }
.it-vars b { color: var(--mostaza-2); font-weight: 800; }

/* filas sin imagen, agrupadas en un bloque */
.grupo-lista { margin-top: 14px; padding: 4px 14px; border-radius: 22px; background: var(--noche-2); border: 1px solid rgb(246 237 224 / .07); }
.platos + .grupo-lista { margin-top: 14px; }
.sec-cab + .grupo-lista { margin-top: 0; }
.it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px dashed rgb(246 237 224 / .12); text-align: left; cursor: pointer; }
.it:first-child { border-top: 0; }
.it-pie { display: flex; align-items: center; gap: 10px; }
.it.agotado .it-n, .it.agotado .it-d { opacity: .38; }
.it.agotado .it-p { text-decoration: line-through; opacity: .5; }

/* birras tiradas: las pintas generadas paradas en su tarjeta */
.canillas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.canilla {
  position: relative; height: 236px; border-radius: 24px; overflow: hidden; text-align: left; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  background: radial-gradient(120% 70% at 50% 100%, color-mix(in srgb, var(--cerveza) 55%, transparent), transparent 70%), var(--noche-2);
  border: 1px solid rgb(246 237 224 / .08); cursor: pointer; animation: aparece .45s both; animation-delay: calc(var(--i, 0) * 60ms);
}
.canilla-img { position: absolute; left: 50%; top: 8px; height: 150px; translate: -50% 0; filter: drop-shadow(0 12px 12px rgb(0 0 0 / .45)); animation: flotar 4.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s); }
.canilla b { position: relative; z-index: 1; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 21px; line-height: .95; text-shadow: 0 2px 10px rgb(0 0 0 / .6); }
.canilla-pie { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.canilla .vaso { position: absolute; left: 50%; top: 22px; translate: -50% 0; width: 56px; height: 116px; border-radius: 6px 6px 14px 14px; border: 2.5px solid rgb(255 255 255 / .38); background: linear-gradient(transparent 16%, var(--cerveza) 16%); }
.canilla.agotado .canilla-img, .canilla.agotado b { opacity: .35; }

#v-carta.entra .escena { animation: aparece .45s both; }
#v-carta.entra .escena-arte.uno img, #v-carta.entra .escena-arte.abanico img { animation: entrar-arte .7s cubic-bezier(.2, 1.3, .4, 1) both, flotar 4.5s ease-in-out .7s infinite; }
#v-carta.entra .escena-arte.abanico img { animation-delay: calc(var(--i) * 70ms), calc(.7s + var(--i) * -.9s); }
@keyframes entrar-arte { from { opacity: 0; translate: 0 40px; scale: .8; } }


/* ajustes por categoría para que el arte no tape el texto */
.escena-birras, .escena-comida { min-height: 214px; }
.escena-birras p, .escena-comida p { max-width: 74%; }
.escena-arte.abanico { right: -8px; bottom: 6px; width: 54%; height: 230px; }
.escena-arte.abanico img { height: 176px; left: calc(var(--i) * 19%); }
.escena-arte.abanico img:nth-child(2), .escena-arte.abanico img:nth-child(3) { height: 204px; }
.escena-arte.plato { right: -78px; top: -44px; }
.escena-arte.plato img { width: 214px; height: 214px; }

/* ───────── hojas ───────── */
.velo { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: velo .25s; }
@keyframes velo { from { opacity: 0; } }
.hoja {
  position: fixed; z-index: 61; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%); max-height: 93dvh;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: var(--noche-2); border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 50px -10px #000; animation: hoja .38s cubic-bezier(.2, 1, .3, 1); padding-bottom: env(safe-area-inset-bottom);
}
@keyframes hoja { from { transform: translate(-50%, 100%); } }
.hoja.cierra { transform: translate(-50%, 100%); transition: transform .28s ease-in; }
.hoja-asa { position: sticky; top: 0; z-index: 3; height: 0; }
.hoja-asa::before { content: ''; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgb(246 237 224 / .28); }
.hoja-x { position: absolute; right: 12px; top: 12px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: rgb(14 11 9 / .7); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.hoja-x .ico { width: 20px; height: 20px; }
.hoja-cuerpo { padding: 22px 18px 18px; }
.hoja h2 { margin: 0; }
.hoja-tit { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 28px; line-height: .92; letter-spacing: -.01em; padding-right: 44px; }
.hoja-sub { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: rgb(246 237 224 / .7); }

/* ficha del producto: la foto entera, sin texto encima */
.ficha-foto { background: #000; display: flex; justify-content: center; }
.ficha-foto img { width: 100%; max-height: 56dvh; object-fit: contain; }
.ficha-cut { position: relative; height: min(52dvh, 440px); display: flex; justify-content: center; align-items: flex-end; padding-top: 30px; overflow: hidden;
  background: radial-gradient(70% 62% at 50% 62%, color-mix(in srgb, var(--cat) 70%, transparent), transparent 72%), radial-gradient(120% 90% at 50% 100%, rgb(255 255 255 / .06), transparent), var(--noche); }
.ficha-cut img { height: 94%; filter: drop-shadow(0 24px 24px rgb(0 0 0 / .55)); animation: entrar-arte .6s cubic-bezier(.2, 1.3, .4, 1) both, flotar 4.5s ease-in-out .6s infinite; }
.ficha-sin { height: 14px; background: var(--cat); }
.ficha-sin span { display: none; }
.ficha-precio { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.ficha-precio .etiqueta { font-size: 20px; }
.grupo { margin-top: 20px; }
.grupo-t { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: rgb(246 237 224 / .55); margin-bottom: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 14px; border-radius: 13px; background: var(--noche-3); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.chip small { color: var(--mostaza-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.chip.sel { background: rgb(227 165 59 / .16); border-color: var(--mostaza); color: #fff; }
.chip.nuevo { background: transparent; border: 2px dashed rgb(246 237 224 / .25); color: rgb(246 237 224 / .75); }
.nota-in { width: 100%; min-height: 46px; border-radius: 14px; border: 0; background: var(--noche-3); padding: 0 14px; color: #fff; font-size: 16px; }
.nota-in::placeholder { color: rgb(246 237 224 / .4); }
.fijo-pie {
  position: sticky; bottom: 0; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  margin-bottom: calc(-1 * env(safe-area-inset-bottom)); background: linear-gradient(rgb(25 20 15 / 0), var(--noche-2) 26%);
}
.fijo-pie .btn { flex: 1; min-height: 54px; font-size: 16px; }
.cant { display: flex; align-items: center; gap: 2px; height: 54px; padding: 0 4px; border-radius: 99px; background: var(--noche-3); }
.cant button { width: 44px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.cant b { min-width: 24px; text-align: center; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* el pedido (carrito) */
.ped-l { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-top: 1px solid rgb(246 237 224 / .08); align-items: center; }
.ped-l:first-child { border-top: 0; }
.ped-l b { font-size: 15.5px; font-weight: 800; line-height: 1.15; }
.ped-l small { display: block; font-size: 12.5px; color: rgb(246 237 224 / .58); margin-top: 3px; }
.ped-l .cant { height: 40px; grid-row: 1 / 3; grid-column: 2; }
.ped-l .cant button { width: 34px; height: 36px; }
.ped-l .cant b { font-size: 15px; }
.ped-tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; padding-top: 14px; border-top: 2px solid rgb(246 237 224 / .14); font-weight: 900; font-size: 20px; font-variant-numeric: tabular-nums; }
.ped-tot small { font-size: 13px; font-weight: 600; color: rgb(246 237 224 / .6); }
.premio-l b::after { content: 'De regalo'; margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: var(--amarillo); color: #111; font-size: 11px; font-weight: 900; font-style: italic; vertical-align: 2px; }

/* ───────── mi mesa ───────── */
.mesa-placa { margin-top: 8px; padding: 18px 18px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; }
.mesa-placa h1 { margin: 0; font-size: 58px; line-height: .8; }
.mesa-placa h1 small { display: block; font-size: 17px; margin-bottom: 4px; }
.mesa-placa p { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--cafe-2); }
.mesa-tot { text-align: right; font-weight: 900; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; }
.mesa-tot small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }

.llamado { margin-top: 12px; padding: 14px 16px; border-radius: 20px; display: flex; align-items: center; gap: 12px; animation: aparece .3s; }
.llamado .ico { width: 28px; height: 28px; }
.llamado div { flex: 1; min-width: 0; }
.llamado b { display: block; font-weight: 900; font-size: 16px; line-height: 1.1; }
.llamado small { font-size: 12.5px; opacity: .8; }
.llamado .btn { min-height: 38px; padding: 0 12px; font-size: 13px; }
.llamado.espera { background: var(--rayo); color: #3a1200; }
.llamado.espera .ico { animation: sacudir 1.2s infinite; }
.llamado.va { background: var(--celeste); color: #06332f; }
@keyframes sacudir { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-6deg); } }

/* el ticket: papel de comandera, sellos por estado */
.ticket {
  position: relative; margin-top: 22px; padding: 22px 18px 20px; background: #f3ead9; color: #2a2118; font-family: var(--mono);
  --dientes: radial-gradient(circle at 8px 0, transparent 7px, #000 7.5px) 0 0 / 16px 100% repeat-x;
  -webkit-mask: linear-gradient(#000, #000) center / 100% calc(100% - 16px) no-repeat, radial-gradient(circle at 8px 0, transparent 6px, #000 6.5px) top / 16px 9px repeat-x, radial-gradient(circle at 8px 9px, transparent 6px, #000 6.5px) bottom / 16px 9px repeat-x;
  mask: linear-gradient(#000, #000) center / 100% calc(100% - 16px) no-repeat, radial-gradient(circle at 8px 0, transparent 6px, #000 6.5px) top / 16px 9px repeat-x, radial-gradient(circle at 8px 9px, transparent 6px, #000 6.5px) bottom / 16px 9px repeat-x;
  filter: drop-shadow(0 16px 20px rgb(0 0 0 / .45));
}
.ticket::before { content: ''; position: absolute; inset: 0; background: var(--grano); opacity: .1; pointer-events: none; }
.ticket-cab { text-align: center; padding-bottom: 12px; border-bottom: 1.5px dashed #2a2118; }
.ticket-cab .logo { color: #2a2118; height: 18px; }
.ticket-cab p { margin: 6px 0 0; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.ticket-ped { padding: 14px 0 6px; border-bottom: 1.5px dashed rgb(42 33 24 / .5); }
.ticket-ped:last-of-type { border-bottom: 0; }
.ticket-ped h4 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; }
.tl { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; align-items: start; }
.tl-n { font-size: 14px; font-weight: 700; line-height: 1.25; }
.tl-n small { display: block; font-weight: 400; font-size: 11.5px; opacity: .7; }
.tl-p { font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: right; }
.tl-e { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.sello {
  display: inline-block; padding: 3px 8px 2px; border: 2.5px solid currentColor; border-radius: 6px; font-family: var(--f);
  font-weight: 900; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-4deg); opacity: .92;
  mix-blend-mode: multiply;
}
.sello.nuevo { animation: sellar .42s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes sellar { 0% { transform: scale(2.4) rotate(-14deg); opacity: 0; } 100% { transform: rotate(-4deg); opacity: .92; } }
.s-pendiente { color: #6b5a45; }
.s-preparando { color: #b5730c; }
.s-listo { color: #0b7d77; }
.s-entregado { color: #3b7a22; }
.s-cancelado { color: #9a8f82; text-decoration: line-through; }
.pasos { display: flex; align-items: center; gap: 0; flex: 1; }
.pasos i { width: 9px; height: 9px; border-radius: 50%; background: rgb(42 33 24 / .18); flex: none; }
.pasos i.ok { background: #2a2118; }
.pasos u { flex: 1; height: 2px; background: rgb(42 33 24 / .14); }
.pasos u.ok { background: #2a2118; }
.ticket-tot { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 4px; border-top: 2px solid #2a2118; font-weight: 700; font-size: 16px; }
.ticket-vacio { text-align: center; padding: 22px 0 8px; font-size: 13px; line-height: 1.5; }
.ticket-vacio .btn { margin-top: 12px; font-family: var(--f); }

.cuenta-op { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cuenta-op .chip { justify-content: center; padding: 0 6px; font-size: 13px; text-align: center; }
.reparto { margin-top: 14px; border-radius: 16px; background: var(--noche-3); padding: 4px 14px; }
.reparto-l { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid rgb(246 237 224 / .08); font-size: 15px; }
.reparto-l:first-child { border-top: 0; }
.reparto-l b { font-variant-numeric: tabular-nums; }
.reparto-l small { display: block; color: rgb(246 237 224 / .55); font-size: 12px; margin-top: 2px; }
.paga { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: var(--rayo); color: #3a1200; font-size: 11px; font-weight: 900; }

/* ───────── club ───────── */
.socio { margin-top: 8px; padding: 18px; min-height: 196px; display: grid; grid-template-columns: 1fr 104px; gap: 12px; }
.socio h1 { margin: 0; font-size: 34px; }
.socio p { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--cafe-2); }
.socio .pts { font-weight: 900; font-size: 44px; font-style: italic; line-height: 1; margin-top: 14px; font-variant-numeric: tabular-nums; }
.socio .pts small { font-size: 13px; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.socio-qr { width: 104px; height: 104px; background: #fff7e8; border-radius: 14px; padding: 8px; align-self: start; }
.socio-qr svg { width: 100%; height: 100%; }
.tarj { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--noche-2); border: 1px solid rgb(246 237 224 / .06); }
.tarj h3 { margin: 0; font-weight: 900; font-stretch: 118%; font-size: 18px; text-transform: uppercase; letter-spacing: -.005em; }
.tarj p { margin: 6px 0 12px; font-size: 13.5px; line-height: 1.4; color: rgb(246 237 224 / .7); }
.tarj .fila { display: flex; gap: 10px; }
.tarj .fila .btn { flex: 1; min-width: 0; padding: 0 12px; }
.canje { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgb(246 237 224 / .08); }
.canje:first-of-type { border-top: 0; }
.canje b { font-size: 15px; font-weight: 800; }
.canje small { display: block; color: var(--mostaza-2); font-weight: 800; font-size: 12.5px; }
.premios { display: grid; gap: 8px; }
.premio { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--amarillo); color: #111; }
.premio b { flex: 1; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 15px; }

/* ───────── el dado ───────── */
.dado-capa { position: fixed; inset: 0; z-index: 80; background: radial-gradient(80% 60% at 50% 40%, rgb(255 122 47 / .2), transparent), rgb(5 4 3 / .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); animation: velo .3s; overflow-y: auto; }
.dado-capa .hoja-x { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.dado-tit { text-align: center; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 30px; line-height: .92; margin: 0; }
.dado-tit small { display: block; font-size: 13px; font-weight: 700; font-stretch: 100%; letter-spacing: .05em; color: rgb(246 237 224 / .6); margin-bottom: 8px; }
.dado-escena { width: 150px; height: 150px; perspective: 700px; margin: 46px auto 50px; }
.cubo { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(32deg); }
.cubo.tirando { transition: transform 1.6s cubic-bezier(.15, .7, .2, 1); }
.cara { position: absolute; inset: 0; border-radius: 30px; background: linear-gradient(145deg, #fff6df, #f1d595); box-shadow: inset 0 0 0 3px rgb(183 128 31 / .5), inset -10px -12px 24px rgb(183 128 31 / .35);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 22px; backface-visibility: hidden; }
.cara i { width: 26px; height: 26px; border-radius: 50%; background: var(--cafe); place-self: center; box-shadow: inset 2px 3px 0 rgb(0 0 0 / .35); }
.cara.rayo { display: grid; place-items: center; padding: 0; background: linear-gradient(145deg, #2b1a0d, #120a05); box-shadow: inset 0 0 0 3px rgb(255 122 47 / .55); }
.cara.rayo svg { width: 92px; height: 92px; color: var(--rayo); filter: drop-shadow(0 0 10px var(--rayo)) drop-shadow(0 0 24px rgb(255 122 47 / .7)); }
.c1 { transform: rotateY(0) translateZ(75px); } .c6 { transform: rotateY(180deg) translateZ(75px); }
.c2 { transform: rotateY(90deg) translateZ(75px); } .c5 { transform: rotateY(-90deg) translateZ(75px); }
.c3 { transform: rotateX(90deg) translateZ(75px); } .c4 { transform: rotateX(-90deg) translateZ(75px); }
.dado-txt { text-align: center; font-size: 15px; line-height: 1.45; color: rgb(246 237 224 / .8); max-width: 30ch; margin: 0 auto 18px; min-height: 44px; }
.dado-txt b { color: #fff; }
.dado-capa .btn { width: min(340px, 100%); min-height: 58px; font-size: 17px; }
.dado-capa .btn + .btn { margin-top: 12px; }
.jugadores { width: min(380px, 100%); display: grid; gap: 8px; margin-bottom: 16px; }
.jug { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 14px; border-radius: 16px; background: var(--noche-2); }
.jug.turno { background: rgb(227 165 59 / .18); box-shadow: inset 0 0 0 2px var(--mostaza); }
.jug.pierde { background: var(--rayo); color: #3a1200; }
.jug b { flex: 1; font-size: 16px; font-weight: 800; }
.jug .val { width: 40px; height: 40px; border-radius: 11px; background: var(--crema); color: var(--cafe); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.jug .val.r { background: #1b0f07; color: var(--rayo); }
.jug .val .ico { width: 22px; height: 22px; }
.jug-in { display: flex; gap: 8px; }
.jug-in input { flex: 1; min-width: 0; height: 48px; border-radius: 14px; border: 0; background: var(--noche-3); padding: 0 14px; color: #fff; font-size: 16px; }

/* ───────── aviso arriba ───────── */
.toast { position: fixed; z-index: 90; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(520px, calc(100% - 24px));
  padding: 14px 16px; border-radius: 18px; background: var(--crema); color: var(--cafe); font-weight: 800; font-size: 14.5px; line-height: 1.3; box-shadow: 0 18px 40px -10px #000; animation: bajar .35s cubic-bezier(.2, 1.3, .5, 1); display: flex; gap: 10px; align-items: center; }
.toast .ico { width: 22px; height: 22px; flex: none; }
.toast.celeste { background: var(--celeste); color: #06332f; }
.toast.rayo { background: var(--rayo); color: #3a1200; }
.toast.mal { background: #ffd9cc; color: #6b1d00; }
@keyframes bajar { from { transform: translate(-50%, -30px); opacity: 0; } }

/* ───────── entrada: el cartel de neón se prende ───────── */
.entrada { position: fixed; inset: 0; z-index: 100; background: #050403; display: grid; place-items: center; transition: opacity .5s ease .1s; }
.entrada .logo { height: auto; width: min(76vw, 360px); color: var(--celeste); opacity: .08; animation: prender 1.25s steps(1) forwards; }
.entrada.fin { opacity: 0; pointer-events: none; }
@keyframes prender {
  0% { opacity: .08; filter: none; }
  12% { opacity: 1; filter: drop-shadow(0 0 10px var(--celeste)); }
  18% { opacity: .15; filter: none; }
  30% { opacity: 1; filter: drop-shadow(0 0 10px var(--celeste)); }
  34% { opacity: .3; filter: none; }
  44%, 100% { opacity: 1; filter: drop-shadow(0 0 8px var(--celeste)) drop-shadow(0 0 26px rgb(148 244 238 / .55)); }
}

/* impresión del ticket al mandar el pedido */
.imprime { position: fixed; inset: 0; z-index: 85; background: rgb(5 4 3 / .9); display: grid; place-items: start center; padding-top: 18vh; overflow: hidden; animation: velo .2s; }
.imprime .ranura { width: min(320px, 84vw); height: 14px; border-radius: 8px; background: #000; box-shadow: inset 0 3px 6px rgb(255 255 255 / .1), 0 0 0 4px var(--noche-3); position: relative; z-index: 2; }
.imprime .ticket { width: calc(min(320px, 84vw) - 24px); margin: -6px auto 0; transform-origin: top; animation: salir 1.4s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes salir { from { transform: translateY(-100%); } }
.imprime .sello-grande { position: absolute; left: 50%; top: calc(18vh + 150px); translate: -50% -50%; transform: rotate(-10deg); z-index: 3; padding: 8px 16px; border: 4px solid var(--mostaza); color: var(--mostaza); font-weight: 900; font-stretch: 125%; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; border-radius: 10px; animation: sellar .4s cubic-bezier(.2, 1.4, .4, 1) 1.25s both; background: rgb(14 11 9 / .4); }

@media (min-width: 600px) {
  main { padding-left: 22px; padding-right: 22px; }
  .cats { margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
  .riel { margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
  .combo { flex-basis: 62%; }
  .canilla { height: 200px; }
}
.saludo i { font-style: normal; }

/* ───────── pantallas anchas (iPad y compu): la app usa todo el ancho; el teléfono no cambia ───────── */
@media (min-width: 700px) and (min-height: 500px) {
  #app { max-width: 1120px; }
  main { padding: 0 32px calc(130px + env(safe-area-inset-bottom)); }
  body.con-carrito main { padding-bottom: calc(200px + env(safe-area-inset-bottom)); }
  .cab { padding: 0 32px; height: 66px; }
  .cab-logo .logo { height: 28px; }
  .barra, .carrito { width: 520px; }
  .cats { top: calc(66px + env(safe-area-inset-top)); margin: 0 -32px; padding: 22px 32px 14px; gap: 30px; }
  .riel { margin: 0 -32px; padding-left: 32px; padding-right: 32px; }

  /* inicio: la historia del día a la izquierda, lo de la mesa a la derecha */
  #v-inicio { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0 26px; align-items: start; }
  #v-inicio > .saludo, #v-inicio > .bloque, #v-inicio > .pie { grid-column: 1 / -1; }
  #v-inicio > .noche { grid-column: 1; grid-row: 2 / span 5; height: clamp(560px, 74vh, 700px); }
  #v-inicio > #acomp, #v-inicio > #iniVivo, #v-inicio > #iniTres, #v-inicio > #iniDado { grid-column: 2; }
  #v-inicio > #acomp { margin-top: 0; grid-template-columns: 1fr; }
  #v-inicio > #iniDado .dado-card { margin-top: 12px; }
  .ranking { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .combo { flex-basis: 340px; }
  .pie { min-height: 300px; }

  /* carta */
  .cats button { height: 50px; font-size: 16px; padding: 0 22px; }
  .escena { min-height: 250px; padding: 30px 32px; }
  .escena h1 { font-size: clamp(56px, 7vw, 88px); }
  .escena p { font-size: 16px; }
  .escena-arte.uno img { height: 330px; }
  .escena-arte.abanico { width: 46%; height: 300px; }
  .escena-arte.abanico img { height: 230px; }
  .escena-arte.abanico img:nth-child(2), .escena-arte.abanico img:nth-child(3) { height: 260px; }
  .escena-arte.plato { right: -30px; top: -50px; }
  .escena-arte.plato img { width: 320px; height: 320px; }
  .platos { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .platos > .pl:only-child { grid-column: 1 / -1; }
  .grupo-lista { columns: 2; column-gap: 34px; }
  .grupo-lista .it { break-inside: avoid; }
  .canillas { grid-template-columns: repeat(4, 1fr); }
  .canilla { height: 270px; }
  .canilla-img { height: 180px; }
  
  /* mi mesa: la placa y los botones a la izquierda, el ticket a la derecha */
  #v-mesa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 26px; align-items: start; }
  #v-mesa > * { grid-column: 1; }
  #v-mesa > .ticket { grid-column: 2; grid-row: 1 / span 6; margin-top: 8px; }
  #v-mesa > .aviso-mesa { grid-column: 1 / -1; }

  /* club */
  #v-club { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
  #v-club > .socio { grid-row: span 2; min-height: 300px; }
  #v-club > .tarj { margin-top: 8px; }

  .hoja { border-radius: 26px 26px 0 0; }
  .ficha-foto img { max-height: 50vh; }
}
@media (min-width: 1100px) and (min-height: 500px) {
  #v-inicio > .noche { height: clamp(600px, 78vh, 760px); }
  .combo { flex-basis: 330px; }
}
