/* =========================================================
   UNAM | área de IA empresarial (index.html, #ia em diante)
   Cor de cada agente: --ag
   ========================================================= */
.agent--gerente, .ev--gerente { --ag: #ff6b1a; }
.agent--subgerente, .ev--subgerente { --ag: #14b8a6; }
.agent--atendimento, .ev--atendimento { --ag: #1fb0ff; }
.agent--web, .ev--web { --ag: #8b5cf6; }
.agent--social, .ev--social { --ag: #ec4899; }
.agent--copy, .ev--copy { --ag: #facc15; }
.agent--financeiro, .ev--financeiro { --ag: #22c55e; }

/* ---------- Abertura ---------- */
.ia-head { max-width: 820px; margin-left: auto; margin-right: auto; }
.ia-head .lead { max-width: 640px; margin: 18px auto 0; }
.ia-head__ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; align-items: center; }
.ia-squad { margin: 8px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 100px rgba(31, 176, 255, .22), 0 0 0 1px var(--line-d); }
.ia-squad img, .ia-squad__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-800); }

/* ---------- Três soluções ---------- */
.ia-sols { background: var(--light); color: var(--ink); }
.ia-sols .head h2 { color: var(--ink); }
.ia-cards { display: grid; gap: 16px; }
.ia-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 30px 24px 24px; overflow: hidden; }
.ia-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.ia-card--1 { --c: #1fb0ff; }
.ia-card--2 { --c: #8b5cf6; }
.ia-card--3 { --c: #ec4899; }
.ia-card__k { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); filter: brightness(.85); }
.ia-card h3 { font-size: 27px; line-height: 1.15; margin: 8px 0 10px; }
.ia-card__p { color: var(--muted-l); }
.ia-card__list { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line-l); }
.ia-card__list li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line-l); font-size: 15.5px; }
.ia-card__list li::before { content: ""; position: absolute; left: 3px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ia-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ia-who > span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-l); }
.ia-who div { display: flex; }
.ia-who img { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; margin-left: -10px; background: var(--navy-800); box-shadow: 0 6px 16px rgba(11, 26, 44, .18); }
.ia-try { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 2px 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 18px; background: #eef7ff; }
.ia-try img { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue); }
.ia-try p { font-size: 14px; color: #0b3a66; }
.ia-try .link { justify-self: start; min-height: 32px; font-size: 15px; font-weight: 600; color: var(--blue-2); }
.ia-card__cta { margin-top: auto; }
.ia-card__cta .btn { width: 100%; }

/* ---------- Demonstração ---------- */
.ia-demo { background: radial-gradient(80% 60% at 50% 0%, #0d2f52, var(--navy-900) 70%); }
.feed {
  max-width: 760px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(170deg, rgba(18, 54, 92, .7), rgba(7, 20, 38, .95));
  border: 1px solid rgba(143, 196, 255, .2); box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 80px rgba(31, 176, 255, .1);
}
.feed__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(143, 196, 255, .14); font-size: 15px; }
.feed__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #fca5a5; text-transform: uppercase; letter-spacing: .08em; }
.feed__live i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: liveDot 1.4s infinite; }
@keyframes liveDot { 50% { opacity: .3; } }
.feed__clock { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 20px; color: #fff; letter-spacing: .02em; }
.feed__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(143, 196, 255, .14); }
.st { padding: 14px 12px; text-align: center; }
.st + .st { border-left: 1px solid rgba(143, 196, 255, .14); }
.st b { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st span { font-size: 12px; color: var(--muted-d); }
.st--conv b { color: var(--blue); }
.st--done b { color: #4ade80; }
.st--wait b { color: #fbbf24; }
.feed__list {
  list-style: none; margin: 0; padding: 14px 14px 4px; display: flex; flex-direction: column; gap: 10px;
  height: 430px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent);
}
.ev { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(143, 196, 255, .1); }
.ev--new { animation: evIn .6s var(--ease); }
@keyframes evIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
.ev img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--ag); box-shadow: 0 0 14px color-mix(in srgb, var(--ag) 45%, transparent); }
.ev__body { flex: 1; min-width: 0; }
.ev__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.ev__top b { color: var(--ag); }
.ev__top time { color: var(--muted-d); font-variant-numeric: tabular-nums; }
.ev__txt { margin-top: 2px; font-size: 15px; color: #e6eef6; line-height: 1.4; }
.ev__st { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.ev__st--ok { background: rgba(34, 197, 94, .14); color: #86efac; }
.ev__st--ap { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.ev__st--eq { background: rgba(31, 176, 255, .14); color: #93d8ff; }
.feed__sum { display: flex; gap: 12px; align-items: flex-start; margin: 4px 14px 16px; padding: 14px; border-radius: 18px; background: rgba(255, 107, 26, .1); border: 1px solid rgba(255, 107, 26, .45); animation: evIn .6s var(--ease); }
.feed__sum img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--orange); flex-shrink: 0; }
.feed__sum p { font-size: 15px; color: #ffe2d0; }
.feed__sum b { display: block; color: var(--orange); font-size: 13px; }
.feed__foot { max-width: 760px; margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: center; }
.feed__foot .fine { margin: 0; flex: 1 1 320px; }

/* ---------- Squad ---------- */
.ia-team { background: linear-gradient(180deg, var(--navy-900), #0a2340); color: #fff; }
.agents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.agent {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; padding-bottom: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(143, 196, 255, .14);
  transition: transform .3s var(--ease), border-color .3s;
}
.agent:hover { transform: translateY(-4px); border-color: var(--ag); }
.agent img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }
.agent h3 { font-size: 18px; margin: 12px 14px 4px; color: var(--ag); }
.agent p { font-size: 14px; color: #b9c9da; margin: 0 14px; line-height: 1.4; }
.agent__lim { align-self: flex-start; margin: 10px 14px 0; padding: 5px 10px; border-radius: 10px; line-height: 1.3; font-size: 11.5px; font-weight: 600; color: #fff; background: color-mix(in srgb, var(--ag) 22%, transparent); border: 1px solid color-mix(in srgb, var(--ag) 55%, transparent); }

.ia-rules { margin-top: 40px; padding: 28px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(143, 196, 255, .16); text-align: center; }
.ia-rules h3 { font-size: clamp(26px, 6vw, 36px); margin-bottom: 18px; }
.ia-rules ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; text-align: left; }
.ia-rules li { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); }
.ia-rules b { display: block; color: var(--orange); font-size: 15px; }
.ia-rules span { font-size: 15px; color: #c7d7e7; }
.ia-rules .fine { margin: 0 auto 22px; max-width: 560px; }

/* ---------- Tamanhos maiores ---------- */
@media (min-width: 640px) {
  .agents { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .ia-rules ul { grid-template-columns: repeat(3, 1fr); }
  .ia-rules { padding: 36px; }
}
@media (min-width: 900px) {
  .ia-cards { grid-template-columns: repeat(3, 1fr); }
  .agents { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .agents { grid-template-columns: repeat(7, 1fr); }
  .agent h3 { font-size: 16px; }
  .agent p { font-size: 13px; }
  .agent__lim { align-self: stretch; margin: 10px 10px 0; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev--new, .feed__sum, .feed__live i { animation: none; }
}
