
/* ── SELECTOR DE PAÍS ──────────────────────────────────────── */
#boty-flag-btn {
  display: none;
  align-items: center;
  gap: 3px;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  padding: 0 7px;
  height: 36px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
#boty-flag-btn:hover { background: #e0e0e0; }
#boty-flag-icon { font-size: 18px; line-height: 1; }
#boty-flag-code { font-size: 11px; font-weight: 600; color: #444; }

#boty-country-drop {
  position: absolute;
  bottom: 60px;
  left: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  max-height: 220px;
  overflow-y: auto;
  width: 230px;
  padding: 6px 0;
}
.boty-country-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.1s;
}
.boty-country-opt:hover { background: #f5f5f5; }
.boty-country-opt.active { background: #EDE9FE; font-weight: 600; }
.boty-country-flag { font-size: 20px; }
.boty-country-name { flex: 1; color: #333; }
.boty-country-dial { font-size: 11px; color: #888; }

/* ============================================================
   BRUSHAI Widget — Estilos v8
   Archivo: brushai-widget.css
   Subir a: /public_html/brushai-widget.css
============================================================ */

:root {
  --bp: #3B4FA6;
  --bpd: #2d3d8a;
  --bs: #eef0fc;
  --btext: #1a1a2e;
  --btm: #6b7280;
  --bg: #ffffff;
  --br: 18px;
  --bsh: 0 8px 40px rgba(59, 79, 166, .2);
}

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

#boty-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bp);
  border: none;
  cursor: pointer;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(59, 79, 166, .45);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
  padding: 0;
  overflow: visible;
}

#boty-btn:hover {
  transform: scale(1.1);
}

/* Imagen/ícono chat visible por defecto */
#boty-btn .icon-chat {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

#boty-btn.open .icon-chat {
  display: none;
}

#boty-btn.open .icon-close {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#boty-btn .icon-close {
  display: none;
}

/* ── BURBUJA LANZADOR "¿Y si conversamos?" ── */
#boty-launcher-bubble {
  position: fixed;
  bottom: 102px;
  right: 20px;
  background: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .14);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 12px;
  z-index: 99998;
  max-width: 220px;
  animation: lb-in .35s cubic-bezier(.16, 1, .3, 1);
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#boty-launcher-bubble .lb-avatar,
#boty-launcher-bubble img.lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  object-fit: cover;
}

#boty-launcher-bubble .lb-text {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  flex: 1;
}

#boty-launcher-bubble .lb-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #9ca3af;
  padding: 0 0 0 4px;
  line-height: 1;
  flex-shrink: 0;
}

#boty-launcher-bubble .lb-close:hover {
  color: #374151;
}

#boty-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #e91e8c;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  font-family: -apple-system, sans-serif;
}

#boty-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 0;
  box-shadow: none;
  z-index: 99998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  border: none;
  animation: bu .3s cubic-bezier(.16, 1, .3, 1);
}

#boty-panel.visible {
  display: flex;
}

@keyframes bu {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#boty-hdr {
  background: linear-gradient(135deg, #3B4FA6 0%, #2d3d8a 100%);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid rgba(255, 255, 255, .3);
}

.binf {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.bnm {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bsub {
  color: rgba(255, 255, 255, .6);
  font-size: 9px;
  margin-top: 1px;
  white-space: nowrap;
}

.bst {
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.bdt {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.hbadge {
  display: none;
}

.hdr-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

#boty-forget {
  background: rgba(255, 255, 255, .12);
  border: none;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  aspect-ratio: 1;
}

#boty-forget:hover {
  background: rgba(255, 69, 0, .35);
  color: #fff;
}

#boty-cls {
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  aspect-ratio: 1;
}

#boty-cls:hover {
  background: rgba(255, 255, 255, .28);
}

/* ── DESKTOP (≥ 480px) ── */
@media(min-width:480px) {
  #boty-panel {
    bottom: 108px;
    top: auto;
    right: 28px;
    left: auto;
    width: 420px;
    height: 640px;
    border-radius: var(--br);
    box-shadow: var(--bsh);
    border: 1px solid rgba(59, 79, 166, .12);
  }

  #boty-hdr {
    padding: 14px 16px;
    gap: 11px;
  }

  .bav {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .bnm {
    font-size: 13px;
    white-space: normal;
    line-height: 1.25;
  }

  .bsub {
    font-size: 10px;
  }

  .bst {
    font-size: 11px;
    margin-top: 3px;
  }
}

