/* =====================================================
   RICHI · GMH  —  diseño plano / minimalista
   Único acento: naranja #ff7a1a
===================================================== */

#gmh-ai-launcher,
#gmh-ai-popup,
#gmh-ai-panel {
  --or: #ff7a1a;
  --or-soft: #fff3ea;          /* tinte del mismo naranja, para fondos */
  --ink: #1d2433;
  --muted: #6b7280;
  --line: #ece7e2;
  --bg: #faf8f6;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* =====================================================
   MASCOTA
===================================================== */
.gmh-capy {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
/* El busto va recortado en círculo (botón y encabezado) */
.gmh-capy-bust {
  border-radius: 50%;
  clip-path: circle(50%);
  overflow: hidden;
  background: transparent;
}
.gmh-capy-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: gmhBlink 4.6s infinite;
}
@keyframes gmhBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(.08); }
}

/* ---------- Botón flotante ---------- */
#gmh-ai-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99990;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 2px solid var(--or);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  transition: transform .25s var(--ease);
  animation: gmhLauncherIn .6s var(--ease) both .3s;
}
#gmh-ai-launcher::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--or);
  animation: gmhRing 2.6s ease-out infinite;
  pointer-events: none;
}
#gmh-ai-launcher:hover { transform: translateY(-3px); }
#gmh-ai-launcher:active { transform: scale(.94); }

#gmh-ai-launcher .gmh-capy { width: 58px; height: 58px; animation: gmhBob 3.2s ease-in-out infinite; }
#gmh-ai-launcher.gmh-ai-wave .gmh-capy { animation: gmhWave 1.1s ease-in-out 2; }

.gmh-ai-unread {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  border-radius: 99px;
  background: var(--or);
  color: #fff;
  font: 800 11px/21px Inter, Arial, sans-serif;
  text-align: center;
  border: 2px solid #fff;
  animation: gmhPop .4s var(--ease) both 2s;
}

@keyframes gmhRing { 0% { transform: scale(1); opacity: .6 } 100% { transform: scale(1.45); opacity: 0 } }
@keyframes gmhBob  { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-2px) } }
@keyframes gmhWave { 0%, 100% { transform: rotate(0) } 25% { transform: rotate(-10deg) } 75% { transform: rotate(10deg) } }
@keyframes gmhPop  { from { transform: scale(0); opacity: 0 } to { transform: scale(1); opacity: 1 } }
@keyframes gmhLauncherIn { from { opacity: 0; transform: translateY(24px) scale(.7) } to { opacity: 1; transform: none } }

/* =====================================================
   POPUP "Bienvenido a GMH"
===================================================== */
#gmh-ai-popup {
  position: fixed;
  right: 22px;
  bottom: 100px;
  z-index: 99995;
  width: min(270px, calc(100vw - 44px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 15px 14px;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  transform-origin: bottom right;
  display: none;
}
#gmh-ai-popup::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  width: 34px;
  height: 3px;
  background: var(--or);
  border-radius: 0 0 3px 3px;
}
#gmh-ai-popup::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
#gmh-ai-popup.gmh-ai-show { display: block; animation: gmhPopupIn .45s var(--ease) both; }
#gmh-ai-popup.gmh-ai-hide { display: block; animation: gmhPopupOut .3s ease-in both; }
@keyframes gmhPopupIn  { from { opacity: 0; transform: translateY(12px) scale(.92) } to { opacity: 1; transform: none } }
@keyframes gmhPopupOut { to { opacity: 0; transform: translateY(8px) scale(.95) } }

#gmh-ai-popup strong { display: block; font-size: 15px; font-weight: 800; padding-right: 22px; }
#gmh-ai-popup p { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.gmh-ai-popup-x {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9a9a9a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.gmh-ai-popup-x:hover { background: var(--or-soft); color: var(--or); }

.gmh-ai-popup-cta {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: var(--or);
  color: #fff;
  font: 800 13px Inter, Arial, sans-serif;
  cursor: pointer;
  transition: transform .2s var(--ease), filter .2s;
}
.gmh-ai-popup-cta:hover { filter: brightness(.96); transform: translateY(-1px); }
.gmh-ai-popup-cta:active { transform: scale(.98); }

/* =====================================================
   PANEL
===================================================== */
#gmh-ai-panel {
  position: fixed;
  right: 22px;
  bottom: 98px;
  width: min(400px, calc(100vw - 28px));
  height: min(620px, calc(100dvh - 124px));
  z-index: 99999;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
  display: none;
  overflow: hidden;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  transform-origin: bottom right;
}
#gmh-ai-panel.gmh-ai-open { display: flex; flex-direction: column; animation: gmhAiIn .28s var(--ease); }
@keyframes gmhAiIn { from { opacity: 0; transform: translateY(14px) scale(.96) } to { opacity: 1; transform: none } }

