/* ============================================================
   AYLLU MIKUNA · Menú digital — ayllumikuna.online
   Paleta: carbón #15100C · brasa #211710 · fuego #C8502E
           cobre #B98A5E · crema #F0E3C4 · ceniza #9D8E7A
   Tipos:  Rye (display) · Oswald (ítems/precios) · Manrope (cuerpo)
   ============================================================ */

:root {
  --carbon: #15100C;
  --brasa: #211710;
  --humo: #2C2017;
  --fuego: #C8502E;
  --fuego-osc: #A33E22;
  --cobre: #B98A5E;
  --crema: #F0E3C4;
  --ceniza: #9D8E7A;
  --blanco: #FFF8EC;
  --verde-wa: #1FAF54;
  --radio: 14px;
  --sombra: 0 8px 28px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--carbon);
  color: var(--crema);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 90px; /* espacio para la barra de pedido */
}

img { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--cobre);
  outline-offset: 2px;
}

/* ============ Cabecera fija ============ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: linear-gradient(rgba(21, 16, 12, .92), rgba(21, 16, 12, 0));
  pointer-events: none;
  transition: background .3s;
}
.topbar.solida {
  background: rgba(21, 16, 12, .96);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}
.topbar { transition: background .3s, transform .3s; }
.topbar.oculta { transform: translateY(-110%); }
.topbar__logo { height: 34px; width: auto; pointer-events: auto; }
.topbar__wa {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--verde-wa);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 90px 24px 60px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21,16,12,.55) 0%, rgba(21,16,12,.78) 55%, var(--carbon) 100%),
    url('../img/hero.webp') center 30% / cover no-repeat;
  filter: saturate(.9);
}
.hero__content { position: relative; z-index: 2; }
.hero__logo { margin: 0 auto 14px; width: 190px; height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); }
.hero__lema {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cobre);
}
.hero__lema .amp { color: var(--fuego); }
.hero__titulo {
  font-family: 'Rye', serif;
  font-size: clamp(56px, 17vw, 96px);
  font-weight: 400;
  line-height: 1;
  margin: 10px 0 14px;
  color: var(--crema);
  text-shadow: 0 4px 0 rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.5);
}
.hero__sub { color: var(--ceniza); font-size: 14px; max-width: 300px; margin: 0 auto; }

/* Humo ambiental */
.hero__smoke { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__smoke i {
  position: absolute;
  bottom: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 227, 196, .07) 0%, transparent 70%);
  filter: blur(14px);
  animation: humo 11s linear infinite;
}
.hero__smoke i:nth-child(1) { left: 8%; animation-delay: 0s; }
.hero__smoke i:nth-child(2) { left: 45%; animation-delay: 3.5s; width: 300px; height: 300px; }
.hero__smoke i:nth-child(3) { left: 72%; animation-delay: 7s; }
@keyframes humo {
  0%   { transform: translateY(0) scale(.7); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(-90vh) scale(1.5); opacity: 0; }
}

/* Borde de llamas (firma del isotipo) */
.llamas-borde {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 22px;
  z-index: 3;
}

/* ============ Promos ============ */
.promos { padding: 18px 0 6px; }
.promos__pista {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 16px;
  scrollbar-width: none;
}
.promos__pista::-webkit-scrollbar { display: none; }
.promo {
  position: relative;
  flex: 0 0 88%;
  max-width: 420px;
  scroll-snap-align: center;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--brasa);
  min-height: 132px;
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(185, 138, 94, .25);
}
.promo__img {
  flex: 0 0 38%;
  background-size: cover;
  background-position: center;
}
.promo__txt { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.promo__badge {
  align-self: flex-start;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--carbon);
  background: var(--cobre);
  padding: 2px 9px;
  border-radius: 99px;
}
.promo__titulo { font-family: 'Oswald', sans-serif; font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--crema); }
.promo__desc { font-size: 13px; color: var(--ceniza); }
.promos__puntos { display: flex; justify-content: center; gap: 7px; padding: 12px 0 4px; }
.promos__puntos button {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--humo);
  transition: background .25s, transform .25s;
}
.promos__puntos button.activo { background: var(--fuego); transform: scale(1.3); }

