/* Moca chat widget — CafecitoWeb. Todas las clases usan el prefijo moca- */
/* Sin botón flotante: el chat se abre desde el menú (☕ Moca) o desde la foto de Moca en el home */
.moca-hero-btn { margin-top: 14px; }
.moca-panel {
  position: fixed;
  right: 20px;
  bottom: 96px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 140px);
  min-height: 320px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(6, 35, 26, 0.30);
  z-index: 99999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.moca-panel.moca-open { display: flex; }
.moca-header {
  background: linear-gradient(135deg, #0e6b3c, #12904e);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.moca-header img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  background: #f0faf4;
}
.moca-header-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.moca-header-sub {
  font-size: 12px;
  opacity: 0.9;
}
.moca-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.moca-close:hover { background: rgba(255, 255, 255, 0.18); }
.moca-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  background: #f7faf8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.moca-msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}
.moca-msg a { color: #0e6b3c; font-weight: 600; }
.moca-msg-moca {
  align-self: flex-start;
  background: #eef5f0;
  color: #0f1a14;
  border-bottom-left-radius: 4px;
}
.moca-msg-user {
  align-self: flex-end;
  background: #6b4226;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.moca-typing {
  align-self: flex-start;
  background: #eef5f0;
  color: #55645b;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  font-style: italic;
}
.moca-call-btn {
  display: inline-block;
  margin-top: 8px;
  background: #12904e;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.moca-call-btn:hover { background: #0e6b3c; }
.moca-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 10px;
  background: #f7faf8;
  flex-shrink: 0;
}
.moca-chip {
  background: #fff;
  border: 1.5px solid #0e6b3c;
  color: #0e6b3c;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.moca-chip:hover { background: #0e6b3c; color: #fff; }
.moca-inputbar {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #fff;
  border-top: 1px solid #dfe9e2;
  flex-shrink: 0;
}
.moca-input {
  flex: 1;
  border: 1.5px solid #dfe9e2;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.moca-input:focus { border-color: #12904e; }
.moca-send {
  background: #12904e;
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.moca-send:hover { background: #0e6b3c; }
@media (max-width: 480px) {
  .moca-panel {
    right: 10px;
    left: 10px;
    bottom: 82px;
    width: auto;
    max-width: none;
    height: 60vh;
  }
}
