/* ==========================================================================
   Botón flotante + chat con la asistente (ver assets/js/components/chat-widget.js).
   ========================================================================== */
.chat-widget {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.chat-widget > * { pointer-events: auto; }
@media (min-width: 768px) { .chat-widget { right: 24px; bottom: 24px; } }

.chat-widget__button {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary); color: #fff;
  box-shadow: 0 10px 26px rgba(200, 16, 46, .45);
  transition: transform .2s var(--ease), background .2s;
}
.chat-widget__button:hover { transform: scale(1.07); background: var(--color-accent-red); }
.chat-widget__button .icon { width: 30px; height: 30px; }
.chat-widget__button::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--color-primary);
  animation: chat-pulse 2.2s ease-out infinite;
}
.chat-widget__dot {
  position: absolute; top: 3px; right: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-whatsapp); border: 2px solid #fff;
}
@keyframes chat-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.chat-widget__bubble {
  position: relative;
  max-width: 250px;
  background: #fff; color: var(--color-text);
  border-radius: 16px 16px 4px 16px;
  padding: 14px 34px 14px 16px;
  box-shadow: var(--shadow-lg);
  font-size: .86rem; line-height: 1.4;
  animation: bubble-in .35s var(--ease);
}
.chat-widget__bubble[hidden] { display: none; }
.chat-widget__bubble strong { display: block; font-family: var(--font-display); margin-bottom: 2px; }
.chat-widget__bubble-close {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--color-text-soft);
}
.chat-widget__bubble-close:hover { background: var(--color-bg-alt); }
.chat-widget__bubble-close .icon { width: 14px; height: 14px; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.95); } }

@media (prefers-reduced-motion: reduce) {
  .chat-widget__button::before { animation: none; }
}

/* ---------- Ícono del botón (abrir / cerrar) ---------- */
.chat-widget__ico { display: grid; place-items: center; }
.chat-widget__ico .icon { width: 28px; height: 28px; }
.chat-widget__ico--close { display: none; }
.chat-widget.is-open .chat-widget__ico--open { display: none; }
.chat-widget.is-open .chat-widget__ico--close { display: grid; }
.chat-widget.is-open .chat-widget__button::before,
.chat-widget.is-open .chat-widget__dot { display: none; }

/* ---------- Panel del chat ---------- */
.chat-panel {
  display: flex; flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 120px));
  background: #fff; color: var(--color-text);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  animation: bubble-in .25s var(--ease);
  transform-origin: bottom right;
}
.chat-panel[hidden] { display: none; }
@media (max-width: 599px) {
  .chat-widget.is-open { inset: 0; right: 0; bottom: 0; }
  .chat-widget.is-open .chat-widget__button { display: none; }
  .chat-panel { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
}

.chat-panel__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 10px 12px 14px;
  background: var(--color-dark); color: #fff;
  border-bottom: 3px solid var(--color-primary);
}
.chat-panel__avatar { width: 40px; height: 40px; flex: none; }
.chat-panel__avatar img { width: 100%; height: 100%; }
.chat-panel__who { flex: 1; min-width: 0; line-height: 1.25; }
.chat-panel__who strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.chat-panel__who span { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: rgba(255, 255, 255, .75); }
.chat-panel__online { width: 8px; height: 8px; border-radius: 50%; background: var(--color-whatsapp); flex: none; }
.chat-panel__icon-btn {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 1.15rem; color: #fff;
}
.chat-panel__icon-btn:hover { background: rgba(255, 255, 255, .12); }
.chat-panel__icon-btn .icon { width: 20px; height: 20px; }