/* ============ Chips de categorías ============ */
.chips {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(21, 16, 12, .96);
  backdrop-filter: blur(8px);
  scrollbar-width: none;
  border-bottom: 1px solid rgba(185, 138, 94, .18);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 99px;
  background: var(--brasa);
  color: var(--ceniza);
  border: 1px solid rgba(185, 138, 94, .2);
  transition: all .2s;
}
.chip.activo {
  background: var(--fuego);
  color: var(--blanco);
  border-color: var(--fuego);
}

/* ============ Secciones del menú ============ */
.menu { padding: 8px 16px 40px; max-width: 560px; margin: 0 auto; }
.menu__cargando { text-align: center; color: var(--ceniza); padding: 60px 0; font-family: 'Oswald', sans-serif; letter-spacing: .1em; text-transform: uppercase; }

.seccion { padding-top: 26px; scroll-margin-top: 70px; }
.seccion__cabecera { margin-bottom: 6px; }
.seccion__titulo {
  font-family: 'Rye', serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--crema);
  line-height: 1.15;
}
.seccion__kichwa {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fuego);
  margin-top: 2px;
}
.seccion__nota { font-size: 12.5px; color: var(--ceniza); margin-top: 6px; }

/* Divisor de llamas entre cabecera e ítems */
.seccion__llamas { width: 110px; height: 12px; margin: 10px 0 14px; opacity: .85; }

.grupo__nombre {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cobre);
  margin: 18px 0 10px;
}

/* ============ Tarjetas de producto ============ */
.carta {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--brasa);
  border: 1px solid rgba(185, 138, 94, .14);
  border-radius: var(--radio);
  padding: 12px;
  margin-bottom: 10px;
}
.carta__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.carta__tag {
  align-self: flex-start;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fuego);
  border: 1px solid rgba(200, 80, 46, .5);
  padding: 1px 7px;
  border-radius: 99px;
  margin-bottom: 2px;
}
.carta__nombre {
  font-family: 'Oswald', sans-serif;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--crema);
  text-transform: uppercase;
}
.carta__detalle { font-size: 12.5px; color: var(--cobre); }
.carta__desc { font-size: 12.5px; color: var(--ceniza); }
.carta__pie { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.carta__precio {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--crema);
}
.carta__mas {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--fuego);
  color: var(--blanco);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  transition: transform .15s, background .15s;
}
.carta__mas:active { transform: scale(.9); background: var(--fuego-osc); }
.carta__foto {
  flex: 0 0 96px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--crema);
}
.carta__foto img { width: 100%; height: 100%; object-fit: cover; min-height: 96px; }

/* ============ Barra flotante del pedido ============ */
.barra-pedido {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--fuego);
  color: var(--blanco);
  border-radius: 99px;
  padding: 13px 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(200, 80, 46, .4);
  animation: subir .3s ease;
}
@keyframes subir { from { transform: translateY(80px); opacity: 0; } }
.barra-pedido__cant {
  background: rgba(0, 0, 0, .25);
  border-radius: 8px;
  min-width: 28px;
  padding: 2px 7px;
  text-align: center;
  font-weight: 600;
}
.barra-pedido__texto { flex: 1; text-align: left; font-weight: 500; }
.barra-pedido__total { font-weight: 600; font-size: 17px; }

/* ============ Hojas (bottom sheets) ============ */
.velo {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: flex-end;
  animation: aparecer .2s ease;
}
@keyframes aparecer { from { opacity: 0; } }
.hoja {
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--brasa);
  border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  animation: deslizar .25s ease;
}
@keyframes deslizar { from { transform: translateY(40%); } }
.hoja__asa { width: 42px; height: 4px; border-radius: 99px; background: var(--humo); margin: 6px auto 14px; }
.hoja__titulo { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.hoja__sub { font-size: 13px; color: var(--ceniza); margin-top: 2px; }
.hoja__opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0 20px; }
.opcion {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 12px 8px;
  border-radius: 11px;
  background: var(--humo);
  color: var(--crema);
  border: 1.5px solid transparent;
  transition: all .15s;
}
.opcion.activo { border-color: var(--fuego); background: rgba(200, 80, 46, .18); color: var(--blanco); }
.hoja__acciones { display: flex; gap: 10px; }
.hoja__acciones--col { flex-direction: column; }

