/* POP-UP DE BIENVENIDA */
#asistente-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#asistente-popup.visible {
  opacity: 1;
  visibility: visible;
}
#asistente-popup-contenido {
  position: relative;
  background: white;
  padding: 30px;
  padding-top: 240px;
  border-radius: 16px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
#asistente-imagen-popup {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  border: 3px solid white;
}
#asistente-btn-cerrar {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
#asistente-btn-cerrar:hover { background: #2980b9; }
#asistente-btn-cerrar:disabled { background: #bdc3c7; cursor: not-allowed; }

/* BARRA DE TEXTO */
#asistente-barra {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 100px;
  background: #2c3e50;
  color: white;
  padding: 14px 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  font-size: 18px;
  white-space: nowrap;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  transform: translateX(100%);
}
#asistente-barra.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
#asistente-contenedor-texto {
  display: inline-block;
  padding: 0 20px;
  transition: transform 0.3s ease-out;
}
.asistente-palabra-normal { opacity: 0.85; }
.asistente-palabra-actual {
  font-weight: bold;
  font-size: 1.5em;
  opacity: 1;
}

/* BOTÓN DEL ASISTENTE */
#asistente-boton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 9999;
  border: 2px solid white;
  transition: transform 0.2s ease;
}
#asistente-boton:hover { transform: scale(1.1); }
#asistente-boton.activo {
  box-shadow: 0 0 0 3px #2ecc71, 0 4px 8px rgba(0,0,0,0.3);
}