.ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .35rem;
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ai-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(45, 125, 253, .15);
  background:
    radial-gradient(circle at 90% 10%, rgba(14, 165, 233, .15), transparent 30%),
    linear-gradient(135deg, var(--color-surface), var(--color-primary-light));
}

.ai-hero > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .8rem;
}

.ai-hero-icon {
  display: grid;
  grid-row: 1 / 3;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: .85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 10px 24px rgba(45, 125, 253, .25);
}

.ai-hero h2,
.ai-section-heading h2,
.ai-feature-card h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.ai-hero p,
.ai-section-heading p,
.ai-feature-card p {
  margin: .25rem 0 0;
  color: var(--color-text-muted);
  font-size: .82rem;
}

.ai-hero-badge,
.ai-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .7rem;
  border: 1px solid rgba(16, 185, 129, .2);
  border-radius: 999px;
  color: #047857;
  background: rgba(236, 253, 245, .9);
  font-size: .72rem;
  font-weight: 750;
  white-space: nowrap;
}

.ai-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ai-feature-card {
  display: flex;
  min-width: 0;
  min-height: 300px;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ai-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 125, 253, .25);
  box-shadow: var(--shadow-lg);
}

.ai-feature-card.is-locked {
  opacity: .72;
}

.ai-feature-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 1rem;
  color: var(--color-primary);
  background: var(--color-primary-light);
  font-size: 1.3rem;
}

.ai-feature-copy {
  flex: 1;
}

.ai-feature-kicker {
  display: block;
  margin-bottom: .35rem;
  color: var(--color-primary);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ai-feature-card h2 {
  font-size: 1.05rem;
}

.ai-feature-card p {
  line-height: 1.55;
}

.ai-feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--color-border);
}

.ai-feature-footer > span:first-child {
  color: var(--color-text-muted);
  font-size: .7rem;
}

.ai-voice-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: start;
}

.ai-voice-capture,
.ai-voice-review {
  padding: 1.1rem;
}

.ai-section-heading {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 1rem;
}

.ai-section-heading > div {
  min-width: 0;
  flex: 1;
}

.ai-step {
  display: grid;
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: .65rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  font-size: .76rem;
  font-weight: 800;
}

.ai-recorder {
  display: grid;
  justify-items: center;
  min-height: 275px;
  padding: 1.4rem;
  align-content: center;
  text-align: center;
  border: 1.5px dashed rgba(45, 125, 253, .35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 15%, rgba(45, 125, 253, .1), transparent 35%),
    var(--color-surface-alt);
}

.ai-recorder > p {
  max-width: 430px;
  margin: .35rem auto 1.1rem;
  color: var(--color-text-muted);
  font-size: .8rem;
}

.ai-recorder-visual {
  display: flex;
  height: 4.2rem;
  align-items: center;
  gap: .3rem;
  margin-bottom: .75rem;
  color: var(--color-primary);
}

.ai-recorder-visual > i {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  margin-right: .35rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 12px 30px rgba(45, 125, 253, .28);
  font-size: 1.35rem;
}

.ai-recorder-visual > span {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
}

.ai-recorder.is-recording {
  border-color: rgba(239, 68, 68, .45);
  background: rgba(254, 242, 242, .7);
}

.ai-recorder.is-recording .ai-recorder-visual {
  color: var(--color-danger);
}

.ai-recorder.is-recording .ai-recorder-visual > i {
  background: var(--color-danger);
  animation: aiPulse 1.2s ease-in-out infinite;
}

.ai-recorder.is-recording .ai-recorder-visual > span {
  animation: aiWave .9s ease-in-out infinite alternate;
}

.ai-recorder.is-recording .ai-recorder-visual > span:nth-child(3) { animation-delay: .15s; }
.ai-recorder.is-recording .ai-recorder-visual > span:nth-child(4) { animation-delay: .3s; }

.ai-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: .8rem;
  color: var(--color-primary);
  font-size: .78rem;
  font-weight: 700;
}

.ai-transcript {
  margin-bottom: 1rem;
  padding: .8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-alt);
}

