.contact-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: visible;
  width: 60px;
}

.contact-icon {
  padding: 12px 16px;
  font-size: 22px;
  border-left: 3px solid #4CAF50;
  text-align: center;
}

.icon-close {
  display: none;
}

.contact-options {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  text-align: center;
}

.contact-tab.open {
  width: 75px;
}

.contact-tab.open .contact-options {
  max-height: 200px;
}

.contact-tab.open .icon-open {
  display: none;
}

.contact-tab.open .icon-close {
  display: block;
}

.option {
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  border-top: 1px solid #eee;
  background: #fafafa;
  transition: background 0.2s ease;
  font-size: 16px;
}

.option:hover {
  background: #f0f0f0;
}

.whatsapp {
  color: #25D366;
}

.chat {
  color: #0078ff;
}
/* Tooltip base */
.option {
  position: relative;
}

/* Caja del tooltip */
.option::after {
  content: attr(data-tooltip);
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translate(-100%, -50%);
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Flechita del tooltip */
.option::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Mostrar tooltip al hacer hover */
.option:hover::after,
.option:hover::before {
  opacity: 1;
}

#chat-agent {
    position: fixed;
    bottom: 26%;
    right: 50px;
    background-color: #fff;
    border-radius: 20px;
    padding: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
    font-size: 14px;
    color: #1E1E20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2147483646;
    animation: fadeIn 0.5s ease-in-out;
    max-width: 250px;
    cursor: pointer;
    line-height: 1.5;
}
.chat-agent > div {
    margin-right: 10px;
}

/* Oculta el launcher original de Oct8ne */
#livechat-wrapper {display: none !important; }

/* Ocultar el launcher original de Oct8ne */
#oct8ne-widget-launcher,
.oct8ne-launcher {
  display: none !important;
}

/* Contenedor */
#oct8ne-custom-launcher {
  position: fixed;
  bottom: 18%;
  right: 30px;
  cursor: pointer;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Burbuja */
#oct8ne-custom-launcher .bubble {
  width: 60px;
  height: 60px;
  background: #666666;
  border: 2px solid #cfcfcf;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.25s ease;
  position: relative;
  z-index: 2;
}

/* Efecto pulse (más visible y sin interferencias) */
#oct8ne-custom-launcher .pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(225,225,225,0.6);
  border-radius: 50%;
  animation: pulse 2.8s infinite ease-out;
  z-index: 1;
  pointer-events: none; /* evita solapamientos y clics */
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { opacity: 0; }
}

/* Tooltip corregido */
#oct8ne-custom-launcher .label {
  background: #333;
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  white-space: nowrap;
  position: absolute;
  right: 70px; /* separación real respecto a la burbuja */
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  transition: all 0.25s ease;
}

/* Hover */
#oct8ne-custom-launcher:hover .bubble {
  transform: scale(1.07);
}

#oct8ne-custom-launcher:hover .label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

#oct8ne-viewer-iframe .powered-by-oct8ne-new { display: none !important; }

#backtotop {
    bottom: 2%;
    border-radius: 50%;
}

#wachat a {
    right: 0 !important;
    top: 10% !important;
    bottom: initial;
}

.whatsapp-desktop { width: 60px !important; }

.whatsapp img {
    margin-top: -5px;
}

.whatsapp .phone-body > p { color: #666666; } 

@media (max-width: 767px) {
    #oct8ne-custom-launcher {
        right: 15px;
    }

    .chat-agent { display: none !important; }
}