/* CoffeeBot — estilos del kiosco.
   Paleta arena / verde salvia (elegida por Juan). Sin ruido de temas externos. */
:root {
  --arena-oscuro: #3d3529;
  --arena-medio: #6b6252;
  --arena-claro: #c8b99a;
  --crema: #e8e0d0;
  --crema-clara: #f5f1ea;
  --salvia: #6b7c5e;
  --salvia-clara: #a8b89a;
  --salvia-bg: #eaf0e5;

  --fondo: var(--crema-clara);
  --texto: var(--arena-oscuro);
  --acento: var(--salvia);
  --acento-hover: #5c6d50;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--fondo);
  color: var(--texto);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#app { height: 100vh; }

/* Pantallas: solo una visible; con transición de entrada */
.pantalla {
  display: none;
  height: 100vh;
  padding: 5vh 5vw;
  flex-direction: column;
}
.pantalla.activa {
  display: flex;
  animation: entrar 0.4s ease both;
}
@keyframes entrar {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.centro {
  margin: auto;
  text-align: center;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo / avatar del bot */
.logo {
  font-size: 16vmin;
  line-height: 1;
  margin-bottom: 2vh;
  filter: drop-shadow(0 6px 16px rgba(61, 53, 41, 0.25));
  animation: pulso 2.5s ease-in-out infinite;
}
@keyframes pulso {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

h1 { font-size: 8vmin; margin-bottom: 1vh; color: var(--arena-oscuro); }
h2 { font-size: 5.5vmin; margin-bottom: 4vh; color: var(--arena-oscuro); }
.sub { font-size: 3.5vmin; color: var(--arena-medio); margin-bottom: 6vh; }

/* Burbuja de saludo del bot (wow) */
.burbuja {
  background: var(--salvia);
  color: var(--crema-clara);
  padding: 5vh 5vw;
  border-radius: 32px;
  font-size: 4.5vmin;
  line-height: 1.35;
  margin-bottom: 6vh;
  box-shadow: 0 16px 40px rgba(61, 53, 41, 0.2);
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Botones grandes táctiles */
.btn-grande {
  background: var(--acento);
  color: var(--crema-clara);
  border: none;
  border-radius: 18px;
  padding: 3vh 6vw;
  font-size: 4vmin;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(107, 124, 94, 0.3);
}
.btn-grande:active { transform: scale(0.97); }
.btn-grande:hover { background: var(--acento-hover); }

.fila-botones { display: flex; gap: 3vw; justify-content: center; flex-wrap: wrap; }
.btn-secundario {
  background: var(--arena-claro);
  color: var(--arena-oscuro);
  box-shadow: 0 8px 24px rgba(200, 185, 154, 0.4);
}
.btn-secundario:hover { background: #bcac8a; }

/* Input + teclado en pantalla */
input {
  width: 100%;
  padding: 2.5vh 4vw;
  font-size: 5vmin;
  border: 3px solid var(--arena-claro);
  border-radius: 16px;
  background: #fff;
  color: var(--texto);
  text-align: center;
  margin-bottom: 4vh;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus { border-color: var(--salvia); box-shadow: 0 0 0 4px rgba(107, 124, 94, 0.15); }
input::placeholder { color: var(--arena-medio); opacity: 0.5; }

.teclado { display: flex; flex-direction: column; gap: 1.2vh; margin-bottom: 3vh; }
.teclado-fila { display: flex; gap: 1vw; justify-content: center; }
.tecla {
  width: 8vw;
  max-width: 72px;
  height: 8vh;
  font-size: 3vmin;
  font-weight: 600;
  color: var(--arena-oscuro);
  background: var(--crema);
  border: 2px solid var(--arena-claro);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.tecla:active { transform: translateY(2px); }
.tecla:hover { background: var(--arena-claro); }
/* Teclas especiales sí pueden tener otro ancho */
.tecla-ancha { width: 42vw; max-width: 420px; }

/* Menú */
#pantalla-menu h2, #pantalla-personalizar h2 { text-align: center; }
.grid-productos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2vh;
  overflow-y: auto;
  padding: 1vh 0;
  align-content: start;
}
.card-producto {
  background: #fff;
  border-radius: 18px;
  padding: 3vh 2vw;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(61, 53, 41, 0.08);
}
.card-producto:active { transform: scale(0.98); }
.card-producto:hover { border-color: var(--salvia); }
.card-producto .emoji { font-size: 7vmin; margin-bottom: 1vh; }
.card-producto .nombre { font-size: 3vmin; font-weight: 600; margin-bottom: 0.5vh; }
.card-producto .precio { font-size: 3.5vmin; color: var(--salvia); font-weight: 700; }
.card-producto .desc { font-size: 2.2vmin; color: var(--arena-medio); margin-top: 1vh; }

/* Barra inferior (carrito) */
.barra-inferior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 3vh;
  margin-top: 2vh;
  border-top: 2px solid var(--arena-claro);
}
#resumen-carrito { font-size: 3.5vmin; font-weight: 600; }
.btn-confirmar {
  background: var(--salvia);
  color: var(--crema-clara);
  border: none;
  border-radius: 16px;
  padding: 2.5vh 5vw;
  font-size: 3.5vmin;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(107, 124, 94, 0.3);
}
.btn-confirmar:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

/* Número de pedido (gracias) */
.num-pedido {
  font-size: 14vmin;
  font-weight: 800;
  color: var(--salvia);
  line-height: 1;
  margin: 2vh 0;
}

/* Cámara en círculo (pantalla nombre) — insinúa que el bot ya te ve */
.cam-circulo {
  width: 30vmin;
  height: 30vmin;
  max-width: 220px;
  max-height: 220px;
  margin: 0 auto 1.5vh;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--salvia);
  box-shadow: 0 10px 28px rgba(61, 53, 41, 0.22);
}
.cam-circulo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* espejo */
  filter: blur(4px) brightness(0.95);
  transition: filter 0.6s ease;
}
/* Al capturar: se quita el blur ("ya te vi") */
.cam-circulo video.revelar { filter: blur(0) brightness(1); }
#pantalla-nombre .nombre-centro { position: relative; z-index: 2; }

/* Personalizar producto */
.opciones-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 1vh 0;
}
.grupo-opcion { margin-bottom: 4vh; }
.grupo-opcion .etiqueta {
  font-size: 3.5vmin;
  font-weight: 600;
  margin-bottom: 2vh;
  color: var(--arena-oscuro);
}
.chips { display: flex; gap: 2vw; flex-wrap: wrap; }
.chip {
  background: #fff;
  border: 3px solid var(--arena-claro);
  border-radius: 14px;
  padding: 2vh 4vw;
  font-size: 3vmin;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--arena-oscuro);
}
.chip:hover { border-color: var(--salvia-clara); }
.chip.activo {
  background: var(--salvia);
  color: var(--crema-clara);
  border-color: var(--salvia);
}
.chip .extra { font-size: 2.2vmin; opacity: 0.7; }

.precio-vivo { font-size: 4.5vmin; font-weight: 800; color: var(--salvia); }

/* Lista de carrito */
.lista-carrito { flex: 1; overflow-y: auto; padding: 1vh 0; }
.item-carrito {
  background: #fff;
  border-radius: 14px;
  padding: 2.5vh 3vw;
  margin-bottom: 2vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 18px rgba(61, 53, 41, 0.08);
}
.item-carrito .info .nom { font-size: 3vmin; font-weight: 600; }
.item-carrito .info .opts { font-size: 2.3vmin; color: var(--arena-medio); margin-top: 0.5vh; }
.item-carrito .precio-item { font-size: 3.2vmin; font-weight: 700; color: var(--salvia); }
.item-carrito .quitar {
  background: #c0705e; color: #fff; border: none; border-radius: 10px;
  padding: 1.5vh 3vw; font-size: 2.5vmin; cursor: pointer; margin-left: 2vw;
}

/* ============================================================
   PULIDO — Pantalla STANDBY
   ============================================================ */
#pantalla-standby {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(168, 184, 154, 0.25), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(200, 185, 154, 0.3), transparent 45%),
    linear-gradient(160deg, var(--crema-clara) 0%, var(--crema) 60%, #ded3bf 100%);
}

.standby-centro { position: relative; z-index: 2; }

/* Granos flotando de fondo */
.deco-beans { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco-beans .bean {
  position: absolute;
  font-size: 6vmin;
  opacity: 0.12;
  animation: flotar 7s ease-in-out infinite;
}
.deco-beans .b1 { top: 12%; left: 8%;  animation-delay: 0s; }
.deco-beans .b2 { top: 22%; right: 10%; animation-delay: 1.2s; }
.deco-beans .b3 { bottom: 18%; left: 12%; animation-delay: 2.4s; }
.deco-beans .b4 { bottom: 12%; right: 14%; animation-delay: 0.6s; }
.deco-beans .b5 { top: 48%; right: 6%; animation-delay: 1.8s; }
@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
  50%      { transform: translateY(-26px) rotate(12deg); opacity: 0.22; }
}

/* Logo con vapor */
.logo-wrap { position: relative; display: inline-block; margin-bottom: 2vh; }
.logo-standby {
  font-size: 20vmin;
  margin: 0;
  filter: drop-shadow(0 10px 24px rgba(61, 53, 41, 0.28));
}
.steam {
  position: absolute;
  top: -2vh; left: 50%; transform: translateX(-50%);
  display: flex; gap: 1.4vmin; z-index: 3;
}
.steam span {
  width: 1.4vmin; height: 1.4vmin;
  background: radial-gradient(circle, rgba(107, 124, 94, 0.5), transparent 70%);
  border-radius: 50%;
  animation: vapor 3.4s ease-out infinite;
}
.steam span:nth-child(2) { animation-delay: 0.7s; }
.steam span:nth-child(3) { animation-delay: 1.4s; }
@keyframes vapor {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  30%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-9vh) scale(1.8); }
}