/* Chip modo */
#boty-mode-chip {
  padding: 6px 14px;
  font-size: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(59, 79, 166, .08);
}

#boty-mode-chip.mode-rules {
  background: rgba(59, 79, 166, .06);
  color: var(--bp);
}

#boty-mode-chip.mode-ai {
  background: #f0fdf4;
  color: #065f46;
}

/* Chip de memoria */
#boty-memory-chip {
  background: rgba(59, 79, 166, .07);
  border-bottom: 1px solid rgba(59, 79, 166, .1);
  padding: 7px 14px;
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--btm);
  flex-shrink: 0;
}

/* Barra de progreso quiz */
#boty-progress-bar {
  background: rgba(59, 79, 166, .06);
  border-bottom: 1px solid rgba(59, 79, 166, .08);
  padding: 8px 14px;
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pb-label {
  font-size: 11px;
  color: var(--bp);
  font-weight: 500;
  white-space: nowrap;
}

.pb-track {
  flex: 1;
  height: 5px;
  background: rgba(59, 79, 166, .12);
  border-radius: 99px;
  overflow: hidden;
}

.pb-fill {
  height: 100%;
  background: var(--bp);
  border-radius: 99px;
  transition: width .4s;
}

.pb-step {
  font-size: 11px;
  color: var(--btm);
  white-space: nowrap;
}

#boty-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f8fc;
  scroll-behavior: smooth;
}

#boty-msgs::-webkit-scrollbar {
  width: 4px;
}

#boty-msgs::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.bmsg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: bmi .28s ease;
}

@keyframes bmi {
  from {
    opacity: 0;
    transform: translateY(7px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.bmsg.user {
  flex-direction: row-reverse;
}

.bmsg.system {
  justify-content: center;
}

.bmav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.bmsg.user .bmav {
  background: #e5e7eb;
}

.bbub {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--btext);
}

.bmsg.bot .bbub {
  background: #fff;
  border: 1px solid rgba(59, 79, 166, .1);
  border-bottom-left-radius: 4px;
}

.bmsg.user .bbub {
  background: var(--bp);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bmsg.system .bbub {
  background: rgba(59, 79, 166, .06);
  border: 1px dashed rgba(59, 79, 166, .2);
  border-radius: 10px;
  color: var(--btm);
  font-size: 12px;
  padding: 6px 12px;
  max-width: 90%;
  text-align: center;
}

.bbub strong {
  font-weight: 600;
}

.bbub em {
  font-style: italic;
}

/* Tarjeta de lead */
.lead-card {
  background: linear-gradient(135deg, #eef0fc, #f5f0ff);
  border: 1px solid rgba(59, 79, 166, .18);
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
  max-width: 270px;
}

.lead-card .lc-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--bp);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.lead-card .lc-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(59, 79, 166, .08);
}

.lead-card .lc-row:last-child {
  border-bottom: none;
}

.lead-card .lc-key {
  color: var(--btm);
  font-size: 12px;
  min-width: 70px;
}

.lead-card .lc-val {
  color: var(--btext);
  font-weight: 600;
  font-size: 13px;
}

.lead-card .lc-rec {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--bp);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lead-card .lc-price {
  font-size: 16px;
  font-weight: 700;
}

/* Botones de quiz */
.qual-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
  max-width: 270px;
}

.qual-btn {
  background: linear-gradient(135deg, #c85c8a 0%, #3B4FA6 100%);
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .18s;
  text-align: left;
  color: #fff;
}

.qual-btn:hover {
  background: linear-gradient(135deg, #b54d7b 0%, #2d3d8a 100%);
  border-color: transparent;
  transform: scale(1.02);
}

.qual-btn .qb-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.qual-btn .qb-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.qual-btn .qb-label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.qual-btn .qb-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.82);
}

/* Tarjeta de producto */
.bpc {
  background: #fff;
  border: 1px solid rgba(59, 79, 166, .15);
  border-radius: 12px;
  padding: 13px;
  margin-top: 8px;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(59, 79, 166, .08);
}

.bpc .pcat {
  font-size: 10px;
  font-weight: 600;
  color: var(--bp);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 3px;
}

.bpc .pn {
  font-weight: 700;
  font-size: 14px;
  color: var(--btext);
  line-height: 1.3;
}

.bpc .pp {
  color: var(--bp);
  font-weight: 700;
  font-size: 18px;
  margin: 5px 0 3px;
}

.bpc .pp span {
  font-size: 11px;
  font-weight: 400;
  color: var(--btm);
}

.bpc .pinc {
  margin: 6px 0;
  padding-left: 14px;
}

.bpc .pinc li {
  font-size: 11px;
  color: var(--btm);
  line-height: 1.6;
}

.bpc .pc {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: var(--bp);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}

.bpc .pc:hover {
  background: var(--bpd);
}

/* FAQ chips */
.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-width: 280px;
}

