/* Asistente (/asistente) */
.as-encabezado { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.as-encabezado h1 { margin: 0 0 4px; }
.as-encabezado p { margin: 0 0 12px; color: #555; }
.as-chat { display: flex; flex-direction: column; gap: 12px; min-height: 240px; max-height: calc(100vh - 340px); overflow-y: auto;
  padding: 12px; border: 1px solid #ddd; border-radius: 6px; background: #fafafa; }
.as-vacio { color: #666; }
.as-vacio p { margin: 0 0 8px; }
.as-ejemplo { display: block; margin: 6px 0; padding: 6px 10px; border: 1px solid #c5cae9; border-radius: 16px; background: #fff; color: #283593; cursor: pointer; text-align: left; }
.as-ejemplo:hover { background: #e8eaf6; }
.as-msg { max-width: 85%; padding: 10px 14px; border-radius: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.as-msg p { margin: 0 0 8px; }
.as-msg p:last-child { margin-bottom: 0; }
.as-msg pre { background: #263238; color: #eceff1; padding: 10px; border-radius: 4px; overflow-x: auto; font-size: 12px; }
.as-msg code { font-family: Consolas, Menlo, monospace; font-size: 12px; }
.as-msg :not(pre) > code { background: #eceff1; padding: 1px 4px; border-radius: 3px; }
.as-msg ul { margin: 4px 0 8px 18px; padding: 0; }
.as-yo { align-self: flex-end; background: #3f51b5; color: #fff; }
.as-ia { align-self: flex-start; background: #fff; border: 1px solid #e0e0e0; }
.as-pensando { color: #777; }
.as-puntos i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: #9fa8da; animation: as-p 1s infinite; }
.as-puntos i:nth-child(2) { animation-delay: .15s; }
.as-puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes as-p { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.as-pasos { margin-bottom: 8px; font-size: 12px; color: #555; }
.as-pasos ul { margin-top: 4px; }
.as-error-paso { color: #c62828; }
.as-error { margin-top: 6px; padding: 6px 10px; border-left: 3px solid #c62828; background: #ffebee; color: #b71c1c; border-radius: 3px; }
.as-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.as-form textarea { flex: 1; resize: vertical; padding: 8px; font: inherit; border: 1px solid #bbb; border-radius: 6px; }
.as-pie { font-size: 12px; color: #777; margin-top: 6px; }
.as-boton-lleno { background: #3f51b5; border-color: #3f51b5; color: #fff; }