.ai-transcript > span {
  color: var(--color-text-muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ai-transcript p {
  margin: .3rem 0 0;
  font-size: .82rem;
  line-height: 1.5;
}

.ai-confidence {
  flex: 0 0 auto;
  padding: .3rem .55rem;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 800;
}

.ai-confidence.is-high { color: #047857; background: #D1FAE5; }
.ai-confidence.is-medium { color: #92400E; background: #FEF3C7; }
.ai-confidence.is-low { color: #B91C1C; background: #FEE2E2; }

.ai-conflict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
  padding: .8rem;
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: var(--radius);
  color: #92400E;
  background: #FFFBEB;
  font-size: .78rem;
}

.ai-conflict ul {
  margin: .35rem 0 0;
  padding-left: 1.2rem;
}

/* Assistente flutuante */
.vetai {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1060;
}

.vetai-launcher-wrap {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: .5rem;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .25s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}

.vetai.is-open .vetai-launcher-wrap {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.92);
}

.vetai-notice {
  position: relative;
  max-width: 13rem;
  padding: .52rem .85rem;
  border: 1px solid rgba(45, 125, 253, .14);
  border-radius: 999px;
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(30, 99, 214, .16);
  font-size: .8rem;
  font-weight: 700;
  text-align: left;
  animation: vetaiNoticeIn .45s cubic-bezier(.22, 1, .36, 1) both;
}

.vetai-notice::after {
  position: absolute;
  right: 1.12rem;
  bottom: -6px;
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--color-surface) transparent transparent;
  content: "";
  filter: drop-shadow(0 2px 1px rgba(30, 99, 214, .08));
}

.vetai-launcher {
  position: relative;
  display: grid;
  width: 3.65rem;
  height: 3.65rem;
  padding: 0;
  overflow: visible;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 99, 214, .34);
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.vetai-launcher:hover {
  filter: brightness(1.03);
  transform: scale(1.05);
}

.vetai-launcher:active {
  transform: scale(.96);
}

.vetai-launcher-avatar {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.vetai-launcher-avatar img,
.vetai-avatar img,
.vetai-message-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.vetai-launcher-badge {
  position: absolute;
  top: -.15rem;
  right: -.1rem;
  display: inline-flex;
  min-width: 1.18rem;
  height: 1.18rem;
  padding: 0 .28rem;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: .66rem;
  font-weight: 800;
  transition: opacity .2s ease, transform .2s ease;
}

.vetai-launcher-badge[hidden],
.vetai-launcher-badge.is-gone {
  opacity: 0;
  pointer-events: none;
  transform: scale(.6);
}

.vetai-panel {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  width: min(390px, calc(100vw - 1.5rem));
  height: min(620px, calc(100vh - 6.5rem));
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 1.2rem;
  background: var(--color-surface);
  box-shadow: 0 25px 80px rgba(15, 23, 42, .24);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease;
}

.vetai.is-open .vetai-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.vetai-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem;
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, .18), transparent 28%),
    linear-gradient(135deg, #1E63D6, #0EA5E9);
}

.vetai-avatar,
.vetai-message-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--color-primary);
  background: #fff;
}

.vetai-avatar {
  position: relative;
  width: 3rem;
  height: 3rem;
  border: 2px solid rgba(255, 255, 255, .75);
}

.vetai-avatar-online {
  position: absolute;
  right: -.05rem;
  bottom: .05rem;
  width: .68rem;
  height: .68rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22c55e;
}

.vetai-header > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.vetai-header strong {
  font-size: .88rem;
}

.vetai-header span {
  opacity: .85;
  font-size: .64rem;
}

.vetai-header span i {
  margin-right: .2rem;
  color: #86EFAC;
  font-size: .42rem;
}