.faq-chip {
  background: var(--bs);
  color: var(--bp);
  border: 1px solid rgba(59, 79, 166, .2);
  border-radius: 16px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.faq-chip:hover {
  background: var(--bp);
  color: #fff;
}

/* Quick replies */
#boty-qr {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 0;
}

/* Quick reply buttons - !important para override de WordPress/Elementor */
#boty-qr .bqrb,
.bqrb {
  background: var(--bs) !important;
  background-image: none !important;
  color: var(--bp) !important;
  border: 1px solid rgba(59, 79, 166, .2) !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all .2s !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: unset !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
  text-align: left !important;
  margin: 0 !important;
  outline: none !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

#boty-qr .bqrb:hover,
.bqrb:hover {
  background: var(--bp) !important;
  background-image: none !important;
  color: #fff !important;
  border-color: var(--bp) !important;
}

/* Typing */
.bdots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.bdots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bp);
  opacity: .4;
  animation: bb 1.2s infinite;
}

.bdots span:nth-child(2) {
  animation-delay: .2s;
}

.bdots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes bb {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: .4;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Input */
#boty-ia {
  padding: 11px 12px;
  background: #fff;
  border-top: 1px solid rgba(59, 79, 166, .08);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

#boty-inp {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-radius: 24px;
  padding: 9px 15px;
  font-size: 14px;
  outline: none;
  color: var(--btext);
  background: #f9fafb;
  transition: border-color .2s;
  font-family: inherit;
}

#boty-inp:focus {
  border-color: var(--bp);
  background: #fff;
}

#boty-inp::placeholder {
  color: #9ca3af;
}

#boty-snd {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bp);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
}

#boty-snd:hover {
  background: var(--bpd);
  transform: scale(1.05);
}

/* Footer */
#boty-ftr {
  text-align: center;
  padding: 5px 10px;
  font-size: 10px;
  color: #9ca3af;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

#mem-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: none;
}

#boty-ftr .privacy-link {
  color: rgba(59, 79, 166, .6);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dashed rgba(59, 79, 166, .3);
  font-size: 10px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0;
  font-family: inherit;
}

#boty-ftr .privacy-link:hover {
  color: var(--bp);
}

/* ── MODAL POLÍTICA DE PRIVACIDAD ── */
#boty-privacy-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#boty-privacy-modal.visible {
  display: flex;
}

.pm-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pm-header {
  background: linear-gradient(135deg, #3B4FA6, #2d3d8a);
  padding: 16px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pm-header h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.pm-header .pm-close {
  background: rgba(255, 255, 255, .2);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  aspect-ratio: 1;
}

.pm-tabs {
  display: flex;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
  background: #fafbff;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.pm-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.pm-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 6px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  color: var(--btm);
  border-bottom: 2px solid transparent;
  transition: all .2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.pm-tab.active {
  color: var(--bp);
  border-bottom-color: var(--bp);
  font-weight: 700;
}

.pm-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  font-size: 12px;
  color: #374151;
  line-height: 1.7;
}

.pm-body::-webkit-scrollbar {
  width: 4px;
}

.pm-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.pm-body h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--bp);
  margin: 14px 0 6px;
}

.pm-body h3:first-child {
  margin-top: 0;
}

.pm-body p {
  margin-bottom: 8px;
}

.pm-body ul {
  padding-left: 16px;
  margin-bottom: 8px;
}

.pm-body ul li {
  margin-bottom: 4px;
}

.pm-body .pm-highlight {
  background: rgba(59, 79, 166, .06);
  border-left: 3px solid var(--bp);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 12px;
}

.pm-body .pm-highlight strong {
  color: var(--bp);
}

.pm-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin: 8px 0;
}

.pm-body table th {
  background: rgba(59, 79, 166, .08);
  color: var(--bp);
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
}

.pm-body table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

/* Formulario de derechos ARCO */
.arco-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arco-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--btext);
  margin-bottom: 2px;
  display: block;
}