.marca {
  font-size: 9vmin;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--arena-oscuro), var(--salvia));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botón hero (call to action principal) */
.btn-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--salvia) 0%, var(--salvia-clara) 100%);
  color: var(--crema-clara);
  border: none;
  border-radius: 60px;
  padding: 3.2vh 8vw;
  font-size: 4.2vmin;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2vh;
  box-shadow: 0 14px 40px rgba(107, 124, 94, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  animation: latido 2.6s ease-in-out infinite;
}
.btn-hero:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(107, 124, 94, 0.5); }
.btn-hero:active { transform: translateY(-2px) scale(0.98); }
.btn-hero::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; background: rgba(255, 255, 255, 0.35);
  border-radius: 50%; transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-hero:active::after { width: 400px; height: 400px; }
@keyframes latido {
  0%, 100% { box-shadow: 0 14px 40px rgba(107, 124, 94, 0.4); }
  50%      { box-shadow: 0 14px 52px rgba(107, 124, 94, 0.6); }
}

.hint {
  margin-top: 3vh;
  font-size: 2.6vmin;
  color: var(--arena-medio);
  opacity: 0.7;
  animation: parpadeo 2.4s ease-in-out infinite;
}
@keyframes parpadeo { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* ============================================================
   PULIDO — Pantalla NOMBRE
   ============================================================ */
#pantalla-nombre {
  position: relative;
  background:
    radial-gradient(circle at 80% 15%, rgba(168, 184, 154, 0.2), transparent 45%),
    linear-gradient(160deg, var(--crema-clara) 0%, var(--crema) 100%);
}

/* Flecha back simple (solo el carácter, sin fondo) */
.flecha-back {
  position: absolute;
  top: 3vh; left: 4vw;
  font-size: 9vmin;
  line-height: 1;
  color: var(--arena-oscuro);
  cursor: pointer;
  z-index: 10;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.1s;
  user-select: none;
}
.flecha-back:hover { opacity: 1; }
.flecha-back:active { transform: scale(0.9); }

.bot-mini { font-size: 12vmin; margin-bottom: 1vh; animation: pulso 2.5s ease-in-out infinite; }
.saludo-fijo {
  font-size: 4vmin;
  line-height: 1.3;
  margin-bottom: 2vh;
  color: var(--arena-oscuro);
}

/* Compactar layout de la pantalla nombre (que no consuma todo el alto) */
#pantalla-nombre { padding: 3vh 5vw; }
#pantalla-nombre .nombre-display {
  min-height: 6vh;
  font-size: 5.5vmin;
  margin-bottom: 2vh;
  padding-bottom: 0.5vh;
}
#pantalla-nombre .cursor-parpadeo { height: 5.5vmin; }
#pantalla-nombre .teclado { gap: 0.9vh; margin-bottom: 4vh; }
#pantalla-nombre .tecla { height: 6vh; font-size: 2.6vmin; }
#pantalla-nombre #btn-continuar { padding: 2vh 6vw; font-size: 3.2vmin; }

/* Nombre en vivo con cursor parpadeante */
.nombre-display {
  min-height: 8vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7vmin;
  font-weight: 700;
  color: var(--salvia);
  margin-bottom: 3vh;
  border-bottom: 3px solid var(--arena-claro);
  padding-bottom: 1vh;
}
.cursor-parpadeo {
  display: inline-block;
  width: 3px;
  height: 7vmin;
  background: var(--salvia);
  margin-left: 4px;
  animation: cursor 1s step-end infinite;
}
@keyframes cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Teclado con relieve */
.teclado .tecla {
  background: #fff;
  box-shadow: 0 3px 0 var(--arena-claro), 0 5px 10px rgba(61, 53, 41, 0.1);
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
}
.teclado .tecla:hover { background: var(--crema); }
.teclado .tecla:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--arena-claro), 0 2px 5px rgba(61, 53, 41, 0.15);
}

