/* =====================================================================
   App de clientes del delivery — estilo app de pedidos rápidos
   Verde de Vala arriba, contenido blanco, fotos grandes, "+" verde.
   ===================================================================== */
body.cliente {
  --verde: #2563EB; --verde-osc: #1D4ED8; --verde-claro: #EAF1FF;
  --v: #1747C9; --v2: #1E56E0; --mas: #2563EB; --mas-osc: #1D4ED8;
  --fondo: #FFFFFF; --gris-cl: #F2F4F3; --borde: #E6EAE8;
  background: var(--fondo); padding: 0 0 calc(110px + env(safe-area-inset-bottom));
  font-size: 16px;
}
body.cliente #app { max-width: 720px; margin: 0 auto; }
.cargando { color: var(--gris); padding: 60px 0; text-align: center; }
.vacio-cliente { color: var(--gris); padding: 24px 20px; line-height: 1.5; text-align: center; }
.vacio-cliente.grande { padding: 80px 20px; display: grid; gap: 16px; justify-items: center; }
.vacio-cliente.grande b { color: var(--tinta); font-size: 19px; }

/* ---------- Cabecera verde ---------- */
.hero { background: var(--v); color: #fff; padding: calc(12px + env(safe-area-inset-top)) 16px 0; }
.hero-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; min-height: 52px; }
.hero-top h1 { text-align: center; font-size: 26px; font-stretch: 72%; font-weight: 850; letter-spacing: -.01em; line-height: 1.05;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.circulo { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--tinta); border: 0; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.circulo .ico { width: 22px; height: 22px; }
.pastilla {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px auto 0; width: fit-content; max-width: 100%;
  padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 15px; font-weight: 560; text-align: center;
}
.pastilla b { font-size: 21px; font-weight: 850; font-stretch: 78%; font-style: italic; letter-spacing: -.01em; }
.pastilla .ico { width: 20px; height: 20px; color: var(--etiqueta); flex: none; }
.pastilla.cerrado { background: rgba(0, 0, 0, .2); }
.buscar-hero { position: relative; margin: 14px 0 6px; }
.buscar-hero .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: #fff; opacity: .9; pointer-events: none; }
.buscar-hero input {
  width: 100%; border: 0; border-radius: 999px; padding: 14px 18px 14px 50px; font: inherit; font-size: 16.5px;
  background: rgba(255, 255, 255, .2); color: #fff; outline: none;
}
.buscar-hero input::placeholder { color: rgba(255, 255, 255, .82); }
.buscar-hero input:focus { background: rgba(255, 255, 255, .28); box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
.tabs-cat { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 0; padding: 0 8px; }
.tabs-cat::-webkit-scrollbar { display: none; }
.tab-cat {
  flex: none; display: grid; justify-items: center; gap: 4px; padding: 10px 12px 12px; min-width: 78px;
  border: 0; background: none; color: rgba(255, 255, 255, .75); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border-bottom: 3px solid transparent;
}
.tab-cat .ico { width: 28px; height: 28px; }
.tab-cat.activo { color: #fff; border-bottom-color: #fff; }

/* ---------- Contenido ---------- */
.contenido { padding: 6px 0 10px; }
.aviso-cerrado { margin: 14px 16px 0; padding: 14px 16px; border-radius: 14px; background: #FFF6D1; border: 1px solid #F1DB7A; line-height: 1.45; font-size: 15px; }
.banner-ia {
  margin: 16px 16px 4px; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; cursor: pointer; width: calc(100% - 32px);
  background: linear-gradient(120deg, #0F2E86, #1747C9); color: #fff; border: 0; font: inherit; text-align: left;
}
.banner-ia .ico { width: 34px; height: 34px; color: var(--etiqueta); flex: none; }
.banner-ia b { display: block; font-size: 18px; }
.banner-ia span { color: #C9D8FF; font-size: 14.5px; }
.banner-ia .ir { margin-left: auto; background: var(--etiqueta); color: var(--tinta); border-radius: 999px; padding: 8px 14px; font-weight: 750; white-space: nowrap; font-size: 14.5px; }

.fila { margin-top: 22px; }
.fila-cab { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; margin-bottom: 10px; }
.fila-cab h2 { font-size: 23px; font-weight: 750; letter-spacing: -.01em; }
.ver-todo { width: 40px; height: 40px; border-radius: 50%; background: var(--gris-cl); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--tinta); }
.ver-todo .ico { width: 20px; height: 20px; }
.carril { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.carril::-webkit-scrollbar { display: none; }
.carril .card { width: 152px; flex: none; scroll-snap-align: start; }
.grilla-cl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; padding: 8px 16px; }
@media (min-width: 560px) { .grilla-cl { grid-template-columns: repeat(3, 1fr); } }
.titulo-seccion { padding: 18px 16px 0; font-size: 23px; font-weight: 750; }

/* ---------- Tarjeta de producto ---------- */
.card { position: relative; min-width: 0; }
.card .foto {
  position: relative; aspect-ratio: 1; border-radius: 16px; background: #fff; border: 1px solid var(--borde);
  display: grid; place-items: center; overflow: hidden;
}
.card .foto img { width: 86%; height: 86%; object-fit: contain; }
.arte { width: 100%; height: 100%; display: grid; place-items: center; }
.arte .ico { width: 46%; height: 46%; stroke-width: 1.3; }
.card .badge18 { position: absolute; left: 8px; bottom: 8px; margin: 0; }
.card .top { position: absolute; left: 8px; top: 8px; background: var(--etiqueta); color: var(--tinta); font-size: 12px; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
.btn-mas {
  position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff;
  background: var(--mas); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.btn-mas .ico { width: 22px; height: 22px; stroke-width: 2.6; }
.stepper {
  position: absolute; right: 6px; top: 6px; display: flex; align-items: center; background: #fff; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15); height: 40px;
}
.stepper button { width: 38px; height: 40px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--mas-osc); }
.stepper button .ico { width: 20px; height: 20px; stroke-width: 2.6; }
.stepper button:disabled { opacity: .35; }
.stepper span { min-width: 18px; text-align: center; font-weight: 800; }
.card .precio { display: block; margin-top: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card .nombre { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; line-height: 1.25; margin-top: 3px; }
.card .medida { display: block; color: var(--gris); font-size: 13.5px; margin-top: 4px; line-height: 1.35; }
.card.bloqueado { opacity: .45; }
.card.bloqueado .btn-mas { display: none; }

/* ---------- Barra de la canasta ---------- */
#barra-carrito { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0)); }
.btn-canasta {
  max-width: 688px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 999px;
  background: var(--mas); color: #fff; text-decoration: none; font-weight: 750; font-size: 17px; box-shadow: 0 8px 24px rgba(37, 99, 235, .35);
}
.btn-canasta .cant { background: #fff; color: var(--mas-osc); border-radius: 999px; min-width: 28px; height: 28px; display: grid; place-items: center; font-weight: 850; font-size: 15px; }
.btn-canasta b { margin-left: auto; font-size: 18px; }

/* ---------- Pantallas blancas (canasta, terminar) ---------- */
.cab-blanca { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: calc(14px + env(safe-area-inset-top)) 16px 10px; }
.cab-blanca h1 { font-size: 24px; font-weight: 750; text-align: center; }
.cab-blanca .circulo { background: var(--gris-cl); }
.cab-blanca small { display: block; color: var(--gris); font-weight: 500; font-size: 14px; }
.linea-canasta { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--borde); }
.linea-canasta .mini { width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--borde); display: grid; place-items: center; overflow: hidden; background: #fff; }
.linea-canasta .mini img { width: 88%; height: 88%; object-fit: contain; }
.linea-canasta .mini .ico { width: 30px; height: 30px; }
.linea-canasta .txt { min-width: 0; }
.linea-canasta .txt span { display: block; font-size: 16px; line-height: 1.3; }
.linea-canasta .txt b { display: block; margin-top: 4px; font-size: 17px; }
.stepper.plano { position: static; box-shadow: none; border: 1.5px solid var(--borde); }
.vaciar { display: block; margin: 18px auto 6px; border: 0; background: none; color: var(--rojo); font: inherit; font-weight: 650; font-size: 16px; cursor: pointer; }
.separador { height: 10px; background: var(--gris-cl); margin: 14px 0 0; }
.barra-fija { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); }
.barra-fija .progreso { padding: 10px 16px; font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.barra-fija .progreso.ok { background: #EAF1FF; color: var(--mas-osc); }
.barra-fija .progreso.falta { background: #FFF6D1; color: #6B5200; }
.barra-fija .progreso .ico { width: 20px; height: 20px; flex: none; }
.barra-fija .fondo-barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 720px; margin: 0 auto;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
.barra-fija .total small { display: block; color: var(--gris); font-size: 14.5px; }
.barra-fija .total b { font-size: 26px; font-weight: 850; letter-spacing: -.01em; }
.btn-verde {
  border: 0; border-radius: 999px; background: var(--mas); color: #fff; font: inherit; font-weight: 750; font-size: 18px;
  padding: 16px 30px; cursor: pointer; min-width: 170px;
}
.btn-verde:disabled { background: #A9BFF0; cursor: default; }

/* ---------- Terminar el pedido ---------- */
.paso { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px; border-bottom: 1px solid var(--borde); align-items: start; }
.paso > .ico { width: 26px; height: 26px; margin-top: 2px; }
.paso h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 6px; }
.paso .campo { width: 100%; border: 0; border-bottom: 1.5px solid var(--borde); padding: 9px 0; font: inherit; font-size: 16.5px; outline: none; background: none; }
.paso .campo:focus { border-bottom-color: var(--mas); }
.paso .campo + .campo { margin-top: 4px; }
.paso .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.paso small { color: var(--gris); }
.link-verde { border: 0; background: none; color: var(--mas-osc); font: inherit; font-weight: 650; padding: 8px 0 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.link-verde .ico { width: 18px; height: 18px; }
.entrega-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--tinta); border-radius: 16px; margin-top: 4px; }
.entrega-card .ico { width: 22px; height: 22px; color: #E5484D; }
.entrega-card b { display: block; }
.entrega-card small { color: var(--gris); }
.medios { display: grid; gap: 10px; }
.medio { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--borde); border-radius: 14px; cursor: pointer; margin: 0; font-weight: 600; }
.medio:has(input:checked) { border-color: var(--mas); background: #EEF4FF; }
.medio input { width: 20px; height: 20px; accent-color: var(--mas); }
.medio small { display: block; font-weight: 450; }
.mayor18 { display: flex; gap: 12px; align-items: flex-start; margin: 16px; padding: 14px; border-radius: 14px; background: #FFF6D1; font-weight: 560; line-height: 1.4; cursor: pointer; }
.mayor18 input { width: 22px; height: 22px; accent-color: var(--mas); flex: none; margin-top: 1px; }
.resumen { padding: 16px; display: grid; gap: 8px; }
.resumen div { display: flex; justify-content: space-between; color: var(--gris); }
.resumen .t { color: var(--tinta); font-weight: 800; font-size: 19px; padding-top: 8px; border-top: 1px solid var(--borde); }
.privacidad { color: var(--gris); font-size: 13.5px; padding: 0 16px 20px; line-height: 1.45; }

/* ---------- Hojas (¿Algo más?, asistente) ---------- */
.hoja-fondo { position: fixed; inset: 0; z-index: 60; background: rgba(10, 20, 16, .55); display: flex; align-items: flex-end; justify-content: center; animation: aparecer .15s; }
.hoja {
  width: 100%; max-width: 720px; max-height: 88dvh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0;
  padding: 10px 0 calc(16px + env(safe-area-inset-bottom)); animation: subir .22s ease-out;
}
.hoja .manija { width: 46px; height: 5px; border-radius: 3px; background: #D5DBD8; margin: 0 auto 14px; }
.hoja h2 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; padding: 0 20px; line-height: 1.1; }
.hoja p.sub { color: var(--gris); padding: 6px 20px 0; font-size: 16.5px; }
.hoja .acciones-hoja { padding: 16px 20px 0; display: grid; gap: 10px; }
.btn-gris { border: 0; border-radius: 999px; background: var(--gris-cl); color: var(--tinta); font: inherit; font-weight: 700; font-size: 17px; padding: 16px; cursor: pointer; }
@keyframes subir { from { transform: translateY(40px); opacity: .6; } }
@keyframes aparecer { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hoja, .hoja-fondo { animation: none; } }

.chat-ia { padding: 14px 20px 0; }
.chat-ia textarea { width: 100%; min-height: 84px; border: 1.5px solid var(--borde); border-radius: 16px; padding: 14px; font: inherit; font-size: 16.5px; resize: none; outline: none; }
.chat-ia textarea:focus { border-color: var(--mas); }
.ejemplos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ejemplos button { border: 1.5px solid var(--borde); background: #fff; border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 14.5px; cursor: pointer; }
.respuesta-ia { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: #EEF4FF; line-height: 1.45; }
.items-ia { display: grid; gap: 0; margin-top: 10px; }
.items-ia .linea-canasta { padding: 10px 0; }
.pensando { display: flex; gap: 10px; align-items: center; color: var(--gris); margin-top: 14px; }
.pensando i { width: 8px; height: 8px; border-radius: 50%; background: var(--mas); animation: latido-ia 1s infinite alternate; }
.pensando i:nth-child(2) { animation-delay: .2s; } .pensando i:nth-child(3) { animation-delay: .4s; }
@keyframes latido-ia { to { opacity: .2; transform: scale(.7); } }

/* ---------- Inicio (negocios) ---------- */
.hero-inicio { background: var(--v); color: #fff; padding: calc(18px + env(safe-area-inset-top)) 16px 20px; }
.marca-cl { font-size: 34px; font-weight: 900; font-stretch: 70%; font-style: italic; letter-spacing: -.02em; line-height: 1; }
.ubic { display: flex; align-items: center; gap: 8px; margin-top: 12px; border: 0; background: none; color: #fff; font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-align: left; }
.ubic .ico { width: 20px; height: 20px; color: var(--etiqueta); }
.ubic small { color: #C9D8FF; font-weight: 450; display: block; font-size: 13px; }
.negocios-cl { display: grid; gap: 16px; padding: 18px 16px; }
.neg-card { display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--borde); text-decoration: none; color: var(--tinta); background: #fff; }
.neg-portada { height: 112px; display: flex; align-items: flex-end; padding: 14px 16px; position: relative; color: #fff; }
.neg-portada .inicial { font-size: 62px; font-weight: 900; font-stretch: 65%; line-height: .8; opacity: .95; }
.neg-portada .estado { position: absolute; right: 12px; top: 12px; background: #fff; color: var(--mas-osc); font-size: 13px; font-weight: 750; padding: 4px 10px; border-radius: 999px; }
.neg-card.cerrado .neg-portada { filter: grayscale(.85); }
.neg-card.cerrado .estado { color: var(--gris); }
.neg-info { padding: 12px 16px 14px; }
.neg-info b { font-size: 19px; }
.neg-info small { display: flex; align-items: center; gap: 6px; color: var(--gris); font-size: 14.5px; margin-top: 4px; }
.neg-info small .ico { width: 16px; height: 16px; color: var(--mas); }
.mis-pedidos { padding: 16px 16px 0; }
.mis-pedidos a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #EEF4FF; color: var(--mas-osc); text-decoration: none; font-weight: 650; margin-bottom: 8px; }
.pie-cliente { text-align: center; color: var(--gris); font-size: 13px; padding: 24px 0 10px; }

/* ---------- Seguimiento del pedido ---------- */
.seguimiento { padding: calc(16px + env(safe-area-inset-top)) 16px 0; }
.seg-estado { background: var(--v); color: #fff; border-radius: 22px; padding: 22px 20px; margin-bottom: 14px; }
.seg-estado.mal { background: var(--tinta); }
.seg-estado small { color: #D3E0FF; font-weight: 560; }
.seg-estado h1 { font-size: 34px; font-stretch: 70%; font-weight: 850; line-height: 1.02; margin: 6px 0 8px; }
.seg-estado p { color: #E6EDFF; line-height: 1.45; }
.pasos-seg { list-style: none; display: grid; margin: 18px 0 0; }
.pasos-seg li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: #9DB6F2; padding-bottom: 12px; position: relative; }
.pasos-seg li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #9DB6F2; margin: 4px 0 0 3px; }
.pasos-seg li:not(:last-child)::after { content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: #3D6CE6; }
.pasos-seg li.hecho { color: #fff; }
.pasos-seg li.hecho::before { background: var(--etiqueta); border-color: var(--etiqueta); }
.pasos-seg li.actual { color: #fff; font-weight: 700; }
.pasos-seg li.actual::before { border-color: var(--etiqueta); box-shadow: 0 0 0 4px rgba(255, 212, 59, .3); }
.pasos-seg small { display: block; color: #C9D8FF; font-weight: 450; }
.acciones-seg { display: grid; gap: 8px; margin-bottom: 14px; }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.tarjeta h2 { font-size: 19px; margin-bottom: 4px; }
.linea-pedido { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; padding: 7px 0; align-items: baseline; }
.linea-pedido .lp-cant { color: var(--gris); font-weight: 650; }
.linea-pedido.sub { color: var(--gris); border-top: 1px solid var(--linea-suave); }
.linea-pedido.total { border-top: 1px solid var(--linea); padding-top: 12px; margin-top: 4px; align-items: center; font-weight: 800; font-size: 18px; }
.aviso-cliente { background: #FFF6D1; border: 1px solid #F1DB7A; border-radius: 14px; padding: 12px 14px; font-size: 15px; margin-bottom: 14px; }
.alias { font-size: 20px; font-weight: 800; letter-spacing: .02em; background: var(--gris-cl); border-radius: 12px; padding: 10px 12px; margin: 8px 0; word-break: break-all; }
body.cliente #toasts { bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ---------- Escena del seguimiento ---------- */
.escena { display: block; width: 100%; height: auto; margin: 14px 0 4px; border-radius: 18px; }
.escena .moto { transition: transform 1s linear; }
.escena .velocidad { opacity: 0; }
.escena.moviendo .velocidad { opacity: 1; animation: viento .5s linear infinite; }
.escena.moviendo .saltito { animation: saltito .35s ease-in-out infinite alternate; }
.escena.moviendo .rueda > * { transform-box: fill-box; transform-origin: center; animation: girar .45s linear infinite; }
.escena.moviendo .rayas { animation: calle .6s linear infinite; }
.escena .nubes { animation: nubes 18s linear infinite alternate; }
.escena .punto-g { animation: latido-ia .9s infinite alternate; }
.escena .punto-g.d2 { animation-delay: .2s; } .escena .punto-g.d3 { animation-delay: .4s; }
.escena .giro { transform-box: fill-box; transform-origin: center; animation: girar 1.2s linear infinite; }
.escena .globo { animation: aparecer .3s; }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes saltito { to { transform: translateY(-1.6px); } }
@keyframes calle { to { stroke-dashoffset: 26; } }
@keyframes viento { from { transform: translateX(4px); opacity: 1; } to { transform: translateX(-6px); opacity: .2; } }
@keyframes nubes { to { transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) {
  .escena *, .escena .moto { animation: none !important; transition: none !important; }
}

/* ---------- Mercado Pago ---------- */
.logo-mp { display: inline-grid; place-items: center; width: 30px; height: 20px; border-radius: 10px; background: #00B1EA; color: #fff;
  font: 800 11px/1 var(--fuente, inherit); font-style: normal; letter-spacing: -.02em; margin-right: 8px; vertical-align: -3px; flex: none; }
.medio-mp { display: block; }
.btn-verde.full { width: 100%; display: flex; align-items: center; justify-content: center; }
.btn-verde .logo-mp { background: #fff; color: #00B1EA; }
.pagar-mp { border: 2px solid var(--mas); }
.pagar-mp h2 { margin-bottom: 4px; }
.pagar-mp p { margin: 0 0 14px; }
.pagar-mp .nota { margin: 10px 0 0; }
.aviso-cliente.ok { background: #EEF4FF; border-color: #BFD3FF; }
.pie-cliente a { color: var(--mas); font-weight: 650; text-decoration: none; }

/* ---------- Ficha del producto ---------- */
.card { cursor: pointer; }
.card:focus-visible { outline: 2.5px solid var(--mas); outline-offset: 3px; border-radius: 14px; }
.prod-fondo { position: fixed; inset: 0; z-index: 70; background: rgba(10, 20, 16, .55); display: flex; align-items: flex-end; justify-content: center; animation: aparecer .15s; }
.prod { position: relative; width: 100%; max-width: 720px; height: calc(100dvh - 18px - env(safe-area-inset-top)); background: #fff;
  border-radius: 26px 26px 0 0; overflow: hidden; animation: subir .22s ease-out; }
.prod-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.prod-x { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--gris-cl); }
.prod-x .ico { width: 22px; height: 22px; }
.prod-foto { position: relative; height: min(46dvh, 400px); display: grid; place-items: center; padding: 64px 24px 12px; overflow: hidden; }
.prod-foto img { position: absolute; top: 64px; left: 24px; width: calc(100% - 48px); height: calc(100% - 76px); object-fit: contain; }
.prod-foto .arte { width: 180px; height: 180px; border-radius: 32px; display: grid; place-items: center; }
.prod-foto .arte .ico { width: 84px; height: 84px; }
.prod-foto .badge18 { position: absolute; right: 20px; bottom: 16px; }
.prod-info { padding: 8px 20px 22px; }
.prod-precio { display: block; font-size: 26px; font-weight: 850; letter-spacing: -.01em; }
.prod-info h2 { font-size: 26px; font-weight: 650; line-height: 1.18; margin-top: 8px; }
.prod-info .medida { display: block; color: var(--gris); font-size: 15px; margin-top: 8px; }
.prod-aviso { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #FFF6D1; color: #6B5200; font-weight: 560; }
.prod-barra { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; align-items: center; background: #fff;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); }
.prod-cant { display: flex; align-items: center; border: 1.5px solid var(--borde); border-radius: 999px; padding: 4px; }
.prod-cant button { width: 46px; height: 46px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--tinta); }
.prod-cant button:disabled { opacity: .3; cursor: default; }
.prod-cant .ico { width: 22px; height: 22px; }
.prod-cant span { min-width: 30px; text-align: center; font-weight: 750; font-size: 18px; }
.prod-agregar { flex: 1; min-width: 0; padding: 16px 12px; }
@media (prefers-reduced-motion: reduce) { .prod, .prod-fondo { animation: none; } }

/* =====================================================================
   Rediseño: momentos, promos, barra flotante y movimiento
   ===================================================================== */
.hero { border-radius: 0 0 28px 28px; padding-bottom: 2px; }
.contenido { padding-top: 10px; }

/* Tarjetas grandes por categoría, con las fotos reales del negocio */
.momentos { gap: 12px; padding-top: 12px; }
.momento {
  position: relative; flex: none; width: 168px; height: 196px; border: 0; border-radius: 22px; padding: 14px 14px 0; overflow: hidden;
  scroll-snap-align: start; text-align: left; font: inherit; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--m) 55%, #fff) 0%, var(--m) 62%);
  transition: transform .18s ease;
}
.momento b { display: block; font-size: 19px; font-weight: 820; line-height: 1.1; letter-spacing: -.01em; position: relative; z-index: 1; }
.momento small { display: block; margin-top: 3px; font-size: 13px; opacity: .85; position: relative; z-index: 1; }
.momento-fotos { position: absolute; left: 0; right: 0; bottom: -6px; height: 122px; }
.momento-fotos img {
  position: absolute; bottom: 0; width: 84px; height: 108px; object-fit: contain; border-radius: 12px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25));
  left: calc(8px + var(--i) * 46px); transform: rotate(calc((var(--i) - 1) * 8deg)) translateY(calc(var(--i) * 4px - 4px));
  transition: transform .25s ease;
}
.momento-fotos img:nth-child(2) { z-index: 1; }
.momento-ico { position: absolute; right: 12px; bottom: 18px; width: 86px; height: 86px; border-radius: 26px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.momento-ico .ico { width: 52px; height: 52px; color: #fff; }
@media (hover: hover) { .momento:hover img { transform: rotate(calc((var(--i) - 1) * 11deg)) translateY(calc(var(--i) * 4px - 10px)); } }

/* Promos */
.promos { margin-top: 16px; gap: 10px; }
.promo {
  flex: none; width: 272px; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; scroll-snap-align: start;
  background: var(--verde-claro); color: var(--tinta); border: 0; font: inherit; text-align: left;
}
.promo > .ico { width: 34px; height: 34px; flex: none; color: var(--mas); padding: 6px; border-radius: 50%; background: #fff; }
.promo { align-self: stretch; }
.promo b { display: block; font-size: 16.5px; font-weight: 760; color: #1D3A8A; }
.promo small { display: block; color: #3D4F6E; font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.promo-ia { background: linear-gradient(120deg, #0F2E86, #1747C9); color: #fff; cursor: pointer; position: relative; overflow: hidden; }
.promo-ia > .ico { color: var(--etiqueta); background: rgba(255, 255, 255, .12); }
.promo-ia b { color: #fff; } .promo-ia small { color: #C9D8FF; }
.promo-ia::after { /* brillo que pasa cada tanto */
  content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-100%); animation: brillo 5s ease-in-out 1.2s infinite;
}
@keyframes brillo { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Barra flotante de abajo */
#nav-cliente {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 35;
  display: flex; gap: 10px; align-items: center; width: min(calc(100% - 24px), 520px);
}
.nav-pastilla {
  flex: 1; display: flex; justify-content: space-around; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(15, 30, 60, .16), 0 0 0 1px rgba(15, 30, 60, .06);
}
.nav-pastilla button {
  flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 0; border-radius: 999px; background: none;
  font: inherit; font-size: 12.5px; font-weight: 650; color: var(--tinta); cursor: pointer; transition: background .2s, color .2s;
}
.nav-pastilla button .ico { width: 24px; height: 24px; transition: transform .2s; }
.nav-pastilla button.activo { background: #EAF1FF; color: var(--mas-osc); }
.nav-pastilla button.activo .ico { transform: scale(1.08); }
.nav-pastilla button[data-nav="__fav"].activo .ico { fill: currentColor; }
.nav-buscar {
  width: 62px; height: 62px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--tinta);
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 30, 60, .16), 0 0 0 1px rgba(15, 30, 60, .06);
}
.nav-buscar .ico { width: 26px; height: 26px; stroke-width: 2.4; }
body.con-nav { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
body.con-nav #barra-carrito { bottom: calc(78px + env(safe-area-inset-bottom)); background: none; padding-top: 0; }

/* Categorías (hoja) */
.grilla-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; padding: 18px 16px 6px; }
.grilla-cats button { display: grid; justify-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--tinta); cursor: pointer; text-align: center; }
.cat-burbuja { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; transition: transform .18s; }
.cat-burbuja img { width: 72%; height: 72%; object-fit: contain; }
.cat-burbuja .ico { width: 38px; height: 38px; }
.vacio-ico { width: 48px; height: 48px; color: var(--mas); }

/* Ficha: favorito */
.prod-fav { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--gris-cl); color: var(--tinta); }
.prod-fav .ico { width: 22px; height: 22px; }
.prod-fav.activo { color: #E5484D; }
.prod-fav.activo .ico { fill: currentColor; }
.prod-fav.latido .ico { animation: latido .35s ease; }
@keyframes latido { 40% { transform: scale(1.35); } }

/* Movimiento: tocar se siente */
.card, .momento, .promo-ia, .neg-card, .grilla-cats button { -webkit-tap-highlight-color: transparent; }
.card { transition: transform .15s ease; }
.card:active, .momento:active, .promo-ia:active, .neg-card:active { transform: scale(.96); }
.grilla-cats button:active .cat-burbuja { transform: scale(.92); }
.btn-mas { transition: transform .15s ease, box-shadow .15s; }
.btn-mas:active { transform: scale(.86); }
@media (hover: hover) { .btn-mas:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(37, 99, 235, .35); } }
.stepper.pop { animation: pop .28s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.7); } }
.btn-canasta { transition: transform .15s; }
.btn-canasta:active { transform: scale(.97); }
.btn-canasta .cant.salto { animation: salto .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes salto { 40% { transform: scale(1.35); } }
#barra-carrito:not([hidden]) .btn-canasta { animation: subir .25s ease-out; }
.btn-verde { transition: transform .15s, background .2s; }
.btn-verde:not(:disabled):active { transform: scale(.97); }
.tab-cat { transition: color .2s, border-color .2s; }
.tab-cat .ico { transition: transform .2s; }
.tab-cat.activo .ico { transform: translateY(-2px); }

/* Una sola entrada orquestada al abrir el negocio */
.contenido.entrada > * { animation: entrar .45s cubic-bezier(.2, .8, .2, 1) both; }
.contenido.entrada > :nth-child(2) { animation-delay: .06s; }
.contenido.entrada > :nth-child(3) { animation-delay: .12s; }
.contenido.entrada > :nth-child(4) { animation-delay: .18s; }
.contenido.entrada > :nth-child(n+5) { animation-delay: .24s; }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  .contenido.entrada > *, .promo-ia::after, .stepper.pop, .btn-canasta, .btn-canasta .cant.salto, .prod-fav.latido .ico { animation: none !important; }
  .card, .momento, .momento-fotos img { transition: none; }
}
body.cliente #toasts { bottom: calc(160px + env(safe-area-inset-bottom)); }

/* ---------- Portada: 4 grupos que pasan solos ---------- */
.grupos { gap: 10px; padding-top: 12px; scroll-snap-type: x mandatory; }
.grupo {
  position: relative; flex: none; width: 124px; height: 178px; border: 0; padding: 0; border-radius: 20px; overflow: hidden; cursor: pointer;
  scroll-snap-align: start; font: inherit; color: #fff; text-align: left;
  background: radial-gradient(120% 80% at 50% 100%, color-mix(in srgb, var(--m) 60%, #fff) 0%, var(--m) 70%);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--m) 30%, transparent);
  transition: transform .18s ease;
}
.grupo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.grupo::before { /* para que el título se lea sobre la foto */
  content: ''; position: absolute; inset: 0 0 auto; height: 58%; z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 85%, #000) 0%, transparent 100%); opacity: .75;
}
.grupo b { position: absolute; z-index: 2; left: 12px; right: 10px; top: 12px; font-size: 17px; font-weight: 820; line-height: 1.1; letter-spacing: -.01em; text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.grupo:active { transform: scale(.95); }
@media (hover: hover) { .grupo:hover img { transform: scale(1.06); } }

/* ---------- Promociones del negocio ---------- */
.promos-negocio { margin-top: 14px; gap: 10px; }
.promo-neg {
  flex: none; width: 286px; min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 12px 14px 16px; border: 0; border-radius: 20px; scroll-snap-align: start; text-align: left; font: inherit; cursor: pointer;
  background: linear-gradient(125deg, #FF7A1A, #FF4D4D); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 40, .25); transition: transform .15s;
}
.promo-neg[tabindex="-1"] { cursor: default; }
.promo-neg:active { transform: scale(.97); }
.promo-neg small { display: inline-block; font-size: 11.5px; font-weight: 800; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px 9px; margin-bottom: 6px; }
.promo-neg b { display: block; font-size: 19px; font-weight: 820; line-height: 1.12; }
.promo-neg em { display: block; font-style: normal; font-size: 13px; opacity: .92; margin-top: 4px; line-height: 1.3; }
.promo-neg img { width: 78px; height: 78px; object-fit: contain; flex: none; background: #fff; border-radius: 16px; padding: 4px; }
.promo-neg-ico { width: 62px; height: 62px; flex: none; border-radius: 18px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.promo-neg-ico .ico { width: 32px; height: 32px; }

/* ---------- Precios en oferta ---------- */
.card .top.oferta { background: #FF5A1F; color: #fff; }
.precio.rebajado { color: #E5480F; }
.precio s, .prod-precio s { color: var(--gris); font-weight: 500; font-size: .72em; margin-left: 4px; }
.prod-precio.rebajado { color: #E5480F; }
.prod-desc { display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 800; color: #fff; background: #FF5A1F; border-radius: 8px; padding: 3px 7px; margin-left: 6px; }
.prod-hasta { display: block; color: #B4430E; font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.nav-pastilla button { font-size: 12px; }
@media (max-width: 360px) { .nav-pastilla button span { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .grupo, .grupo img, .promo-neg { transition: none; } }

/* ---------- Inicio: Vala IA busca el local ---------- */
.hero-inicio { border-radius: 0 0 28px 28px; padding-bottom: 54px; }
.ia-inicio { position: relative; margin: -38px 12px 0; padding: 16px; border-radius: 24px; background: #fff;
  box-shadow: 0 14px 40px rgba(15, 30, 60, .14); animation: subir .35s ease-out; }
.ia-cab { display: flex; align-items: center; gap: 10px; }
.ia-orbe { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(140deg, #2F63F0, #0F2E86); animation: orbe 3.4s ease-in-out infinite; }
.ia-orbe .ico { width: 24px; height: 24px; color: var(--etiqueta); }
@keyframes orbe { 50% { transform: rotate(-6deg) scale(1.06); } }
.ia-cab b { display: block; font-size: 17px; font-weight: 800; }
.ia-cab small { color: var(--gris); font-size: 13px; }
.ia-chat { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ia-msg { max-width: 90%; padding: 11px 15px; border-radius: 18px; font-size: 16px; line-height: 1.4; animation: aparecer .25s ease-out; }
.ia-msg.vala { align-self: flex-start; background: #EEF3FF; color: #13254F; border-top-left-radius: 6px; }
.ia-msg.yo { align-self: flex-end; background: var(--mas); color: #fff; border-bottom-right-radius: 6px; }
.ia-puntos { display: inline-flex; gap: 5px; }
.ia-puntos i { width: 7px; height: 7px; border-radius: 50%; background: #8DA4D9; animation: ia-punto 1s infinite; }
.ia-puntos i:nth-child(2) { animation-delay: .15s; } .ia-puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes ia-punto { 50% { transform: translateY(-4px); background: var(--mas); } }
.ia-compositor { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding: 5px 5px 5px 16px; border-radius: 999px;
  background: var(--gris-cl); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.ia-compositor:focus-within { border-color: var(--mas); background: #fff; }
.ia-compositor input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 16.5px; padding: 9px 0; color: var(--tinta); }
.ia-compositor button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--mas); color: #fff; transition: transform .15s; }
.ia-compositor button:active { transform: scale(.9); }
.ia-compositor .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.ia-chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; scrollbar-width: none; }
.ia-chips::-webkit-scrollbar { display: none; }
.ia-chips button { flex: none; border: 1.5px solid var(--borde); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--tinta); cursor: pointer; transition: border-color .15s, color .15s, transform .15s; }
.ia-chips button:hover { border-color: var(--mas); color: var(--mas); }
.ia-chips button:active { transform: scale(.95); }
.ia-locales { display: grid; gap: 12px; animation: subir .3s ease-out; }
.ia-motivo { color: #1D4ED8 !important; font-weight: 600; }
.ia-prods { display: flex; gap: 8px; overflow-x: auto; margin: -4px 0 4px; padding: 2px 2px 4px; }
.ia-prod { flex: none; width: 108px; display: grid; gap: 3px; text-align: left; padding: 8px; border: 1px solid var(--borde); border-radius: 14px; background: #fff;
  font: inherit; color: var(--tinta); cursor: pointer; transition: transform .15s; }
.ia-prod:active { transform: scale(.95); }
.ia-prod-foto { height: 72px; display: grid; place-items: center; }
.ia-prod-foto img { max-width: 100%; max-height: 72px; object-fit: contain; }
.ia-prod-foto .ico { width: 30px; height: 30px; color: var(--gris); }
.ia-prod small { font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ia-prod b { font-size: 14px; }
.ver-locales { display: block; margin: 18px auto 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--mas); cursor: pointer; padding: 8px 14px; }
.negocios-cl[hidden] { display: none; }

/* Logo / foto del local */
.neg-portada.con-logo { padding: 0; height: 132px; }
.neg-portada.con-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; vertical-align: -7px; margin-right: 8px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .ia-orbe, .ia-puntos i, .ia-msg, .ia-locales, .ia-inicio { animation: none; } }

/* ---------- Inicio como chat completo con Vala ---------- */
body:has(.ci) { background: #F3F6FC; }
.ci { min-height: 100dvh; max-width: 720px; margin: 0 auto; }
.ci-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: rgba(243, 246, 252, .86);
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); }
.marca-ci { font-size: 30px; font-weight: 900; font-stretch: 70%; font-style: italic; letter-spacing: -.02em; line-height: 1; color: var(--mas-osc); }
.ci-ubic { display: flex; align-items: center; gap: 6px; max-width: 62%; border: 0; border-radius: 999px; padding: 8px 14px 8px 10px; background: #fff; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 650; color: var(--tinta); box-shadow: 0 2px 10px rgba(15, 30, 60, .08); }
.ci-ubic span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-ubic .ico { width: 18px; height: 18px; flex: none; color: var(--mas); }
.ci-chat { display: flex; flex-direction: column; gap: 12px; padding: 8px 16px calc(110px + env(safe-area-inset-bottom)); }
.ci-chat .ia-msg { font-size: 16.5px; }
.ci-chat .ia-msg.vala { background: #fff; box-shadow: 0 2px 10px rgba(15, 30, 60, .06); }
.ci-hola { display: grid; gap: 14px; justify-items: start; margin-top: 14px; }
.ia-orbe.grande { width: 58px; height: 58px; border-radius: 19px; box-shadow: 0 10px 26px rgba(23, 71, 201, .3); }
.ia-orbe.grande .ico { width: 30px; height: 30px; }
.ci-hola .ia-msg { font-size: 21px; font-weight: 620; line-height: 1.32; max-width: 100%; padding: 16px 18px; border-radius: 22px; border-top-left-radius: 8px; }
.ci-todos { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 20px; background: #fff; cursor: pointer;
  text-align: left; font: inherit; color: var(--tinta); box-shadow: 0 2px 10px rgba(15, 30, 60, .06); transition: transform .15s, box-shadow .2s; }
.ci-todos:active { transform: scale(.98); }
@media (hover: hover) { .ci-todos:hover { box-shadow: 0 8px 22px rgba(15, 30, 60, .12); } }
.ci-todos-ico { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; background: #EAF1FF; color: var(--mas); }
.ci-todos-ico .ico { width: 24px; height: 24px; }
.ci-todos > span:nth-child(2) { flex: 1; }
.ci-todos b { display: block; font-size: 17px; font-weight: 760; }
.ci-todos small { color: var(--gris); font-size: 13.5px; }
.ci-todos > .ico { width: 20px; height: 20px; color: var(--gris); }
.ci-chat .ia-chips { margin-top: 0; }
#ia-hilo { display: flex; flex-direction: column; gap: 12px; }
#ia-hilo:empty { display: none; }
.ci-pedidos { display: grid; gap: 8px; }
.ci-pedidos a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #E6EEFF; color: var(--mas-osc); text-decoration: none; font-weight: 680; }
.ci-pedidos a span { flex: 1; }
.ci-pedidos .ico { width: 20px; height: 20px; }
.ci-pie { text-align: center; color: var(--gris); font-size: 14px; margin-top: 18px; }
.ci-pie a { color: var(--mas); font-weight: 700; text-decoration: none; }
.ci-compositor { position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 696px); display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff;
  box-shadow: 0 12px 34px rgba(15, 30, 60, .16), 0 0 0 1px rgba(15, 30, 60, .06); transition: box-shadow .2s; }
.ci-compositor:focus-within { box-shadow: 0 12px 34px rgba(23, 71, 201, .22), 0 0 0 2px var(--mas); }
.ci-compositor input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 16.5px; padding: 10px 0; color: var(--tinta); }
.ci-compositor button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--mas); color: #fff; transition: transform .15s; }
.ci-compositor button:active { transform: scale(.9); }
.ci-compositor .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.ci .ia-locales .neg-card { box-shadow: 0 2px 10px rgba(15, 30, 60, .06); }
.ci-acciones { display: flex; align-items: center; gap: 8px; min-width: 0; justify-content: flex-end; }
.ci-acciones .ci-ubic { max-width: 100%; min-width: 0; }
.ci-limpiar { display: flex; align-items: center; gap: 6px; flex: none; border: 0; border-radius: 999px; padding: 8px 12px; background: #fff; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 650; color: var(--tinta); box-shadow: 0 2px 10px rgba(15, 30, 60, .08); transition: transform .15s, color .15s; }
.ci-limpiar .ico { width: 18px; height: 18px; }
.ci-limpiar:hover { color: #D93025; }
.ci-limpiar:active { transform: scale(.94); }
.ci-limpiar[hidden] { display: none; }
@media (max-width: 400px) { .ci-limpiar span { display: none; } .ci-limpiar { padding: 9px; } }
.hoja-cab-ia { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hoja-cab-ia .ci-limpiar { box-shadow: none; border: 1.5px solid var(--borde); }
.pie-legal { justify-content: center; margin-top: 14px; }
.pie-legal .boton-legal { background: #fff; color: var(--tinta) !important; border: 1.5px solid var(--borde); font-size: 13.5px; padding: 8px 14px; }
.pie-tienda { padding-top: 10px; padding-bottom: 20px; }
.privacidad a { color: var(--mas); font-weight: 650; }

/* Inicio: un solo chat sobre el fondo, sin globos blancos */
.ci-chat .ia-msg.vala { background: transparent; box-shadow: none; padding-left: 2px; padding-right: 2px; }
.ci-hola .ia-msg { padding: 2px 2px 0; }
.v-orbe { font-size: 34px; font-weight: 900; font-style: italic; font-stretch: 70%; color: #fff; line-height: 1; letter-spacing: -.04em; padding-right: 3px; }
.ci-todos { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(23, 71, 201, .12);
  animation: deCostado .6s cubic-bezier(.2, .9, .25, 1.15) .35s both; }
.ci-chat .ia-chips button { animation: deCostado .55s cubic-bezier(.2, .9, .25, 1.1) both; }
.ci-chat .ia-chips button:nth-child(1) { animation-delay: .5s; }
.ci-chat .ia-chips button:nth-child(2) { animation-delay: .58s; }
.ci-chat .ia-chips button:nth-child(3) { animation-delay: .66s; }
.ci-chat .ia-chips button:nth-child(4) { animation-delay: .74s; }
@keyframes deCostado { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
/* Mis pedidos: un botoncito arriba, la lista se despliega al tocarlo */
.ci-mis { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--mas); cursor: pointer; }
.ci-mis .ico { width: 20px; height: 20px; }
.ci-mis i { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--mas); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; font-style: normal; text-align: center; }
.ci { position: relative; }
.ci-pedidos { position: fixed; z-index: 30; top: 62px; right: max(16px, calc(50% - 344px)); width: min(340px, calc(100% - 32px)); padding: 8px; border-radius: 20px;
  background: #fff; box-shadow: 0 16px 40px rgba(15, 30, 60, .18); animation: aparecer .2s ease-out; }
.ci-pedidos a { background: #F2F6FF; }
.ci-pedidos a + a { margin-top: 6px; }
.ci-pedidos[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ci-todos, .ci-chat .ia-chips button { animation: none; } }
