/* OliPizza. Concepto: del horno a la mesada (ver CONCEPTO.md) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.cargando *, .cargando *::before, .cargando *::after { transition: none !important; }

:root {
  --oro: #F2B533;
  --brasa: #FF7A1F;
  --crema: #F3E9DA;
  --crema-2: #CDBBA5;
  --mesa: #F4EDE2;
  --mesa-2: #EBE1D2;
  --tinta: #2A1A10;
  --tinta-2: #6B5444;
  --tomate: #E2522B;
  --tomate-hondo: #BF3E1B;
  --papel: #FBF6EE;
  --verde-wa: #1D7A4B;

  --f-letra: 'Familjen Grotesk', 'Trebuchet MS', system-ui, sans-serif;
  --f-it: 'Figtree', 'Familjen Grotesk', system-ui, sans-serif;

  --cab: 64px;
  --cats: 8px;
  --arriba: env(safe-area-inset-top, 0px);
  --abajo: env(safe-area-inset-bottom, 0px);
  --sale: cubic-bezier(.2, .8, .2, 1);
  --cruza: cubic-bezier(.7, 0, .2, 1);
}

/* Los colores del marco cambian con la vista */
body {
  --ink: var(--crema); --ink-2: var(--crema-2); --marca: var(--oro);
  --pill: rgba(243, 233, 218, .08); --pill-ink: var(--crema);
  --pill-on: #F7F1E8; --pill-on-ink: #1B120C;
  --hover: rgba(243, 233, 218, .09); --foco: var(--oro);
  --marco: #140C07;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-letra);
  background: #140c07;
  color: var(--ink);
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; max-width: 100%; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cabecera */
.cabecera {
  position: fixed; inset: 0 0 auto; z-index: 30;
  height: calc(var(--cab) + var(--arriba));
  padding: var(--arriba) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--ink); background: var(--marco); transition: color .4s .32s, background-color .4s .32s;
}
.cabecera__der { justify-self: end; display: flex; align-items: center; gap: 2px; }
.ico {
  min-width: 44px; height: 44px; border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; transition: background-color .2s;
}
.ico:hover { background: var(--hover); }
.ico svg { width: 24px; height: 24px; }
.marca {
  display: block; width: clamp(104px, 28vw, 146px); aspect-ratio: 1129 / 252;
  -webkit-mask: url(img/wordmark.png) center / contain no-repeat;
  mask: url(img/wordmark.png) center / contain no-repeat;
  background: var(--marca); transition: background-color .4s .32s;
}
.carrito-btn__n {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--brasa); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 19px; text-align: center;
}
.carrito-btn.salta { animation: salta .5s var(--sale); }
@keyframes salta { 30% { transform: scale(1.22); } 60% { transform: scale(.94); } }

/* Vistas */
.vista { position: fixed; inset: 0; }