.vetai-close {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.vetai-consent {
  display: grid;
  flex: 1;
  padding: 1.4rem;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.vetai-consent > i {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: .8rem;
  place-items: center;
  border-radius: 1rem;
  color: var(--color-primary);
  background: var(--color-primary-light);
  font-size: 1.4rem;
}

.vetai-consent h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.vetai-consent p {
  margin: .55rem 0;
  color: var(--color-text-muted);
  font-size: .75rem;
  line-height: 1.55;
}

.vetai-consent a {
  font-size: .7rem;
}

.vetai-chat {
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.vetai-messages {
  height: calc(100% - 60px);
  padding: .85rem;
  overflow-y: auto;
  background:
    radial-gradient(circle at 10% 10%, rgba(45, 125, 253, .05), transparent 25%),
    var(--color-surface-alt);
}

.vetai-message {
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  margin-bottom: .7rem;
  animation: aiMessageIn .18s ease both;
}

.vetai-message.is-user {
  justify-content: flex-end;
}

.vetai-message > div {
  max-width: 88%;
  padding: .68rem .78rem;
  border-radius: .9rem;
  font-size: .9rem;
  line-height: 1.55;
}

.vetai-message.is-assistant > div {
  border: 1px solid var(--color-border);
  border-bottom-left-radius: .25rem;
  background: var(--color-surface);
}

.vetai-message.is-user > div {
  border-bottom-right-radius: .25rem;
  color: #fff;
  background: var(--color-primary);
}

.vetai-message-avatar {
  width: 1.7rem;
  height: 1.7rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  font-size: .7rem;
}

.vetai-message.is-typing > div {
  display: flex;
  gap: .22rem;
  padding-block: .8rem;
}

.vetai-message.is-typing > div span {
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: aiTyping .8s ease-in-out infinite alternate;
}

.vetai-message.is-typing > div span:nth-child(2) { animation-delay: .14s; }
.vetai-message.is-typing > div span:nth-child(3) { animation-delay: .28s; }

.vetai-suggestions {
  position: absolute;
  right: .75rem;
  bottom: 4.9rem;
  left: .75rem;
  border: 1px solid var(--color-border);
  border-radius: .7rem;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.vetai-suggestions summary {
  padding: .5rem .65rem;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: .67rem;
  font-weight: 700;
  list-style: none;
}

.vetai-suggestions summary::-webkit-details-marker {
  display: none;
}

.vetai-suggestions > div {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: 0 .55rem .55rem;
}

.vetai-suggestions button {
  padding: .3rem .48rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  background: var(--color-surface-alt);
  font-size: .62rem;
}

.vetai-compose {
  padding: .72rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.vetai-compose > div {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .3rem .28rem .68rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-alt);
}

.vetai-compose input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--color-text);
  background: transparent;
  font-size: .75rem;
}

.vetai-compose button {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary);
}

.vetai-compose small {
  display: block;
  margin-top: .35rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: .57rem;
}

@keyframes aiPulse {
  50% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(239, 68, 68, .08); }
}

@keyframes aiWave {
  to { height: 32px; }
}

@keyframes aiMessageIn {
  from { opacity: 0; transform: translateY(5px); }
}

@keyframes aiTyping {
  to { opacity: .3; transform: translateY(-2px); }
}

@keyframes vetaiNoticeIn {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 991.98px) {
  .ai-feature-grid {
    grid-template-columns: 1fr;
  }

  .ai-feature-card {
    min-height: 0;
  }

  .ai-voice-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .ai-hero,
  .ai-feature-footer,
  .ai-conflict {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-hero-badge {
    white-space: normal;
  }

  .vetai {
    right: .75rem;
    bottom: .75rem;
  }

  .vetai-notice {
    max-width: 11rem;
    padding: .44rem .72rem;
    font-size: .73rem;
  }

  .vetai-launcher {
    width: 3.2rem;
    height: 3.2rem;
  }

  .vetai-panel {
    position: fixed;
    inset: .6rem;
    width: auto;
    height: auto;
    transform-origin: bottom center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vetai-launcher-wrap,
  .vetai-notice,
  .vetai-launcher,
  .vetai-launcher-badge,
  .vetai-panel {
    animation: none !important;
    transition: none !important;
  }
}
