/* Asistente FAQ (compartido; colores por --lp-assistant-* en .lp-assistant-root) */
.lp-assistant-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lp-assistant-fab { text-align: center; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); z-index: 51; }
.lp-assistant-fab__btn { position: relative; }
.lp-assistant-fab__btn {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}
.lp-assistant-fab__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lp-assistant-fab__icon img {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--lp-assistant-accent, #4fb68d);
}
.lp-assistant-panel__avatar img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,.45);
}
.lp-assistant-fab__label {
  background: var(--lp-assistant-accent-dark, #3a9a78);
  color: #fff;
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 0;
  line-height: 1.35;
}
.lp-assistant-panel {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  width: min(400px, calc(100vw - 20px));
  height: min(720px, calc(100vh - 96px));
  max-height: min(720px, calc(100vh - 96px));
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  font-family: inherit;
  z-index: 52;
}
.lp-assistant-panel[open] {
  display: flex;
  flex-direction: column;
}
.lp-assistant-panel__thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  background: #f4f7f8;
}
.lp-assistant-panel::backdrop { background: rgba(37,50,55,.45); }
.lp-assistant-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--lp-assistant-header-from, #4fb68d), var(--lp-assistant-header-to, #3a9a78));
  color: #fff;
}
.lp-assistant-panel__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-assistant-panel__title { margin: 0; font-size: 1rem; font-weight: 700; }
.lp-assistant-panel__status { margin: 2px 0 0; font-size: .78rem; opacity: .92; }
.lp-assistant-panel__actions { display: flex; gap: 6px; flex: 0 0 auto; }
.lp-assistant-panel__min,
.lp-assistant-panel__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.lp-assistant-panel__close { font-size: 1.5rem; }
.lp-assistant-panel__min:hover,
.lp-assistant-panel__close:hover { background: rgba(255,255,255,.35); }
.lp-assistant-fab--resume .lp-assistant-fab__label::after {
  content: " · reanudar";
  font-weight: 500;
}
.lp-assistant-panel__body {
  padding: 14px 14px 6px;
  overflow: visible;
  background: transparent;
}
.lp-assistant-msg {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.45;
  max-width: 92%;
}
.lp-assistant-msg--bot {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.lp-assistant-msg--bot.lp-assistant-msg--clamp {
  position: relative;
  padding-right: 38px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lp-assistant-msg--bot.lp-assistant-msg--clamp:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lp-assistant-msg strong { font-weight: 700; }
.lp-assistant-msg__inner { display: block; }
.lp-assistant-msg__gap {
  display: block;
  height: 0.75em;
}
.lp-assistant-msg--bot.lp-assistant-msg--clamp .lp-assistant-msg__inner {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.lp-assistant-msg__expand {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.lp-assistant-msg__expand:hover { border-color: var(--accent); color: var(--accent); }
.lp-assistant-msg-pop {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(37, 50, 55, .45);
}
.lp-assistant-msg-pop[hidden] { display: none !important; }
.lp-assistant-msg-pop__sheet {
  width: 100%;
  max-height: min(70vh, 420px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lp-assistant-msg-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #f4f7f8;
  border-bottom: 1px solid var(--line);
}
.lp-assistant-msg-pop__title { margin: 0; font-size: .9rem; font-weight: 700; }
.lp-assistant-msg-pop__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.lp-assistant-msg-pop__close:hover { background: #eef1f2; }
.lp-assistant-msg-pop__body {
  padding: 14px;
  overflow-y: auto;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink);
}
.lp-assistant-msg-pop__p { margin: 0 0 12px; }
.lp-assistant-msg-pop__p:last-child { margin-bottom: 0; }
.lp-assistant-msg-pop__body strong { font-weight: 700; }
.lp-assistant-msg--user {
  margin-left: auto;
  background: #dff5eb;
  color: #1a4d3a;
  border-bottom-right-radius: 4px;
}
.lp-assistant-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 52px;
  padding: 12px 14px;
}
.lp-assistant-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7a9a90;
  animation: lp-assistant-dot 1.05s ease-in-out infinite;
}
.lp-assistant-typing span:nth-child(2) { animation-delay: .12s; }
.lp-assistant-typing span:nth-child(3) { animation-delay: .24s; }
@keyframes lp-assistant-dot {
  0%, 70%, 100% { opacity: .35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-4px); }
}
.lp-assistant-panel__choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 14px 12px;
  background: transparent;
}
.lp-assistant-scroll-anchor {
  height: 1px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
}
.lp-assistant-choice {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  color: var(--ink);
}
.lp-assistant-choice:hover { border-color: var(--accent); color: var(--accent-dark); }
body.pg-product.personalizador-open .lp-assistant-fab { display: none; }
@media (max-width: 520px) {
  .lp-assistant-panel {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin-bottom: 0;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
  }
  body:has(.lp-assistant-panel[open]) .lp-assistant-fab { visibility: hidden; pointer-events: none; }
}