.compo { position: relative; display: block; }
.compo img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Velo, hojas y avisos ---------- */
.velo { position: fixed; inset: 0; z-index: 40; background: rgba(12, 7, 3, .55); opacity: 0; transition: opacity .32s; }
.velo.on { opacity: 1; }
.hoja {
  position: fixed; top: 0; bottom: 0; z-index: 41; width: min(420px, 100vw);
  background: var(--papel); color: var(--tinta);
  display: flex; flex-direction: column;
  transition: transform .42s var(--sale); --foco: var(--tomate-hondo);
}
.hoja--prod { top: auto; bottom: 0; left: max(0px, calc(50% - 290px)); width: min(580px, 100vw); max-height: 92dvh; transform: translateY(104%); border-radius: 24px 24px 0 0; }
.hoja--pedido { right: 0; transform: translateX(104%); border-radius: 24px 0 0 24px; }
.hoja.on { transform: none; }
.hoja__cab { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + var(--arriba)) 14px 8px 22px; }
.hoja__titulo { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.hoja__logo { width: 64px; height: 64px; }
.hoja .ico:hover { background: rgba(42, 26, 16, .07); }
.hoja__cuerpo { flex: 1; overflow-y: auto; padding: 4px 22px 24px; overscroll-behavior: contain; }
.hoja__sub { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.pasos { padding-left: 1.2em; display: grid; gap: 8px; font-size: 16px; line-height: 1.45; color: var(--tinta-2); }
.pasos li::marker { color: var(--tomate-hondo); font-weight: 700; }
.hoja__datos { margin-top: 24px; display: grid; gap: 6px; font-size: 16px; line-height: 1.45; }
.hoja__datos a { color: var(--tinta); text-underline-offset: 3px; }

.items { list-style: none; display: grid; gap: 4px; }
.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #EADFCE; }
.item__foto { width: 56px; height: 56px; }
.item__nombre { font-size: 16px; font-weight: 700; line-height: 1.2; }
.item__det { font-size: 14px; color: var(--tinta-2); line-height: 1.3; margin-top: 2px; }
.item__der { display: grid; justify-items: end; gap: 6px; }
.item__precio { font-weight: 700; font-variant-numeric: tabular-nums; }
.paso { display: flex; align-items: center; gap: 2px; background: var(--mesa-2); border-radius: 999px; padding: 2px; }
.paso button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.paso button:hover { background: rgba(42, 26, 16, .08); }
.paso span { min-width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.vacio { text-align: center; padding: 40px 10px 10px; color: var(--tinta-2); display: grid; gap: 16px; justify-items: center; font-size: 17px; }
.btn-linea { height: 46px; padding: 0 22px; border-radius: 10px; border: 1.5px solid var(--tinta); font-weight: 600; }
.form { margin-top: 26px; display: grid; gap: 28px; }
.grupo { border: 0; display: grid; gap: 14px; min-width: 0; }
/* Cada bloque abre con su título y un filete, como los renglones de una comanda */
.grupo legend { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; margin-bottom: 14px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.grupo legend::after { content: ''; flex: 1; height: 1px; background: #DCCFBB; }
.opciones { display: grid; gap: 10px; }
.opciones--dos { grid-template-columns: 1fr 1fr; }
.opciones--tres { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opciones--tres .opcion span { padding: 10px 10px; min-height: 62px; }
.opciones--tres .opcion b { font-size: 15px; }
.opciones--tres .opcion small { font-size: 12px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.opcion span { display: grid; gap: 3px; align-content: center; min-height: 66px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1.5px solid #E2D5C2; transition: background-color .2s, border-color .2s, color .2s; }
.opcion b { font-size: 16px; font-weight: 700; line-height: 1.2; }
.opcion small { font-size: 13px; line-height: 1.25; color: var(--tinta-2); transition: color .2s; }
.opcion:hover span { border-color: #B9A68C; }
.opcion input:checked + span { background: var(--tinta); border-color: var(--tinta); color: var(--crema); }
.opcion input:checked + span small { color: var(--crema-2); }
.opcion input:focus-visible + span { outline: 2px solid var(--tomate-hondo); outline-offset: 2px; }
.grupo--datos { gap: 16px; }
.campo { display: block; }
.campo > span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--tinta-2); }
.campo > span i { font-style: normal; font-weight: 500; color: #8B7663; }
.campo input, .campo textarea, .campo select {
  width: 100%; font: inherit; font-size: 16px; color: var(--tinta);
  background: #fff; border: 1.5px solid #E2D5C2; border-radius: 10px; padding: 14px 14px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.campo input, .campo select { min-height: 52px; }
.campo input::placeholder, .campo textarea::placeholder { color: #A8967F; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(42, 26, 16, .1); }
.campo__ayuda { display: block; margin-top: 6px; font-style: normal; font-size: 13px; line-height: 1.35; color: var(--tinta-2); }
.aviso-datos { margin-top: -8px; font-size: 13px; line-height: 1.4; color: var(--tinta-2); }
.campo__error { display: block; margin-top: 6px; color: #A8321A; font-size: 14px; font-weight: 600; }
.hoja__pie { padding: 16px 22px calc(16px + var(--abajo)); border-top: 1px dashed #CDBCA4; display: grid; gap: 12px; background: var(--papel); }
.recibo { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--tinta-2); }
.recibo[hidden] { display: none; }
.recibo div { display: flex; justify-content: space-between; gap: 12px; }
.recibo dd { font-variant-numeric: tabular-nums; }
.hoja__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: 600; padding-top: 8px; border-top: 1px solid #EADFCE; }
.hoja__total b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn-wa {
  height: 56px; border-radius: 999px; background: var(--verde-wa); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 17px; font-weight: 700; transition: background-color .2s, transform .15s;
}
.btn-wa svg { width: 22px; height: 22px; }
.btn-wa:hover { background: #17673F; }
.btn-wa:active { transform: scale(.97); }
.btn-wa:disabled { opacity: .45; cursor: default; }

.pista {
  position: fixed; z-index: 35; max-width: 220px; padding: 10px 14px; border-radius: 14px;
  background: var(--crema); color: #1D1108; font-size: 15px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  animation: pista-entra .5s var(--sale) both;
}
.pista::before { content: ''; position: absolute; top: -6px; right: var(--flecha-x, 22px); width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
body[data-vista="mesada"] .pista { background: var(--tinta); color: var(--mesa); }
@keyframes pista-entra { from { opacity: 0; transform: translateY(-6px); } }

.aviso {
  position: fixed; left: 50%; z-index: 45; bottom: calc(var(--abajo) + 96px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
  background: #1F140C; color: var(--crema); font-size: 15px; font-weight: 600; text-align: center;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
  transition: opacity .3s, transform .4s var(--sale);
}
.aviso.on { opacity: 1; transform: translate(-50%, 0); }

.hoja__volver { margin-left: -8px; margin-right: 4px; }
.hoja__cab { gap: 4px; }
.hoja__titulo { flex: 1; }
.aviso-horario { margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: #F6E3C7; color: #6A3B12; font-size: 15px; font-weight: 600; line-height: 1.4; }
.grupo__nota { margin-top: -2px; font-size: 13px; line-height: 1.4; color: var(--tinta-2); }
.form__error { color: #A8321A; font-size: 15px; font-weight: 600; line-height: 1.4; }
.btn-tinta--ancho { width: 100%; border-radius: 12px; }
.btn-tinta:disabled { opacity: .5; cursor: default; }
.link-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--verde-wa); text-decoration: none; }
.link-wa svg { width: 20px; height: 20px; }
.link-wa:hover { text-decoration: underline; text-underline-offset: 3px; }
.pago__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed #CDBCA4; font-size: 15px; font-weight: 600; color: var(--tinta-2); }
.pago__total b { font-size: 28px; color: var(--tinta); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pago__brick { min-height: 60px; }
.pago__cargando { padding: 30px 0; text-align: center; color: var(--tinta-2); font-size: 15px; }
.pago__demo { display: grid; gap: 16px; padding: 18px; border-radius: 18px; background: var(--mesa-2); font-size: 15px; line-height: 1.5; color: var(--tinta-2); }
.pago__demo .btn-linea { justify-self: start; }
.transfer { width: 100%; list-style: none; display: grid; gap: 0; margin-top: 6px; padding: 6px 16px; border: 1.5px dashed #B9A68C; border-radius: 10px; text-align: left; }
.transfer__paso { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #EADFCE; }
.transfer__paso:last-child { border-bottom: 0; }
.transfer__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tinta); color: var(--crema); font-size: 14px; font-weight: 700; }
.transfer__cuerpo { display: grid; gap: 4px; min-width: 0; }
.transfer__cuerpo b { font-size: 16px; }
.transfer__cuerpo small { font-size: 13px; line-height: 1.4; color: var(--tinta-2); }
.transfer__alias { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.transfer__alias span { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; color: var(--tinta); word-break: break-all; }
.btn-linea--chico { height: 34px; padding: 0 12px; font-size: 14px; }
.btn-wa-ancho { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 6px; border-radius: 12px; background: var(--verde-wa); color: #fff; font-weight: 700; text-decoration: none; }
.listo { text-align: center; padding-top: 14px; display: grid; justify-items: center; gap: 10px; }
.listo .btn-linea { margin-top: 10px; }
.listo__sello {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #2F6B3A; color: #fff; box-shadow: 0 16px 30px -14px rgba(47, 107, 58, .8);
  animation: sello .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.listo__sello svg { width: 32px; height: 32px; }
.listo__sello.espera { background: #B7791F; }
@keyframes sello { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.listo__titulo { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.listo__texto { font-size: 15px; line-height: 1.5; color: var(--tinta-2); max-width: 34ch; }
.listo__ref { font-size: 14px; font-weight: 700; padding: 6px 14px; border: 1.5px dashed #B9A68C; border-radius: 6px; }
.items--resumen { width: 100%; margin-top: 8px; text-align: left; }
.item__cant { font-weight: 600; color: var(--tinta-2); }

/* Piezas que vuelan (cambio de vista, ingredientes, carrito) */
.vuelo { position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; perspective: 1150px; }
.vuelo img { width: 100%; height: 100%; }
.miga { position: fixed; left: 0; top: 0; z-index: 46; pointer-events: none; border-radius: 50%; }

@media (max-height: 640px) {
  :root { --cats: 48px; }
  .horno__desc { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .slot.es-actual .flota { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Aviso antes de confirmar el pedido */
.confirmar { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; padding: 16px; background: rgba(12, 7, 3, .6); }
.confirmar[hidden] { display: none; }
.confirmar__caja { width: min(420px, 100%); display: grid; gap: 12px; padding: 22px 20px calc(20px + var(--abajo)); border-radius: 16px; background: var(--papel); color: var(--tinta); box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); animation: sube .28s var(--sale); }
@keyframes sube { from { transform: translateY(24px); opacity: 0; } }
.confirmar__caja h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.confirmar__texto { font-size: 15px; line-height: 1.45; color: var(--tinta-2); }
.confirmar__pasos { list-style: none; display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1.5px solid #E2D5C2; font-size: 15px; line-height: 1.4; }
.confirmar__pasos li { padding-left: 16px; position: relative; }
.confirmar__pasos li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--tomate-hondo); }
.btn-linea--ancho { width: 100%; }
@media (min-width: 560px) { .confirmar { place-items: center; } }

.transfer__extra { margin-top: 6px; }
.btn-linea--ancho { color: var(--tinta); font-size: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }

/* Sus últimos pedidos, con el carrito vacío */
.mis-pedidos { width: 100%; margin-top: 18px; display: grid; gap: 8px; text-align: left; }
.mis-pedidos[hidden] { display: none; }
.mis-pedidos__titulo { font-size: 15px; font-weight: 700; color: var(--tinta); }
.mis-pedidos__uno { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1.5px solid #E2D5C2; }
.mis-pedidos__uno > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mis-pedidos__uno b { font-size: 15px; color: var(--tinta); }
.mis-pedidos__uno small { font-size: 13px; color: var(--tinta-2); line-height: 1.3; }

/* ---------- El inicio: logo, menú de sliders y datos ---------- */
.vista--inicio {
  overflow-y: auto; overflow-x: clip; overscroll-behavior: contain;
  background:
    radial-gradient(70% 38% at 50% 14%, rgba(255, 130, 40, .2), transparent 70%),
    radial-gradient(130% 55% at 50% 0%, #3E2413 0%, #22140B 48%, transparent 82%),
    radial-gradient(120% 60% at 50% 100%, #1B0F08, transparent 70%), #120B07;
}
.inicio { max-width: 560px; margin: 0 auto; padding: calc(var(--cab) + var(--arriba) + 6px) 16px calc(40px + var(--abajo)); }
.hero { text-align: center; padding: 4px 0 6px; }
.hero__logo { position: relative; width: min(68vw, 270px); aspect-ratio: 1; margin: 22px auto 0; }
.hero__logo::before {
  content: ''; position: absolute; inset: -26%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 140, 40, .45), rgba(255, 120, 30, .12) 58%, transparent);
  animation: latido 4.5s ease-in-out infinite;
}
@keyframes latido { 50% { transform: scale(1.07); opacity: .8; } }
.hero__logo img { position: relative; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 3px #F2B533, 0 0 0 11px rgba(242, 181, 51, .13), 0 28px 44px -16px rgba(0, 0, 0, .85); }
.hero__lema { margin: 28px auto 0; max-width: 19rem; font-size: 1.28rem; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; color: #E9DCC8; text-wrap: balance; }
.hero__chips { margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.hero__chips span { padding: 8px 15px; border-radius: 999px; background: rgba(255, 122, 31, .14); border: 1px solid rgba(255, 150, 70, .4); backdrop-filter: blur(6px); color: #FFC58A; font-size: 14px; font-weight: 600; }
.menu { margin-top: 30px; display: grid; gap: 14px; }
.sec { border-radius: 22px; background: linear-gradient(135deg, rgba(255, 140, 50, .1), rgba(243, 233, 218, .04) 60%); border: 1px solid rgba(255, 170, 90, .18); overflow: hidden; box-shadow: 0 14px 30px -18px rgba(255, 110, 20, .45), inset 0 2px 0 rgba(255, 200, 140, .05); }
.sec.abierta { border-color: rgba(255, 150, 60, .55); }
.sec__cab { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; min-height: 112px; padding: 12px 16px 12px 20px; text-align: left; }
.sec__foto { order: 2; flex: none; width: 88px; height: 88px; margin: 0 2px 0 0; overflow: visible; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .55)); }
.sec__txt { order: 1; flex: 1; min-width: 0; display: grid; gap: 4px; }
.sec__txt b { font-size: 27px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.sec__txt small { font-size: 14px; font-weight: 500; line-height: 1.25; color: #D9C8B0; }
.sec__flecha { order: 3; flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255, 150, 60, .55); background: rgba(255, 122, 31, .1); transition: transform .3s var(--sale), background-color .2s; }
.sec__flecha::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -6px 0 0 -4px; border: solid #FFB36B; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sec.abierta .sec__flecha { transform: rotate(180deg); background: rgba(255, 122, 31, .28); }
.sec__cuerpo { animation: abre .32s var(--sale); border-top: 1px solid rgba(243, 233, 218, .1); }
.sec__cuerpo > :first-child { border-top: 0; }
@keyframes abre { from { opacity: 0; transform: translateY(-8px); } }
.tabs { display: flex; gap: 8px; padding: 14px 14px 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 42px; padding: 0 18px; border-radius: 10px; border: 1.5px solid rgba(243, 233, 218, .2); color: var(--crema); font-size: 15.5px; font-weight: 700; }
.tab[aria-pressed="true"] { background: var(--oro); border-color: var(--oro); color: #1B120C; }
.mitad-estado { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 16px 12px; font-size: 15px; line-height: 1.35; color: var(--crema-2); }
.mitad-estado b { color: var(--oro); }
.mitad-estado button { flex: none; font-size: 14px; font-weight: 700; color: var(--oro); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.fila { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 10px 16px 10px 14px; text-align: left; border-top: 1px solid rgba(243, 233, 218, .08); transition: background-color .15s; }
.fila:active { background: var(--hover); }
.fila.marcada { background: rgba(242, 181, 51, .13); }
.fila__tilde { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--oro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231B120C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.fila__foto { flex: none; width: 58px; height: 58px; border-radius: 13px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.fila__texto { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fila__texto b { font-size: 18px; font-weight: 600; line-height: 1.15; }
.fila__texto small { font-family: var(--f-it); font-weight: 400; font-size: 14px; line-height: 1.3; letter-spacing: .01em; color: var(--crema-2); }
.fila__precio { flex: none; text-align: right; font-size: 18px; font-weight: 700; color: var(--oro); font-variant-numeric: tabular-nums; }
.fila__precio i { display: block; font-style: normal; font-size: 12px; font-weight: 500; color: var(--crema-2); }
.promo { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 16px 18px 14px; text-align: left; border-top: 1px solid rgba(243, 233, 218, .1); }
.promo:active { background: var(--hover); }
.promo__foto { flex: none; width: 108px; height: 108px; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 40% 35%, #3A2112, #1B110A); }
.promo__texto { flex: 1; min-width: 0; display: grid; gap: 5px; }
.promo__texto b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.promo__texto small { font-family: var(--f-it); font-weight: 400; font-size: 15px; line-height: 1.35; letter-spacing: .01em; color: var(--crema-2); }
.promo__precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.promo__precio strong { font-size: 30px; font-weight: 700; letter-spacing: -.025em; color: var(--oro); font-variant-numeric: tabular-nums; }
.promo__precio s { font-size: 15px; color: var(--crema-2); }
.promo__precio em { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--tomate); color: #FFF4E6; }
.pie-datos { margin-top: 34px; display: grid; gap: 18px; }
.ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; border-radius: 16px; background: rgba(243, 233, 218, .08); border: 1px solid rgba(243, 233, 218, .16); color: var(--crema); text-decoration: none; }
.cta--wa { background: #1E8F52; border-color: #26AA64; color: #fff; box-shadow: 0 12px 24px -14px rgba(38, 170, 100, .8); }
.cta svg { flex: none; width: 28px; height: 28px; }
.cta span { display: grid; font-size: 17px; font-weight: 700; line-height: 1.1; }
.cta small { font-size: 13.5px; font-weight: 500; opacity: .85; }
.dato { display: flex; gap: 14px; align-items: flex-start; padding: 0 4px; color: var(--crema); }
.dato svg { flex: none; width: 24px; height: 24px; margin-top: 1px; color: #FF9A4A; }
.dato p { font-size: 16.5px; line-height: 1.45; }
.dato a { color: var(--crema); text-underline-offset: 3px; }

/* ---------- Las opciones de un producto (hoja que sube) ---------- */
.hoja--prod { background: linear-gradient(180deg, #2A1A10, #170E08); color: var(--crema); --foco: var(--oro); border-top: 1px solid rgba(255, 170, 90, .3); box-shadow: 0 -24px 60px -12px rgba(0, 0, 0, .8); }
.hoja--prod::before { content: ''; position: absolute; top: 8px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 2px; background: rgba(243, 233, 218, .28); }
.hoja--prod .hoja__cab { padding-top: 24px; }
.hoja--prod .hoja__titulo { font-size: 28px; }
.hoja--prod .ico:hover { background: var(--hover); }
.hoja--prod .hoja__cuerpo { padding-bottom: 28px; }
.hoja--prod .hoja__pie { border-top: 0; padding-top: 12px; background: linear-gradient(180deg, rgba(23, 14, 8, 0), #170E08 30%); }
.pr-cab { display: flex; align-items: center; gap: 14px; }
.pr-foto { flex: none; width: 78px; height: 78px; border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, .3); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .8); }
.pr-cab p { font-size: 16.5px; line-height: 1.35; color: #D9C8B0; }
.pr-mitades { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 122, 31, .12); border: 1px solid rgba(255, 140, 50, .35); font-size: 16px; line-height: 1.35; }
.pr-mitades b { color: #FFB36B; }
.pr-rotulo { margin: 22px 0 8px; font-size: 14px; font-weight: 700; color: #D9C8B0; }
.pr-nota { margin-top: 14px; font-size: 14.5px; color: #D9C8B0; }
.pr-seg { display: flex; gap: 8px; }
.pr-seg button { flex: 1; min-height: 64px; padding: 6px 8px; border-radius: 16px; border: 1.5px solid rgba(243, 233, 218, .18); background: rgba(243, 233, 218, .05); display: grid; align-content: center; justify-items: center; gap: 1px; font-size: 16.5px; font-weight: 700; transition: background-color .2s, border-color .2s; }
.pr-seg small { font-size: 14px; font-weight: 600; color: #FFB36B; }
.pr-seg button[aria-pressed="true"] { background: linear-gradient(135deg, #FFBE3D, #FF8A24); border-color: transparent; color: #1B120C; box-shadow: 0 10px 22px -12px rgba(255, 130, 30, .8); }
.pr-seg button[aria-pressed="true"] small { color: #5A3205; }
.pr-seg button[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pr-seg button[disabled] small { text-decoration: none; color: rgba(243, 233, 218, .7); }
.pr-bloque { margin-top: 28px; }
.pr-bloque__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pr-bloque__cab h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.pr-bloque__estado { flex: none; font-size: 13.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(243, 233, 218, .09); color: #D9C8B0; }
.pr-bloque__estado.ok { background: rgba(142, 226, 158, .16); color: #8EE29E; }
.op { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px 3px 4px; border-radius: 18px; background: rgba(243, 233, 218, .055); border: 1.5px solid rgba(243, 233, 218, .1); transition: background-color .2s, border-color .2s; }
.op.on { background: rgba(255, 122, 31, .14); border-color: rgba(255, 140, 50, .7); }
.op__cuerpo { flex: 1; min-width: 0; min-height: 66px; padding-left: 12px; display: flex; align-items: center; gap: 12px; text-align: left; }
.op__ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; }
.op__ico svg, .op__ico img { width: 100%; height: 100%; object-fit: contain; }
.op__nom { display: grid; gap: 2px; }
.op__nom b { font-size: 17.5px; font-weight: 600; line-height: 1.15; }
.op__nom small { font-size: 14.5px; font-weight: 700; color: #FFB36B; }
.op.on .op__nom b { color: #fff; }
.op.apagada { opacity: .4; }
.op__ctrl { flex: none; display: flex; align-items: center; gap: 4px; }
.op__ctrl button { width: 44px; height: 44px; border-radius: 50%; font-size: 24px; font-weight: 700; line-height: 1; border: 1.5px solid rgba(243, 233, 218, .28); }
.op__ctrl .op__mas { background: linear-gradient(135deg, #FFBE3D, #FF8A24); border-color: transparent; color: #1B120C; }
.op__ctrl button:disabled { opacity: .35; }
.op__ctrl b { min-width: 28px; text-align: center; font-size: 19px; font-variant-numeric: tabular-nums; }
.op__check { flex: none; width: 30px; height: 30px; margin-right: 2px; border-radius: 50%; border: 2px solid rgba(243, 233, 218, .3); }
.op.on .op__check { border-color: transparent; background: linear-gradient(135deg, #FFBE3D, #FF8A24) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231B120C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Antes de confirmar: extras y bebida */
.upsell__caja { max-height: 90dvh; grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.up-lista { overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px; }
.up-pizza + .up-pizza { margin-top: 16px; }
.up-pizza__nom { display: grid; gap: 1px; margin-bottom: 2px; font-size: 16px; }
.up-pizza__nom small { font-size: 13.5px; color: var(--tinta-2); }
.up-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; border-top: 1px solid #E7DBC8; }
.up-fila__foto { flex: none; width: 44px; height: 44px; }
.up-fila__foto img, .up-fila__foto svg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.up-fila__nom { flex: 1; }
.up-fila__nom b { font-size: 16.5px; font-weight: 600; }
.up-fila__nom small { display: block; font-size: 14px; color: var(--tinta-2); }
.up-fila.on .up-fila__nom b { color: var(--tomate-hondo); }
/* Bebida con sabores (Aquarius): el renglón se despliega y muestra los sabores */
.grupo__boton { flex: 1; min-height: 56px; display: flex; align-items: center; gap: 10px; text-align: left; }
.grupo__flecha { flex: none; width: 11px; height: 11px; margin: 0 16px 5px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; opacity: .7; transform: rotate(45deg); transition: transform .2s; }
.grupo.abierto .grupo__flecha { margin-bottom: -5px; transform: rotate(-135deg); }
.grupo__sabores { padding-left: 22px; }
.up-ctrl { flex: none; display: flex; align-items: center; gap: 2px; }
.up-ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #CDBCA4; font-size: 23px; font-weight: 700; line-height: 1; }
.up-ctrl .mas { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.up-ctrl b { min-width: 28px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.up-pie { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed #CDBCA4; font-size: 15px; font-weight: 600; }
.up-pie b { font-size: 22px; font-variant-numeric: tabular-nums; }

/* ---------- Botón principal, barra del pedido y el carrito en oscuro ---------- */
.btn-tinta {
  pointer-events: auto; height: 62px; width: min(100%, 420px); padding: 0 12px 0 24px; border-radius: 18px;
  background: linear-gradient(135deg, #FFBE3D, #FF8A24); color: #1B120C;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 18px 32px -14px rgba(255, 130, 30, .75), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .16s var(--sale), filter .2s;
}
.btn-tinta:hover { filter: brightness(1.06); }
.btn-tinta:active { transform: scale(.98); }
.btn-tinta--ancho { width: 100%; border-radius: 18px; }
.btn-tinta__total { padding: 8px 14px; border-radius: 12px; background: #1B120C; color: #FFC25A; font-size: 18px; font-variant-numeric: tabular-nums; }
.btn-tinta[aria-disabled="true"], .btn-tinta:disabled { background: #4A3A2D; color: #B4A28D; box-shadow: none; filter: none; opacity: 1; cursor: default; }
.btn-tinta[aria-disabled="true"] .btn-tinta__total { display: none; }
.btn-tinta--ancho:not(:has(.btn-tinta__total)) { justify-content: center; padding: 0 24px; }

.barra-pedido {
  position: fixed; z-index: 34; left: 50%; bottom: calc(14px + var(--abajo)); transform: translateX(-50%);
  width: min(540px, calc(100vw - 24px)); height: 66px; padding: 0 12px 0 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: linear-gradient(135deg, #FFBE3D, #FF8A24); color: #1B120C; font-size: 18px; font-weight: 700;
  box-shadow: 0 20px 38px -14px rgba(255, 120, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
  animation: barra-entra .4s var(--sale);
}
.barra-pedido[hidden] { display: none; }
.barra-pedido__n { flex: none; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: #1B120C; color: #FFC25A; font-size: 19px; }
.barra-pedido__txt { flex: 1; }
.barra-pedido b { font-size: 21px; font-variant-numeric: tabular-nums; }
.barra-pedido.salta { animation: barra-salta .55s var(--sale); }
@keyframes barra-entra { from { transform: translate(-50%, 90px); opacity: 0; } }
@keyframes barra-salta { 30% { transform: translateX(-50%) scale(1.04); } 60% { transform: translateX(-50%) scale(.985); } }
.inicio { padding-bottom: calc(110px + var(--abajo)); }

.hoja--pedido, .confirmar__caja {
  --tinta: #F3E9DA; --tinta-2: #CDBBA5; --papel: #1C120B; --mesa-2: #2C1B10; --tomate-hondo: #FF7A1F; --verde-wa: #25A55F;
  background: #1C120B; color: var(--crema);
}
.hoja--pedido { border-left: 1px solid rgba(255, 170, 90, .25); }
.hoja--pedido .ico:hover { background: var(--hover); }
.hoja--pedido .hoja__pie { background: #1C120B; border-top: 1px solid rgba(243, 233, 218, .12); }
.confirmar__caja { border: 1px solid rgba(255, 170, 90, .28); }
.hoja__total { border-top-color: rgba(243, 233, 218, .12); }
.item { grid-template-columns: 56px minmax(0, 1fr); row-gap: 8px; align-items: start; border-bottom-color: rgba(243, 233, 218, .1); }
.item__foto { grid-row: span 2; }
.item__der { grid-column: 2; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.item__nombre, .item__det { overflow-wrap: anywhere; }
.item__foto { border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.item__acciones { display: flex; align-items: center; gap: 6px; }
.paso { background: rgba(243, 233, 218, .09); }
.paso button { color: var(--crema); }
.paso button:hover { background: rgba(243, 233, 218, .12); }
.paso button:disabled { opacity: .3; cursor: default; }
.paso button:disabled:hover { background: none; }
.item__borrar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #FF9A7A; background: rgba(255, 122, 100, .12); }
.item__borrar svg { width: 20px; height: 20px; }
.item__borrar:hover { background: rgba(255, 122, 100, .24); }
.grupo legend::after { background: rgba(243, 233, 218, .14); }
.opcion span, .campo input, .campo textarea, .campo select, .mis-pedidos__uno, .confirmar__pasos { background: rgba(243, 233, 218, .06); border-color: rgba(243, 233, 218, .18); color: var(--crema); }
.campo input::placeholder, .campo textarea::placeholder { color: #8E7B66; }
.campo select option { color: #1B120C; }
.campo > span i { color: #A8967F; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(242, 181, 51, .2); }
.opcion:hover span { border-color: rgba(255, 150, 70, .6); }
.opcion input:checked + span { background: rgba(255, 122, 31, .2); border-color: #FF7A1F; color: #fff; }
.opcion input:checked + span small { color: #FFD2A6; }
.opcion input:disabled + span { opacity: .4; }
.opcion input:focus-visible + span { outline-color: var(--oro); }
.aviso-horario { background: rgba(255, 122, 31, .15); color: #FFC58A; }
.form__error, .campo__error { color: #FF9A7A; }
.transfer, .listo__ref { border-color: rgba(243, 233, 218, .3); }
.transfer__paso { border-bottom-color: rgba(243, 233, 218, .1); }
.transfer__n { background: var(--oro); color: #1B120C; }
.btn-linea { border-color: rgba(243, 233, 218, .4); color: var(--crema); }
.link-wa { color: #4FD38A; }
.up-fila { border-top-color: rgba(243, 233, 218, .1); }
.up-fila__nom small { color: #FFB36B; font-weight: 700; }
.up-fila.on .up-fila__nom b { color: #FF9A4A; }
.up-ctrl button { border-color: rgba(243, 233, 218, .3); }
.up-ctrl .mas { background: linear-gradient(135deg, #FFBE3D, #FF8A24); border-color: transparent; color: #1B120C; }
.up-pie { border-top-color: rgba(243, 233, 218, .18); }
.up-pizza__nom small { color: #CDBBA5; }

/* Mitad y mitad: el mensaje se tiene que leer */
.mitad-estado { display: grid; gap: 4px; margin: 4px 14px 14px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 150, 40, .28), rgba(255, 110, 20, .16)); border: 1.5px solid rgba(255, 150, 60, .65); box-shadow: 0 12px 26px -16px rgba(255, 110, 20, .7); color: #fff; }
.mitad-estado__t { font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.mitad-estado span { font-size: 17px; font-weight: 500; line-height: 1.35; color: #FFE3C4; }
.mitad-estado span b { color: #FFC25A; }
.mitad-estado button { justify-self: start; margin-top: 4px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .45); font-size: 15px; font-weight: 700; color: #fff; }
.nota-tab { padding: 2px 16px 12px; font-size: 15.5px; color: var(--crema-2); }

/* Empanadas: la cantidad que van, en una ventanita que flota al bajar por los sabores */
.pr-flota { position: sticky; top: 8px; z-index: 6; height: 0; display: flex; justify-content: center; pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--sale); }
.pr-flota.on { opacity: 1; transform: none; }
.pr-flota__pill { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px 0 10px; border-radius: 999px; background: rgba(27, 18, 12, .94); border: 1.5px solid #FF9A4A; box-shadow: 0 14px 28px -8px rgba(0, 0, 0, .75), 0 0 0 5px rgba(255, 122, 31, .16); backdrop-filter: blur(8px); color: #fff; font-size: 19px; animation: pulso .32s var(--sale); }
.pr-flota__pill svg { width: 30px; height: 30px; }
.pr-flota__pill.ok { border-color: #8EE29E; box-shadow: 0 14px 28px -8px rgba(0, 0, 0, .75), 0 0 0 5px rgba(142, 226, 158, .18); }
@keyframes pulso { from { transform: scale(.88); } }

.promo-tags { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.promo-tags span { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: rgba(255, 179, 107, .16); color: #FFB36B; }


/* Demora que marcó el local, debajo de cada opción de entrega */
.opcion__demora { display: block; margin-top: 2px; font-weight: 700; color: var(--oro); }