.arco-form input,
.arco-form select,
.arco-form textarea {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.arco-form input:focus,
.arco-form select:focus,
.arco-form textarea:focus {
  border-color: var(--bp);
}

.arco-send {
  background: var(--bp);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: background .2s;
  margin-top: 4px;
}

.arco-send:hover {
  background: var(--bpd);
}

.pm-footer {
  padding: 12px 20px;
  border-top: 1px solid #f3f4f6;
  flex-shrink: 0;
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.5;
}

/* WhatsApp */
.boty-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 4px 38px;
}

/* ── Círculos de categoría ── */
.cat-circles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  max-width: 300px;
}

.cat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 72px;
  transition: transform .15s;
}

.cat-circle:active {
  transform: scale(.94);
}

.cat-circle .cc-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid rgba(59, 79, 166, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: all .22s;
  box-shadow: 0 2px 8px rgba(59, 79, 166, .1);
}

.cat-circle:hover .cc-ring {
  background: var(--bp);
  border-color: var(--bp);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(59, 79, 166, .35);
}

.cat-circle.selected .cc-ring {
  background: var(--bp);
  border-color: var(--bp);
  box-shadow: 0 4px 14px rgba(59, 79, 166, .4);
}

.cat-circle .cc-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--btext);
  text-align: center;
  line-height: 1.25;
  max-width: 72px;
  letter-spacing: .01em;
}

.cat-circle:hover .cc-label,
.cat-circle.selected .cc-label {
  color: var(--bp);
}

/* ── 4. GALERÍA DE FOTOS ── */
.boty-gallery {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  max-width: 280px;
}

.boty-gallery::-webkit-scrollbar {
  height: 3px;
}

.boty-gallery::-webkit-scrollbar-thumb {
  background: rgba(59, 79, 166, .3);
  border-radius: 3px;
}

.boty-gallery-item {
  flex-shrink: 0;
  width: 110px;
  height: 90px;
  border-radius: 10px;
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(59, 79, 166, .15);
}

.boty-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.boty-gallery-item:hover img {
  transform: scale(1.05);
}

.boty-gallery-item .gal-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  color: #fff;
  font-size: 9px;
  padding: 4px 6px;
  font-weight: 500;
}

/* Placeholder cuando no hay imagen real */
.boty-gallery-item.placeholder {
  background: linear-gradient(135deg, var(--bs), #e0d7ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: default;
}

.boty-gallery-item.placeholder .gi-icon {
  font-size: 22px;
}

.boty-gallery-item.placeholder .gi-txt {
  font-size: 9px;
  color: var(--bp);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* ── 5. TESTIMONIOS ── */
.boty-testimonial {
  background: linear-gradient(135deg, #f5f0ff, #eef0fc);
  border: 1px solid rgba(59, 79, 166, .15);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  max-width: 270px;
}

.boty-testimonial .t-stars {
  color: #f59e0b;
  font-size: 13px;
  margin-bottom: 5px;
}

.boty-testimonial .t-text {
  font-size: 13px;
  color: var(--btext);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 6px;
}

.boty-testimonial .t-author {
  font-size: 11px;
  color: var(--btm);
  display: flex;
  align-items: center;
  gap: 5px;
}

.boty-testimonial .t-badge {
  background: rgba(59, 79, 166, .1);
  color: var(--bp);
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
}

/* ── 6. DISPONIBILIDAD ── */
.boty-cal {
  background: #fff;
  border: 1px solid rgba(59, 79, 166, .15);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  max-width: 270px;
}

.boty-cal .cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.boty-cal .cal-mes {
  font-size: 13px;
  font-weight: 600;
  color: var(--btext);
}

.boty-cal .cal-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bp);
  font-size: 16px;
  padding: 0 4px;
  line-height: 1;
}

.boty-cal .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.boty-cal .cal-dow {
  font-size: 9px;
  color: var(--btm);
  font-weight: 600;
  padding: 2px 0;
}

.boty-cal .cal-day {
  font-size: 11px;
  padding: 4px 2px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  color: var(--btext);
}

.boty-cal .cal-day:hover:not(.busy):not(.past) {
  background: var(--bs);
  color: var(--bp);
}

.boty-cal .cal-day.busy {
  background: #fee2e2;
  color: #ef4444;
  cursor: default;
  font-size: 10px;
}

.boty-cal .cal-day.available {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
}

.boty-cal .cal-day.past {
  color: #d1d5db;
  cursor: default;
}

.boty-cal .cal-day.today {
  border: 1.5px solid var(--bp);
  font-weight: 700;
}

.boty-cal .cal-legend {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--btm);
}

