/* ==============================
   WIDGET CHAT BOT
   ============================== */
#nc-chatbot-root .nc-floating-area {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 999998;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: Arial, sans-serif;
}

#nc-chatbot-root .nc-float-btn.nc-chat-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  background: linear-gradient(135deg, #0b3d91, #1683d8);
}

#nc-chatbot-root .nc-float-btn.nc-chat-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

#nc-chatbot-root .nc-float-btn.nc-chat-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
}

#nc-chatbot-root .nc-float-btn.nc-chat-btn::before,
#nc-chatbot-root .nc-float-btn.nc-chat-btn::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(22, 131, 216, 0.42);
  animation: ncChatPulse 1.8s infinite;
  z-index: 1;
}

#nc-chatbot-root .nc-float-btn.nc-chat-btn::after {
  animation-delay: 0.6s;
}

@keyframes ncChatPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

#nc-chatbot-root .nc-label {
  display: none;
}

/* MODAL CHAT BOT */
#ncChatModal {
  position: fixed;
  right: 105px;
  bottom: 24px;
  width: 390px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
  z-index: 999998;
  overflow: hidden;
  display: none;
  font-family: Arial, sans-serif;
}

#ncChatModal.active {
  display: block;
  animation: ncShowChat 0.25s ease;
}

@keyframes ncShowChat {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ncChatModal .nc-header.nc-chat-header {
  background: linear-gradient(135deg, #082b66, #0b3d91, #1683d8);
  color: #fff;
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

#ncChatModal .nc-header-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  object-fit: contain;
}

#ncChatModal .nc-header-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

#ncChatModal .nc-header-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

#ncChatModal .nc-header-text p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.95;
}

#ncChatModal .nc-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

#ncChatModal .nc-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35ff75;
  box-shadow: 0 0 0 5px rgba(53, 255, 117, 0.18);
}

#ncChatModal .nc-status-dot.offline {
  background: #ff9800;
  box-shadow: 0 0 0 5px rgba(255, 152, 0, 0.2);
}

#ncChatModal .nc-status-text.offline {
  color: #ffe0b2;
}

#ncChatModal .nc-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

#ncChatModal .nc-body {
  padding: 18px;
  background: #fbfcfd;
}

#nc-chatbot-root .nc-chat-box {
  height: 340px;
  overflow-y: auto;
  padding: 15px;
  background: linear-gradient(180deg, #f2f7ff, #ffffff);
}

#nc-chatbot-root .nc-msg {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
}

#nc-chatbot-root .nc-bot {
  background: #ffffff;
  color: #222;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#nc-chatbot-root .nc-user {
  background: linear-gradient(135deg, #0b3d91, #1683d8);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

#nc-chatbot-root .nc-chat-input {
  display: flex;
  border-top: 1px solid #e5eaf1;
  background: #fff;
}

#nc-chatbot-root .nc-chat-input input {
  flex: 1;
  border: none;
  padding: 15px;
  outline: none;
  font-size: 13px;
}

#nc-chatbot-root .nc-chat-input button {
  border: none;
  background: #0b3d91;
  color: white;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
}

#nc-chatbot-root .nc-small-note {
  padding: 10px 15px;
  background: #eef6ff;
  color: #345;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 600px) {
  #nc-chatbot-root .nc-floating-area {
    right: 22px;
    bottom: 24px;
  }

  #ncChatModal {
    right: 12px;
    left: 12px;
    bottom: 105px;
    width: auto;
  }
}

.nc-typing {
  display: none;
  padding: 8px 16px;
  font-size: 12px;
  color: #128c7e;
  font-weight: 700;
}

.nc-card-grid {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.nc-option-card {
  display: flex;
  gap: 10px;
  text-align: left;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  transition: 0.25s ease;
}

.nc-option-card:hover {
  border-color: #128c7e;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.nc-option-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.nc-option-card h4 {
  margin: 0 0 5px;
  font-size: 13px;
  color: #111;
}

.nc-option-card p {
  margin: 0;
  font-size: 12px;
  color: #555;
  line-height: 1.35;
}

.nc-final-box {
  background: #fff;
  border: 1px solid #e5f3ee;
  border-radius: 16px;
  padding: 14px;
  margin: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.nc-final-box h4 {
  margin: 0 0 6px;
  color: #111;
}

.nc-final-box p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #555;
}

.nc-final-actions {
  display: grid;
  gap: 8px;
}

.nc-final-actions a {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  text-decoration: none;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.nc-rating {
  margin-top: 12px;
  text-align: center;
}

.nc-rating p {
  margin-bottom: 8px;
  font-weight: 700;
}

.nc-rating button {
  border: none;
  background: #fff7d6;
  color: #f5a400;
  border-radius: 10px;
  padding: 7px 9px;
  margin: 2px;
  cursor: pointer;
  font-size: 13px;
}

.nc-dots {
  display: inline-block;
  animation: ncDots 1s infinite;
}

@keyframes ncDots {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.nc-type-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 10px;
}

.nc-type-options button {
  border: 1px solid #dceee8;
  background: #ffffff;
  border-radius: 16px;
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.nc-type-options button strong {
  display: block;
  color: #075e54;
  font-size: 14px;
  margin-bottom: 4px;
}

.nc-type-options button span {
  display: block;
  color: #666;
  font-size: 12px;
}

.nc-confirm-box-premium {
  background: #ffffff;
  border: 1px solid #dceee8;
  border-radius: 18px;
  padding: 16px;
  margin: 12px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.nc-confirm-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.nc-confirm-header > span {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.nc-confirm-header h4 {
  margin: 0;
  color: #111;
  font-size: 15px;
}

.nc-confirm-header p {
  margin: 3px 0 0;
  color: #666;
  font-size: 12px;
}

.nc-confirm-data {
  display: grid;
  gap: 8px;
}

.nc-confirm-data div {
  background: #f8fbfa;
  border: 1px solid #eef5f2;
  border-radius: 12px;
  padding: 9px 10px;
}

.nc-confirm-data span {
  display: block;
  font-size: 11px;
  color: #128c7e;
  font-weight: 800;
  margin-bottom: 3px;
}

.nc-confirm-data strong {
  font-size: 13px;
  color: #222;
  font-weight: 700;
}

.nc-confirm-question {
  margin: 13px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #111;
}
.nc-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.nc-confirm-actions button {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 11px 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .25s ease;
}

.nc-confirm-actions button:first-child {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18,140,126,.25);
}

.nc-confirm-actions button:last-child {
  background: #f1f4f3;
  color: #333;
  border: 1px solid #d9e5e1;
}

.nc-confirm-actions button:hover {
  transform: translateY(-2px);
}

/* CAPAS BASE */
#nc-chatbot-root {
  z-index: 999998;
}

#nc-whatsapp-root {
  z-index: 999997;
}

/* MODALES */
#ncChatModal {
  z-index: 1000002;
}

#ncWhatsappModal {
  z-index: 1000001;
}

/* CUANDO EL CHATBOT ESTÁ ABIERTO, QUEDA ENCIMA */
#ncChatModal.active {
  z-index: 1000005;
}

/* CUANDO WHATSAPP ESTÁ ABIERTO, QUEDA ENCIMA */
#ncWhatsappModal.active {
  z-index: 1000006;
}

/* MODO CELULAR */
@media (max-width: 600px) {
  #ncChatModal.active {
    z-index: 1000005;
  }

  #ncWhatsappModal.active {
    z-index: 1000006;
  }
}