.chat-panel__body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 14px; display: flex; flex-direction: column; gap: 10px;
  background: #F4F1EC;
}
/* Pedido anterior terminado: línea divisoria y nota del último pedido */
.chat-sep { display: flex; align-items: center; gap: 10px; color: var(--color-text-soft); font-size: .72rem; font-weight: 700; text-transform: none; }
.chat-sep::before, .chat-sep::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.chat-ultimo { align-self: center; margin: 0; padding: 4px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--color-border); color: var(--color-text-soft); font-size: .74rem; font-weight: 600; }
.chat-msg { display: flex; flex-direction: column; gap: 6px; max-width: 86%; }
.chat-msg--bot { align-self: flex-start; }
.chat-msg--user { align-self: flex-end; align-items: flex-end; }
.chat-msg__bubble {
  padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.45;
  overflow-wrap: anywhere; box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.chat-msg--bot .chat-msg__bubble { background: #fff; border-bottom-left-radius: 4px; }
.chat-msg--user .chat-msg__bubble { background: var(--color-primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg__bubble a { color: inherit; text-decoration: underline; }
.chat-msg__acciones { display: flex; flex-direction: column; gap: 6px; }
.chat-accion {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: #fff;
  background: var(--color-whatsapp); box-shadow: 0 4px 12px rgba(37, 211, 102, .3);
  transition: transform .15s var(--ease), filter .15s;
}
.chat-accion:hover { transform: translateY(-1px); filter: brightness(.95); }
.chat-accion--persona { background: var(--color-dark); box-shadow: none; }
.chat-accion .icon { width: 18px; height: 18px; }
.chat-pedido {
  background: #fff; border-radius: 12px; padding: 10px 12px;
  border: 1.5px dashed var(--color-accent); font-size: .82rem;
  display: grid; gap: 4px;
}
.chat-pedido strong { font-family: var(--font-display); font-size: .85rem; }
.chat-pedido div { display: flex; justify-content: space-between; gap: 10px; }
.chat-pedido__total { border-top: 1px solid var(--color-border); padding-top: 6px; margin-top: 2px; font-weight: 800; color: var(--color-primary); }

/* Tarjeta de sellos en el chat */
.chat-sellos { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--color-dark); color: #fff; font-size: .82rem; max-width: 100%; }
.chat-sellos strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; line-height: 1.05; }
.chat-sellos span { color: rgba(255, 255, 255, .78); }
.chat-sellos__puntos { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.chat-sellos__puntos i { width: 18px; height: 18px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .4); }
.chat-sellos__puntos i.lleno { border: 0; background: var(--color-accent); }
.chat-sellos__puntos b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); }
.chat-sellos__puntos b .icon { width: 15px; height: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .chat-sellos__puntos i.nuevo { animation: sello-nuevo .6s cubic-bezier(.23, 1, .32, 1) both .2s; }
  @keyframes sello-nuevo { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.25); } }
}

.chat-typing { display: flex; gap: 4px; padding: 14px 16px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #B9B2A8; animation: chat-typing 1.2s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-panel__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 2px; background: #F4F1EC; }
.chat-panel__chips[hidden] { display: none; }
.chat-chip {
  padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: #fff; border: 1.5px solid rgba(200, 16, 46, .35); color: var(--color-primary);
  transition: background .15s, color .15s;
}
.chat-chip:hover { background: var(--color-primary); color: #fff; }

.chat-panel__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--color-border); }
.chat-panel__form textarea {
  flex: 1; resize: none; max-height: 120px;
  font: inherit; font-size: 16px; line-height: 1.35; color: var(--color-text);
  border: 1.5px solid var(--color-border); border-radius: 14px; padding: 9px 12px; background: var(--color-bg-alt);
}
.chat-panel__form textarea:focus { outline: 0; border-color: var(--color-primary); background: #fff; }
.chat-panel__form button {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--color-primary); color: #fff;
}
.chat-panel__form button:disabled, .chat-panel__form textarea:disabled { opacity: .55; cursor: default; }
.chat-panel__form button .icon { width: 20px; height: 20px; }
.chat-panel__foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px 10px; font-size: .75rem; color: var(--color-text-soft); background: #fff;
}
.chat-panel__foot .icon { width: 14px; height: 14px; color: var(--color-whatsapp); }
.chat-panel__foot:hover { color: var(--color-text); }

