/* Döner Kebab Kashmir · web para pedir.
   Idea: la carta iluminada de encima del mostrador. Paneles de luz con foto, número grande y precio,
   sobre el gris de aluminio del local. Pimentón y cúrcuma como en los rótulos de kebab. */
:root {
  --pimenton: #b8231a;
  --pimenton-d: #8e1912;
  --curcuma: #f0b323;
  --aluminio: #dcdfdc;
  --aluminio-d: #c4c8c4;
  --carbon: #22201d;
  --luz: #fffdf7;
  --perejil: #3d7a35;
  --gris: #6c6a66;
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
}
html, body { background: var(--aluminio); }
* { box-sizing: border-box; }
body { margin: 0; color: var(--carbon); font: 400 1rem/1.5 var(--body); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--curcuma); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Rótulo */
.rotulo { background: var(--pimenton); color: var(--luz); padding: 22px 0 0; overflow: hidden; }
.rotulo .wrap { display: grid; gap: 4px; }
.rotulo .sitio { margin: 0; font-weight: 600; font-size: .95rem; opacity: .9; }
.rotulo h1 { margin: 0; font: 400 clamp(4.2rem, 21vw, 11rem)/.86 var(--display); letter-spacing: .01em; }
.rotulo h1 small { display: block; font-size: .32em; line-height: 1; color: var(--curcuma); letter-spacing: .02em; }
.rotulo .franja { margin-top: 18px; display: grid; grid-template-columns: 1fr; background: var(--carbon); }
.rotulo .franja img { width: 100%; height: clamp(150px, 34vw, 300px); object-fit: cover; display: block; }
.rotulo .como { background: var(--curcuma); color: var(--carbon); padding: 14px 16px; display: grid; gap: 2px; }
.rotulo .como b { font: 400 1.6rem/1.05 var(--display); }
.rotulo .como span { font-size: .95rem; }
@media (min-width: 760px) {
  .rotulo .franja { grid-template-columns: 1.6fr 1fr; }
  .rotulo .como { padding: 26px 28px; align-content: center; }
  .rotulo .como b { font-size: 2.2rem; }
}

/* Pestañas de la carta */
.cats { position: sticky; top: 0; z-index: 5; background: var(--carbon); }
.cats-in { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.cats-in a { flex: none; text-decoration: none; color: var(--luz); font-weight: 700; padding: 8px 14px; border-radius: 4px; }
.cats-in a:hover { background: rgba(255, 253, 247, .12); }

/* La carta iluminada */
#menu { padding-top: 26px; padding-bottom: 120px; }
.cat { margin-bottom: 34px; scroll-margin-top: 64px; }
.cat h2 { margin: 0 0 12px; font: 400 2rem/1 var(--display); }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.item {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; text-align: left; padding: 0; border: 0;
  background: radial-gradient(120% 90% at 50% 30%, #fff 0%, var(--luz) 55%, #f4efe2 100%);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 3px var(--carbon), 0 10px 22px -12px rgba(34, 32, 29, .55);
}
.item:hover { box-shadow: 0 0 0 3px var(--carbon), 0 0 0 7px var(--curcuma); }
.item .pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--carbon); }
.item .pic .foto { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .pic .icn { width: 60%; height: 100%; margin: 0 auto; }
.item .num {
  position: absolute; top: 0; left: 0; min-width: 44px; padding: 4px 8px 2px; text-align: center;
  background: var(--curcuma); color: var(--carbon); font: 400 1.7rem/1 var(--display); border-bottom-right-radius: 6px;
}
.item .txt { padding: 10px 12px 2px; display: grid; gap: 2px; }
.item .txt b { font: 400 1.35rem/1.05 var(--display); letter-spacing: .01em; }
.item .txt small { color: var(--gris); font-size: .84rem; line-height: 1.3; }
.item .pr { padding: 6px 12px 12px; font: 400 1.5rem/1 var(--display); color: var(--pimenton); }
.item .add {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pimenton); color: var(--luz); font: 700 1.4rem/1 var(--body);
}
/* Ofertas: paneles anchos, como la fila de menús de arriba del todo */
.item.offer { grid-column: span 2; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
.item.offer .pic { grid-row: span 2; aspect-ratio: auto; height: 100%; min-height: 150px; }
.item.offer .txt { padding-top: 14px; }
.item.offer .txt b { font-size: 1.6rem; }
@media (min-width: 760px) { .item.offer { grid-column: span 1; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; } .item.offer .pic { grid-row: auto; aspect-ratio: 4 / 3; min-height: 0; } }

/* Al abrir: la carta se enciende de izquierda a derecha, como los fluorescentes. Solo una vez. */
@media (prefers-reduced-motion: no-preference) {
  .item { animation: enciende .9s steps(1, end) both; }
  .item:nth-child(2) { animation-delay: .08s; } .item:nth-child(3) { animation-delay: .16s; }
  .item:nth-child(4) { animation-delay: .24s; } .item:nth-child(5) { animation-delay: .32s; }
  .item:nth-child(n+6) { animation-delay: .4s; }
  @keyframes enciende { 0% { filter: brightness(.35); } 20% { filter: brightness(1); } 30% { filter: brightness(.5); } 45%, 100% { filter: none; } }
}

/* Barra del pedido */
.cartbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 8; width: min(520px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; border-radius: 8px;
  background: var(--carbon); color: var(--luz); font-weight: 700; box-shadow: 0 0 0 3px var(--curcuma), 0 14px 30px -10px rgba(0, 0, 0, .5);
}
.cartbar span:nth-child(2) { flex: 1; text-align: left; }
.cartbar b { font: 400 1.4rem/1 var(--display); color: var(--curcuma); }
.cb-n { min-width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pimenton); }
@media (prefers-reduced-motion: no-preference) { .cartbar.bump { animation: bump .35s; } @keyframes bump { 50% { transform: translateX(-50%) scale(1.05); } } }