.boty-cal .leg-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.boty-cal .leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ── 7. COTIZACIÓN ── */
.boty-quote {
  background: linear-gradient(135deg, #eef0fc, #f5f0ff);
  border: 1px solid rgba(59, 79, 166, .2);
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
  max-width: 280px;
}

.boty-quote .q-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--bp);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.boty-quote .q-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(59, 79, 166, .08);
  font-size: 13px;
}

.boty-quote .q-row:last-of-type {
  border-bottom: none;
}

.boty-quote .q-label {
  color: var(--btm);
}

.boty-quote .q-val {
  color: var(--btext);
  font-weight: 600;
}

.boty-quote .q-total {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--bp);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.boty-quote .q-total-label {
  font-size: 13px;
  font-weight: 600;
}

.boty-quote .q-total-price {
  font-size: 20px;
  font-weight: 700;
}

.boty-quote .q-send {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}

.boty-quote .q-send:hover {
  background: #1fad55;
}

/* ── 8. TOAST PROACTIVO ── */
#boty-toast {
  position: fixed;
  bottom: 106px;
  right: 28px;
  background: #fff;
  border: 1px solid rgba(59, 79, 166, .15);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(59, 79, 166, .2);
  padding: 12px 14px;
  max-width: 260px;
  z-index: 99997;
  display: none;
  gap: 10px;
  align-items: flex-start;
  animation: toast-in .4s cubic-bezier(.16, 1, .3, 1);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#boty-toast .toast-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

#boty-toast .toast-body {
  flex: 1;
  min-width: 0;
}

#boty-toast .toast-msg {
  font-size: 13px;
  color: var(--btext);
  line-height: 1.4;
}

#boty-toast .toast-msg strong {
  color: var(--bp);
}

#boty-toast .toast-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

#boty-toast .toast-btn {
  background: var(--bp);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

#boty-toast .toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--btm);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* ── 9. PANEL DE ADMINISTRACIÓN ── */
#boty-admin {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#boty-admin.visible {
  display: flex;
}

#boty-admin-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#boty-admin-box h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--bp);
  margin-bottom: 4px;
}

#boty-admin-box .adm-sub {
  font-size: 12px;
  color: var(--btm);
  margin-bottom: 20px;
}

.adm-section {
  margin-bottom: 20px;
}

.adm-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--btext);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f3f4f6;
}

.adm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.adm-row label {
  font-size: 12px;
  color: var(--btm);
  min-width: 130px;
}

.adm-row input {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.adm-row input:focus {
  border-color: var(--bp);
}

.adm-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.adm-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.adm-btn.save {
  background: var(--bp);
  color: #fff;
}

.adm-btn.save:hover {
  background: var(--bpd);
}

.adm-btn.cancel {
  background: #f3f4f6;
  color: var(--btm);
}

.adm-btn.cancel:hover {
  background: #e5e7eb;
}

.adm-pin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 20px;
}

.adm-pin input {
  width: 140px;
  text-align: center;
  font-size: 24px;
  letter-spacing: .3em;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
}

.adm-pin input:focus {
  border-color: var(--bp);
  outline: none;
}

/* ── MÓVIL: ajuste de tamaños para pantallas pequeñas ── */
@media (max-width: 479px) {

  /* Ocultar botón flotante en móvil cuando el panel está abierto */
  #boty-btn.open {
    display: none !important;
  }

  /* Botón flotante más compacto */
  #boty-btn {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 16px;
  }

  /* Burbuja lanzador ajustada */
  #boty-launcher-bubble {
    bottom: 86px;
    right: 12px;
    max-width: 190px;
  }

  /* Círculos de categoría más pequeños en móvil */
  .cat-circles {
    gap: 10px;
    max-width: 260px;
  }

  .cat-circle {
    width: 58px;
  }

  .cat-circle .cc-ring {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .cat-circle .cc-label {
    font-size: 9px;
    max-width: 58px;
  }

  /* Botones de opciones (qual-btn) más compactos */
  .qual-options {
    max-width: 100%;
  }

  .qual-btn {
    padding: 8px 11px;
    border-radius: 10px;
  }

  .qual-btn .qb-icon {
    font-size: 16px;
  }

  .qual-btn .qb-label {
    font-size: 12px;
  }

  .qual-btn .qb-sub {
    font-size: 10px;
  }

  /* Quick reply buttons móvil */
  #boty-qr .bqrb,
  .bqrb {
    border-radius: 12px !important;
    font-size: 11px !important;
    padding: 5px 10px !important;
  }
}