/* Agent Busqueda Styles */

.CG_maincontent {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background-color: #e5ddd5;     
  background-image: url('../IMG/home/fondoChat1.webp');
  background-size: 450px; 
  background-repeat: repeat;
  opacity: 0.85;
}


.CG_content {
  padding: 22px 22px 22px;
  width: 100%;
  max-width: var(--content-max-w);
  margin: 0 auto;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-height: 0;
}

.CG_content::-webkit-scrollbar {
  display: none;
}

.CG_hero h1 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.CG_hero p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

#AB_BoxChat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 10px;
}

.CG_message {
  max-width: min(78%, 520px);
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  line-height: 1.35;
  word-break: break-word;
  white-space: pre-wrap;
  /* Efecto Glassmorphism */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.CG_message--system {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.85); /* Blanco translúcido por defecto */
    color: #1e293b; /* Gris oscuro premium */
    border-top-left-radius: 4px;
    border-bottom-left-radius: 18px;
}

/* Colores específicos por agente con transparencia y bordes sutiles */
.agent--secretaria {
    background: rgba(255, 235, 238, 0.85) !important; /* Rosa suave translúcido */
    border: 1px solid rgba(255, 205, 210, 0.5) !important;
}

.agent--experto_alquiler_venta {
    background: rgba(225, 245, 254, 0.85) !important; /* Azul suave translúcido */
    border: 1px solid rgba(179, 229, 252, 0.5) !important;
}

.CG_message--user {
  align-self: flex-end;
  background: rgba(220, 248, 198, 0.9);
  color: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(193, 234, 159, 0.6);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 18px;
}

.CG_message--typing {
  align-self: flex-start;
  background: #f8fafc;
  color: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-style: italic;
  box-shadow: none;
}

.CG_message--user::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 10px;
  width: 0;
  height: 0;
  border-left: 10px solid #dcf8c6;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

@media (max-width: 520px) {
  .CG_content {
    padding: 14px 12px 12px;
  }
}
