/* Capa visual del asistente Ariah: limpia, centrada y enfocada en conversar. */
.ia-hero { padding: 22px 0 38px; background: radial-gradient(circle at 77% 35%, #217ed4 0, transparent 25%), linear-gradient(125deg, #061837, #0d529f); }
.ia-hero h1 { font-size: clamp(31px, 3.7vw, 46px); letter-spacing: -.05em; }
.ia-workspace { max-width: 720px; margin-top: -24px; }
.ia-chat { min-height: 0; border: 1px solid #d9e4ef; border-radius: 16px; box-shadow: 0 15px 35px rgba(4, 35, 77, .10); transition: opacity .2s ease, transform .2s ease; }
.ia-chat.is-active { position: fixed; z-index: 10001; top: 50%; left: 50%; display: flex; width: min(840px, calc(100vw - 34px)); height: min(660px, calc(100dvh - 34px)); min-height: 0; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(4, 18, 37, .53), 0 28px 80px rgba(0, 0, 0, .28); }
body.ia-chat-open { overflow: hidden; }
.ia-chat-head { min-height: 58px; padding: 14px 20px; background: #fff; }
.ariah-logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, #063b80, #1597dd); box-shadow: none; }
.ia-chat-head strong { font-size: 14px; letter-spacing: -.01em; }
.ia-chat-head span { font-size: 11px; }
.ia-chat-head i { padding: 5px 8px; border: 1px solid #dcefe3; border-radius: 99px; background: #f4fcf7; }

.ia-chat-close { display:none; width:31px; height:31px; margin-left:5px; border:0; border-radius:9px; background:#f1f5f9; color:#40566b; font-size:23px; line-height:1; cursor:pointer; }.ia-chat.is-active .ia-chat-close { display:block; }
.ia-messages { gap: 12px; max-height: 180px; padding: 16px 9%; background: #fff; scrollbar-color: #c8d9e8 transparent; transition: max-height .25s ease, padding .25s ease; }
.ia-chat:not(.is-active) .ia-messages { max-height: none; overflow: visible; padding: 20px 7% 14px; }
.ia-chat.is-active .ia-messages { max-height: none; padding-top: 26px; padding-bottom: 26px; }
.ia-message { position: relative; max-width: 86%; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 14px; line-height: 1.65; }
.ia-message-bot { padding-left: 46px; background: transparent; color: #223447; }
.ia-message-bot::before { content: 'A'; position: absolute; margin-left: -46px; display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: linear-gradient(145deg, #0b4a94, #25a2e6); color: #fff; font-size: 13px; font-weight: 900; }
.ia-message-user { max-width: 72%; padding: 10px 14px; border-radius: 13px 13px 3px 13px; background: #eef5fb; color: #1e405d; }
.ia-message .ia-answer-list { margin-top: 15px; }
.ia-message .ia-mini-product { border-color: #e0eaf3; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(14, 60, 103, .04); }

.ia-consult-options { margin-top: 15px; padding: 13px; border: 1px solid #e1eaf2; border-radius: 12px; background: linear-gradient(135deg, #f8fbfd, #f2f8fd); }
.ia-consult-options > span { display: block; margin-bottom: 10px; color: #183b59; font-size: 13px; }
.ia-consult-options .ia-uses { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 0; }
.ia-consult-options .ia-use { min-height: 48px; padding: 6px; border-color: #d9e6f1; border-radius: 10px; background: #fff; color: #25445f; font-size: 10px; line-height: 1.2; text-align: center; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.ia-consult-options .ia-use:hover { transform: translateY(-2px); border-color: #8bbfe6; box-shadow: 0 5px 12px rgba(19, 93, 153, .1); }
.ia-consult-options .ia-use::before { display: block; margin-bottom: 4px; color: var(--primario); font-size: 14px; content: '⌘'; }
.ia-consult-options .ia-use:nth-child(2)::before { content: '▣'; }.ia-consult-options .ia-use:nth-child(3)::before { content: '✦'; }.ia-consult-options .ia-use:nth-child(4)::before { content: '◉'; }.ia-consult-options .ia-use:nth-child(5)::before { content: '↔'; }
.ia-consult-options .ia-use.active { border-color: #83bde8; background: #edf7ff; color: #075fa8; }
.ia-consult-options .ia-use:nth-child(4), .ia-consult-options .ia-use:nth-child(5) { grid-column: span 1; }

.ia-options { margin: 0 9%; padding: 8px 0; border-top: 1px solid #edf1f5; background: #fff; }.ia-chat:not(.is-active) .ia-options { display:none; }
.ia-options summary { color: #54708a; font-size: 11px; }
.ia-options summary::before { color: #3978aa; background: #edf5fb; }
.ia-options[open] { padding-bottom: 15px; }
.ia-chat-compose { align-items: center; margin: 0 7% 13px; padding: 5px 6px 5px 14px; border: 1px solid #cbd9e5; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(18, 61, 99, .08); }
.ia-chat-compose textarea { min-height: 40px; padding: 10px 2px; border: 0; box-shadow: none !important; color: #18354c; }
.ia-chat-compose .ia-ask { min-width: 82px; min-height: 39px; border-radius: 10px; font-size: 12px; }
.ia-chat > .ia-note { margin: -10px 8% 15px; color: #8294a5; text-align: center; }
.ia-chat:not(.is-active) .ia-chat-compose { margin: 0 7% 12px; }.ia-chat:not(.is-active) > .ia-note { margin-bottom: 13px; }
.ia-showcase[hidden] { display: none; }

@media (max-width: 760px) {
  .ia-hero { padding-bottom: 34px; }
  .ia-workspace { margin: 0 12px; }
  .ia-chat { min-height: 0; border-radius: 14px; }.ia-chat.is-active { width:calc(100vw - 18px); height:calc(100dvh - 18px); min-height:0; }
  .ia-chat-head { padding: 12px 14px; }
  .ia-chat-head i { font-size: 9px; }
  .ia-messages { max-height: 165px; padding: 13px 15px; }.ia-chat:not(.is-active) .ia-messages { max-height:none; padding: 15px 14px 10px; }.ia-chat.is-active .ia-messages { max-height:none; padding: 20px 15px; }
  .ia-message { max-width: 94%; font-size: 13px; }
  .ia-message-bot { padding-left: 39px; }
  .ia-message-bot::before { width: 26px; height: 26px; margin-left: -39px; }
  .ia-consult-options { margin-top: 15px; padding: 11px; }
  .ia-consult-options .ia-uses { grid-template-columns: 1fr 1fr; }
  .ia-consult-options .ia-use { min-height: 45px; text-align:left; }.ia-consult-options .ia-use::before { display:inline; margin-right:5px; }
  .ia-options { margin: 0 15px; }
  .ia-chat-compose { margin: 0 10px 13px; }
  .ia-chat-compose .ia-ask { min-width: 42px; font-size: 0; }
  .ia-chat-compose .ia-ask span { font-size: 18px; }
}