/* Ventanas: el ticket */
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; justify-items: center; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(34, 32, 29, .6); }
.sheet-card {
  position: relative; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: var(--luz);
  padding: 18px 16px 20px; border-radius: 10px 10px 0 0;
}
@media (min-width: 760px) { .sheet { align-items: center; } .sheet-card { border-radius: 10px; padding: 22px 24px 24px; } }
.sh-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 2px dashed var(--aluminio-d); }
.sh-head > div { flex: 1; }
.sh-head h3 { margin: 0; font: 400 1.9rem/1 var(--display); }
.sh-head p { margin: 4px 0 0; color: var(--gris); font-size: .92rem; }
.sh-head .num { display: inline-block; background: var(--curcuma); font: 400 1.1rem/1 var(--display); padding: 3px 8px 1px; border-radius: 3px; margin-bottom: 6px; }
.pic.big { flex: none; width: 104px; height: 78px; border-radius: 6px; overflow: hidden; background: var(--carbon); }
.pic.big .foto { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic.big .icn { width: 100%; height: 100%; }
.x { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--aluminio); font-size: 1.5rem; line-height: 1; }
.sheet-card h4 { margin: 18px 0 8px; font-size: 1rem; font-weight: 800; }
.sheet-card h4 small { font-weight: 500; color: var(--gris); }

.vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.var { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 12px; border: 2px solid var(--aluminio-d); border-radius: 6px; background: #fff; font-weight: 600; text-align: left; }
.var b { font-weight: 800; color: var(--pimenton); white-space: nowrap; }
.var.on { border-color: var(--carbon); background: var(--carbon); color: var(--luz); }
.var.on b { color: var(--curcuma); }
.vars.small .var span { display: inline-flex; align-items: center; gap: 6px; }
.vars.small .var .icn, .vars.small .var .foto { width: 1.4em; height: 1.4em; border-radius: 3px; }

.ings { display: flex; flex-wrap: wrap; gap: 8px; }
.ing { position: relative; width: 96px; padding: 10px 6px 8px; border: 2px solid var(--carbon); border-radius: 6px; background: #fff; display: grid; justify-items: center; gap: 4px; font-size: .86rem; font-weight: 700; }
.ing-e .icn { width: 2.4rem; height: 2.4rem; }
.ing-e .foto { width: 2.6rem; height: 2.6rem; border-radius: 4px; object-fit: cover; }
/* Lo que se quita queda tachado en rojo; lo opcional sin añadir, apagado con un "+" */
.ing:not(.on) { border-color: var(--aluminio-d); color: var(--gris); }
.ing:not(.on) .ing-e { opacity: .35; }
.ing[data-g="sin"]:not(.on):after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 3px; background: var(--pimenton); transform: rotate(-24deg); }
.ing:not(.on):not([data-g="sin"]):before { content: "+"; position: absolute; top: 2px; right: 8px; font-size: 1.3rem; color: var(--gris); }
.ing.hot.on { border-color: var(--pimenton); background: #fff1ee; color: var(--pimenton-d); }
.ing.locked { opacity: .45; cursor: not-allowed; }
.solo-note { margin: 12px 0 0; background: #fff3cf; border-left: 4px solid var(--curcuma); padding: 10px 12px; font-weight: 600; font-size: .92rem; }

.sh-foot { position: sticky; bottom: -20px; display: flex; gap: 10px; align-items: center; margin: 20px -16px -20px; padding: 14px 16px; background: var(--luz); border-top: 2px dashed var(--aluminio-d); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 40px; height: 44px; border: 2px solid var(--carbon); border-radius: 6px; background: #fff; font-size: 1.3rem; font-weight: 700; }
.qty b { min-width: 28px; text-align: center; font: 400 1.4rem/1 var(--display); }
.primary { flex: 1; padding: 14px 18px; border: 0; border-radius: 6px; background: var(--pimenton); color: var(--luz); font-weight: 800; font-size: 1.05rem; }
.primary:hover { background: var(--pimenton-d); }
.primary:disabled { opacity: .6; }

/* Tu pedido */
.lines { display: grid; }
.line { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--aluminio); }
.line .q { font: 400 1.3rem/1.1 var(--display); }
.line .pic .foto, .line .pic .icn { width: 52px; height: 39px; border-radius: 4px; object-fit: cover; display: block; }
.l-txt b { display: block; line-height: 1.2; }
.l-r { display: grid; justify-items: end; gap: 4px; }
.del { border: 0; background: none; color: var(--pimenton); font-size: .85rem; font-weight: 700; text-decoration: underline; padding: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: .76rem; font-weight: 700; border-radius: 3px; padding: 2px 6px; background: var(--aluminio); }
.tag .icn, .tag .foto { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -0.32em; border-radius: 2px; }
.tag.no { background: #fde4e1; color: var(--pimenton-d); }
.tag.hot { background: #ffe8d9; color: #9c3d00; }
.tag.pt { background: #fff3cf; color: #6b4b00; }
.tag.drink { background: #e5eef7; color: #1d4471; }
.tot { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-weight: 800; }
.tot b { font: 400 2rem/1 var(--display); color: var(--pimenton); }
#send { display: grid; gap: 12px; }
#send label { display: grid; gap: 5px; font-weight: 700; font-size: .95rem; }
#send label small { font-weight: 500; color: var(--gris); }
#send input:not([type]), #send input[type="tel"], #send select { width: 100%; padding: 11px 12px; border: 2px solid var(--aluminio-d); border-radius: 6px; background: #fff; }
#send input:focus, #send select:focus { border-color: var(--carbon); outline: none; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay label { display: flex !important; align-items: center; gap: 8px; padding: 11px 12px; border: 2px solid var(--aluminio-d); border-radius: 6px; background: #fff; cursor: pointer; }
.pay label:has(input:checked) { border-color: var(--carbon); }
.check { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 500 !important; }
.err { margin: 0; color: var(--pimenton-d); font-weight: 700; min-height: 0; }
.err:empty { display: none; }

/* Estado del pedido: el número que se canta en el mostrador */
.status { position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: var(--pimenton); padding: 24px 16px; display: grid; place-items: start center; }
.status[hidden] { display: none; }
.st-card { width: min(520px, 100%); background: var(--luz); border-radius: 10px; padding: 26px 20px 22px; text-align: center; }
.st-card h2 { margin: 14px 0 4px; font: 400 2.4rem/1 var(--display); }
.st-card p { margin: 6px 0; }
.st-card .big { font-size: 1.15rem; font-weight: 700; }
.st-ic { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font: 400 2.8rem/1 var(--display); color: var(--luz); }
.st-ic.ok { background: var(--perejil); }
.st-ic.ready { background: var(--curcuma); color: var(--carbon); }
.st-ic.no { background: var(--gris); }
.st-ic.wait { border: 3px solid var(--aluminio); }
.st-ic.wait span { width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--aluminio); border-top-color: var(--pimenton); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.st-num { margin: 18px auto 6px; display: inline-block; background: var(--carbon); color: var(--luz); padding: 8px 16px; border-radius: 6px; font-weight: 600; }
.st-num b { font: 400 1.8rem/1 var(--display); color: var(--curcuma); vertical-align: -0.12em; }
.lines.mini { text-align: left; margin: 10px 0 16px; }
.lines.mini .line { grid-template-columns: auto auto 1fr; }
#again { width: 100%; }

/* Pie */
.foot { background: var(--carbon); color: #d9d6cf; padding: 22px 0 110px; font-size: .92rem; }
.foot p { margin: 4px 0; }

/* Retoques tras las capturas */
.cartbar[hidden] { display: none; }
.rotulo h1 small { margin-bottom: .12em; }
.item .pr { padding-right: 52px; }
.item .pr { white-space: nowrap; font-size: 1.25rem; }
@media (min-width: 760px) { .item .pr { font-size: 1.5rem; } }
.enlace { width: 100%; margin-top: 4px; padding: 12px; border: 2px solid var(--carbon); border-radius: 6px; background: #fff; font-weight: 700; }
.no-cierres { margin: 16px 0 4px !important; padding: 12px 14px; background: var(--curcuma); border-radius: 6px; font-size: 1rem; line-height: 1.4; }
.no-cierres b { display: block; font: 400 1.5rem/1.1 var(--display); }
.acceso { padding-top: 28px; padding-bottom: 40px; }
.acceso form { display: grid; gap: 10px; text-align: left; margin: 0 auto; }
.acceso label { font-weight: 700; }
.acceso input { padding: 12px; border: 2px solid var(--aluminio-d); border-radius: 6px; background: #fff; }
[hidden] { display: none !important; }
.avisos { margin: 14px 0 4px; padding: 12px 14px; text-align: left; border: 2px solid var(--carbon); border-radius: 6px; background: #fff; }
.avisos p { margin: 0 0 8px; } .avisos p:last-child { margin-bottom: 0; }
.avisos ol { margin: 0 0 8px; padding-left: 20px; } .avisos li { margin: 4px 0; }
.avisos .primary { width: 100%; }
.avisos.ok { border-color: var(--perejil); color: var(--perejil); font-weight: 700; }

/* Avisos por WhatsApp */
.wa-box { margin: 14px 0 4px; padding: 12px 14px; text-align: left; border: 2px solid var(--carbon); border-radius: 6px; background: #fff; }
.wa-box p { margin: 0 0 10px; }
.wa-btn { display: block; text-align: center; padding: 14px 16px; border-radius: 6px; background: #1f7a4d; color: #fff; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.wa-btn:focus-visible { outline: 3px solid var(--carbon); outline-offset: 2px; }
.wa-ok { margin: 16px 0 4px; padding: 12px 14px; border-radius: 6px; background: #e3f2e9; color: #1f5c3b; font-weight: 700; }

/* Carne obligatoria */
h4 small.falta { color: #b8231a; font-weight: 800; }
.vars.carnes { grid-template-columns: repeat(3, 1fr); }
#add:disabled { opacity: .55; cursor: not-allowed; }

/* Familiares: cada kebab y cada durum por separado */
.unit { margin: 4px 0 14px; padding: 10px 12px 12px; border: 2px dashed var(--aluminio-d); border-radius: 8px; }
.unit h4 { margin-top: 0; }
.unit .vars.carnes { margin-bottom: 10px; }
.unit .ings .ing { width: 78px; font-size: .78rem; }
.copiar { margin-top: 10px; background: none; border: 0; padding: 4px 0; font: 700 .95rem var(--body); color: var(--pimenton-d, #8f1a13); text-decoration: underline; cursor: pointer; }

/* Confirmar el pedido por WhatsApp */
.wa-nota { margin: 4px 0 10px; font-size: .92rem; color: var(--gris); }
.wa-btn.grande { margin: 16px 0 6px; padding: 18px 16px; font-size: 1.2rem; }

/* Horario: local cerrado */
.cerrado { margin: 10px 0 0; display: inline-block; padding: 8px 12px; border-radius: 6px; background: var(--carbon); color: var(--curcuma); font-weight: 800; }
.cerrado-form { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: #fff3d6; font-weight: 700; }
#go:disabled { opacity: .5; cursor: not-allowed; }