/* Botones */
.btn {
  flex: 1;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn--fuego { background: var(--fuego); color: var(--blanco); }
.btn--wa { background: var(--verde-wa); color: #fff; }
.btn--cobre { background: var(--cobre); color: var(--carbon); }
.btn--fantasma { background: var(--humo); color: var(--crema); }
.btn--vaciar { background: none; color: var(--ceniza); font-size: 13px; padding: 8px; }

/* ============ Pedido ============ */
.pedido__lista { margin: 16px 0 4px; }
.linea {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(157, 142, 122, .25);
}
.linea__info { flex: 1; min-width: 0; }
.linea__nombre { font-family: 'Oswald', sans-serif; font-size: 14.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.linea__opcion { font-size: 12px; color: var(--cobre); }
.linea__precio { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; min-width: 56px; text-align: right; }
.linea__cant { display: flex; align-items: center; gap: 8px; }
.linea__cant button {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--humo);
  color: var(--crema);
  font-size: 17px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.linea__cant span { font-family: 'Oswald', sans-serif; font-weight: 600; min-width: 18px; text-align: center; }
.pedido__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pedido__total strong { font-size: 24px; color: var(--fuego); }
.pedido__envio { display: flex; flex-direction: column; gap: 13px; margin-bottom: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ceniza); font-weight: 700; }
.campo input {
  background: var(--humo);
  border: 1.5px solid transparent;
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--crema);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
}
.campo input:focus { border-color: var(--cobre); outline: none; }
.radios { display: flex; gap: 8px; }
.radio {
  flex: 1;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 10px 4px;
  border-radius: 10px;
  background: var(--humo);
  color: var(--ceniza);
  border: 1.5px solid transparent;
}
.radio.activo { border-color: var(--fuego); color: var(--blanco); background: rgba(200, 80, 46, .18); }

/* ============ Ticket cajero ============ */
.ticket-velo {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--carbon);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
}
.ticket { width: 100%; max-width: 360px; }
.ticket__borde { display: block; width: 100%; height: 12px; }
.ticket__cuerpo {
  background: var(--crema);
  color: #2A1E14;
  padding: 22px 22px 18px;
  text-align: center;
}
.ticket__iso { margin: 0 auto 6px; }
.ticket__marca {
  font-family: 'Rye', serif;
  font-size: 21px;
  color: #2A1E14;
}
.ticket__codigo {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--fuego-osc);
  margin: 4px 0 14px;
}
.ticket__lista { text-align: left; border-top: 2px dashed #C9B690; padding-top: 12px; }
.ticket__linea { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 17px; font-weight: 700; }
.ticket__linea small { display: block; font-size: 13px; font-weight: 500; color: #7A6648; }
.ticket__linea .precio { font-family: 'Oswald', sans-serif; white-space: nowrap; }
.ticket__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px dashed #C9B690;
  margin-top: 12px;
  padding-top: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: .08em;
}
.ticket__total strong { font-size: 30px; color: var(--fuego-osc); }
.ticket__nota { font-size: 12px; color: #7A6648; margin-top: 10px; letter-spacing: .04em; }
.ticket__cerrar { width: 100%; margin-top: 22px; }

/* ============ Pie ============ */
.pie {
  text-align: center;
  padding: 36px 20px 30px;
  border-top: 1px solid rgba(185, 138, 94, .15);
}
.pie__iso { margin: 0 auto 10px; opacity: .9; }
.pie__nombre { font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.pie__dato { font-size: 13px; color: var(--ceniza); margin-top: 4px; }
.pie__dato a { color: var(--cobre); text-decoration: none; }
.pie__legal { font-size: 11px; color: #5E5346; margin-top: 14px; }

/* ============ Accesibilidad / movimiento ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__smoke i, .barra-pedido, .velo, .hoja { animation: none; }
}

/* ============ Pantallas medianas y grandes ============ */
@media (min-width: 600px) {
  .hero { min-height: 64vh; }
  .promos__pista { justify-content: center; }
  .promo { flex-basis: 400px; }
  .menu { max-width: 620px; }
}