/* Botón continuar deshabilitado */
#btn-continuar:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Aviso de timeout "¿Sigues ahí?" */
.aviso-timeout {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(61, 53, 41, 0.7);
  backdrop-filter: blur(6px);
}
.aviso-timeout.activo { display: flex; animation: entrar 0.3s ease both; }
.aviso-caja {
  background: var(--crema-clara);
  border-radius: 28px;
  padding: 48px 56px;
  text-align: center;
  max-width: 460px;
  width: 86vw;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.aviso-caja .icono {
  font-size: 64px;
  margin-bottom: 16px;
}
.aviso-caja h2 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--arena-oscuro);
  white-space: nowrap;
}
.aviso-caja .btn-modal {
  display: inline-block;
  background: var(--salvia);
  color: var(--crema-clara);
  border: none;
  border-radius: 16px;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(107, 124, 94, 0.3);
  transition: background 0.2s, transform 0.1s;
}
.aviso-caja .btn-modal:hover { background: var(--acento-hover); }
.aviso-caja .btn-modal:active { transform: scale(0.97); }

/* ============================================================
   PULIDO — Pantalla WOW (saludo de la IA como cita)
   ============================================================ */
#pantalla-wow {
  background:
    radial-gradient(circle at 25% 25%, rgba(168, 184, 154, 0.18), transparent 45%),
    radial-gradient(circle at 78% 78%, rgba(200, 185, 154, 0.22), transparent 45%),
    linear-gradient(160deg, var(--crema-clara) 0%, var(--crema) 100%);
}
.wow-centro { max-width: 800px; }
.cita-wow {
  position: relative;
  font-style: italic;
  font-size: 3.4vmin;
  line-height: 1.4;
  color: var(--arena-medio);
  margin: 0 auto 9vh;
  padding: 0 2vw;
  max-width: 560px;
  animation: entrar 0.5s ease both;
}
.cita-wow::before {
  content: "“";
  font-size: 8vmin;
  color: var(--arena-claro);
  position: absolute;
  top: -3vmin; left: -0.5vw;
  font-style: normal;
  line-height: 1;
}
.wow-botones { margin-top: 2vh; }
.wow-botones .btn-grande {
  padding: 2vh 4vw;
  font-size: 3vmin;
  opacity: 0;
  animation: subir 0.5s ease forwards;
}
.wow-botones .btn-grande:nth-child(1) { animation-delay: 0.5s; }
.wow-botones .btn-grande:nth-child(2) { animation-delay: 0.7s; }
@keyframes subir {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PANTALLA MENÚ (fiel al mockup: header + tabs + grid + carrito lateral)
   ============================================================ */
.pantalla-menu {
  padding: 0 !important; flex-direction: column; --cart-w: 340px; --sage-bg: #eaf0e5;
  background:
    radial-gradient(circle at 20% 15%, rgba(168, 184, 154, 0.15), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(200, 185, 154, 0.18), transparent 45%),
    linear-gradient(160deg, var(--crema-clara) 0%, var(--crema) 100%);
}

/* Header */
.m-header {
  height: 72px; background: rgba(245, 241, 234, 0.85); border-bottom: 1.5px solid var(--arena-claro);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; flex-shrink: 0; backdrop-filter: blur(6px);
}
.m-brand { display: flex; align-items: center; gap: 14px; }
.m-logo {
  width: 44px; height: 44px; background: var(--salvia); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 2px 8px rgba(107,124,94,0.25);
}
.m-name { font-size: 20px; font-weight: 700; color: var(--arena-oscuro); }
.m-sub { font-size: 12px; color: var(--arena-medio); margin-top: 1px; }
.m-right { display: flex; align-items: center; gap: 20px; }
.m-back {
  font-size: 14px; color: var(--arena-medio); cursor: pointer;
  padding: 8px 16px; border-radius: 10px; border: 1.5px solid var(--crema); background: #fff;
  transition: all 0.15s;
}
.m-back:hover { border-color: var(--arena-claro); background: var(--crema-clara); }
.m-cart-toggle {
  position: relative; width: 50px; height: 50px; background: var(--salvia);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; box-shadow: 0 2px 10px rgba(107,124,94,0.25);
  transition: transform 0.15s;
}
.m-cart-toggle:hover { transform: scale(1.05); }
.m-cart-badge {
  position: absolute; top: -5px; right: -5px; width: 24px; height: 24px;
  background: var(--arena-oscuro); color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff;
}

/* Tabs */
.m-tabs {
  height: 56px; background: rgba(245, 241, 234, 0.6); border-bottom: 1.5px solid var(--arena-claro);
  display: flex; align-items: center; gap: 10px; padding: 0 32px;
  flex-shrink: 0; overflow-x: auto;
}
.m-tab {
  padding: 10px 26px; font-size: 16px; font-weight: 600; border-radius: 100px;
  white-space: nowrap; cursor: pointer; transition: all 0.2s;
  border: 2px solid transparent; color: var(--arena-medio); background: transparent;
}
.m-tab:hover { background: var(--crema-clara); color: var(--arena-oscuro); }
.m-tab.active {
  background: var(--salvia); color: #fff; border-color: var(--salvia);
  box-shadow: 0 2px 10px rgba(107,124,94,0.25);
}

/* Main: grid + cart */
.m-main { flex: 1; display: flex; overflow: hidden; }
.m-products-scroll { flex: 1; overflow-y: auto; padding: 28px 32px 32px; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Product card */
.m-card {
  background: #fffdf9; border-radius: 16px; border: 1.5px solid var(--arena-claro);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  animation: cardIn 0.4s ease-out backwards;
}
.m-card:hover {
  transform: translateY(-4px); box-shadow: 0 6px 24px rgba(61,53,41,0.13);
  border-color: var(--salvia-clara);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.m-card-img {
  width: 100%; height: 170px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #e8ddd0, #ddd2c2);
}
.m-card-img img { width: 100%; height: 100%; object-fit: cover; }
.m-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.m-card-name { font-size: 18px; font-weight: 700; color: var(--arena-oscuro); margin-bottom: 4px; }
.m-card-desc { font-size: 13px; color: var(--arena-medio); line-height: 1.4; margin-bottom: 14px; flex: 1; }
.m-card-footer { display: flex; align-items: center; justify-content: space-between; }
.m-card-price { font-size: 22px; font-weight: 800; color: var(--salvia); }
.m-card-price span { font-size: 13px; font-weight: 500; color: var(--arena-medio); }
.m-card-add {
  width: 44px; height: 44px; border-radius: 12px; background: var(--sage-bg);
  border: 2px solid var(--salvia-clara); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--salvia); cursor: pointer; transition: all 0.15s;
}
.m-card-add:hover { background: var(--salvia); color: #fff; transform: scale(1.08); }

/* Cart sidebar */
.m-cart {
  width: var(--cart-w); background: #fffdf9; border-left: 1.5px solid var(--arena-claro);
  display: flex; flex-direction: column; flex-shrink: 0;
  animation: slideIn 0.35s cubic-bezier(0.22,1,0.36,1);
}
.m-cart.oculto { display: none; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.m-cart-header {
  padding: 22px 24px 16px; border-bottom: 1.5px solid var(--crema);
  display: flex; align-items: center; justify-content: space-between;
}
.m-cart-title { font-size: 18px; font-weight: 700; color: var(--arena-oscuro); display: flex; align-items: center; gap: 8px; }
.m-cart-count {
  background: var(--salvia); color: #fff; font-size: 12px; font-weight: 700;
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.m-cart-collapse {
  width: 36px; height: 36px; border-radius: 10px; background: var(--crema-clara);
  border: 1.5px solid var(--crema); display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--arena-medio); cursor: pointer;
}
.m-cart-items { flex: 1; overflow-y: auto; padding: 8px 0; }
.m-cart-item { padding: 16px 24px; border-bottom: 1px solid var(--crema); display: flex; gap: 14px; align-items: flex-start; }
.m-cart-item-emoji {
  width: 46px; height: 46px; border-radius: 12px; background: #ede5da;
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; overflow: hidden;
}
.m-cart-item-emoji img { width: 100%; height: 100%; object-fit: cover; }
.m-cart-item-info { flex: 1; min-width: 0; }
.m-cart-item-name { font-size: 15px; font-weight: 600; color: var(--arena-oscuro); margin-bottom: 3px; }
.m-cart-item-opts { font-size: 12px; color: var(--arena-medio); margin-bottom: 4px; }
.m-cart-item-price { font-size: 16px; font-weight: 700; color: var(--salvia); }
.m-cart-item-remove {
  width: 30px; height: 30px; border-radius: 8px; background: transparent;
  border: 1.5px solid var(--crema); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--arena-claro); cursor: pointer; flex-shrink: 0; margin-top: 4px; transition: all 0.15s;
}
.m-cart-item-remove:hover { background: #fdf0ef; border-color: #e0a8a0; color: #b85450; }
.m-cart-footer { padding: 20px 24px 24px; border-top: 1.5px solid var(--crema); background: var(--crema-clara); }
.m-cart-total-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
  padding-top: 12px; border-top: 2px dashed var(--crema);
}
.m-cart-total-label { font-size: 16px; font-weight: 600; color: var(--arena-oscuro); }
.m-cart-total-value { font-size: 28px; font-weight: 800; color: var(--salvia); }
.m-btn-confirm {
  width: 100%; padding: 18px; font-size: 18px; font-weight: 700; color: #fff;
  background: var(--salvia); border: none; border-radius: 16px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(107,124,94,0.3); transition: all 0.2s;
}
.m-btn-confirm:hover { background: var(--acento-hover); transform: translateY(-2px); }
.m-btn-confirm:disabled { opacity: 0.4; cursor: not-allowed; }

/* Barra minimizada del carrito: NO existe en tablet/kiosco (solo cel la muestra). */
.m-cart-bar { display: none; }

@media (max-width: 1200px) { .m-grid { grid-template-columns: repeat(2, 1fr); } .pantalla-menu { --cart-w: 300px; } }

/* ============================================================
   MODAL PERSONALIZAR PRODUCTO (flotante sobre el menú)
   ============================================================ */
.modal-pers {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  background: rgba(61, 53, 41, 0.55); backdrop-filter: blur(4px);
}
.modal-pers.activo { display: flex; animation: entrar 0.25s ease both; }
.modal-pers-caja {
  background: var(--crema-clara);
  border-radius: 24px;
  width: 90vw; max-width: 560px; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  animation: subir 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.modal-pers-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 16px; border-bottom: 1.5px solid var(--crema);
}
.modal-pers-header h2 { font-size: 26px; margin: 0; color: var(--arena-oscuro); }
.modal-pers-cerrar {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--crema);
  background: #fff; color: var(--arena-medio); font-size: 16px; cursor: pointer;
}
.modal-pers-cerrar:hover { background: var(--crema); }
.modal-pers-body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.modal-pers-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 28px 24px; border-top: 1.5px solid var(--crema); background: var(--crema);
}
.modal-pers-footer .precio-vivo { font-size: 30px; }
.modal-pers-add { width: auto; flex: 1; padding: 16px 24px; }

/* Grupos de opciones dentro del modal */
.modal-pers-body .grupo-opcion { margin-bottom: 24px; }
.modal-pers-body .grupo-opcion .etiqueta {
  font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--arena-oscuro);
}
.modal-pers-body .chips { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-pers-body .chip {
  background: #fff; border: 2px solid var(--crema); border-radius: 12px;
  padding: 12px 20px; font-size: 15px; cursor: pointer; color: var(--arena-oscuro);
  transition: all 0.15s;
}
.modal-pers-body .chip:hover { border-color: var(--salvia-clara); }
.modal-pers-body .chip.activo { background: var(--salvia); color: #fff; border-color: var(--salvia); }
.modal-pers-body .chip .extra { font-size: 13px; opacity: 0.75; }

/* ============================================================
   PANTALLA GUSTOS (fiel al mockup)
   ============================================================ */
.pantalla-gustos {
  padding: 0 !important; align-items: center; justify-content: center;
  background: linear-gradient(170deg, var(--crema-clara) 0%, var(--crema) 60%, #e2d9c8 100%);
}
.g-topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 56px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px; z-index: 10;
}
.g-logo { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--arena-medio); }
.g-logo-icon {
  width: 34px; height: 34px; background: var(--salvia); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.g-skip {
  font-size: 14px; color: var(--arena-medio); cursor: pointer; padding: 8px 20px;
  border-radius: 100px; border: 1.5px solid var(--arena-claro); background: rgba(255,255,255,0.6); backdrop-filter: blur(8px);
}
.g-skip:hover { background: #fff; color: var(--salvia); }
.g-container { width: 100%; max-width: 780px; padding: 0 32px; display: flex; flex-direction: column; align-items: center; }
.g-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.g-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--arena-claro); transition: all 0.3s; }
.g-dot.active { background: var(--salvia); width: 36px; border-radius: 100px; }
.g-dot.done { background: var(--salvia-clara); }
.g-prog-label { font-size: 13px; font-weight: 600; color: var(--arena-medio); margin-left: 8px; }
.g-bot { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.g-avatar {
  width: 80px; height: 80px; background: linear-gradient(145deg, var(--salvia), #5a6b4e);
  border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 38px;
  box-shadow: 0 6px 24px rgba(107,124,94,0.3); margin-bottom: 24px;
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s backwards;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.g-bubble {
  background: #fff; border-radius: 24px; padding: 28px 36px; box-shadow: 0 4px 20px rgba(61,53,41,0.08);
  border: 1.5px solid rgba(200,185,154,0.3); text-align: center; max-width: 580px; position: relative;
  animation: subir 0.5s ease-out 0.25s backwards;
}
.g-bubble::before {
  content: ''; position: absolute; top: -10px; left: 50%; width: 20px; height: 20px;
  background: #fff; border: 1.5px solid rgba(200,185,154,0.3); border-bottom: none; border-right: none;
  transform: translateX(-50%) rotate(45deg);
}
.g-question { font-size: 30px; font-weight: 700; color: var(--arena-oscuro); line-height: 1.3; }
.g-hint { font-size: 15px; color: var(--arena-medio); margin-top: 8px; }
.g-choices { display: flex; gap: 20px; width: 100%; max-width: 620px; }
.g-choice {
  flex: 1; background: #fff; border: 2.5px solid var(--crema); border-radius: 24px;
  padding: 36px 24px 32px; display: flex; flex-direction: column; align-items: center; text-align: center;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.22,1,0.36,1); box-shadow: 0 2px 12px rgba(61,53,41,0.06);
  animation: subir 0.5s ease-out backwards;
}
.g-choice:hover { border-color: var(--salvia-clara); transform: translateY(-6px); box-shadow: 0 8px 32px rgba(61,53,41,0.14); }
.g-choice:active { transform: translateY(-2px); }
.g-choice-emoji { font-size: 56px; margin-bottom: 16px; }
.g-choice-label { font-size: 24px; font-weight: 700; color: var(--arena-oscuro); }

/* ============================================================
   PANTALLA RECOMENDACIÓN (fiel al mockup)
   ============================================================ */
.pantalla-reco {
  padding: 0 !important; align-items: center; overflow-y: auto;
  background: linear-gradient(170deg, var(--crema-clara) 0%, var(--crema) 60%, #e2d9c8 100%);
}
.r-container { width: 100%; max-width: 880px; padding: 80px 32px 40px; display: flex; flex-direction: column; align-items: center; }
.r-intro { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; max-width: 680px; width: 100%; animation: subir 0.5s ease-out 0.1s backwards; }
.r-avatar {
  width: 52px; height: 52px; background: linear-gradient(145deg, var(--salvia), #5a6b4e);
  border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.r-bubble {
  background: #fff; border-radius: 4px 24px 24px 24px; padding: 20px 28px;
  box-shadow: 0 4px 20px rgba(61,53,41,0.08); border: 1.5px solid rgba(200,185,154,0.25); flex: 1;
}
.r-text { font-size: 21px; font-weight: 600; color: var(--arena-oscuro); line-height: 1.35; }
.r-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--salvia);
  background: #eaf0e5; padding: 8px 18px; border-radius: 100px; margin-bottom: 20px; text-transform: uppercase;
  animation: entrar 0.4s ease-out 0.3s backwards;
}
.r-hero {
  background: #fff; border-radius: 32px; border: 2px solid rgba(200,185,154,0.3); overflow: hidden;
  box-shadow: 0 12px 48px rgba(61,53,41,0.12); width: 100%; max-width: 680px; display: flex;
  margin-bottom: 24px; animation: subir 0.6s ease-out 0.35s backwards;
}
.r-hero-img {
  width: 260px; min-height: 260px; background: linear-gradient(145deg, #e4ddd2, #d8cfc2);
  display: flex; align-items: center; justify-content: center; font-size: 80px; flex-shrink: 0; overflow: hidden;
}
.r-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.r-hero-body { flex: 1; padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
.r-hero-name { font-size: 28px; font-weight: 800; color: var(--arena-oscuro); margin-bottom: 8px; }
.r-hero-desc { font-size: 15px; color: var(--arena-medio); line-height: 1.5; margin-bottom: 20px; }
.r-hero-price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.r-hero-price { font-size: 30px; font-weight: 800; color: var(--salvia); }
.r-hero-price span { font-size: 15px; font-weight: 500; color: var(--arena-medio); }
.r-btn-choose {
  padding: 16px 32px; font-size: 17px; font-weight: 700; color: #fff; background: var(--salvia);
  border: none; border-radius: 16px; cursor: pointer; box-shadow: 0 4px 16px rgba(107,124,94,0.3);
  transition: all 0.2s; white-space: nowrap;
}
.r-btn-choose:hover { background: var(--acento-hover); transform: translateY(-2px); }
.r-alt-label { font-size: 14px; font-weight: 600; color: var(--arena-medio); margin-bottom: 14px; text-align: center; }
.r-alt-cards { display: flex; gap: 16px; width: 100%; max-width: 680px; margin-bottom: 28px; }
.r-alt {
  flex: 1; background: #fff; border: 1.5px solid var(--crema); border-radius: 24px; overflow: hidden;
  cursor: pointer; transition: all 0.25s; box-shadow: 0 2px 12px rgba(61,53,41,0.06);
}
.r-alt:hover { border-color: var(--salvia-clara); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(61,53,41,0.14); }
.r-alt-img { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 44px; background: linear-gradient(145deg, #ede5da, #e0d6c8); overflow: hidden; }
.r-alt-img img { width: 100%; height: 100%; object-fit: cover; }
.r-alt-body { padding: 16px 18px 18px; }
.r-alt-name { font-size: 16px; font-weight: 700; color: var(--arena-oscuro); margin-bottom: 4px; }
.r-alt-desc { font-size: 12px; color: var(--arena-medio); margin-bottom: 10px; line-height: 1.4; }
.r-alt-footer { display: flex; align-items: center; justify-content: space-between; }
.r-alt-price { font-size: 20px; font-weight: 800; color: var(--salvia); }
.r-alt-price span { font-size: 12px; font-weight: 500; color: var(--arena-medio); }
.r-alt-choose {
  padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--salvia); background: #eaf0e5;
  border: 1.5px solid var(--salvia-clara); border-radius: 10px; cursor: pointer; transition: all 0.15s;
}
.r-alt-choose:hover { background: var(--salvia); color: #fff; }
.r-bottom { display: flex; align-items: center; gap: 16px; }
.r-btn-menu {
  padding: 14px 30px; font-size: 15px; font-weight: 600; color: var(--arena-medio); background: #fff;
  border: 2px solid var(--arena-claro); border-radius: 16px; cursor: pointer; transition: all 0.2s;
}
.r-btn-menu:hover { border-color: var(--salvia-clara); color: var(--salvia); }
@media (max-width: 750px) {
  .r-hero { flex-direction: column; } .r-hero-img { width: 100%; min-height: 180px; }
  .r-alt-cards { flex-direction: column; }
}

/* ============================================================
   PANTALLA GRACIAS (fiel al mockup)
   ============================================================ */
.pantalla-gracias {
  padding: 0 !important; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(170deg, var(--crema-clara) 0%, var(--crema) 55%, #e0d7c6 100%);
}
.gr-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.gr-conf { position: absolute; border-radius: 50%; opacity: 0; }
.gr-conf.c1 { top: 14%; left: 20%; width: 10px; height: 10px; background: var(--salvia-clara); animation: confFade 0.6s 1.1s forwards; }
.gr-conf.c2 { top: 20%; right: 18%; width: 8px; height: 8px; background: var(--arena-claro); animation: confFade 0.6s 1.3s forwards; }
.gr-conf.c3 { top: 10%; left: 50%; width: 9px; height: 9px; background: var(--salvia); animation: confFade 0.6s 1.2s forwards; }
.gr-conf.c4 { bottom: 22%; left: 24%; width: 8px; height: 8px; background: var(--salvia-clara); animation: confFade 0.6s 1.5s forwards; }
.gr-conf.c5 { bottom: 18%; right: 22%; width: 11px; height: 11px; background: var(--arena-claro); animation: confFade 0.6s 1.4s forwards; }
.gr-conf.c6 { top: 32%; right: 12%; width: 7px; height: 7px; background: var(--salvia); animation: confFade 0.6s 1.55s forwards; }
@keyframes confFade { 0% { opacity: 0; transform: scale(0); } 60% { opacity: 0.2; transform: scale(1.3); } 100% { opacity: 0.14; transform: scale(1); } }

.gr-container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 32px; max-width: 620px; }
.gr-icon {
  width: 110px; height: 110px; background: linear-gradient(145deg, var(--salvia), #5a6b4e);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 28px;
  position: relative;
  box-shadow: 0 8px 32px rgba(107,124,94,0.3), 0 0 0 8px rgba(107,124,94,0.08), 0 0 0 20px rgba(107,124,94,0.04);
  animation: popBounce 0.6s 0.15s cubic-bezier(0.34,1.56,0.64,1) backwards;
}
.gr-icon::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2.5px dashed var(--salvia-clara); opacity: 0.4; }
@keyframes popBounce { 0% { opacity: 0; transform: scale(0.3); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
.gr-check { width: 50px; height: 50px; }
.gr-check-path {
  fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawCheck 0.5s 0.6s ease-out forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.gr-thanks { font-size: 40px; font-weight: 800; color: var(--arena-oscuro); line-height: 1.2; margin-bottom: 6px; animation: subir 0.5s 0.4s ease-out backwards; }
.gr-name { color: var(--salvia); }
.gr-sub { font-size: 17px; color: var(--arena-medio); margin-bottom: 32px; animation: subir 0.5s 0.55s ease-out backwards; }
.gr-badge {
  background: #fff; border: 2.5px solid rgba(107,124,94,0.15); border-radius: 32px;
  padding: 28px 56px 32px; box-shadow: 0 12px 48px rgba(61,53,41,0.12); margin-bottom: 28px;
  position: relative; overflow: hidden; animation: subir 0.6s 0.65s cubic-bezier(0.22,1,0.36,1) backwards;
}
.gr-badge::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--salvia-clara), var(--salvia), var(--salvia-clara)); }
.gr-label { font-size: 14px; font-weight: 700; color: var(--arena-medio); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.gr-number { font-size: 80px; font-weight: 900; color: var(--salvia); line-height: 1; text-shadow: 0 4px 16px rgba(107,124,94,0.15); }
.gr-hint { font-size: 13px; color: var(--arena-claro); margin-top: 10px; }
.gr-pickup { font-size: 18px; color: var(--arena-claro); font-weight: 400; line-height: 1.45; margin-bottom: 12px; max-width: 440px; animation: subir 0.5s 0.9s ease-out backwards; }
.gr-total {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--arena-medio);
  background: rgba(200,185,154,0.2); padding: 8px 22px; border-radius: 100px; margin-bottom: 36px; font-weight: 500;
  animation: entrar 0.4s 1.05s ease-out backwards;
}
.gr-total strong { color: var(--arena-oscuro); font-weight: 700; }
.gr-returning { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--arena-claro); font-weight: 500; animation: entrar 0.4s 1.4s ease-out backwards; }
.gr-dot { width: 6px; height: 6px; background: var(--arena-claro); border-radius: 50%; opacity: 0.4; }
.gr-dot:nth-child(1) { animation: dotPulse 1.4s 1.8s ease-in-out infinite; }
.gr-dot:nth-child(2) { animation: dotPulse 1.4s 2.0s ease-in-out infinite; }
.gr-dot:nth-child(3) { animation: dotPulse 1.4s 2.2s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }

/* ===================== PANTALLA DE PAGO (circular + resumen) ===================== */
.pantalla-pago {
  position: relative;
  background:
    radial-gradient(ellipse 35vw 40vh at 18% 22%, rgba(168, 184, 154, 0.10), transparent 100%),
    radial-gradient(ellipse 30vw 35vh at 82% 72%, rgba(200, 185, 154, 0.10), transparent 100%),
    linear-gradient(170deg, var(--crema-clara) 0%, var(--crema) 55%, #dfd6c5 100%);
}
/* El centrado flex SOLO cuando está activa: si no, .pantalla-pago ganaría al
   display:none de .pantalla (misma especificidad, va después) y no se ocultaría. */
.pantalla-pago.activa {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav superior */
.pago-back {
  position: absolute; top: 3vh; left: 3vw;
  font-size: 2.4vmin; color: var(--arena-medio);
  padding: 1.2vmin 2.4vmin; border-radius: 10vmin;
  border: 1.5px solid var(--arena-claro);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer; z-index: 10; transition: all 0.2s;
}
.pago-back:hover { background: #fff; border-color: var(--salvia-clara); }
.pago-brand {
  position: absolute; top: 3vh; left: 0; right: 0;
  text-align: center; font-size: 2.2vmin; font-weight: 700;
  color: var(--arena-medio);
  display: flex; align-items: center; justify-content: center; gap: 1vmin; z-index: 5;
}
.pago-brand-icon {
  width: 4.4vmin; height: 4.4vmin; background: var(--salvia);
  border-radius: 1vmin; display: flex; align-items: center; justify-content: center;
  font-size: 2.4vmin; box-shadow: 0 2px 8px rgba(107, 124, 94, 0.2);
}

/* Tarjeta principal (split) */
.pago-card {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 3vmin;
  box-shadow: 0 10px 48px rgba(61, 53, 41, 0.12), 0 0 0 1.5px rgba(200, 185, 154, 0.15);
  display: flex; overflow: hidden;
  width: 88vw; max-width: 1000px;
  min-height: 58vh; max-height: 82vh;
  animation: pago-card-in 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes pago-card-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* Izquierda: QR + anillo */
.pago-qr-side {
  flex: 1.1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.4vmin; padding: 4vmin;
  background: linear-gradient(160deg, var(--crema-clara) 0%, rgba(234, 240, 229, 0.25) 100%);
  border-right: 1.5px solid var(--crema);
}
.pago-scan-title { font-size: 3.4vmin; font-weight: 800; color: var(--arena-oscuro); }
.pago-scan-sub { font-size: 2vmin; color: var(--arena-medio); margin-top: -1.4vmin; }

.pago-ring-wrap {
  position: relative;
  width: 38vmin; height: 38vmin;
  display: flex; align-items: center; justify-content: center;
}
.pago-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pago-ring-svg circle { transform-origin: center; }
.pr-glow {
  fill: none; stroke: var(--salvia-clara); stroke-width: 7;
  stroke-dasharray: 8 28 5 22; stroke-linecap: round; opacity: 0.12;
  animation: pago-cw 28s linear infinite; filter: blur(2px);
}
.pr-accent {
  fill: none; stroke: var(--salvia); stroke-width: 4.5;
  stroke-dasharray: 28 48 14 42 18 56; stroke-linecap: round; opacity: 0.28;
  animation: pago-ccw 22s linear infinite;
}
.pr-outer {
  fill: none; stroke: var(--salvia); stroke-width: 2.5;
  stroke-dasharray: 16 11 7 13 20 9; stroke-linecap: round; opacity: 0.45;
  animation: pago-cw 18s linear infinite;
}
.pr-mid {
  fill: none; stroke: var(--salvia-clara); stroke-width: 3.5;
  stroke-dasharray: 10 18 5 14 8 22; stroke-linecap: round; opacity: 0.55;
  animation: pago-ccw 14s linear infinite;
}
.pr-inner {
  fill: none; stroke: var(--arena-claro); stroke-width: 2.5;
  stroke-dasharray: 3 16; stroke-linecap: round; opacity: 0.45;
  animation: pago-cw 9s linear infinite;
}
.pr-pulse {
  fill: none; stroke: var(--salvia); stroke-width: 1.5;
  opacity: 0; animation: pago-pulse 2.8s 0.5s ease-out infinite;
}
@keyframes pago-cw { to { transform: rotate(360deg); } }
@keyframes pago-ccw { to { transform: rotate(-360deg); } }
@keyframes pago-pulse {
  0% { r: 55; opacity: 0.35; stroke-width: 2; }
  100% { r: 100; opacity: 0; stroke-width: 0.5; }
}

/* QR central (un poco más grande que el mockup para escaneo cómodo) */
.pago-qr-center {
  width: 21vmin; height: 21vmin;
  background: #fff; border-radius: 2vmin;
  box-shadow: 0 4px 20px rgba(61, 53, 41, 0.10);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; padding: 1.2vmin;
}
.pago-qr-img { width: 100%; height: 100%; border-radius: 1vmin; }

.pago-waiting {
  display: flex; align-items: center; gap: 1.2vmin;
  font-size: 2.2vmin; color: var(--salvia); font-weight: 600;
}
.pago-sp {
  width: 2.4vmin; height: 2.4vmin;
  border: 2px solid var(--salvia-bg, #eaf0e5); border-top-color: var(--salvia);
  border-radius: 50%; animation: pago-spin 1s linear infinite;
}
@keyframes pago-spin { to { transform: rotate(360deg); } }
.pago-methods { font-size: 1.9vmin; color: var(--arena-claro); font-weight: 500; }

/* Derecha: resumen del pedido */
.pago-summary-side {
  flex: 0.9; display: flex; flex-direction: column;
  padding: 4vmin; min-height: 0;
}
.pago-summary-head {
  font-size: 2.8vmin; font-weight: 700; color: var(--arena-oscuro);
  margin-bottom: 3vmin; display: flex; align-items: center; gap: 1.2vmin;
}
.pago-summary-icon {
  width: 4.4vmin; height: 4.4vmin; background: var(--salvia-bg, #eaf0e5);
  border-radius: 1vmin; display: flex; align-items: center; justify-content: center;
  font-size: 2.4vmin;
}
.pago-items { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.pago-item {
  display: flex; align-items: center; gap: 1.6vmin;
  padding: 1.8vmin 0; border-bottom: 1px solid var(--crema);
}
.pago-item:last-child { border-bottom: none; }
.pago-item-emoji {
  width: 5.4vmin; height: 5.4vmin; border-radius: 1.4vmin;
  background: #ede5da;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8vmin; flex-shrink: 0;
}
.pago-item-info { flex: 1; min-width: 0; }
.pago-item-name { font-size: 2.3vmin; font-weight: 700; color: var(--arena-oscuro); }
.pago-item-opts { font-size: 1.7vmin; color: var(--arena-medio); margin-top: 0.3vmin; }
.pago-item-price { font-size: 2.4vmin; font-weight: 800; color: var(--salvia); white-space: nowrap; }
.pago-divider {
  height: 2px; margin: 2vmin 0;
  background: linear-gradient(90deg, transparent, var(--crema), transparent);
}
.pago-total-row { display: flex; justify-content: space-between; align-items: center; }
.pago-total-label { font-size: 2.4vmin; font-weight: 600; color: var(--arena-oscuro); }
.pago-total-val { font-size: 5vmin; font-weight: 900; color: var(--salvia); letter-spacing: -0.02em; }
.pago-total-cur { font-size: 2vmin; font-weight: 500; color: var(--arena-medio); margin-left: 0.4vmin; }

/* Portrait (kiosco vertical): apila QR arriba, resumen abajo */
@media (max-aspect-ratio: 3/4) {
  .pago-card { flex-direction: column; min-height: auto; max-height: 82vh; }
  .pago-qr-side { border-right: none; border-bottom: 1.5px solid var(--crema); }
}

/* ===================== STANDBY — opción QR (Vía B: ordena desde tu celular) ===================== */
.qr-option {
  margin-top: 4vh;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(200, 185, 154, 0.35);
  border-radius: 2.2vmin;
  padding: 2.4vmin 3.2vmin;
  display: flex;
  align-items: center;
  gap: 2.6vmin;
  width: clamp(420px, 74vmin, 680px);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  animation: subir 0.5s 0.95s ease-out backwards;
}
.qr-option:hover {
  border-color: var(--salvia-clara);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 18px rgba(61, 53, 41, 0.06);
}
.qr-placeholder {
  width: clamp(72px, 11vmin, 110px);
  height: clamp(72px, 11vmin, 110px);
  background: #fff;
  border-radius: 1.4vmin;
  border: 1.5px solid var(--crema);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.8vmin;
}
.qr-placeholder-img { width: 100%; height: 100%; object-fit: contain; border-radius: 0.6vmin; }
.qr-text { text-align: left; flex: 1; min-width: 0; }
.qr-label {
  font-size: clamp(15px, 2.1vmin, 20px);
  font-weight: 600;
  color: var(--arena-oscuro);
  line-height: 1.3;
}
.qr-sub {
  font-size: clamp(12px, 1.6vmin, 15px);
  color: var(--arena-medio);
  margin-top: 0.5vmin;
  line-height: 1.35;
}
.qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6vmin;
  font-size: clamp(10px, 1.3vmin, 12px);
  font-weight: 700;
  color: var(--salvia);
  background: var(--salvia-bg);
  padding: 0.5vmin 1.4vmin;
  border-radius: 10vmin;
  margin-top: 1vmin;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.qr-badge-icon {
  /* El símbolo contactless suele ir inclinado en diagonal (~45°). */
  transform: rotate(-45deg);
  flex-shrink: 0;
}
/* Celular inline, pegado a la pregunta (mismo tamaño del texto del label). */
.qr-phone {
  font-size: 1em;
  white-space: nowrap;
}


/* ============================================================
   RESPONSIVE MÓVIL (celular ≤480px) — Vía B: ordena desde tu cel.
   Solo aplica a pantallas chicas; NO afecta tablet/kiosco.
   Se construye pantalla por pantalla.
   ============================================================ */
@media (max-width: 480px) {

  /* ---------- WOW ---------- */
  .cita-wow {
    font-size: 18px;
    line-height: 1.5;
    margin: 0 auto 6vh;
    padding: 0 24px;
  }
  .cita-wow::before { font-size: 40px; top: -18px; left: 6px; }

  /* Botones apilados a ancho completo (no caben lado a lado en cel). */
  .wow-botones { flex-direction: column; width: 100%; gap: 14px; padding: 0 24px; }
  .wow-botones .btn-grande {
    width: 100%;
    padding: 16px 20px;
    font-size: 17px;
  }

  /* ---------- GUSTOS ---------- */
  .g-topbar { padding: 0 16px; }
  .g-skip { padding: 7px 14px; font-size: 13px; }
  .g-container { padding: 0 20px; }
  .g-bot { margin-bottom: 28px; }
  .g-avatar { width: 64px; height: 64px; font-size: 30px; margin-bottom: 18px; }
  .g-bubble { padding: 20px 22px; max-width: 100%; }
  .g-question { font-size: 22px; }
  .g-hint { font-size: 14px; }
  /* Choices en columna (no caben en fila en cel). */
  .g-choices { flex-direction: column; gap: 14px; max-width: 100%; }
  .g-choice { flex-direction: row; gap: 18px; padding: 18px 22px; text-align: left; align-items: center; }
  .g-choice-emoji { font-size: 38px; margin-bottom: 0; }
  .g-choice-label { font-size: 19px; }

  /* ---------- RECOMENDACIÓN ---------- */
  .r-container { padding: 70px 18px 32px; }
  .r-intro { gap: 12px; margin-bottom: 22px; }
  .r-avatar { width: 44px; height: 44px; font-size: 22px; }
  .r-bubble { padding: 16px 20px; }
  .r-text { font-size: 17px; }
  .r-hero-body { padding: 22px 22px; }
  .r-hero-name { font-size: 24px; }
  /* Precio y botón apilados: el botón se desbordaba en fila. */
  .r-hero-price-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .r-btn-choose { width: 100%; padding: 15px 20px; }
  .r-bottom { width: 100%; }
  .r-btn-menu { width: 100%; }

  /* ---------- GRACIAS ---------- */
  .gr-container { padding: 0 24px; }
  .gr-icon { width: 88px; height: 88px; margin-bottom: 22px; }
  .gr-check { width: 40px; height: 40px; }
  .gr-thanks { font-size: 30px; }
  .gr-sub { font-size: 15px; margin-bottom: 26px; }
  .gr-badge { padding: 22px 36px 26px; }
  .gr-number { font-size: 60px; }
  .gr-pickup { font-size: 16px; }

  /* ---------- PAGO ---------- */
  /* La pantalla permite scroll y la tarjeta se apila en vertical. */
  .pantalla-pago.activa { align-items: flex-start; overflow-y: auto; padding: 64px 0 24px; }
  .pago-back { top: 16px; left: 12px; font-size: 13px; padding: 8px 14px; border-radius: 100px; }
  .pago-brand { top: 18px; font-size: 14px; gap: 6px; }
  .pago-brand-icon { width: 26px; height: 26px; border-radius: 7px; font-size: 14px; }

  .pago-card {
    flex-direction: column;
    width: 92vw;
    min-height: auto;
    max-height: 86vh;    /* la caja no pasa del alto de pantalla */
    margin: 0 auto;
  }
  /* El lado del resumen puede encoger y su lista scrollea dentro. */
  .pago-summary-side { min-height: 0; }
  .pago-qr-side {
    border-right: none; border-bottom: 1.5px solid var(--crema);
    gap: 12px; padding: 26px 20px;
  }
  .pago-scan-title { font-size: 20px; }
  .pago-scan-sub { font-size: 13px; margin-top: 0; }
  .pago-ring-wrap { width: 200px; height: 200px; }
  .pago-qr-center { width: 110px; height: 110px; border-radius: 12px; padding: 7px; }
  .pago-waiting { font-size: 14px; gap: 7px; }
  .pago-sp { width: 14px; height: 14px; }
  .pago-methods { font-size: 12px; }

  .pago-summary-side { padding: 22px 20px; }
  /* La lista scrollea DENTRO de la caja (no se desborda). */
  .pago-items { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
  .pago-summary-head { font-size: 17px; margin-bottom: 16px; gap: 8px; }
  .pago-summary-icon { width: 28px; height: 28px; border-radius: 7px; font-size: 15px; }
  .pago-item { gap: 10px; padding: 12px 0; }
  .pago-item-emoji { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; }
  .pago-item-name { font-size: 15px; }
  .pago-item-opts { font-size: 12px; }
  .pago-item-price { font-size: 16px; }
  .pago-total-label { font-size: 16px; }
  .pago-total-val { font-size: 30px; }
  .pago-total-cur { font-size: 13px; }

  /* ---------- MENÚ ---------- */
  /* Header y tabs con menos padding para no desbordar. */
  .m-header { height: auto; padding: 12px 14px; gap: 10px; }
  .m-brand { gap: 10px; min-width: 0; }
  .m-logo { width: 38px; height: 38px; font-size: 19px; flex-shrink: 0; }
  .m-name { font-size: 16px; }
  .m-sub { display: none; }               /* se oculta el subtítulo largo en cel */
  .m-right { gap: 12px; }
  .m-back { padding: 7px 12px; font-size: 13px; }
  .m-cart-toggle { width: 44px; height: 44px; }
  .m-tabs { height: 50px; padding: 0 14px; gap: 8px; }
  .m-tab { padding: 8px 18px; font-size: 14px; }

  /* Productos a ancho completo (el carrito ya no roba espacio: va abajo). */
  .m-products-scroll { padding: 18px 14px 24px; }
  .m-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .m-card-img { height: 120px; font-size: 44px; }
  .m-card-body { padding: 12px 14px 14px; }
  .m-card-name { font-size: 15px; }
  .m-card-desc { font-size: 12px; margin-bottom: 10px; }
  .m-card-price { font-size: 18px; }
  .m-card-add { width: 38px; height: 38px; font-size: 20px; }

  /* Carrito = panel deslizable desde ABAJO (bottom sheet). */
  .m-main { display: block; overflow: visible; }
  .m-cart {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; max-height: 70vh;
    border-left: none; border-top: 1.5px solid var(--arena-claro);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 40px rgba(61,53,41,0.22);
    z-index: 50;
    animation: cartSheetIn 0.3s cubic-bezier(0.22,1,0.36,1);
  }
  .m-cart.oculto { display: none; }
  @keyframes cartSheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
  /* El botón colapsar (▸) apunta hacia abajo = minimizar. */
  .m-cart-collapse { transform: rotate(90deg); }
  /* La lista scrollea dentro del panel; header y footer fijos. */
  .m-cart-items { max-height: 42vh; }

  /* Barra minimizada del carrito (aparece al agregar; toca para expandir). */
  .m-cart-bar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; left: 12px; right: 12px; bottom: 12px;
    background: var(--salvia); color: #fff;
    padding: 14px 18px; border-radius: 16px;
    box-shadow: 0 8px 28px rgba(107,124,94,0.4);
    z-index: 55; cursor: pointer;
    animation: cartBarIn 0.3s cubic-bezier(0.22,1,0.36,1);
  }
  .m-cart-bar.oculto { display: none; }
  @keyframes cartBarIn { from { transform: translateY(120%); } to { transform: translateY(0); } }
  .m-cart-bar-left { display: flex; align-items: center; gap: 8px; font-size: 15px; }
  .m-cart-bar-icon { font-size: 20px; }
  .m-cart-bar-count {
    background: rgba(255,255,255,0.25); min-width: 24px; height: 24px; padding: 0 6px;
    border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
  }
  .m-cart-bar-label { opacity: 0.9; }
  .m-cart-bar-right { display: flex; align-items: center; gap: 12px; }
  .m-cart-bar-total { font-size: 18px; font-weight: 800; }
  .m-cart-bar-cta { font-size: 13px; font-weight: 600; opacity: 0.95; white-space: nowrap; }

}