/* ---------- Header ---------- */
.gmh-ai-head {
  background: var(--or);
  color: #fff;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.gmh-ai-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.gmh-ai-avatar .gmh-capy { width: 42px; height: 42px; }
.gmh-ai-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--or);
}
.gmh-ai-head strong { display: block; font-size: 14.5px; }
.gmh-ai-head small { display: block; margin-top: 2px; color: #fff; opacity: .88; font-size: 11px; }

#gmh-ai-sound {
  margin-left: auto;
  background: rgba(255, 255, 255, .2);
  border: 0;
  border-radius: 9px;
  width: 32px;
  height: 32px;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}
#gmh-ai-sound:hover { background: rgba(255, 255, 255, .34); }
#gmh-ai-close {
  margin-left: 6px;
  background: rgba(255, 255, 255, .2);
  border: 0;
  color: #fff;
  border-radius: 9px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer;
  transition: background .2s;
}
#gmh-ai-close:hover { background: rgba(255, 255, 255, .34); }

/* ---------- Mensajes ---------- */
.gmh-ai-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #e3d9cf transparent;
}

.gmh-ai-msg {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  animation: gmhMsgIn .3s var(--ease) both;
}
.gmh-ai-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.gmh-ai-user {
  align-self: flex-end;
  background: var(--or);
  color: #fff;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}
@keyframes gmhMsgIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

.gmh-ai-typing { display: flex; gap: 5px; padding: 13px 14px; }
.gmh-ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--or);
  animation: gmhBounce 1s ease-in-out infinite;
}
.gmh-ai-typing span:nth-child(2) { animation-delay: .15s; }
.gmh-ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes gmhBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4 } 30% { transform: translateY(-5px); opacity: 1 } }

/* =====================================================
   CARRUSEL (tarjetas compactas)
===================================================== */
.gmh-ai-carousel {
  position: relative;
  align-self: stretch;
  margin: 0 -14px;
}

