/* ==========================================================================
   ARTHUR v189 · LAS 12 APPS DE ARTHUR (solo en los subdominios *.arthuragentAI.com)
   Estilos de la marca encima del mismo Arthur: la A dorada, el nombre y el color plano
   de cada app, el botón «Planes» en oro metálico y la barra de la app con el rol de Arthur.
   No cambia el motor ni arthuragentAI.com. --app = color de la app · --tinta = trazo oscuro.
   ========================================================================== */
html.app189 { --oro: linear-gradient(135deg, #b8860b 0%, #f3d77a 30%, #DAA521 55%, #f7e3a0 75%, #c9971c 100%); }
html.app189 #app189m, html.app189 #app189m *, #app189r, #app189r *, #app189p, #app189p *, #app189a, #app189a * { font-family: "Outfit", "Segoe UI", "Noto Sans", system-ui, sans-serif !important; letter-spacing: normal !important; box-sizing: border-box; }

/* ---------- cabezote: la A de Arthur + icono y nombre de la app ---------- */
html.app189 .logo-container .logo-title { display: none !important; }
html.app189 .logo-container { display: flex !important; align-items: center; gap: 10px; text-decoration: none; }
#app189m { display: inline-flex; align-items: center; gap: 10px; color: #e0f7fa; white-space: nowrap; min-width: 0; }
#app189m b { font-size: 18px; font-weight: 600; }
#app189m .sep { width: 1px; height: 24px; background: rgba(224, 247, 250, .25); flex: 0 0 auto; }
#app189m .ico { width: 30px; height: 30px; border-radius: 10px 4px 10px 4px; background: var(--app); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
#app189m .nom { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
html.app189 .header { box-shadow: inset 0 -3px 0 var(--app) !important; }

/* ---------- «Planes» en oro metálico, como la A ---------- */
html.app189 #v121Planes { background: var(--oro) !important; border: 1px solid #f7e3a0 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 60, 0, .35) !important; color: #1a1200 !important; font-weight: 700 !important; }
html.app189 #v121Planes svg { color: #1a1200 !important; stroke: currentColor; }

/* ---------- la barra de la app reemplaza «Servicios» y los 12 botones ---------- */
html.app189 body.v121 #v121Bar { display: none !important; }
html.app189 body.v121 #apBar { display: none !important; }
#app189r { display: none; }
html.app189 body.v121-svc #app189r { display: flex; align-items: center; gap: 14px; margin: 14px 0 12px; padding: 10px 14px; border: 1px solid rgba(0, 229, 255, .16); border-radius: 16px 6px 16px 6px; background: #071320; color: #e0f7fa; }
@media (min-width: 700px) { html.app189 body.v121.v121-svc > #app189r { grid-column: 2 / 5; grid-row: 2; } }
#app189r .ico { width: 40px; height: 40px; border-radius: 12px 4px 12px 4px; background: var(--app); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
#app189r .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
#app189r .nom { margin: 0; font-size: 17px; line-height: 1.2; font-weight: 600; color: #e0f7fa; }
#app189r .rol { margin: 0; font-size: 14px; line-height: 1.4; color: #b9d0da; }
#app189r .est { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px 4px 12px 4px; background: #0d1d2c; font-size: 13.5px; color: #8fe9f5; white-space: nowrap; flex: 0 0 auto; }
#app189r .est i, #app189a .est i { width: 9px; height: 9px; border-radius: 50%; background: #00e5ff; display: block; box-shadow: 0 0 0 0 rgba(0, 229, 255, .6); animation: app189pulso 1.8s ease-out infinite; }
@keyframes app189pulso { 0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, .55); } 70% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); } }
@media (prefers-reduced-motion: reduce) { #app189r .est i, #app189a .est i { animation: none; } }
.app189-apps { min-width: 44px; min-height: 44px; border: 1px solid rgba(224, 247, 250, .25); border-radius: 13px 5px 13px 5px; background: transparent; color: #e0f7fa; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.app189-apps:hover, .app189-apps[aria-expanded="true"] { border-color: var(--app); }
.app189-apps:focus-visible, #app189p a:focus-visible, #app189a button:focus-visible, #app189a input:focus-visible { outline: 2px solid var(--app); outline-offset: 2px; }

/* ---------- los 12 programas (selector) ---------- */
#app189p { position: fixed; z-index: 2147483600; width: min(360px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 100px)); overflow: auto; padding: 12px; border: 1px solid rgba(0, 229, 255, .22); border-radius: 18px 7px 18px 7px; background: #060d17; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); color: #e0f7fa; }
#app189p[hidden] { display: none !important; }
#app189p .t { margin: 2px 4px 10px; font-size: 13px; color: #93b4c0; }
#app189p ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#app189p a { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 6px 8px; border-radius: 12px 4px 12px 4px; color: #e0f7fa; text-decoration: none; font-size: 14px; line-height: 1.2; }
#app189p a:hover { background: #0d1d2c; }
#app189p a[aria-current="page"] { background: #0d1d2c; box-shadow: inset 0 0 0 1px var(--c); }
#app189p a span.i { width: 30px; height: 30px; border-radius: 10px 4px 10px 4px; background: var(--c); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
#app189p .casa { display: block; margin: 10px 4px 2px; font-size: 13.5px; color: #8fe9f5; text-decoration: none; min-height: 0; padding: 4px 0; }

/* ---------- micrófono y enviar en el color de la app ---------- */
html.app189 #micBtn { background: var(--app) !important; color: var(--tinta) !important; border-color: transparent !important; }
html.app189 #micBtn svg, html.app189 #micBtn i { color: var(--tinta) !important; fill: currentColor; }
html.app189 #sendBtn { background: var(--app) !important; color: var(--tinta) !important; border-color: transparent !important; }
html.app189 #sendBtn svg { color: var(--tinta) !important; }
@media (min-width: 700px) { html.app189 body.v121-svc #micBtn { width: 56px !important; height: 56px !important; min-width: 56px !important; border-radius: 50% !important; } }

/* ---------- servicios a pantalla completa (Machines): empiezan debajo del cabezote ---------- */
html.app189 #mq142.on { top: var(--v121-head, 72px) !important; height: calc(100% - var(--v121-head, 72px)) !important; }

/* ---------- 3D Workshop: el taller con Arthur vivo al lado ---------- */
html.app189 #aw161.on.app189 { display: grid !important; top: var(--v121-head, 72px) !important; height: calc(100% - var(--v121-head, 72px)) !important; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); background: #050a12; }
html.app189 #aw161.app189 > .aw-top { display: none !important; }
html.app189 #aw161.app189 > iframe { grid-column: 2; grid-row: 1; width: 100% !important; height: 100% !important; border: 0; }
#app189a { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 16px; overflow: auto; background: #071320; border-right: 1px solid rgba(0, 229, 255, .14); color: #e0f7fa; }
#app189a canvas { width: 210px; height: 210px; display: block; }
#app189a .est { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #8fe9f5; }
#app189a .rol { margin: 0; padding: 12px 14px; border-radius: 14px 5px 14px 5px; background: #0d1d2c; font-size: 15px; line-height: 1.45; }
#app189a .mic { width: 88px; height: 88px; border: none; border-radius: 50%; background: var(--app); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
#app189a .mic:active { transform: scale(.96); }
#app189a .mich { font-size: 14px; color: #b9d0da; }
#app189a form { width: 100%; display: flex; gap: 8px; }
#app189a input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid rgba(224, 247, 250, .22); border-radius: 13px 5px 13px 5px; background: #050a12; color: #e0f7fa; font: 400 15px "Outfit", sans-serif; }
#app189a form button { flex: 0 0 48px; height: 48px; border: none; border-radius: 13px 5px 13px 5px; background: var(--app); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ---------- el plan de la app: tarjeta entera en oro metálico ---------- */
html.app189 #asR .as-plan.app189-plan { background: var(--oro) !important; border: 1px solid #f7e3a0 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -3px 0 rgba(90, 60, 0, .35), 0 10px 30px rgba(218, 165, 33, .25) !important; color: #1a1200 !important; }
html.app189 #asR .as-plan.app189-plan * { color: #1a1200 !important; text-shadow: none !important; }
html.app189 #asR .as-plan.app189-plan .as-plan-b { background: #1a1200 !important; color: #f7e3a0 !important; }
html.app189 #asR .as-plan.app189-plan .as-plan-btn { background: #1a1200 !important; color: #f7e3a0 !important; border-color: #1a1200 !important; box-shadow: none !important; }
html.app189 #asR .as-plan.app189-plan .app189-nota { margin-top: 8px; font-size: 13px; line-height: 1.4; font-weight: 600; }

/* ---------- celular: se ve como una app ---------- */
@media (max-width: 699px) {
  #app189m b, #app189m .sep { display: none; }
  #app189m .nom { font-size: 16px; max-width: 40vw; }
  #app189m .ico { width: 28px; height: 28px; }
  html.app189 body.v121-svc #app189r { margin: 8px 12px 6px; padding: 8px 10px; gap: 10px; }
  #app189r .ico { width: 34px; height: 34px; }
  #app189r .nom { font-size: 15.5px; }
  #app189r .rol { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #app189r .est { display: none; }
  html.app189 #aw161.on.app189 { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  html.app189 #aw161.app189 > iframe { grid-column: 1; grid-row: 1; }
  #app189a { grid-column: 1; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-right: none; border-top: 1px solid rgba(0, 229, 255, .18); overflow: visible; }
  #app189a canvas { width: 56px; height: 56px; }
  #app189a .est, #app189a .mich { display: none; }
  #app189a .rol { flex: 1 1 200px; padding: 8px 10px; font-size: 13.5px; }
  #app189a form { flex: 1 1 200px; order: 3; }
  #app189a .mic { width: 64px; height: 64px; order: 4; }
}

/* ---------- texto para buscadores y lectores de pantalla (fuera de la vista, igual que en arthuragentAI.com) ---------- */
#app189seo { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- v189b: ajustes ---------- */
/* Arthur del taller más compacto en pantallas bajas: el micrófono siempre a la vista */
@media (min-width: 700px) and (max-height: 760px) { #app189a { gap: 9px; padding: 12px 14px; } #app189a canvas { width: 150px; height: 150px; } #app189a .rol { font-size: 14px; padding: 10px 12px; } #app189a .mic { width: 72px; height: 72px; } }
/* el botón de opiniones flotante no tapa «Enviar» en la app */
@media (min-width: 700px) { html.app189 body.v121-svc #asFbBtn { bottom: 104px !important; } }
