/* ===== BOTÓN FLOTANTE VERTICAL CORREGIDO ===== */
.feedback-toggle {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl; /* Texto vertical */
  background: #26d48c;
  color: white;
  padding: 12px 10px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10000;
  animation: blink 1.5s infinite;
  text-align: center;
  white-space: nowrap;
}

/* Animación de parpadeo */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Ocultar elementos */
.hidden {
  display: none !important;
}

/* ===== CUADRO EMERGENTE DE TESTIMONIO ===== */
.chat-box {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 340px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
}

.chat-header {
  background: #1842B6;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-logo {
  height: 60px;
}

.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
}

.chat-content {
  padding: 15px;
}

.chat-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  font-weight: bold;
  text-align: center;
}

#chat-name,
#chat-message {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 10px;
}

#chat-message {
  height: 80px;
  resize: none;
}

.chat-send {
  margin-top: 10px;
  background: #0057b8;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  transition: background 0.3s ease;
}

.chat-send:hover {
  background: #003f88;
}

/* ===== MARQUESINA DE MENSAJES ===== */
#marquesina-container {
  background-color: #f2f2f2;
  border-top: 2px solid #0057b8;
  padding: 10px 0;
  font-size: 16px;
  color: #333;
  font-weight: bold;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

#marquesina-text {
  white-space: nowrap;
}

/* ===== SECCIÓN DE NOTAS VISUALES ===== */
#nota-strip {
  position: relative;
  height: 60px; /* Altura fija para un solo mensaje a la vez */
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nota-cliente {
  position: absolute;
  background-color: #e6f0ff;
  border-left: 5px solid #0057b8;
  padding: 15px 18px;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  opacity: 0;
  white-space: nowrap;
  transform: translateX(-100%);
  animation: slideInOut 5s ease-in-out forwards;
  transition: transform 0.2s;
}

.nota-cliente:hover {
  transform: scale(1.01);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nota-cliente strong {
  color: #0057b8;
  font-size: 15px;
  margin-right: 5px;
}

/* ANIMACIÓN DE DESLIZAMIENTO */
@keyframes slideInOut {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  10% {
    opacity: 1;
    transform: translateX(0%);
  }
  90% {
    opacity: 1;
    transform: translateX(0%);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ===== RESPONSIVE PARA MÓVIL ===== */
@media screen and (max-width: 480px) {
  .chat-box {
    right: 10px;
    bottom: 20px;
    top: auto;
    transform: none;
    width: 90%;
  }

  .feedback-toggle {
    top: auto;
    bottom: 80px;
    transform: none;
    width: auto;
    border-radius: 12px;
    rotate: 0deg;
  }
}