.gmh-ai-track {
  position: relative;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 14px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 14px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gmh-ai-track::-webkit-scrollbar { display: none; }

.gmh-ai-product {
  --p: 0;
  --a: 0;
  flex: 0 0 176px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  opacity: calc(1 - var(--a) * .25);
  /* entrada solo vertical: un translate horizontal rompe el scroll-snap */
  animation: gmhCardIn .45s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes gmhCardIn { from { opacity: 0; translate: 0 14px } to { opacity: 1; translate: 0 0 } }

.gmh-ai-media {
  position: relative;
  height: 112px;
  overflow: hidden;
}
.gmh-ai-media img {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -16px;
  width: calc(100% + 32px);
  height: calc(100% - 16px);
  object-fit: contain;
  transform: translateX(calc(var(--p) * -14px));   /* parallax sutil */
  will-change: transform;
}

.gmh-ai-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}
.gmh-ai-badge-r { left: auto; right: 8px; background: var(--or); color: #fff; }
.gmh-ai-badge-out { background: #fde8ea; color: #c13b48; }

.gmh-ai-product-info {
  min-width: 0;
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.gmh-ai-product b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  min-height: 32px;
}
.gmh-ai-product small { display: block; color: var(--muted); font-size: 10px; }

.gmh-ai-price { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; margin-top: 2px; }
.gmh-ai-wholesale { font-size: 11px; color: var(--muted); font-weight: 600; }
.gmh-ai-total {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--or-soft);
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 2px;
  animation: gmhMsgIn .3s var(--ease) both;
}
.gmh-ai-tip { font-size: 10.5px; color: var(--muted); }
.gmh-ai-stock { font-size: 10px; font-weight: 600; color: var(--muted); }
.gmh-ai-out { color: #c13b48; }

.gmh-ai-actions { display: flex; gap: 6px; align-items: stretch; margin-top: auto; padding-top: 8px; }

.gmh-ai-qty {
  display: flex;
  align-items: stretch;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.gmh-ai-qty button {
  width: 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.gmh-ai-qty button:hover { background: var(--or-soft); color: var(--or); }
.gmh-ai-qty input {
  width: 28px;
  border: 0;
  text-align: center;
  font: 700 12px Inter, Arial, sans-serif;
  color: var(--ink);
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.gmh-ai-qty input::-webkit-outer-spin-button,
.gmh-ai-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.gmh-ai-add {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 0;
  border-radius: 9px;
  padding: 0 8px;
  background: var(--or);
  color: #fff;
  font: 800 12px Inter, Arial, sans-serif;
  cursor: pointer;
  transition: transform .15s var(--ease), filter .2s, background .2s;
}
.gmh-ai-add:hover { filter: brightness(.95); }
.gmh-ai-add:active { transform: scale(.96); }
.gmh-ai-add:disabled { cursor: default; background: var(--ink); filter: none; transform: none; }

/* Flechas (solo ratón) */
.gmh-ai-nav {
  position: absolute;
  top: 46px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--or);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: none;
  z-index: 3;
  transition: background .2s, color .2s, opacity .2s;
}
.gmh-ai-nav:hover { background: var(--or); border-color: var(--or); color: #fff; }
.gmh-ai-nav:disabled { opacity: 0; pointer-events: none; }
.gmh-ai-prev { left: 6px; }
.gmh-ai-next { right: 6px; }
@media (hover: hover) and (pointer: fine) { .gmh-ai-nav { display: grid; place-items: center; } }

/* Puntos */
.gmh-ai-pips { display: flex; justify-content: center; gap: 5px; }
.gmh-ai-pip {
  width: 5px;
  height: 5px;
  border: 0;
  padding: 0;
  border-radius: 99px;
  background: #e4dbd2;
  cursor: pointer;
  transition: width .25s var(--ease), background .25s;
}
.gmh-ai-pip-on { width: 16px; background: var(--or); }

/* Chips y "Ver más" */
.gmh-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gmh-ai-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: 600 12px Inter, Arial, sans-serif;
  cursor: pointer;
  animation: gmhMsgIn .35s var(--ease) backwards;
  transition: background .2s, border-color .2s, color .2s;
}
.gmh-ai-chip:nth-child(2) { animation-delay: .05s; }
.gmh-ai-chip:nth-child(3) { animation-delay: .1s; }
.gmh-ai-chip:nth-child(4) { animation-delay: .15s; }
.gmh-ai-chip:nth-child(5) { animation-delay: .2s; }
.gmh-ai-chip:nth-child(6) { animation-delay: .25s; }
.gmh-ai-chip:hover { background: var(--or); border-color: var(--or); color: #fff; }

.gmh-ai-more { text-align: center; }
.gmh-ai-more button {
  border: 1px solid var(--or);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 16px;
  font: 700 12px Inter, Arial, sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.gmh-ai-more button:hover { background: var(--or); color: #fff; }

/* Barra de entrada */
.gmh-ai-inputbar { display: flex; gap: 8px; padding: 11px; border-top: 1px solid var(--line); background: #fff; }
#gmh-ai-input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  font: 13px Inter, Arial, sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#gmh-ai-input:focus { border-color: var(--or); box-shadow: 0 0 0 3px rgba(255, 122, 26, .16); }
#gmh-ai-send {
  border: 0;
  border-radius: 11px;
  background: var(--or);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .2s, transform .15s var(--ease);
}
#gmh-ai-send:hover { filter: brightness(.95); }
#gmh-ai-send:active { transform: scale(.96); }
#gmh-ai-send:disabled { opacity: .55; cursor: wait; }
.gmh-ai-note { text-align: center; font-size: 9px; color: #a89c90; padding: 0 10px 8px; }


/* =====================================================
   BOTONES RÁPIDOS Y BARRA DE PEDIDO
===================================================== */
.gmh-ai-quick {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.gmh-ai-quick::-webkit-scrollbar { display: none; }
.gmh-ai-quick button {
  flex: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  font: 600 11.5px Inter, Arial, sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.gmh-ai-quick button:hover { background: var(--or); border-color: var(--or); color: #fff; }

.gmh-ai-orderbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--or-soft);
  background: var(--or-soft);
  color: var(--ink);
  padding: 9px 14px;
  font: 600 12px Inter, Arial, sans-serif;
  cursor: pointer;
}
.gmh-ai-orderbar.on { display: flex; animation: gmhMsgIn .3s var(--ease); }
.gmh-ai-orderbar b { color: var(--ink); }
.gmh-ai-orderbar .tot { font-weight: 800; }
.gmh-ai-orderbar:hover { filter: brightness(.97); }

/* ---------- Tarjeta "Tu pedido" dentro del chat ---------- */
.gmh-ai-order {
  align-self: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  animation: gmhMsgIn .3s var(--ease) both;
}
.gmh-ai-order-title { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.gmh-ai-order-row {
  display: grid;
  grid-template-columns: 1fr auto auto 18px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.gmh-ai-order-info { min-width: 0; }
.gmh-ai-order-info b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.3;
}
.gmh-ai-order-info small { color: var(--muted); font-size: 10px; }
.gmh-ai-order-row .gmh-ai-qty { height: 28px; }
.gmh-ai-order-row .gmh-ai-qty button { width: 20px; }
.gmh-ai-order-row .gmh-ai-qty input { width: 26px; }
.gmh-ai-order-sub { font-size: 12px; font-weight: 800; min-width: 54px; text-align: right; }
.gmh-ai-order-x {
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.gmh-ai-order-x:hover { color: #c13b48; }
.gmh-ai-order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.gmh-ai-order-total b { font-size: 17px; color: var(--ink); }
.gmh-ai-order-save {
  margin-top: 6px;
  background: var(--or-soft);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
}
.gmh-ai-order-actions { display: flex; gap: 8px; margin-top: 10px; }
.gmh-ai-order-actions .gmh-ai-add { height: 36px; }
.gmh-ai-order-clear {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  padding: 0 14px;
  font: 700 12px Inter, Arial, sans-serif;
  cursor: pointer;
}
.gmh-ai-order-clear:hover { border-color: #c13b48; color: #c13b48; }

/* ---------- Botón de cámara ---------- */
#gmh-ai-scan {
  flex: none;
  width: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
#gmh-ai-scan:hover { background: var(--or-soft); border-color: var(--or); }

/* =====================================================
   EL CAPIBARA REACCIONA (pensando · feliz · triste)
===================================================== */
@keyframes gmhThink { 0%, 100% { transform: rotate(-7deg) } 50% { transform: rotate(7deg) translateY(-1px) } }
@keyframes gmhHappy { 0%, 100% { transform: translateY(0) scale(1) } 35% { transform: translateY(-6px) scale(1.1) } 65% { transform: translateY(0) scale(.97) } }
@keyframes gmhSad   { 0% { transform: none } 40%, 100% { transform: translateY(3px) rotate(-9deg) scale(.95) } }
@keyframes gmhSpark { 0% { opacity: 0; transform: translateY(4px) scale(.5) } 30% { opacity: 1 } 100% { opacity: 0; transform: translateY(-14px) scale(1.15) } }

#gmh-ai-launcher.gmh-estado-pensando .gmh-capy,
.gmh-ai-avatar.gmh-estado-pensando .gmh-capy { animation: gmhThink 1.1s ease-in-out infinite; }

#gmh-ai-launcher.gmh-estado-feliz .gmh-capy,
.gmh-ai-avatar.gmh-estado-feliz .gmh-capy { animation: gmhHappy .7s var(--ease) 2; }

#gmh-ai-launcher.gmh-estado-triste .gmh-capy,
.gmh-ai-avatar.gmh-estado-triste .gmh-capy { animation: gmhSad .6s var(--ease) forwards; filter: saturate(.7); }

#gmh-ai-launcher.gmh-estado-feliz::after,
.gmh-ai-avatar.gmh-estado-feliz::before {
  content: "✨";
  position: absolute;
  top: -4px;
  right: -2px;
  font-size: 14px;
  pointer-events: none;
  animation: gmhSpark 1s ease-out forwards;
}
#gmh-ai-launcher.gmh-estado-pensando::before { animation-duration: 1s; }

/* ---------- Móvil ---------- */
@media (max-width: 520px) {
  #gmh-ai-launcher { right: 14px; bottom: 14px; width: 60px; height: 60px; }
  #gmh-ai-launcher .gmh-capy { width: 52px; height: 52px; }
  #gmh-ai-popup { right: 14px; bottom: 86px; }
  #gmh-ai-panel {
    right: 8px;
    bottom: 84px;
    width: calc(100vw - 16px);
    height: min(680px, calc(100dvh - 100px));
    border-radius: 16px;
  }
  .gmh-ai-product { flex-basis: 164px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  #gmh-ai-launcher, #gmh-ai-launcher::before, #gmh-ai-launcher .gmh-capy, #gmh-ai-popup, #gmh-ai-panel,
  .gmh-ai-msg, .gmh-ai-product, .gmh-ai-chip, .gmh-ai-total, .gmh-ai-unread, .gmh-capy-eyes,
  .gmh-ai-typing span { animation: none !important; }
  .gmh-ai-orderbar, .gmh-ai-order, .gmh-ai-chip { animation: none !important; }
  #gmh-ai-launcher .gmh-capy, .gmh-ai-avatar .gmh-capy,
  #gmh-ai-launcher::after, .gmh-ai-avatar::before { animation: none !important; }
  .gmh-ai-media img { transform: none !important; }
  .gmh-ai-product { opacity: 1 !important; }
  .gmh-ai-messages { scroll-behavior: auto; }
}