/* ============================================
   FLOATING WHATSAPP - Widget Flotante
   ============================================ */

#floating-whatsapp-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Chat Popup */
.chat-popup {
  margin-bottom: 1rem;
  width: 20rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border-radius: 0.375rem;
  border: 1px solid var(--color-livo-green);
  background-color: #0F1D14;
}

@media (min-width: 640px) {
  .chat-popup {
    width: 24rem;
  }
}

.chat-header {
  background-color: var(--color-livo-green);
  border-bottom: 1px solid rgba(197, 168, 128, 0.4);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f4f1ea;
}

.chat-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  position: relative;
}

.chat-avatar-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-livo-green-deeper);
  border: 1px solid var(--color-livo-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-livo-gold-light);
  font-family: var(--font-serif);
}

.chat-status-dot {
  width: 0.75rem;
  height: 0.75rem;
  background-color: #6ee68a;
  border: 2px solid var(--color-livo-green-deeper);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 0;
}

.chat-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
}

.chat-subtitle {
  font-size: 10px;
  color: #a3aba0;
  margin-top: 0.25rem;
}

.chat-close {
  color: #a3aba0;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.125rem;
}

.chat-close:hover {
  color: #f4f1ea;
}

/* Chat Body */
.chat-body {
  padding: 1rem;
  background-color: #0A120D;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 12px;
}

.chat-message {
  background-color: #0F1D14;
  color: #f4f1ea;
  padding: 0.875rem;
  border-radius: 0.125rem;
  border: 1px solid var(--color-livo-green);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.chat-message-name {
  font-weight: 600;
  font-size: 11px;
  color: var(--color-livo-gold-light);
}

.chat-message-text {
  color: #b2bbae;
}

.chat-quick-messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.chat-quick-btn {
  width: 100%;
  text-align: left;
  background-color: #0F1D14;
  color: #d4d4d4;
  padding: 0.625rem;
  border-radius: 0.125rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(27, 48, 34, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.chat-quick-btn:hover {
  background-color: rgba(27, 48, 34, 0.6);
  border-color: rgba(197, 168, 128, 0.6);
  transform: translateX(0.25rem);
}

.chat-quick-btn .whatsapp-icon {
  color: #6ee68a;
}

/* Chat Footer */
.chat-footer {
  padding: 0.75rem;
  background-color: #0F1D14;
  border-top: 1px solid var(--color-livo-green);
  text-align: center;
}

.chat-footer-btn {
  display: block;
  background-color: #233226;
  color: #d4d4d4;
  border: 1px solid var(--color-livo-green);
  font-weight: 500;
  padding: 0.625rem;
  border-radius: 0.125rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.chat-footer-btn:hover {
  background-color: #2f4233;
  border-color: var(--color-livo-gold);
}

/* Floating Button */
.whatsapp-float-btn {
  position: relative;
  background-color: #233226;
  color: #fff;
  border: 1px solid rgba(197, 168, 128, 0.6);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.whatsapp-float-btn:hover {
  background-color: #2f4233;
  transform: scale(1.1);
}

.whatsapp-float-btn:active {
  transform: scale(0.95);
}

.whatsapp-ring {
  position: absolute;
  top: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  background-color: var(--color-livo-gold);
  border: 2px solid #0A120D;
  border-radius: 50%;
  animation: ping 1.5s ease-in-out infinite;
}

.whatsapp-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  background-color: var(--color-livo-gold);
  border: 2px solid #0A120D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #0A120D;
}

.whatsapp-icon {
  font-size: 1.75rem;
  color: #6ee68a;
}
