.asistente-panel {
  overflow: clip;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--relief);
}

.asistente-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: clamp(22px, 3vw, 44px);
  color: #f8f7ef;
  background: radial-gradient(ellipse at 88% 0%, #28443b, transparent 54%), var(--map-water);
  border-bottom: 1px solid #a3f7cd55;
}

.asistente-cabecera h2 { margin: 0 0 8px; color: inherit; }
.asistente-cabecera p { max-width: 68ch; margin: 0; color: #cfded6; }
.asistente-cabecera .text-button { color: #a3f7cd; }
.asistente-cuerpo { padding: clamp(17px, 2.7vw, 37px); }
.asistente-panel [hidden] { display: none; }

.asistente-sugerencias {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.asistente-sugerencias button {
  min-height: 48px;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--hair);
  border-radius: 13px;
  font: inherit;
  font-size: .86rem;
  color: var(--ink);
  background: var(--face);
  cursor: pointer;
}

.asistente-sugerencias button:hover { border-color: #94ab9a; color: var(--brand); }
.asistente-formulario { display: grid; gap: 12px; }
.asistente-formulario textarea {
  width: 100%;
  min-height: 77px;
  padding: 13px 15px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 13px;
  box-shadow: var(--inset);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.asistente-acciones { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.asistente-enviar {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #143b2e;
  border-radius: 12px;
  color: #fffdf5;
  background: #234c3e;
  box-shadow: 0 3px 13px #234c3e30, inset 0 1px #a3f7cd55;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.asistente-enviar:hover { background: #2c5e4d; }
.asistente-enviar:disabled { opacity: .58; cursor: wait; }
.asistente-enviar span { margin-left: .3rem; color: var(--neon); font-size: 1.2em; }
.asistente-estado { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.asistente-estado:empty { margin: 0; }

.asistente-mensajes { display: grid; gap: 14px; margin-bottom: 15px; }
.asistente-pregunta, .asistente-respuesta { padding: clamp(14px, 2vw, 24px); border-radius: 14px; overflow-wrap: anywhere; }
.asistente-pregunta { background: var(--recess); }
.asistente-respuesta { border: 1px solid var(--hair); }
.asistente-pregunta h3, .asistente-respuesta h3 { margin: 0 0 7px; font-size: .9rem; }
.asistente-pregunta p:last-child, .asistente-respuesta p:last-child { margin-bottom: 0; }
.asistente-respuesta p, .asistente-pregunta p { max-width: 85ch; white-space: pre-line; }
.asistente-tabla { overflow-x: auto; margin: 16px 0; }
.asistente-tabla th, .asistente-tabla td { padding: 9px 12px; }
.asistente-tabla th { color: var(--ink); background: var(--recess); }
.asistente-limites, .asistente-fuentes { margin-top: 14px; font-size: .88rem; }
.asistente-limites h4, .asistente-fuentes h4 { margin: 0 0 5px; }
.asistente-limites ul { margin-block: 0; padding-left: 18px; }
.asistente-fuentes ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 690px) {
  .asistente-sugerencias { grid-template-columns: minmax(0, 1fr); }
}
