
/* ==============================
   WIDGET WHATSAPP
   ============================== */

/* OCULTAR WHATSAPP AL INICIO */
#nc-whatsapp-root {
  display: none;
}

#nc-whatsapp-root .nc-floating-area {
  position: fixed;
  right: 22px;
  bottom: 110px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: Arial, sans-serif;
}

#nc-whatsapp-root .nc-float-btn.nc-whatsapp-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,.25);
  transition: transform .25s ease, box-shadow .25s ease;
  background: linear-gradient(135deg, #25D366, #128C7E);
}

#nc-whatsapp-root .nc-float-btn.nc-whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
}

#nc-whatsapp-root .nc-float-btn.nc-whatsapp-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
}

#nc-whatsapp-root .nc-pulse::before,
#nc-whatsapp-root .nc-pulse::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .42);
  animation: ncWhatsappPulse 1.8s infinite;
  z-index: 1;
}

#nc-whatsapp-root .nc-pulse::after {
  animation-delay: .6s;
}

@keyframes ncWhatsappPulse {
  0% { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.65); opacity: 0; }
}

#nc-whatsapp-root .nc-label {
  display: none;
}

/* MODAL WHATSAPP */
#ncWhatsappModal {
  position: fixed;
  right: 105px;
  bottom: 110px;
  width: 390px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0,0,0,.28);
  z-index: 999999;
  overflow: hidden;
  display: none;
  font-family: Arial, sans-serif;
}

#ncWhatsappModal.active {
  display: block;
  animation: ncShow .25s ease;
}

@keyframes ncShow {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

#ncWhatsappModal .nc-header {
  background: linear-gradient(135deg, #075E54, #128C7E, #25D366);
  color: #fff;
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

#ncWhatsappModal .nc-header-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  object-fit: contain;
}

#ncWhatsappModal .nc-header-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

#ncWhatsappModal .nc-header-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

#ncWhatsappModal .nc-header-text p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: .95;
}

#ncWhatsappModal .nc-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

#ncWhatsappModal .nc-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35ff75;
  box-shadow: 0 0 0 5px rgba(53,255,117,.18);
}

#ncWhatsappModal .nc-status-dot.offline {
  background: #ff9800;
  box-shadow: 0 0 0 5px rgba(255,152,0,.20);
}

#ncWhatsappModal .nc-status-text.offline {
  color: #ffe0b2;
}

#ncWhatsappModal .nc-close {
  margin-left: auto;
  background: rgba(255,255,255,.18);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

#ncWhatsappModal .nc-body {
  padding: 18px;
  background: #fbfcfd;
}

#ncWhatsappModal .nc-intro-text {
  font-size: 13px;
  color: #444;
  margin-bottom: 15px;
  line-height: 1.45;
}

#ncWhatsappModal .nc-contact-card {
  border: 1px solid #e8f3ee;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: .25s ease;
}

#ncWhatsappModal .nc-contact-card:hover {
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(18,140,126,.16);
}

#ncWhatsappModal .nc-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef5f1;
}

#ncWhatsappModal .nc-contact-info h4 {
  margin: 0;
  font-size: 15px;
  color: #111;
}

#ncWhatsappModal .nc-contact-info span {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 3px;
}

#ncWhatsappModal .nc-contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 8px 13px;
  border-radius: 18px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

#ncWhatsappModal .nc-contact-info a img {
  width: 15px;
  height: 15px;
}

@media (max-width:600px) {
  #nc-whatsapp-root .nc-floating-area {
    right: 22px;
    bottom: 105px;
  }

  #ncWhatsappModal {
    right: 12px;
    left: 12px;
    bottom: 180px;
    width: auto;
  }
}

/* FORMULARIO PROFESIONAL WHATSAPP */
.nc-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 8px 13px;
  border-radius: 18px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.nc-contact-btn img {
  width: 15px;
  height: 15px;
}

.nc-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
}

.nc-form-overlay.active {
  display: flex;
}

.nc-form-box {
  width: 340px;
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.30);
  position: relative;
}

.nc-form-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #f1f1f1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.nc-form-logo {
  width: 70px;
  height: auto;
  margin-bottom: 12px;
}

.nc-form-box h3 {
  margin: 0;
  font-size: 20px;
  color: #111;
}

.nc-form-box p {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 8px 0 18px;
}

.nc-form-box input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.nc-form-box input:focus {
  border-color: #25D366;
}

.nc-send-btn {
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 16px;
  padding: 13px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.nc-send-btn img {
  width: 20px;
  height: 20px;
}

