/* Zamuru — app del cliente (celular, máx. 560 px; en la computadora se ve centrada como un teléfono). */

.app { --top-h: 60px; min-height: 100vh; min-height: 100dvh; }
.app-top {
  position: sticky; top: 0; z-index: 40; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(10, 10, 11, .86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line); max-width: var(--app-max); margin: 0 auto;
}
.app-logo img { height: 34px; width: auto; }
.app-top-acc { display: flex; align-items: center; gap: 6px; }
.app-main { max-width: var(--app-max); margin: 0 auto; padding: 8px 16px calc(40px + env(safe-area-inset-bottom)); outline: none; }
body.con-tabs .app-main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.pantalla { animation: entrar .28s var(--ease) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.p-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 0 6px; }
.p-h .sec-t { font-size: 1.75rem; }
.p-h .btn { margin-left: -12px; }
.p-h .kanji-v { font-size: .9rem; }
.p-p-checkout .p-h, .p-checkout .p-h { flex-direction: column; gap: 4px; }
.p-h-ev .ichigo { font-family: var(--f-display); font-size: .92rem; margin-top: 6px; max-width: 34ch; }
.app .menu-bar.pegajoso { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }

/* pestañas */
.app-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: var(--app-max); margin: 0 auto; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.app-tabs a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; color: var(--text-3); text-decoration: none; font-size: .68rem; font-weight: 700; letter-spacing: .03em; border-radius: 12px; }
.app-tabs a.on { color: var(--text); }
.app-tabs a.on::before { content: ''; position: absolute; top: -7px; width: 22px; height: 2px; border-radius: 2px; background: var(--red); }
.tab-punto { position: absolute; top: 4px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }

/* barra del carrito */
.barra-carrito {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 45;
  width: min(calc(100% - 24px), calc(var(--app-max) - 24px)); display: flex; align-items: center; gap: 12px; padding: 0 18px; min-height: 54px;
  border-radius: var(--r-pill); background: var(--red); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 10px 30px rgba(220, 17, 27, .35);
  animation: subir .3s var(--ease) both;
}
body:not(.con-tabs) .barra-carrito { bottom: calc(18px + env(safe-area-inset-bottom)); }
@keyframes subir { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.bc-n { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: rgba(255, 255, 255, .2); font-size: .85rem; }
.bc-t { flex: 1; }

/* bienvenida (sin sesión) */
.bienvenida { position: relative; margin: -8px -16px 0; min-height: calc(100dvh - var(--top-h) - 10px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.bv-foto { position: absolute; inset: 0; width: 100%; height: 62%; object-fit: cover; opacity: .5; z-index: -2; mask-image: linear-gradient(to bottom, #000 30%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.bv-sol { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: var(--red); right: -64px; top: 46px; z-index: -1; box-shadow: 0 20px 60px rgba(220, 17, 27, .35); }
body.sin-sesion .app-logo { visibility: hidden; }
.bv-b { display: grid; gap: 10px; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 78%, transparent); }
.bv-logo { width: 210px; height: auto; margin-bottom: 4px; }
.bv-kana { font-family: var(--f-display); color: var(--silver-2); letter-spacing: .34em; font-size: .9rem; }
.bv-t { font-family: var(--f-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.01em; }
.bv-sub { color: var(--text-2); max-width: 36ch; }
.bv-acc { display: grid; gap: 10px; margin-top: 14px; }
.bv-mirar { text-align: center; font-size: .86rem; color: var(--text-3); margin-top: 6px; }
.bv-mirar a { color: var(--text-2); }

/* inicio con sesión */
.hola { padding: 14px 0 12px; }
.hola-t { font-size: 1.85rem; margin-top: 8px; line-height: 1.15; }
/* inicio con sesión: sólo la pregunta y las dos opciones, a pantalla completa (sobre las pestañas) */
.inicio-sel { display: flex; flex-direction: column; min-height: calc(100vh - var(--top-h) - 108px); min-height: calc(100svh - var(--top-h) - 108px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.inicio-sel .eleccion { flex: 1; grid-template-rows: 1fr 1fr; }
.inicio-sel .opcion-grande { padding: 22px 20px; }
.inicio-sel .og-b b { font-size: 1.7rem; }
.eleccion { display: grid; gap: 12px; }
.opcion-grande {
  position: relative; display: flex; align-items: flex-end; gap: 12px; min-height: 168px; padding: 18px; border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none; color: #fff; border: 1px solid var(--line-2); isolation: isolate;
}
.opcion-grande img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.opcion-grande::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .88) 18%, rgba(0, 0, 0, .25)); }
.opcion-grande:hover img { transform: scale(1.04); }
.og-b { flex: 1; display: grid; gap: 4px; }
.og-k { font-family: var(--f-display); color: var(--silver); letter-spacing: .3em; font-size: .78rem; }
.og-b b { font-family: var(--f-display); font-size: 1.45rem; }
.og-b small { color: rgba(255, 255, 255, .78); font-size: .86rem; line-height: 1.4; max-width: 32ch; }
.opcion-grande > svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--red); }
/* promos sobre el menú (paso siguiente a «delivery») */
.app .promos-linea { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 2px -16px 12px; padding: 0 16px; }
.app .promos-linea::-webkit-scrollbar { display: none; }
.app .promos-linea .promo-chip { flex: none; }

/* cuenta */
.cuenta-h { display: flex; gap: 14px; align-items: center; padding: 18px 0; }
.avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; flex: none; }
.cuenta-h .sec-t { font-size: 1.4rem; }
.aviso-upg { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); margin-bottom: 14px; }
.aviso-upg p { flex: 1; font-size: .86rem; color: var(--text-2); }
.ajustes { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; background: var(--surface); }
.ajuste { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; width: 100%; }
.ajuste:last-child { border-bottom: 0; }
.ajuste > span { flex: 1; font-weight: 500; }
.ajuste > svg:first-child { color: var(--text-3); }
.ajuste > svg:last-child { color: var(--text-3); }
.ajuste.fijo .idioma { margin-left: auto; }
.pie-cuenta { margin-top: 18px; line-height: 1.6; }
.contacto-lista { display: grid; gap: 10px; }

@media (min-width: 600px) {
  body.app { background: radial-gradient(circle at 80% 10%, rgba(220, 17, 27, .12), transparent 40%), var(--bg); }
  .app-main, .app-top { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .app-main { min-height: calc(100vh - var(--top-h)); background: var(--bg); }
}
