/* =========================================================
   Miko Mochi — menú digital (solo lectura)
   Mismos colores que la tienda: lavanda, amarillo y tinta
   ========================================================= */

:root {
  --lav-50: #F7F3FF;
  --lav-100: #EFE8FF;
  --lav-200: #DED1FC;
  --lav-300: #C9B6F8;
  --lav-400: #BFA9F6;
  --lav-500: #9F84EA;
  --lav-700: #5F45B0;

  --ink: #241E2E;
  --muted: #6F6680;
  --yellow: #FFD66E;
  --cream: #FFFBF4;

  --radius: 22px;

  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cdefs%3E%3Cg id='w'%3E%3Ccircle r='40' fill='%23BFA9F6'/%3E%3Ccircle r='32' fill='none' stroke='%23CBB9F9' stroke-width='3'/%3E%3Ccircle r='23' fill='none' stroke='%23CBB9F9' stroke-width='3'/%3E%3Ccircle r='14' fill='none' stroke='%23CBB9F9' stroke-width='3'/%3E%3Ccircle r='5' fill='%23CBB9F9'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23w' x='0' y='20'/%3E%3Cuse href='%23w' x='80' y='20'/%3E%3Cuse href='%23w' x='40' y='40'/%3E%3Cuse href='%23w' x='0' y='60'/%3E%3Cuse href='%23w' x='80' y='60'/%3E%3C/svg%3E");
}

/* ---------- Solo lectura: nada se puede seleccionar, arrastrar ni tocar ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
html, body { cursor: default; }
img, svg { pointer-events: none; -webkit-user-drag: none; }
::selection { background: transparent; }

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.01em;
}

mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 .22em;
  border-radius: .3em;
}

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1200px, 100% - 48px); } }

/* ---------- Encabezado ---------- */
.menu-top {
  background-color: var(--lav-400);
  background-image: var(--seigaiha);
  background-size: 80px 40px;
  padding: 28px 0 64px;
  border-radius: 0 0 36px 36px;
}

.top-inner {
  display: flex; align-items: center; gap: 18px;
}

.top-logo {
  width: 92px; height: 92px; flex: none; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .6), 0 18px 34px -14px rgba(60, 30, 130, .6);
}

.top-kicker {
  display: inline-block; margin: 0 0 8px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem;
  color: var(--ink); background: rgba(255, 255, 255, .7);
  padding: 5px 12px; border-radius: 999px;
}

.top-copy h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 700; }
.top-lead { margin: 8px 0 0; font-weight: 700; color: var(--ink); opacity: .78; }

@media (min-width: 768px) {
  .menu-top { padding: 40px 0 84px; }
  .top-inner { gap: 28px; }
  .top-logo { width: 140px; height: 140px; }
}

/* ---------- Datos del pedido ---------- */
.info {
  list-style: none; margin: -40px 0 0; padding: 14px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 14px 34px -18px rgba(63, 40, 120, .45);
  position: relative;
}
.info li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 6px 4px; min-width: 0;
}
.info li + li { border-left: 2px dashed var(--lav-200); }
.info b {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.1; color: var(--lav-700);
}
.info span { font-size: .78rem; font-weight: 800; color: var(--muted); line-height: 1.25; }
.info b span { font: inherit; color: inherit; }

@media (min-width: 768px) {
  .info { margin-top: -52px; padding: 18px 24px; }
  .info span { font-size: .9rem; }
}

/* ---------- Menú ---------- */
.menu { padding: 8px 0 40px; }

.cat-block { margin-top: 34px; }

.cat-title {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(1.6rem, 4.6vw, 2.2rem); font-weight: 700; margin-bottom: 16px;
}
.cat-title::after {
  content: ""; flex: 1; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--lav-300) 0 10px, transparent 10px 18px);
}
.cat-title small {
  font-family: 'Nunito', sans-serif; font-size: .8rem; font-weight: 800;
  color: var(--lav-700); background: var(--lav-100);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 620px) { .grid { gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .wrap { width: min(1440px, 100% - 64px); } }

/* Tarjeta de sabor (sin botones) */
.item {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 20px -12px rgba(63, 40, 120, .35);
}

.item-art {
  aspect-ratio: 6 / 5; display: grid; place-items: center; padding: 8px;
  background-color: var(--tint, var(--lav-100));
  background-image: radial-gradient(circle at 50% 115%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 60%);
}
.item-art svg { width: 86%; height: auto; }

.item-body { padding: 12px 14px 14px; }
.item-kicker {
  margin: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 800; color: var(--lav-700);
}
.item-name { font-size: 1.12rem; font-weight: 600; margin: 2px 0 0; }

.soldout-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 10px;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.item.is-soldout .item-art { filter: grayscale(.85); opacity: .55; }
.item.is-soldout .item-kicker, .item.is-soldout .item-name { opacity: .55; }

/* Mensajes */
.loading, .empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; color: var(--muted); font-weight: 700;
  padding: 48px 16px; margin: 0;
}
.empty strong { font-family: 'Fredoka', sans-serif; font-size: 1.3rem; color: var(--ink); }
.spin {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--lav-200); border-top-color: var(--lav-500);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pie ---------- */
.menu-foot {
  background: var(--ink); color: #fff;
  border-radius: 36px 36px 0 0; padding: 32px 0 28px; margin-top: 20px;
}
.foot-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.foot-inner img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); margin-bottom: 6px; }
.foot-title { margin: 0; font-weight: 800; opacity: .8; }
.foot-phone {
  margin: 0; font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2rem); color: var(--yellow); letter-spacing: .02em;
}
.foot-inner small { opacity: .55; font-weight: 700; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .spin { animation-duration: 2s; }
}