/* Aviso de privacidad bajo la conversación */
.chat-panel__legal { margin: 0; padding: 6px 14px; font-size: .74rem; line-height: 1.4; color: var(--color-text-soft); text-align: center; background: #F4F1EC; border-top: 1px solid var(--color-border); }
.chat-panel__legal a { color: var(--color-primary); text-underline-offset: 2px; }

/* Confirmar pedido (entra directo a la cocina) */
.chat-accion--confirmar { background: var(--color-primary); box-shadow: 0 4px 14px rgba(200, 16, 46, .35); font-size: .92rem; padding: 12px 14px; cursor: pointer; }
.chat-accion--confirmar:disabled { opacity: .7; cursor: default; transform: none; }
.chat-accion--hecho { background: #E3F9EA; color: #137A3C; box-shadow: none; }
.chat-accion--hecho:hover { transform: none; filter: none; }

/* Seguimiento del pedido confirmado */
.chat-seguimiento { padding: 10px 14px 12px; background: #fff; border-bottom: 1px solid var(--color-border); font-size: .78rem; }
.chat-seguimiento[hidden] { display: none; }
.chat-seguimiento strong { display: block; font-family: var(--font-display); font-size: .82rem; margin-bottom: 8px; }
.chat-seguimiento__pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.chat-seguimiento__pasos li { position: relative; padding-top: 12px; text-align: center; color: var(--color-text-soft); font-weight: 600; font-size: .7rem; }
.chat-seguimiento__pasos li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 99px; background: var(--color-border); }
.chat-seguimiento__pasos li.hecho::before { background: var(--color-primary); }
.chat-seguimiento__pasos li.actual { color: var(--color-primary); }
.chat-seguimiento__pasos li.actual::before { background: var(--color-accent); animation: seguimiento-pulso 1.4s ease-in-out infinite; }
.chat-seguimiento__pasos--fin li:last-child { color: var(--color-primary); font-weight: 700; }
.chat-seguimiento__cancelado { color: var(--color-primary); font-weight: 700; }
@keyframes seguimiento-pulso { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .chat-seguimiento__pasos li.actual::before { animation: none; } }
.chat-pedido__sub { border-top: 1px solid var(--color-border); padding-top: 6px; margin-top: 2px; color: var(--color-text-soft); }
.chat-pedido__desc { color: #137A3C; font-weight: 600; }

/* Con la barra inferior del celular: "Mi pedido" abre el chat, así que el botón
   flotante y su saludo se esconden; el panel queda encima de la barra. */
@media (max-width: 1023px) {
  body.has-bottom-nav .chat-widget__button,
  body.has-bottom-nav .chat-widget__bubble { display: none; }
  body.has-bottom-nav .chat-widget { bottom: calc(var(--bottom-nav-h, 62px) + 12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 599px) {
  body.has-bottom-nav .chat-widget.is-open { bottom: 0; }
}

/* ==========================================================================
   Lucía muñeco (config.js → chatBot.mascota: true). Pollita con cresta de llama
   y delantal JM; mismo sistema de animación que Sofi de Nácar.
   ========================================================================== */
.chat-widget__button--mascota { width: 84px; height: 98px; border-radius: 0; background: transparent; box-shadow: none; padding: 0; overflow: visible; }
@media (min-width: 768px) { .chat-widget__button--mascota { width: 104px; height: 122px; } }
.chat-widget__button--mascota:hover { background: transparent; transform: none; }
.chat-widget__button--mascota::before, .chat-widget__button--mascota .chat-widget__dot { display: none; }
.chat-widget__button--mascota .chat-widget__ico--open { width: 100%; height: 100%; }
.chat-widget__button--mascota svg.luc { width: 100%; height: 100%; overflow: visible; }
.chat-widget__button--mascota:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 18px; }
/* Abierto: vuelve a ser el botón redondo con la X para cerrar */
.chat-widget.is-open .chat-widget__button--mascota { width: 60px; height: 60px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 10px 26px rgba(200, 16, 46, .45); }
/* En celular, Lucía sí se queda a la vista (encima de la barra inferior), un poco más pequeña */
@media (max-width: 1023px) {
  body.has-bottom-nav .chat-widget__button--mascota { display: grid; }
  body.has-bottom-nav .chat-widget:not(.is-open) .chat-widget__button--mascota { width: 72px; height: 84px; }
  body.has-bottom-nav .chat-widget { right: 10px; }
}

.luc { --l-linea: #6b3410; }
.luc__sombra { fill: rgba(40, 10, 5, .28); }
.luc__cuerpo { fill: url(#luc-cuerpo); stroke: var(--l-linea); stroke-width: 2.5; }
.luc__brillo { fill: #fff; opacity: .5; }
.luc__ala, .luc__cola { fill: #f2a43a; stroke: var(--l-linea); stroke-width: 2.5; stroke-linejoin: round; }
.luc__pierna rect, .luc__pierna path { fill: #f7941d; stroke: var(--l-linea); stroke-width: 2.2; stroke-linejoin: round; }
.luc__llama { fill: #e2231a; stroke: var(--l-linea); stroke-width: 2.5; stroke-linejoin: round; }
.luc__llama-in { fill: #ffb627; }
.luc__delantal { fill: #c8102e; stroke: var(--l-linea); stroke-width: 2.2; stroke-linejoin: round; }
.luc__jm { fill: #fff; font: 800 10px/1 "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; text-anchor: middle; letter-spacing: .5px; }
.luc__ojos ellipse { fill: var(--l-linea); }
.luc__glint { fill: #fff; }
.luc__pestanas { fill: none; stroke: var(--l-linea); stroke-width: 2.4; stroke-linecap: round; }
.luc__mejilla { fill: #ff8a7a; opacity: .65; }
.luc__pico { fill: #f7941d; stroke: var(--l-linea); stroke-width: 2.2; stroke-linejoin: round; }
.luc__boca { fill: #8c1d12; }
.luc__pico-feliz { display: none; }
.luc__dormido { display: none; fill: none; stroke: var(--l-linea); stroke-width: 3; stroke-linecap: round; }
.luc__estrella { fill: #ffd23f; opacity: .9; }
.luc__chispas { display: none; fill: #ffb627; }
.luc__aura { fill: url(#luc-aura); opacity: 0; pointer-events: none; }
.luc__zzz { display: none; fill: #fff; font: 700 14px/1 system-ui, sans-serif; paint-order: stroke; stroke: var(--l-linea); stroke-width: 3px; }

/* Piezas que giran sobre su propio centro */
.luc__ojo, .luc__ojos, .luc__respira, .luc__salto, .luc__ala-saluda, .luc__pierna, .luc__estrella, .luc__cresta, .luc__chispas path { transform-box: fill-box; }
.luc__ojo, .luc__estrella, .luc__chispas path { transform-origin: center; }
.luc__ojo { transition: transform .12s ease-out; }
.luc__respira, .luc__salto, .luc__cresta { transform-origin: 50% 100%; }
.luc__ala-saluda { transform-origin: 30% 20%; }
.luc__pierna { transform-origin: 50% 0; }

/* Contenta / saludando: pico abierto */
.luc-feliz .luc__cara > .luc__pico, .luc-saluda .luc__cara > .luc__pico, .luc-salta .luc__cara > .luc__pico { display: none; }
.luc-feliz .luc__pico-feliz, .luc-saluda .luc__pico-feliz, .luc-salta .luc__pico-feliz { display: block; }
/* Dormida: ojos cerrados y "zzz" */
.luc-dormida .luc__ojos, .luc-dormida .luc__pestanas, .luc-dormida .luc__pico-feliz { display: none; }
.luc-dormida .luc__dormido, .luc-dormida .luc__zzz { display: block; }
.luc-dormida .luc__cara > .luc__pico { display: block; }
/* Modo fuego (pedido confirmado): la cresta arde, aura y chispas */
.luc-fuego .luc__aura { opacity: 1; }
.luc-fuego .luc__chispas { display: block; }
.luc-fuego .luc__cuerpo { filter: drop-shadow(0 0 6px #ff9a3c); }

@media (prefers-reduced-motion: no-preference) {
  .luc__respira { animation: luc-respira 3.2s ease-in-out infinite; }
  .luc__ojos { animation: luc-parpadeo 4.6s infinite; transform-origin: 50% 50%; }
  .luc__cresta { animation: luc-llama 1.6s ease-in-out infinite; }
  .luc__estrella { animation: luc-brilla 2.8s ease-in-out infinite; }
  .luc-dormida .luc__respira { animation-duration: 5s; }
  .luc-dormida .luc__cresta { animation-duration: 4s; }
  .luc-dormida .luc__zzz text { animation: luc-zzz 2.8s ease-in-out infinite; }
  .luc-dormida .luc__zzz text:nth-child(2) { animation-delay: 1.1s; }

  /* Entrada: camina desde el borde derecho moviendo las patas */
  .luc-entra .chat-widget__button--mascota { animation: luc-camina 2.3s cubic-bezier(.3, .6, .4, 1) both; }
  .luc-entra .luc__pierna--i, .luc-pasea .luc__pierna--i { animation: luc-paso .4s ease-in-out infinite; }
  .luc-entra .luc__pierna--d, .luc-pasea .luc__pierna--d { animation: luc-paso .4s ease-in-out infinite reverse; }
  .luc-entra .luc__respira, .luc-pasea .luc__respira { animation: luc-bote .4s ease-in-out infinite; }
  /* Saluda con el ala */
  .luc-saluda .luc__ala-saluda { animation: luc-saludo .5s ease-in-out 5; }
  /* Contenta: brinquito */
  .luc-feliz .luc__salto { animation: luc-brinco .5s ease-out; }
  /* El pedido avanza: salta varias veces aleteando */
  .luc-salta .luc__salto { animation: luc-brinco .55s ease-out 4; }
  .luc-salta .luc__ala-saluda { animation: luc-saludo .3s ease-in-out 7; }
  .luc-fuego .luc__cresta { animation: luc-llama .35s ease-in-out infinite; }
  .luc-fuego .luc__aura { animation: luc-aura .7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .luc-fuego .luc__chispas path { animation: luc-brilla 1s ease-in-out infinite; }
  .luc-fuego .luc__chispas path:nth-child(2) { animation-delay: .25s; }
  .luc-fuego .luc__chispas path:nth-child(3) { animation-delay: .5s; }
  .luc-fuego .luc__chispas path:nth-child(4) { animation-delay: .75s; }

  /* Paseo: camina a la izquierda con su globo, se da la vuelta y regresa */
  .chat-widget.luc-pasea { animation: luc-paseo 6.4s ease-in-out both; }
  .luc-pasea .chat-widget__button--mascota { animation: luc-giro 6.4s steps(1, end) both; }
}
@keyframes luc-respira { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .965); } }
@keyframes luc-parpadeo { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes luc-llama { 0%, 100% { transform: scale(1, 1) skewX(0); } 33% { transform: scale(1.04, 1.1) skewX(-4deg); } 66% { transform: scale(.97, .94) skewX(3deg); } }
@keyframes luc-brilla { 0%, 100% { transform: scale(.7) rotate(0); opacity: .4; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@keyframes luc-zzz { 0% { opacity: 0; transform: translate(0, 6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(4px, -10px); } }
@keyframes luc-camina { from { transform: translateX(calc(100vw - 40px)); } to { transform: translateX(0); } }
@keyframes luc-paso { 0%, 100% { transform: rotate(22deg); } 50% { transform: rotate(-22deg); } }
@keyframes luc-bote { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes luc-saludo { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-38deg) translateY(-6px); } }
@keyframes luc-brinco { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-16px) scale(.96, 1.05); } 60% { transform: translateY(0) scale(1.05, .94); } }
@keyframes luc-aura { from { transform: scale(.92); opacity: .75; } to { transform: scale(1.1); opacity: 1; } }
@keyframes luc-paseo { 0% { transform: translateX(0); } 35%, 45% { transform: translateX(-110px); } 92%, 100% { transform: translateX(0); } }
@keyframes luc-giro { 0%, 40% { transform: scaleX(1); } 41%, 91% { transform: scaleX(-1); } 92%, 100% { transform: scaleX(1); } }

/* Globo de texto sobre la cabeza */
.luc-dice {
  position: relative; max-width: min(230px, calc(100vw - 40px)); margin-bottom: -6px;
  background: #fff; color: var(--color-text); border-radius: 16px 16px 4px 16px;
  padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: .86rem; line-height: 1.35; font-weight: 600;
  transform-origin: 90% 100%;
}
.luc-dice[hidden], .chat-widget.is-open .luc-dice { display: none; }
@media (prefers-reduced-motion: no-preference) { .luc-dice { animation: luc-globo .28s cubic-bezier(.23, 1, .32, 1); } }
@keyframes luc-globo { from { opacity: 0; transform: scale(.6) translateY(8px); } to { opacity: 1; transform: none; } }

/* Lucía en la cabecera del chat */
.chat-panel__avatar--luc { width: 46px; height: 54px; margin: 2px 2px -4px 0; }
.chat-panel__avatar--luc svg.luc { width: 100%; height: 100%; display: block; overflow: visible; }
.chat-panel__avatar .luc__cuerpo { fill: url(#luc-cuerpo-h); }
.chat-panel__avatar .luc__aura { fill: url(#luc-aura-h); }
.chat-panel__avatar .luc__sombra { fill: rgba(0, 0, 0, .4); }
/* Mientras responde: brinquitos aleteando */
@media (prefers-reduced-motion: no-preference) {
  .luc-escribe .chat-panel__avatar .luc__salto { animation: luc-brinco .7s ease-in-out infinite; }
  .luc-escribe .chat-panel__avatar .luc__ala-saluda { animation: luc-saludo .35s ease-in-out infinite; }
}
.luc-escribe .chat-panel__avatar .luc__cara > .luc__pico { display: none; }
.luc-escribe .chat-panel__avatar .luc__pico-feliz { display: block; }

/* Cliente que vuelve: "¿No eres …?" para borrar sus datos guardados en este dispositivo */
.chat-olvidar { flex-basis: 100%; padding: 4px 2px 0; text-align: left; font-size: .74rem; font-weight: 600; color: var(--color-text-soft); text-decoration: underline; text-underline-offset: 2px; }
.chat-olvidar:hover { color: var(--color-primary); }
